PhoenixChain, Is a next-gen unique chain, bringing the real value with real utility on cryptocurrency. Providing for the other token that would join on our unique and next-gen Ecosystem The main idea behind PhoenixChain is to provide Decentralized Finance network, which operates on the Binance Smart Chain (BEP-20). The path forward for PCN is not just a token but we evolve into a coin, Building our independent own ecosystems.
Reentrancy in PhoenixChain.claimBNBReward() (#1158-1179):
External calls:
- (success) = address(charityAddress).call{value: charityamount}() (#1167)
State variables written after the call(s):
- nextAvailableClaimDate[msg.sender] = block.timestamp + getRewardCycleBlock() (#1174)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
PhoenixChain.claimBNBReward() (#1158-1179) contains a tautology or contradiction:
- require(bool,string)(balanceOf(msg.sender) >= 0,Error: must own PhoenixChain to claim reward) (#1160)
Fix the incorrect comparison by changing the value type or the comparison.
Additional information: link
PhoenixChain.migrateBnb(address,uint256)._newadd (#1301) lacks a zero-check on :
- (success) = address(_newadd).call{value: amount}() (#1302)
Check that the address is not zero.
Additional information: link
Reentrancy in PhoenixChain.transferFrom(address,address,uint256) (#830-834):
External calls:
- _transfer(sender,recipient,amount,0) (#831)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#1381-1388)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1348-1354)
External calls sending eth:
- _transfer(sender,recipient,amount,0) (#831)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#1381-1388)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (#832)
- _allowances[owner][spender] = amount (#1028)
Apply the check-effects-interactions pattern.
Additional information: link
PhoenixChain._addLiquidity(address,uint256,uint256) (#1375-1389) ignores return value by pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#1381-1388)
Ensure that all the return values of the function calls are used.
Additional information: link
PhoenixChain._addLiquidity(address,uint256,uint256).owner (#1376) shadows:
- Ownable.owner() (#387-389) (function)
Rename the local variables that shadow another component.
Additional information: link
PhoenixChain.changethreshHoldTopUpRate(uint256) (#1306-1308) should emit an event for:
- threshHoldTopUpRate = _newrate (#1307)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in PhoenixChain.transferFrom(address,address,uint256) (#830-834):
External calls:
- _transfer(sender,recipient,amount,0) (#831)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#1381-1388)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1348-1354)
External calls sending eth:
- _transfer(sender,recipient,amount,0) (#831)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#1381-1388)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1029)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (#832)
Apply the check-effects-interactions pattern.
Additional information: link
PhoenixChain.ensureMaxTxAmount(address,address,uint256,uint256) (#1196-1210) uses timestamp for comparisons
Dangerous comparisons:
- value < disruptiveCoverageFee && block.timestamp >= disruptiveTransferEnabledFrom (#1206)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#344-365) uses assembly
- INLINE ASM (#357-360)
Do not use evm assembly.
Additional information: link
PhoenixChain.ensureMaxTxAmount(address,address,uint256,uint256) (#1196-1210) compares to a boolean constant:
-_isExcludedFromMaxTx[from] == false && _isExcludedFromMaxTx[to] == false (#1203-1204)
Remove the equality to the boolean constant.
Additional information: link
SafeMath.mod(uint256,uint256,string) (#215-218) is never used and should be removed
Remove unused functions.
Additional information: link
PhoenixChain.minTokenNumberToSell (#1132) is set pre-construction with a non-constant function or state variable:
- _tTotal.mul(1).div(10000).div(10)
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
solc-0.6.8 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in PhoenixChain.migrateBnb(address,uint256) (#1301-1304):
- (success) = address(_newadd).call{value: amount}() (#1302)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable PhoenixChain._liquidityFee (#1128) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#227)" inContext (#221-231)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable PhoenixChain._transferBothExcluded(address,address,uint256).rTransferAmount (#904) is too similar to PhoenixChain._transferFromExcluded(address,address,uint256).tTransferAmount (#1103)
Prevent variables from having similar names.
Additional information: link
PhoenixChain.slitherConstructorVariables() (#722-1391) uses literals with too many digits:
- _tTotal = 1000000000000 * 10 ** 9 (#739)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
PhoenixChain.rewardThreshold (#1130) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
_swapETHForTokens(address,uint256) should be declared external:
- PhoenixChain._swapETHForTokens(address,uint256) (#1357-1373)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap volume is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Token is deployed only at one blockchain
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute number of swaps.
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has a considerable age, but social accounts / website are missing or have few users
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid