AANT is the native token for the Alpha Ape Network. It gives the holders access to all of services and generate passive income just by holding.
AANT.addLiquidity(uint256,uint256) (#1201-1216) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in AANT._transfer(address,address,uint256) (#1044-1133):
External calls:
- swapTokensForBNB(swapTokens) (#1084)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1312-1318)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1169-1175)
- swapAndSendDividends(sellTokens) (#1092)
- successBUSD = IERC20(DividendsToken).transfer(address(dividendTracker),dividendsBUSD) (#1226)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1191-1197)
- dividendTracker.distributeBUSDDividends(dividendsBUSD) (#1230)
External calls sending eth:
- transferToMarketingWallet(address(marketingWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1085)
- recipient.transfer(amount) (#1323)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1115)
- _balances[sender] = _balances[sender].sub(amount,AANT: Transfer amount exceeds your balance) (#488)
- _balances[recipient] = _balances[recipient].add(amount) (#489)
- super._transfer(from,to,amount) (#1118)
- _balances[sender] = _balances[sender].sub(amount,AANT: Transfer amount exceeds your balance) (#488)
- _balances[recipient] = _balances[recipient].add(amount) (#489)
- swapping = false (#1094)
Apply the check-effects-interactions pattern.
Additional information: link
AANT.withdrawRemainingBEP20Token(address,address) (#1279-1283) ignores return value by BEP20.transfer(account,balance) (#1282)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
ERC20._isBlacklisted (#416) is never initialized. It is used in:
- ERC20.transferFrom(address,address,uint256) (#464-470)
- ERC20._transfer(address,address,uint256) (#482-491)
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
Contract locking ether found:
Contract AANTDividendTracker (#1328-1541) has payable functions:
- DividendPayingToken.receive() (#629-630)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
AANT.updateMarketingFee(uint8) (#1263-1266) contains a tautology or contradiction:
- require(bool,string)(newFee >= 0 && newFee <= 10,AANT: Expenses tax must be between 0 and 10) (#1264)
AANT.updateLiquidityFee(uint8) (#1268-1271) contains a tautology or contradiction:
- require(bool,string)(newFee >= 0 && newFee <= 10,AANT: Liquidity tax must be between 0 and 10) (#1269)
AANT.updateETHRewardsFee(uint8) (#1273-1276) contains a tautology or contradiction:
- require(bool,string)(newFee >= 0 && newFee <= 15,AANT: ETH/BNB Rewards tax must be between 0 and 15) (#1274)
Fix the incorrect comparison by changing the value type or the comparison.
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.
Combination 2: Unchecked transfer + 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.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
AANT._transfer(address,address,uint256) (#1044-1133) performs a multiplication on the result of a division:
-transferToMarketingWallet(address(marketingWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1085)
AANT._transfer(address,address,uint256) (#1044-1133) performs a multiplication on the result of a division:
-fees = amount.mul(totalFees).div(100) (#1106)
-fees = fees.mul(sellFeeIncreaseFactor).div(100) (#1110)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#653-671):
External calls:
- successBUSD = IERC20(DividendsToken).transfer(user,_withdrawableDividend) (#659)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#663)
Reentrancy in AANT.updateDividendTracker(address) (#905-919):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#912)
- newDividendTracker.excludeFromDividends(address(this)) (#913)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#914)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#918)
Apply the check-effects-interactions pattern.
Additional information: link
AANT._transfer(address,address,uint256).lastProcessedIndex (#1126) is a local variable never initialized
AANT._transfer(address,address,uint256).iterations (#1126) is a local variable never initialized
AANT.addToBlackList(address[]).i (#745) is a local variable never initialized
AANT._transfer(address,address,uint256).claims (#1126) 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
AANT.claim() (#1022-1024) ignores return value by dividendTracker.processAccount(msg.sender,false) (#1023)
AANT._transfer(address,address,uint256) (#1044-1133) ignores return value by dividendTracker.process(gas) (#1126-1131)
AANT.addLiquidity(uint256,uint256) (#1201-1216) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#625) shadows:
- ERC20._name (#420) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#625) shadows:
- ERC20._symbol (#421) (state variable)
Rename the local variables that shadow another component.
Additional information: link
AANT.updateMaxWallet(uint256) (#882-884) should emit an event for:
- _maxWalletToken = maxWallet * (10 ** 18) (#883)
AANT.updateMaxBuyTranscationAmount(uint256) (#886-888) should emit an event for:
- maxBuyTranscationAmount = maxBuy * (10 ** 18) (#887)
AANT.updateMaxSellTransactionAmount(uint256) (#890-892) should emit an event for:
- maxSellTransactionAmount = maxSell * (10 ** 18) (#891)
AANT.updateSwapTokensAtAmount(uint256) (#894-897) should emit an event for:
- swapTokensAtAmount = amountOfTokens (#896)
AANT.updateMarketingFee(uint8) (#1263-1266) should emit an event for:
- marketingFee = newFee (#1265)
AANT.updateLiquidityFee(uint8) (#1268-1271) should emit an event for:
- liquidityFee = newFee (#1270)
AANT.updateETHRewardsFee(uint8) (#1273-1276) should emit an event for:
- liquidityFee = newFee (#1275)
Emit an event for critical parameter changes.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#653-671) has external calls inside a loop: successBUSD = IERC20(DividendsToken).transfer(user,_withdrawableDividend) (#659)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'AANT._transfer(address,address,uint256).claims (#1126)' in AANT._transfer(address,address,uint256) (#1044-1133) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1127)
Variable 'AANT._transfer(address,address,uint256).lastProcessedIndex (#1126)' in AANT._transfer(address,address,uint256) (#1044-1133) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1127)
Variable 'AANT._transfer(address,address,uint256).iterations (#1126)' in AANT._transfer(address,address,uint256) (#1044-1133) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1127)
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 AANT._transfer(address,address,uint256) (#1044-1133):
External calls:
- swapTokensForBNB(swapTokens) (#1084)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1312-1318)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1169-1175)
External calls sending eth:
- transferToMarketingWallet(address(marketingWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1085)
- recipient.transfer(amount) (#1323)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1089)
- _allowances[owner][spender] = amount (#517)
Reentrancy in AANT._transfer(address,address,uint256) (#1044-1133):
External calls:
- swapTokensForBNB(swapTokens) (#1084)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1312-1318)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1169-1175)
- swapAndSendDividends(sellTokens) (#1092)
- successBUSD = IERC20(DividendsToken).transfer(address(dividendTracker),dividendsBUSD) (#1226)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1191-1197)
- dividendTracker.distributeBUSDDividends(dividendsBUSD) (#1230)
External calls sending eth:
- transferToMarketingWallet(address(marketingWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1085)
- recipient.transfer(amount) (#1323)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1092)
- _allowances[owner][spender] = amount (#517)
Reentrancy in AANT.constructor() (#821-876):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#852-853)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#856)
- uniswapV2Router = _uniswapV2Router (#855)
Reentrancy in AANT.constructor() (#821-876):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#852-853)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#858)
- dividendTracker.excludeFromDividends(pair) (#953)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#861)
- dividendTracker.excludeFromDividends(address(this)) (#862)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#863)
- dividendTracker.excludeFromDividends(address(0x000000000000000000000000000000000000dEaD)) (#864)
State variables written after the call(s):
- _mint(owner(),75000000000000 * (10 ** 18)) (#875)
- _balances[account] = _balances[account].add(amount) (#499)
- excludeFromFees(liquidityWallet,true) (#867)
- _isExcludedFromFees[account] = excluded (#929)
- excludeFromFees(marketingWallet,true) (#868)
- _isExcludedFromFees[account] = excluded (#929)
- excludeFromFees(address(this),true) (#869)
- _isExcludedFromFees[account] = excluded (#929)
- _mint(owner(),75000000000000 * (10 ** 18)) (#875)
- _totalSupply = _totalSupply.add(amount) (#498)
Reentrancy in AANTDividendTracker.processAccount(address,bool) (#1528-1538):
External calls:
- amount = _withdrawDividendOfUser(account) (#1529)
- successBUSD = IERC20(DividendsToken).transfer(user,_withdrawableDividend) (#659)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1532)
Reentrancy in AANT.swapAndLiquify(uint256) (#1135-1156):
External calls:
- swapTokensForEth(half) (#1147)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1169-1175)
- addLiquidity(otherHalf,newBalance) (#1153)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1153)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1153)
- _allowances[owner][spender] = amount (#517)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in AANT._setAutomatedMarketMakerPair(address,bool) (#948-958):
External calls:
- dividendTracker.excludeFromDividends(pair) (#953)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#956)
Reentrancy in AANT._transfer(address,address,uint256) (#1044-1133):
External calls:
- swapTokensForBNB(swapTokens) (#1084)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1312-1318)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1169-1175)
External calls sending eth:
- transferToMarketingWallet(address(marketingWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1085)
- recipient.transfer(amount) (#1323)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#518)
- swapAndLiquify(swapTokens) (#1089)
- SwapAndLiquify(half,newBalance,otherHalf) (#1155)
- swapAndLiquify(swapTokens) (#1089)
Reentrancy in AANT._transfer(address,address,uint256) (#1044-1133):
External calls:
- swapTokensForBNB(swapTokens) (#1084)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1312-1318)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1169-1175)
- swapAndSendDividends(sellTokens) (#1092)
- successBUSD = IERC20(DividendsToken).transfer(address(dividendTracker),dividendsBUSD) (#1226)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1191-1197)
- dividendTracker.distributeBUSDDividends(dividendsBUSD) (#1230)
External calls sending eth:
- transferToMarketingWallet(address(marketingWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1085)
- recipient.transfer(amount) (#1323)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#518)
- swapAndSendDividends(sellTokens) (#1092)
- SendDividends(tokens,dividendsBUSD) (#1231)
- swapAndSendDividends(sellTokens) (#1092)
- Transfer(sender,recipient,amount) (#490)
- super._transfer(from,to,amount) (#1118)
- Transfer(sender,recipient,amount) (#490)
- super._transfer(from,address(this),fees) (#1115)
Reentrancy in AANT._transfer(address,address,uint256) (#1044-1133):
External calls:
- swapTokensForBNB(swapTokens) (#1084)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1312-1318)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1169-1175)
- swapAndSendDividends(sellTokens) (#1092)
- successBUSD = IERC20(DividendsToken).transfer(address(dividendTracker),dividendsBUSD) (#1226)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1191-1197)
- dividendTracker.distributeBUSDDividends(dividendsBUSD) (#1230)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1120)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1121)
- dividendTracker.process(gas) (#1126-1131)
External calls sending eth:
- transferToMarketingWallet(address(marketingWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1085)
- recipient.transfer(amount) (#1323)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1127)
Reentrancy in AANT.constructor() (#821-876):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#852-853)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#858)
- dividendTracker.excludeFromDividends(pair) (#953)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#956)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#858)
Reentrancy in AANT.constructor() (#821-876):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#852-853)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#858)
- dividendTracker.excludeFromDividends(pair) (#953)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#861)
- dividendTracker.excludeFromDividends(address(this)) (#862)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#863)
- dividendTracker.excludeFromDividends(address(0x000000000000000000000000000000000000dEaD)) (#864)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#931)
- excludeFromFees(liquidityWallet,true) (#867)
- ExcludeFromFees(account,excluded) (#931)
- excludeFromFees(marketingWallet,true) (#868)
- ExcludeFromFees(account,excluded) (#931)
- excludeFromFees(address(this),true) (#869)
- Transfer(address(0),account,amount) (#500)
- _mint(owner(),75000000000000 * (10 ** 18)) (#875)
Reentrancy in AANTDividendTracker.processAccount(address,bool) (#1528-1538):
External calls:
- amount = _withdrawDividendOfUser(account) (#1529)
- successBUSD = IERC20(DividendsToken).transfer(user,_withdrawableDividend) (#659)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1533)
Reentrancy in AANT.processDividendTracker(uint256) (#1017-1020):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1018)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1019)
Reentrancy in AANT.swapAndLiquify(uint256) (#1135-1156):
External calls:
- swapTokensForEth(half) (#1147)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1169-1175)
- addLiquidity(otherHalf,newBalance) (#1153)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1153)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#518)
- addLiquidity(otherHalf,newBalance) (#1153)
- SwapAndLiquify(half,newBalance,otherHalf) (#1155)
Reentrancy in AANT.swapAndSendDividends(uint256) (#1218-1233):
External calls:
- swapTokensForBUSD(tokens,address(this)) (#1222)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1191-1197)
- successBUSD = IERC20(DividendsToken).transfer(address(dividendTracker),dividendsBUSD) (#1226)
- dividendTracker.distributeBUSDDividends(dividendsBUSD) (#1230)
Event emitted after the call(s):
- SendDividends(tokens,dividendsBUSD) (#1231)
Reentrancy in AANT.updateDividendTracker(address) (#905-919):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#912)
- newDividendTracker.excludeFromDividends(address(this)) (#913)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#914)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#916)
Apply the check-effects-interactions pattern.
Additional information: link
AANT.checkBot(address,address) (#1294-1301) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(_purchaseHistory[sender].add(_rateLimitSeconds) < block.timestamp,Denied!: You a bot or something? O_o) (#1299)
AANTDividendTracker.getAccount(address) (#1392-1435) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1432-1434)
AANTDividendTracker.canAutoClaim(uint256) (#1456-1462) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1457)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1461)
Avoid relying on block.timestamp.
Additional information: link
AANT._transfer(address,address,uint256) (#1044-1133) compares to a boolean constant:
-getAntiBotEnabled() == true (#1055)
Remove the equality to the boolean constant.
Additional information: link
Context._msgData() (#31-34) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#690-696) is never used and should be removed
ERC20._setupDecimals(uint8) (#521-523) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#594-597) is never used and should be removed
SafeMath.mod(uint256,uint256) (#584-587) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#599-602) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#533-537) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#551-554) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#556-559) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#544-549) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#539-542) is never used and should be removed
SafeMathInt.div(int256,int256) (#376-381) is never used and should be removed
SafeMathInt.mul(int256,int256) (#367-374) is never used and should be removed
Remove unused functions.
Additional information: link
Function IUniswapV2Router01.WETH() (#40) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#204) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#205) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#222) is not in mixedCase
Variable ERC20._isBlacklisted (#416) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#673) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#677) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#681) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#685) is not in mixedCase
Constant DividendPayingToken.magnitude (#610) is not in UPPER_CASE_WITH_UNDERSCORES
Variable DividendPayingToken.DividendsToken (#616) is not in mixedCase
Event AANTantiBotEnabledUpdated(bool) (#793) is not in CapWords
Parameter AANT.multiWalletTransfer(address[],uint256)._amount (#899) is not in mixedCase
Parameter AANT.setAntiBotEnabled(bool)._enabled (#1034) is not in mixedCase
Variable AANT.DividendsToken (#732) is not in mixedCase
Variable AANT._maxWalletToken (#758) is not in mixedCase
Variable AANT._previousLiquidityFee (#759) is not in mixedCase
Variable AANT._previousETHRewardsFee (#760) is not in mixedCase
Variable AANT._previousMarketingFee (#761) is not in mixedCase
Variable AANT._liquidityFee (#762) is not in mixedCase
Variable AANT._ETHRewardsFee (#763) is not in mixedCase
Variable AANT._marketingFee (#764) is not in mixedCase
Variable AANT.ETHRewardsFee (#766) is not in mixedCase
Constant AANT.DefaultLiquidityLockTime (#778) is not in UPPER_CASE_WITH_UNDERSCORES
Variable AANT._isExcludedMaxSellTransactionAmount (#781) is not in mixedCase
Parameter AANTDividendTracker.getAccount(address)._account (#1392) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#32)" inContext (#26-36)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in AANT._transfer(address,address,uint256) (#1044-1133):
External calls:
- transferToMarketingWallet(address(marketingWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1085)
- recipient.transfer(amount) (#1323)
External calls sending eth:
- transferToMarketingWallet(address(marketingWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1085)
- recipient.transfer(amount) (#1323)
- swapAndLiquify(swapTokens) (#1089)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1207-1214)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1089)
- _allowances[owner][spender] = amount (#517)
- swapAndSendDividends(sellTokens) (#1092)
- _allowances[owner][spender] = amount (#517)
- super._transfer(from,address(this),fees) (#1115)
- _balances[sender] = _balances[sender].sub(amount,AANT: Transfer amount exceeds your balance) (#488)
- _balances[recipient] = _balances[recipient].add(amount) (#489)
- super._transfer(from,to,amount) (#1118)
- _balances[sender] = _balances[sender].sub(amount,AANT: Transfer amount exceeds your balance) (#488)
- _balances[recipient] = _balances[recipient].add(amount) (#489)
- swapping = false (#1094)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#518)
- swapAndLiquify(swapTokens) (#1089)
- Approval(owner,spender,amount) (#518)
- swapAndSendDividends(sellTokens) (#1092)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1127)
- SendDividends(tokens,dividendsBUSD) (#1231)
- swapAndSendDividends(sellTokens) (#1092)
- SwapAndLiquify(half,newBalance,otherHalf) (#1155)
- swapAndLiquify(swapTokens) (#1089)
- Transfer(sender,recipient,amount) (#490)
- super._transfer(from,to,amount) (#1118)
- Transfer(sender,recipient,amount) (#490)
- super._transfer(from,address(this),fees) (#1115)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#45) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#46)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#654) is too similar to AANTDividendTracker.getAccount(address).withdrawableDividends (#1397)
Prevent variables from having similar names.
Additional information: link
AANT.constructor() (#821-876) uses literals with too many digits:
- maxBuyTranscationAmount = 15000000000 * (10 ** 18) (#834)
AANT.constructor() (#821-876) uses literals with too many digits:
- maxSellTransactionAmount = 3000000000 * (10 ** 18) (#835)
AANT.constructor() (#821-876) uses literals with too many digits:
- swapTokensAtAmount = 2000000000 * (10 ** 18) (#836)
AANT.constructor() (#821-876) uses literals with too many digits:
- _maxWalletToken = 75000000000000 * (10 ** 18) (#837)
AANT.constructor() (#821-876) uses literals with too many digits:
- dividendTracker.excludeFromDividends(address(0x000000000000000000000000000000000000dEaD)) (#864)
AANT.constructor() (#821-876) uses literals with too many digits:
- _mint(owner(),75000000000000 * (10 ** 18)) (#875)
AANT.updateGasForProcessing(uint256) (#960-965) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,AANT: gasForProcessing must be between 200,000 and 500,000) (#961)
AANT.removeAllFee() (#1235-1249) uses literals with too many digits:
- _maxWalletToken = 75000000000000 * 10 ** 18 (#1246)
AANT.restoreAllFee() (#1251-1261) uses literals with too many digits:
- _maxWalletToken = 75000000000000 * 10 ** 18 (#1257)
AANT.restoreAllFee() (#1251-1261) uses literals with too many digits:
- maxBuyTranscationAmount = 15000000000 * 10 ** 18 (#1258)
AANT.restoreAllFee() (#1251-1261) uses literals with too many digits:
- maxSellTransactionAmount = 1500000000 * 10 ** 18 (#1259)
AANT.burnRemainingToken() (#1289-1292) uses literals with too many digits:
- super._transfer(address(this),0x000000000000000000000000000000000000dEaD,balance) (#1291)
AANT.slitherConstructorVariables() (#725-1326) uses literals with too many digits:
- gasForProcessing = 300000 (#776)
AANTDividendTracker.getAccountAtIndex(uint256) (#1437-1454) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1448)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
AANT.DefaultLiquidityLockTime (#778) is never used in AANT (#725-1326)
DividendPayingToken.lastAmount (#613) is never used in AANTDividendTracker (#1328-1541)
Remove unused state variables.
Additional information: link
AANT._rateLimitSeconds (#770) should be constant
AANT.marketingDivisor (#774) should be constant
DividendPayingToken.lastAmount (#613) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#251-253)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#255-260)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#262-264)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#268-270)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#323-326)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#328-332)
name() should be declared external:
- ERC20.name() (#430-432)
symbol() should be declared external:
- ERC20.symbol() (#434-436)
decimals() should be declared external:
- ERC20.decimals() (#438-440)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#450-453)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#455-457)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#459-462)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#464-470)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#472-475)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#477-480)
withdrawDividend() should be declared external:
- AANTDividendTracker.withdrawDividend() (#1361-1363)
- DividendPayingToken.withdrawDividend() (#649-651)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#673-675)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#681-683)
updateMaxWallet(uint256) should be declared external:
- AANT.updateMaxWallet(uint256) (#882-884)
updateMaxBuyTranscationAmount(uint256) should be declared external:
- AANT.updateMaxBuyTranscationAmount(uint256) (#886-888)
updateMaxSellTransactionAmount(uint256) should be declared external:
- AANT.updateMaxSellTransactionAmount(uint256) (#890-892)
multiWalletTransfer(address[],uint256) should be declared external:
- AANT.multiWalletTransfer(address[],uint256) (#899-903)
updateDividendTracker(address) should be declared external:
- AANT.updateDividendTracker(address) (#905-919)
updateUniswapV2Router(address) should be declared external:
- AANT.updateUniswapV2Router(address) (#921-925)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- AANT.excludeMultipleAccountsFromFees(address[],bool) (#934-940)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- AANT.setAutomatedMarketMakerPair(address,bool) (#942-946)
updateGasForProcessing(uint256) should be declared external:
- AANT.updateGasForProcessing(uint256) (#960-965)
isExcludedFromFees(address) should be declared external:
- AANT.isExcludedFromFees(address) (#979-981)
withdrawableDividendOf(address) should be declared external:
- AANT.withdrawableDividendOf(address) (#983-985)
dividendTokenBalanceOf(address) should be declared external:
- AANT.dividendTokenBalanceOf(address) (#987-989)
setAntiBotEnabled(bool) should be declared external:
- AANT.setAntiBotEnabled(bool) (#1034-1038)
updateMarketingFee(uint8) should be declared external:
- AANT.updateMarketingFee(uint8) (#1263-1266)
updateLiquidityFee(uint8) should be declared external:
- AANT.updateLiquidityFee(uint8) (#1268-1271)
updateETHRewardsFee(uint8) should be declared external:
- AANT.updateETHRewardsFee(uint8) (#1273-1276)
withdrawRemainingBEP20Token(address,address) should be declared external:
- AANT.withdrawRemainingBEP20Token(address,address) (#1279-1283)
burnRemainingToken() should be declared external:
- AANT.burnRemainingToken() (#1289-1292)
distributeBUSDDividends(uint256) should be declared external:
- AANTDividendTracker.distributeBUSDDividends(uint256) (#1353-1355)
getAccountAtIndex(uint256) should be declared external:
- AANTDividendTracker.getAccountAtIndex(uint256) (#1437-1454)
process(uint256) should be declared external:
- AANTDividendTracker.process(uint256) (#1481-1526)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Unable to find whitepaper link on the website
Unable to find Telegram link on the website
Young tokens have high risks of scam / price dump / death
Alexa traffic rank is very low
Additional information: link
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Telegram account link seems to be invalid
Unable to find Blog account (Reddit or Medium)