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
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 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).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.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.accumulativeDividendOf(address)._owner (#2201) shadows:
- OwnableUpgradeable._owner (#1718) (state variable)
Rename the local variables that shadow another component.
Additional information: link
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.setMarketingWallet(address).wallet (#2782) lacks a zero-check on :
- _marketingWalletAddress = wallet (#2783)
Check that the address is not zero.
Additional information: link
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)
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.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.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.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.predictDeterministicAddress(address,bytes32,address) (#859-874) uses assembly
- INLINE ASM (#864-873)
Do not use evm assembly.
Additional information: link
SafeMathInt.mul(int256,int256) (#1848-1855) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.4 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
Variable BABYTOKEN._marketingWalletAddress (#2601) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
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
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
OwnableUpgradeable.__gap (#1774) is never used in BABYTOKENDividendTracker (#2274-2538)
Remove unused state variables.
Additional information: link
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
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