Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
AFKToken.addLiquidity(uint256,uint256) (#1349-1361) sends eth to arbitrary user
Dangerous calls:
- IDEXV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1352-1359)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in RewardPayingToken._withdrawRewardOfUser(address) (#381-397):
External calls:
- (success) = user.call{gas: 3000,value: _withdrawableReward}() (#386)
State variables written after the call(s):
- withdrawnRewards[user] = withdrawnRewards[user].sub(_withdrawableReward) (#389)
Apply the check-effects-interactions pattern.
Additional information: link
AFKToken._totalSupply (#983) shadows:
- BEP20._totalSupply (#186)
Remove the state variable shadowing.
Additional information: link
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
AFKToken._transfer(address,address,uint256).lastProcessedIndex (#1294) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
AFKToken.addLiquidity(uint256,uint256) (#1349-1361) ignores return value by IDEXV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1352-1359)
Ensure that all the return values of the function calls are used.
Additional information: link
RewardPayingToken.constructor(string,string)._symbol (#356) shadows:
- BEP20._symbol (#189) (state variable)
Rename the local variables that shadow another component.
Additional information: link
AFKToken.changeWalletLimit(uint256) (#1213-1215) should emit an event for:
- walletMax = newLimit (#1214)
Emit an event for critical parameter changes.
Additional information: link
AFKToken.setwalletBack(address).wallet (#1141) lacks a zero-check on :
- _walletBack = address(wallet) (#1142)
Check that the address is not zero.
Additional information: link
Variable 'AFKToken._transfer(address,address,uint256).claims (#1294)' in AFKToken._transfer(address,address,uint256) (#1238-1299) potentially used before declaration: ProcessedRewardTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1295)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in AFKRewardTracker.processAccount(address,bool) (#758-768):
External calls:
- amount = _withdrawRewardOfUser(account) (#759)
- (success) = user.call{gas: 3000,value: _withdrawableReward}() (#386)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#762)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in AFKToken.swapBack(uint256) (#1301-1347):
External calls:
- IDEXV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#1312-1318)
- addLiquidity(tokensToLP,bnbForLiquidity) (#1330)
- IDEXV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1352-1359)
- (success) = address(RewardTracker).call{value: bnbForReflection}() (#1341)
External calls sending eth:
- addLiquidity(tokensToLP,bnbForLiquidity) (#1330)
- IDEXV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1352-1359)
- address(walletMarket).transfer(bnbForMarketing) (#1333)
- address(_walletBack).transfer(bnbForAFKBuyBack) (#1336)
- (success) = address(RewardTracker).call{value: bnbForReflection}() (#1341)
Event emitted after the call(s):
- SendRewards(tRewards,bnbForReflection) (#1344)
Apply the check-effects-interactions pattern.
Additional information: link
AFKRewardTracker.canAutoClaim(uint256) (#686-692) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#687)
- block.timestamp.sub(lastClaimTime) >= claimWait (#691)
Avoid relying on block.timestamp.
Additional information: link
SafeMathInt.mul(int256,int256) (#73-80) is never used and should be removed
Remove unused functions.
Additional information: link
AFKToken.walletMax (#985) is set pre-construction with a non-constant function or state variable:
- _totalSupply
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.8.7 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 AFKToken.swapBack(uint256) (#1301-1347):
- (success) = address(RewardTracker).call{value: bnbForReflection}() (#1341)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable AFKToken._TOKENPerFragment (#1015) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#134)" inContext (#128-137)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in AFKToken.swapBack(uint256) (#1301-1347):
External calls:
- address(walletMarket).transfer(bnbForMarketing) (#1333)
- address(_walletBack).transfer(bnbForAFKBuyBack) (#1336)
External calls sending eth:
- addLiquidity(tokensToLP,bnbForLiquidity) (#1330)
- IDEXV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1352-1359)
- address(walletMarket).transfer(bnbForMarketing) (#1333)
- address(_walletBack).transfer(bnbForAFKBuyBack) (#1336)
- (success) = address(RewardTracker).call{value: bnbForReflection}() (#1341)
Event emitted after the call(s):
- SendRewards(tRewards,bnbForReflection) (#1344)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IIDEXV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#845) is too similar to IIDEXV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#846)
Prevent variables from having similar names.
Additional information: link
AFKToken.slitherConstructorVariables() (#976-1364) uses literals with too many digits:
- gasForProcessing = 300000 (#1000)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#68) is never used in SafeMathInt (#66-118)
Remove unused state variables.
Additional information: link
RewardTokenBalanceOf(address) should be declared external:
- AFKToken.RewardTokenBalanceOf(address) (#1196-1198)
Use the external attribute for functions never called from the contract.
Additional information: link
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
Unable to find website, listings and other project-related information
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts