Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BABYTOKEN.addLiquidity(uint256,uint256) (#3121-3134) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2964-3048):
External calls:
- swapAndSendToFee(marketingTokens) (#2993)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
- swapAndSendDividends(sellTokens) (#3001)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#3139-3142)
- dividendTracker.distributeCAKEDividends(dividends) (#3145)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#3020)
- _balances[sender] = senderBalance - amount (#375)
- _balances[recipient] += amount (#377)
- super._transfer(from,to,amount) (#3023)
- _balances[sender] = senderBalance - amount (#375)
- _balances[recipient] += amount (#377)
- swapping = false (#3003)
Apply the check-effects-interactions pattern.
Additional information: link
ERC20Upgradeable.__gap (#1693) shadows:
- ContextUpgradeable.__gap (#1328)
OwnableUpgradeable.__gap (#1774) shadows:
- ContextUpgradeable.__gap (#1328)
Remove the state variable shadowing.
Additional information: link
BABYTOKEN.swapAndSendToFee(uint256) (#3050-3060) ignores return value by IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
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.
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#2137-2163):
External calls:
- success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#2147-2150)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#2153-2155)
Reentrancy in BABYTOKEN.updateDividendTracker(address) (#2724-2747):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#2739)
- newDividendTracker.excludeFromDividends(address(this)) (#2740)
- newDividendTracker.excludeFromDividends(owner()) (#2741)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#2742)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#2746)
Apply the check-effects-interactions pattern.
Additional information: link
BABYTOKEN._transfer(address,address,uint256).lastProcessedIndex (#3036) is a local variable never initialized
BABYTOKEN._transfer(address,address,uint256).iterations (#3034) is a local variable never initialized
BABYTOKEN._transfer(address,address,uint256).claims (#3035) 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
BABYTOKEN.claim() (#2952-2954) ignores return value by dividendTracker.processAccount(address(msg.sender),false) (#2953)
BABYTOKEN._transfer(address,address,uint256) (#2964-3048) ignores return value by dividendTracker.process(gas) (#3033-3046)
BABYTOKEN.addLiquidity(uint256,uint256) (#3121-3134) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.__DividendPayingToken_init(address,string,string)._name (#2108) shadows:
- ERC20Upgradeable._name (#1374) (state variable)
DividendPayingToken.__DividendPayingToken_init(address,string,string)._symbol (#2109) shadows:
- ERC20Upgradeable._symbol (#1375) (state variable)
DividendPayingToken.dividendOf(address)._owner (#2168) shadows:
- OwnableUpgradeable._owner (#1718) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#2175) shadows:
- OwnableUpgradeable._owner (#1718) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#2187) shadows:
- OwnableUpgradeable._owner (#1718) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#2201) shadows:
- OwnableUpgradeable._owner (#1718) (state variable)
Rename the local variables that shadow another component.
Additional information: link
BABYTOKEN.setSwapTokensAtAmount(uint256) (#2720-2722) should emit an event for:
- swapTokensAtAmount = amount (#2721)
BABYTOKEN.setTokenRewardsFee(uint256) (#2786-2790) should emit an event for:
- totalFees = tokenRewardsFee.add(liquidityFee).add(marketingFee) (#2788)
BABYTOKEN.setLiquiditFee(uint256) (#2792-2796) should emit an event for:
- liquidityFee = value (#2793)
- totalFees = tokenRewardsFee.add(liquidityFee).add(marketingFee) (#2794)
BABYTOKEN.setMarketingFee(uint256) (#2798-2802) should emit an event for:
- marketingFee = value (#2799)
- totalFees = tokenRewardsFee.add(liquidityFee).add(marketingFee) (#2800)
Emit an event for critical parameter changes.
Additional information: link
BABYTOKEN.constructor(string,string,uint256,address[4],uint256[3],uint256,address,uint256)._uniswapV2Pair (#2691-2692) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#2694)
BABYTOKEN.constructor(string,string,uint256,address[4],uint256[3],uint256,address,uint256).serviceFeeReceiver_ (#2661) lacks a zero-check on :
- address(serviceFeeReceiver_).transfer(serviceFee_) (#2715)
BABYTOKEN.updateUniswapV2Router(address)._uniswapV2Pair (#2756-2757) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#2758)
BABYTOKEN.setMarketingWallet(address).wallet (#2782) lacks a zero-check on :
- _marketingWalletAddress = wallet (#2783)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#2137-2163) has external calls inside a loop: success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#2147-2150)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'BABYTOKEN._transfer(address,address,uint256).iterations (#3034)' in BABYTOKEN._transfer(address,address,uint256) (#2964-3048) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#3038-3045)
Variable 'BABYTOKEN._transfer(address,address,uint256).lastProcessedIndex (#3036)' in BABYTOKEN._transfer(address,address,uint256) (#2964-3048) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#3038-3045)
Variable 'BABYTOKEN._transfer(address,address,uint256).claims (#3035)' in BABYTOKEN._transfer(address,address,uint256) (#2964-3048) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#3038-3045)
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 BABYTOKEN._transfer(address,address,uint256) (#2964-3048):
External calls:
- swapAndSendToFee(marketingTokens) (#2993)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#2998)
- _allowances[owner][spender] = amount (#454)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2964-3048):
External calls:
- swapAndSendToFee(marketingTokens) (#2993)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
- swapAndSendDividends(sellTokens) (#3001)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#3139-3142)
- dividendTracker.distributeCAKEDividends(dividends) (#3145)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#3001)
- _allowances[owner][spender] = amount (#454)
Reentrancy in BABYTOKEN.constructor(string,string,uint256,address[4],uint256[3],uint256,address,uint256) (#2654-2716):
External calls:
- dividendTracker.initialize(rewardToken,minimumTokenBalanceForDividends_) (#2684-2687)
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#2691-2692)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#2694)
- uniswapV2Router = _uniswapV2Router (#2693)
Reentrancy in BABYTOKEN.constructor(string,string,uint256,address[4],uint256[3],uint256,address,uint256) (#2654-2716):
External calls:
- dividendTracker.initialize(rewardToken,minimumTokenBalanceForDividends_) (#2684-2687)
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#2691-2692)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#2695)
- dividendTracker.excludeFromDividends(pair) (#2824)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#2698)
- dividendTracker.excludeFromDividends(address(this)) (#2699)
- dividendTracker.excludeFromDividends(owner()) (#2700)
- dividendTracker.excludeFromDividends(address(0xdead)) (#2701)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#2702)
State variables written after the call(s):
- _mint(owner(),totalSupply_) (#2711)
- _balances[account] += amount (#399)
- excludeFromFees(owner(),true) (#2704)
- _isExcludedFromFees[account] = excluded (#2766)
- excludeFromFees(_marketingWalletAddress,true) (#2705)
- _isExcludedFromFees[account] = excluded (#2766)
- excludeFromFees(address(this),true) (#2706)
- _isExcludedFromFees[account] = excluded (#2766)
- _mint(owner(),totalSupply_) (#2711)
- _totalSupply += amount (#398)
Reentrancy in BABYTOKENDividendTracker.processAccount(address,bool) (#2523-2537):
External calls:
- amount = _withdrawDividendOfUser(account) (#2528)
- success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#2147-2150)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#2531)
Reentrancy in BABYTOKEN.swapAndLiquify(uint256) (#3062-3083):
External calls:
- swapTokensForEth(half) (#3074)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
- addLiquidity(otherHalf,newBalance) (#3080)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#3080)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#3080)
- _allowances[owner][spender] = amount (#454)
Reentrancy in BABYTOKEN.updateUniswapV2Router(address) (#2749-2759):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#2756-2757)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#2758)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BABYTOKEN._setAutomatedMarketMakerPair(address,bool) (#2816-2828):
External calls:
- dividendTracker.excludeFromDividends(pair) (#2824)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#2827)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2964-3048):
External calls:
- swapAndSendToFee(marketingTokens) (#2993)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#455)
- swapAndLiquify(swapTokens) (#2998)
- SwapAndLiquify(half,newBalance,otherHalf) (#3082)
- swapAndLiquify(swapTokens) (#2998)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2964-3048):
External calls:
- swapAndSendToFee(marketingTokens) (#2993)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
- swapAndSendDividends(sellTokens) (#3001)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#3139-3142)
- dividendTracker.distributeCAKEDividends(dividends) (#3145)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#455)
- swapAndSendDividends(sellTokens) (#3001)
- SendDividends(tokens,dividends) (#3146)
- swapAndSendDividends(sellTokens) (#3001)
- Transfer(sender,recipient,amount) (#379)
- super._transfer(from,address(this),fees) (#3020)
- Transfer(sender,recipient,amount) (#379)
- super._transfer(from,to,amount) (#3023)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2964-3048):
External calls:
- swapAndSendToFee(marketingTokens) (#2993)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
- swapAndSendDividends(sellTokens) (#3001)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#3139-3142)
- dividendTracker.distributeCAKEDividends(dividends) (#3145)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#3025-3027)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#3028)
- dividendTracker.process(gas) (#3033-3046)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#3038-3045)
Reentrancy in BABYTOKEN.constructor(string,string,uint256,address[4],uint256[3],uint256,address,uint256) (#2654-2716):
External calls:
- dividendTracker.initialize(rewardToken,minimumTokenBalanceForDividends_) (#2684-2687)
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#2691-2692)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#2695)
- dividendTracker.excludeFromDividends(pair) (#2824)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#2827)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#2695)
Reentrancy in BABYTOKEN.constructor(string,string,uint256,address[4],uint256[3],uint256,address,uint256) (#2654-2716):
External calls:
- dividendTracker.initialize(rewardToken,minimumTokenBalanceForDividends_) (#2684-2687)
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#2691-2692)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#2695)
- dividendTracker.excludeFromDividends(pair) (#2824)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#2698)
- dividendTracker.excludeFromDividends(address(this)) (#2699)
- dividendTracker.excludeFromDividends(owner()) (#2700)
- dividendTracker.excludeFromDividends(address(0xdead)) (#2701)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#2702)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#2768)
- excludeFromFees(_marketingWalletAddress,true) (#2705)
- ExcludeFromFees(account,excluded) (#2768)
- excludeFromFees(owner(),true) (#2704)
- ExcludeFromFees(account,excluded) (#2768)
- excludeFromFees(address(this),true) (#2706)
- TokenCreated(owner(),address(this),TokenType.baby,VERSION) (#2713)
- Transfer(address(0),account,amount) (#400)
- _mint(owner(),totalSupply_) (#2711)
Reentrancy in BABYTOKENDividendTracker.processAccount(address,bool) (#2523-2537):
External calls:
- amount = _withdrawDividendOfUser(account) (#2528)
- success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#2147-2150)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#2532)
Reentrancy in BABYTOKEN.processDividendTracker(uint256) (#2936-2950):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#2937-2941)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#2942-2949)
Reentrancy in BABYTOKEN.swapAndLiquify(uint256) (#3062-3083):
External calls:
- swapTokensForEth(half) (#3074)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
- addLiquidity(otherHalf,newBalance) (#3080)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#3080)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#455)
- addLiquidity(otherHalf,newBalance) (#3080)
- SwapAndLiquify(half,newBalance,otherHalf) (#3082)
Reentrancy in BABYTOKEN.swapAndSendDividends(uint256) (#3136-3148):
External calls:
- swapTokensForCake(tokens) (#3137)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#3139-3142)
- dividendTracker.distributeCAKEDividends(dividends) (#3145)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#3146)
Reentrancy in BABYTOKEN.updateDividendTracker(address) (#2724-2747):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#2739)
- newDividendTracker.excludeFromDividends(address(this)) (#2740)
- newDividendTracker.excludeFromDividends(owner()) (#2741)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#2742)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#2744)
Apply the check-effects-interactions pattern.
Additional information: link
BABYTOKENDividendTracker.getAccount(address) (#2372-2419) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#2416-2418)
BABYTOKENDividendTracker.canAutoClaim(uint256) (#2444-2450) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#2445)
- block.timestamp.sub(lastClaimTime) >= claimWait (#2449)
Avoid relying on block.timestamp.
Additional information: link
Clones.clone(address) (#827-836) uses assembly
- INLINE ASM (#828-834)
Clones.cloneDeterministic(address,bytes32) (#845-854) uses assembly
- INLINE ASM (#846-852)
Clones.predictDeterministicAddress(address,bytes32,address) (#859-874) uses assembly
- INLINE ASM (#864-873)
Do not use evm assembly.
Additional information: link
Clones.cloneDeterministic(address,bytes32) (#845-854) is never used and should be removed
Clones.predictDeterministicAddress(address,bytes32) (#879-885) is never used and should be removed
Clones.predictDeterministicAddress(address,bytes32,address) (#859-874) is never used and should be removed
Context._msgData() (#136-138) is never used and should be removed
ContextUpgradeable.__Context_init() (#1315-1317) is never used and should be removed
ContextUpgradeable._msgData() (#1325-1327) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#2220-2235) is never used and should be removed
ERC20._burn(address,uint256) (#416-431) is never used and should be removed
ERC20Upgradeable._transfer(address,address,uint256) (#1558-1578) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#764-773) is never used and should be removed
SafeMath.mod(uint256,uint256) (#724-726) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#790-799) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (#741-750) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#595-601) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#637-642) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#649-654) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#620-630) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#608-613) is never used and should be removed
SafeMathInt.abs(int256) (#1889-1892) is never used and should be removed
SafeMathInt.div(int256,int256) (#1860-1866) is never used and should be removed
SafeMathInt.mul(int256,int256) (#1848-1855) is never used and should be removed
Remove unused functions.
Additional information: link
Function IUniswapV2Router01.WETH() (#931) is not in mixedCase
Function ContextUpgradeable.__Context_init() (#1315-1317) is not in mixedCase
Function ContextUpgradeable.__Context_init_unchained() (#1319-1320) is not in mixedCase
Variable ContextUpgradeable.__gap (#1328) is not in mixedCase
Function ERC20Upgradeable.__ERC20_init(string,string) (#1386-1389) is not in mixedCase
Function ERC20Upgradeable.__ERC20_init_unchained(string,string) (#1391-1394) is not in mixedCase
Variable ERC20Upgradeable.__gap (#1693) is not in mixedCase
Function OwnableUpgradeable.__Ownable_init() (#1725-1728) is not in mixedCase
Function OwnableUpgradeable.__Ownable_init_unchained() (#1730-1732) is not in mixedCase
Variable OwnableUpgradeable.__gap (#1774) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#1797) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#1798) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#1815) is not in mixedCase
Function DividendPayingToken.__DividendPayingToken_init(address,string,string) (#2106-2114) is not in mixedCase
Parameter DividendPayingToken.__DividendPayingToken_init(address,string,string)._rewardToken (#2107) is not in mixedCase
Parameter DividendPayingToken.__DividendPayingToken_init(address,string,string)._name (#2108) is not in mixedCase
Parameter DividendPayingToken.__DividendPayingToken_init(address,string,string)._symbol (#2109) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#2168) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#2175) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#2187) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#2201) is not in mixedCase
Constant DividendPayingToken.magnitude (#2086) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter BABYTOKENDividendTracker.getAccount(address)._account (#2372) is not in mixedCase
Variable BABYTOKEN._marketingWalletAddress (#2601) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#936) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#937)
Variable DividendPayingToken.__DividendPayingToken_init(address,string,string)._rewardToken (#2107) is too similar to BABYTOKENDividendTracker.initialize(address,uint256).rewardToken_ (#2299)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#2141) is too similar to BABYTOKENDividendTracker.getAccount(address).withdrawableDividends (#2379)
Variable ERC20._totalSupply (#181) is too similar to BABYTOKEN.constructor(string,string,uint256,address[4],uint256[3],uint256,address,uint256).totalSupply_ (#2657)
Prevent variables from having similar names.
Additional information: link
Clones.clone(address) (#827-836) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_clone_asm_0,0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) (#830)
Clones.clone(address) (#827-836) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_clone_asm_0 + 0x28,0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) (#832)
Clones.cloneDeterministic(address,bytes32) (#845-854) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_cloneDeterministic_asm_0,0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) (#848)
Clones.cloneDeterministic(address,bytes32) (#845-854) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_cloneDeterministic_asm_0 + 0x28,0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) (#850)
Clones.predictDeterministicAddress(address,bytes32,address) (#859-874) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_predictDeterministicAddress_asm_0,0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) (#866)
Clones.predictDeterministicAddress(address,bytes32,address) (#859-874) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_predictDeterministicAddress_asm_0 + 0x28,0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) (#868)
BABYTOKEN.constructor(string,string,uint256,address[4],uint256[3],uint256,address,uint256) (#2654-2716) uses literals with too many digits:
- gasForProcessing = 300000 (#2679)
BABYTOKEN.updateGasForProcessing(uint256) (#2830-2841) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,BABYTOKEN: gasForProcessing must be between 200,000 and 500,000) (#2831-2834)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#1843) is never used in SafeMathInt (#1841-1898)
OwnableUpgradeable.__gap (#1774) is never used in BABYTOKENDividendTracker (#2274-2538)
Remove unused state variables.
Additional information: link
name() should be declared external:
- ERC20.name() (#203-205)
symbol() should be declared external:
- ERC20.symbol() (#211-213)
decimals() should be declared external:
- ERC20.decimals() (#228-230)
totalSupply() should be declared external:
- ERC20.totalSupply() (#235-237)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#254-257)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#262-264)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#273-276)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#291-305)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#319-322)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#338-346)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#553-555)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#561-564)
name() should be declared external:
- ERC20Upgradeable.name() (#1399-1401)
symbol() should be declared external:
- ERC20Upgradeable.symbol() (#1407-1409)
decimals() should be declared external:
- ERC20Upgradeable.decimals() (#1424-1426)
transfer(address,uint256) should be declared external:
- ERC20Upgradeable.transfer(address,uint256) (#1450-1453)
allowance(address,address) should be declared external:
- ERC20Upgradeable.allowance(address,address) (#1458-1460)
approve(address,uint256) should be declared external:
- ERC20Upgradeable.approve(address,uint256) (#1469-1472)
transferFrom(address,address,uint256) should be declared external:
- ERC20Upgradeable.transferFrom(address,address,uint256) (#1487-1501)
increaseAllowance(address,uint256) should be declared external:
- ERC20Upgradeable.increaseAllowance(address,uint256) (#1515-1518)
decreaseAllowance(address,uint256) should be declared external:
- ERC20Upgradeable.decreaseAllowance(address,uint256) (#1534-1542)
renounceOwnership() should be declared external:
- OwnableUpgradeable.renounceOwnership() (#1756-1758)
transferOwnership(address) should be declared external:
- OwnableUpgradeable.transferOwnership(address) (#1764-1767)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#1931-1933)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#1935-1944)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#1946-1952)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#1954-1956)
distributeCAKEDividends(uint256) should be declared external:
- DividendPayingToken.distributeCAKEDividends(uint256) (#2116-2127)
withdrawDividend() should be declared external:
- BABYTOKENDividendTracker.withdrawDividend() (#2319-2324)
- DividendPayingToken.withdrawDividend() (#2131-2133)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#2168-2170)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#2187-2194)
isExcludedFromDividends(address) should be declared external:
- BABYTOKENDividendTracker.isExcludedFromDividends(address) (#2336-2342)
getAccountAtIndex(uint256) should be declared external:
- BABYTOKENDividendTracker.getAccountAtIndex(uint256) (#2421-2442)
process(uint256) should be declared external:
- BABYTOKENDividendTracker.process(uint256) (#2469-2521)
updateDividendTracker(address) should be declared external:
- BABYTOKEN.updateDividendTracker(address) (#2724-2747)
updateUniswapV2Router(address) should be declared external:
- BABYTOKEN.updateUniswapV2Router(address) (#2749-2759)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- BABYTOKEN.excludeMultipleAccountsFromFees(address[],bool) (#2771-2780)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- BABYTOKEN.setAutomatedMarketMakerPair(address,bool) (#2804-2814)
updateGasForProcessing(uint256) should be declared external:
- BABYTOKEN.updateGasForProcessing(uint256) (#2830-2841)
isExcludedFromFees(address) should be declared external:
- BABYTOKEN.isExcludedFromFees(address) (#2870-2872)
withdrawableDividendOf(address) should be declared external:
- BABYTOKEN.withdrawableDividendOf(address) (#2874-2880)
dividendTokenBalanceOf(address) should be declared external:
- BABYTOKEN.dividendTokenBalanceOf(address) (#2882-2888)
isExcludedFromDividends(address) should be declared external:
- BABYTOKEN.isExcludedFromDividends(address) (#2894-2900)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to find website, listings and other project-related information
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts