GTJ blockchain technology laboratory was initiated by the sesame open door overseas foundation and has successfully accepted the technology alliance from the blockchain laboratory team of Silicon Valley future research institute. Its purpose is to comprehensively solve the innovation and support of the key points of gtj blockchain technology for all inclusive and diversified scenario applications. The team members are composed of overseas technology geeks from all over the world. The team members have market and practical experience in DAPP development, defi, NFT, metauniverse, Web3.0, chain games, auction, finance and other fields. They not only have strong technical ability, but also have excellent scientific research ability. They have made outstanding achievements in many fields.
OwnableUpgradeable.__gap (#157) shadows:
- ContextUpgradeable.__gap (#97)
ERC20Upgradeable.__gap (#1409) shadows:
- ContextUpgradeable.__gap (#97)
Remove the state variable shadowing.
Additional information: link
BABYTOKEN.swapAndSendToFee(uint256) (#2298-2304) ignores return value by IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#2302)
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.
BABYTOKEN.addLiquidity(uint256,uint256) (#2360-2373) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2210-2296):
External calls:
- swapAndSendToFee(AmountMarketingFee) (#2236)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#2302)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
- swapAndLiquify(AmountLiquidityFee) (#2237)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2334-2340)
- swapAndSendDividends(AmountTokenRewardsFee) (#2238)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#2379)
- dividendTracker.distributeCAKEDividends(dividends) (#2381)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
External calls sending eth:
- swapAndLiquify(AmountLiquidityFee) (#2237)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
State variables written after the call(s):
- AmountLiquidityFee += LFee (#2258)
- AmountLiquidityFee += LFee (#2268)
- AmountMarketingFee += MFee (#2262)
- AmountMarketingFee += MFee (#2272)
- AmountTokenRewardsFee += RFee (#2260)
- AmountTokenRewardsFee += RFee (#2270)
- super._transfer(from,deadWallet,DFee) (#2277)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#569)
- _balances[recipient] = _balances[recipient].add(amount) (#570)
- super._transfer(from,address(this),fees.sub(DFee)) (#2278)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#569)
- _balances[recipient] = _balances[recipient].add(amount) (#570)
- super._transfer(from,to,amount) (#2281)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#569)
- _balances[recipient] = _balances[recipient].add(amount) (#570)
- swapping = false (#2239)
Apply the check-effects-interactions pattern.
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
BABYTOKENDividendTracker.getAccount(address) (#1719-1766) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1763-1765)
BABYTOKENDividendTracker.canAutoClaim(uint256) (#1791-1797) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1792)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1796)
Avoid relying on block.timestamp.
Additional information: link
Pragma version^0.8.0 (#2) allows old versions
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
Clones.clone(address) (#321-330) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_clone_asm_0,0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) (#324)
Clones.clone(address) (#321-330) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_clone_asm_0 + 0x28,0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) (#326)
Clones.cloneDeterministic(address,bytes32) (#339-348) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_cloneDeterministic_asm_0,0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) (#342)
Clones.cloneDeterministic(address,bytes32) (#339-348) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_cloneDeterministic_asm_0 + 0x28,0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) (#344)
Clones.predictDeterministicAddress(address,bytes32,address) (#353-368) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_predictDeterministicAddress_asm_0,0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) (#360)
Clones.predictDeterministicAddress(address,bytes32,address) (#353-368) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_predictDeterministicAddress_asm_0 + 0x28,0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) (#362)
BABYTOKEN.constructor(string,string,uint256,address[4],uint256[4],uint256[4],uint256,address,uint256) (#1955-2021) uses literals with too many digits:
- gasForProcessing = 300000 (#1986)
BABYTOKEN.updateGasForProcessing(uint256) (#2089-2094) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,GasForProcessing must be between 200,000 and 500,000) (#2090)
BABYTOKEN.slitherConstructorVariables() (#1881-2386) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#1909)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#249) is never used in SafeMathInt (#247-305)
OwnableUpgradeable.__gap (#157) is never used in BABYTOKENDividendTracker (#1621-1879)
Remove unused state variables.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#32-34)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#36-39)
getTime() should be declared external:
- Ownable.getTime() (#41-43)
renounceOwnership() should be declared external:
- OwnableUpgradeable.renounceOwnership() (#139-141)
transferOwnership(address) should be declared external:
- OwnableUpgradeable.transferOwnership(address) (#147-150)
name() should be declared external:
- ERC20.name() (#411-413)
symbol() should be declared external:
- ERC20.symbol() (#419-421)
decimals() should be declared external:
- ERC20.decimals() (#436-438)
totalSupply() should be declared external:
- ERC20.totalSupply() (#443-445)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#462-465)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#470-472)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#481-484)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#499-507)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#521-524)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#540-543)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#872-874)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#876-885)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#887-893)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#895-897)
name() should be declared external:
- ERC20Upgradeable.name() (#1115-1117)
symbol() should be declared external:
- ERC20Upgradeable.symbol() (#1123-1125)
decimals() should be declared external:
- ERC20Upgradeable.decimals() (#1140-1142)
transfer(address,uint256) should be declared external:
- ERC20Upgradeable.transfer(address,uint256) (#1166-1169)
allowance(address,address) should be declared external:
- ERC20Upgradeable.allowance(address,address) (#1174-1176)
approve(address,uint256) should be declared external:
- ERC20Upgradeable.approve(address,uint256) (#1185-1188)
transferFrom(address,address,uint256) should be declared external:
- ERC20Upgradeable.transferFrom(address,address,uint256) (#1203-1217)
increaseAllowance(address,uint256) should be declared external:
- ERC20Upgradeable.increaseAllowance(address,uint256) (#1231-1234)
decreaseAllowance(address,uint256) should be declared external:
- ERC20Upgradeable.decreaseAllowance(address,uint256) (#1250-1258)
distributeCAKEDividends(uint256) should be declared external:
- DividendPayingToken.distributeCAKEDividends(uint256) (#1463-1474)
withdrawDividend() should be declared external:
- BABYTOKENDividendTracker.withdrawDividend() (#1666-1671)
- DividendPayingToken.withdrawDividend() (#1478-1480)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1515-1517)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1534-1541)
isExcludedFromDividends(address) should be declared external:
- BABYTOKENDividendTracker.isExcludedFromDividends(address) (#1683-1689)
getAccountAtIndex(uint256) should be declared external:
- BABYTOKENDividendTracker.getAccountAtIndex(uint256) (#1768-1789)
process(uint256) should be declared external:
- BABYTOKENDividendTracker.process(uint256) (#1816-1867)
updateMinimumTokenBalanceForDividends(uint256) should be declared external:
- BABYTOKEN.updateMinimumTokenBalanceForDividends(uint256) (#2025-2027)
multipleBotlistAddress(address[],bool) should be declared external:
- BABYTOKEN.multipleBotlistAddress(address[],bool) (#2030-2034)
updateUniswapV2Router(address) should be declared external:
- BABYTOKEN.updateUniswapV2Router(address) (#2045-2052)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- BABYTOKEN.excludeMultipleAccountsFromFees(address[],bool) (#2061-2067)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- BABYTOKEN.setAutomatedMarketMakerPair(address,bool) (#2073-2076)
updateGasForProcessing(uint256) should be declared external:
- BABYTOKEN.updateGasForProcessing(uint256) (#2089-2094)
isExcludedFromFees(address) should be declared external:
- BABYTOKEN.isExcludedFromFees(address) (#2108-2110)
withdrawableDividendOf(address) should be declared external:
- BABYTOKEN.withdrawableDividendOf(address) (#2112-2114)
dividendTokenBalanceOf(address) should be declared external:
- BABYTOKEN.dividendTokenBalanceOf(address) (#2116-2118)
isExcludedFromDividends(address) should be declared external:
- BABYTOKEN.isExcludedFromDividends(address) (#2124-2126)
swapManual() should be declared external:
- BABYTOKEN.swapManual() (#2171-2179)
setSwapAndLiquifyEnabled(bool) should be declared external:
- BABYTOKEN.setSwapAndLiquifyEnabled(bool) (#2181-2183)
setSwapTokensAtAmount(uint256) should be declared external:
- BABYTOKEN.setSwapTokensAtAmount(uint256) (#2184-2186)
setDeadWallet(address) should be declared external:
- BABYTOKEN.setDeadWallet(address) (#2188-2190)
Use the external attribute for functions never called from the contract.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1484-1510):
External calls:
- success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#1494-1497)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#1500-1502)
Apply the check-effects-interactions pattern.
Additional information: link
BABYTOKEN._transfer(address,address,uint256).iterations (#2289) is a local variable never initialized
BABYTOKEN._transfer(address,address,uint256).fees (#2251) is a local variable never initialized
BABYTOKEN._transfer(address,address,uint256).claims (#2289) is a local variable never initialized
BABYTOKEN._transfer(address,address,uint256).lastProcessedIndex (#2289) is a local variable never initialized
BABYTOKEN._transfer(address,address,uint256).DFee (#2255) 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() (#2159-2161) ignores return value by dividendTracker.processAccount(address(msg.sender),false) (#2160)
BABYTOKEN._transfer(address,address,uint256) (#2210-2296) ignores return value by dividendTracker.process(gas) (#2289-2294)
BABYTOKEN.addLiquidity(uint256,uint256) (#2360-2373) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.__DividendPayingToken_init(address,string,string)._name (#1455) shadows:
- ERC20Upgradeable._name (#1090) (state variable)
DividendPayingToken.__DividendPayingToken_init(address,string,string)._symbol (#1456) shadows:
- ERC20Upgradeable._symbol (#1091) (state variable)
DividendPayingToken.dividendOf(address)._owner (#1515) shadows:
- OwnableUpgradeable._owner (#101) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#1522) shadows:
- OwnableUpgradeable._owner (#101) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#1534) shadows:
- OwnableUpgradeable._owner (#101) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#1548) shadows:
- OwnableUpgradeable._owner (#101) (state variable)
BABYTOKEN.constructor(string,string,uint256,address[4],uint256[4],uint256[4],uint256,address,uint256).totalSupply (#1982) shadows:
- ERC20.totalSupply() (#443-445) (function)
- IERC20.totalSupply() (#162) (function)
Rename the local variables that shadow another component.
Additional information: link
BABYTOKEN.setSwapTokensAtAmount(uint256) (#2184-2186) should emit an event for:
- swapTokensAtAmount = amount (#2185)
BABYTOKEN.setBuyTaxes(uint256,uint256,uint256,uint256) (#2193-2200) should emit an event for:
- buyTokenRewardsFee = rewardsFee (#2195)
- buyLiquidityFee = liquidity (#2196)
- buyMarketingFee = marketingFee (#2197)
- buyDeadFee = deadFee (#2198)
BABYTOKEN.setSelTaxes(uint256,uint256,uint256,uint256) (#2202-2208) should emit an event for:
- sellTokenRewardsFee = rewardsFee (#2204)
- sellLiquidityFee = liquidity (#2205)
- sellMarketingFee = marketingFee (#2206)
- sellDeadFee = deadFee (#2207)
Emit an event for critical parameter changes.
Additional information: link
BABYTOKEN.constructor(string,string,uint256,address[4],uint256[4],uint256[4],uint256,address,uint256)._uniswapV2Pair (#1998-1999) lacks a zero-check on :
- uniswapPair = _uniswapV2Pair (#2002)
BABYTOKEN.constructor(string,string,uint256,address[4],uint256[4],uint256[4],uint256,address,uint256).serviceFeeReceiver_ (#1963) lacks a zero-check on :
- address(serviceFeeReceiver_).transfer(serviceFee_) (#2020)
BABYTOKEN.updateUniswapV2Router(address)._uniswapV2Pair (#2049-2050) lacks a zero-check on :
- uniswapPair = _uniswapV2Pair (#2051)
BABYTOKEN.setMarketingWallet(address).wallet (#2069) lacks a zero-check on :
- _marketingWalletAddress = wallet (#2070)
BABYTOKEN.setDeadWallet(address).addr (#2188) lacks a zero-check on :
- deadWallet = addr (#2189)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#1484-1510) has external calls inside a loop: success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#1494-1497)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'BABYTOKEN._transfer(address,address,uint256).iterations (#2289)' in BABYTOKEN._transfer(address,address,uint256) (#2210-2296) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2290)
Variable 'BABYTOKEN._transfer(address,address,uint256).lastProcessedIndex (#2289)' in BABYTOKEN._transfer(address,address,uint256) (#2210-2296) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2290)
Variable 'BABYTOKEN._transfer(address,address,uint256).claims (#2289)' in BABYTOKEN._transfer(address,address,uint256) (#2210-2296) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2290)
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) (#2210-2296):
External calls:
- swapAndSendToFee(AmountMarketingFee) (#2236)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#2302)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
- swapAndLiquify(AmountLiquidityFee) (#2237)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2334-2340)
External calls sending eth:
- swapAndLiquify(AmountLiquidityFee) (#2237)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
State variables written after the call(s):
- swapAndLiquify(AmountLiquidityFee) (#2237)
- _allowances[owner][spender] = amount (#635)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2210-2296):
External calls:
- swapAndSendToFee(AmountMarketingFee) (#2236)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#2302)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
- swapAndLiquify(AmountLiquidityFee) (#2237)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2334-2340)
- swapAndSendDividends(AmountTokenRewardsFee) (#2238)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#2379)
- dividendTracker.distributeCAKEDividends(dividends) (#2381)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
External calls sending eth:
- swapAndLiquify(AmountLiquidityFee) (#2237)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
State variables written after the call(s):
- swapAndSendDividends(AmountTokenRewardsFee) (#2238)
- _allowances[owner][spender] = amount (#635)
Reentrancy in BABYTOKEN.constructor(string,string,uint256,address[4],uint256[4],uint256[4],uint256,address,uint256) (#1955-2021):
External calls:
- dividendTracker.initialize(rewardToken,tokenBalanceForReward_) (#1992-1995)
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1998-1999)
State variables written after the call(s):
- uniswapPair = _uniswapV2Pair (#2002)
- uniswapV2Router = _uniswapV2Router (#2001)
Reentrancy in BABYTOKEN.constructor(string,string,uint256,address[4],uint256[4],uint256[4],uint256,address,uint256) (#1955-2021):
External calls:
- dividendTracker.initialize(rewardToken,tokenBalanceForReward_) (#1992-1995)
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1998-1999)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#2004)
- dividendTracker.excludeFromDividends(pair) (#2083)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#2007)
- dividendTracker.excludeFromDividends(address(this)) (#2008)
- dividendTracker.excludeFromDividends(owner()) (#2009)
- dividendTracker.excludeFromDividends(deadWallet) (#2010)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#2011)
State variables written after the call(s):
- _mint(owner(),totalSupply) (#2018)
- _balances[account] = _balances[account].add(amount) (#589)
- excludeFromFees(owner(),true) (#2014)
- _isExcludedFromFees[account] = excluded (#2056)
- excludeFromFees(_marketingWalletAddress,true) (#2015)
- _isExcludedFromFees[account] = excluded (#2056)
- excludeFromFees(address(this),true) (#2016)
- _isExcludedFromFees[account] = excluded (#2056)
- _mint(owner(),totalSupply) (#2018)
- _totalSupply = _totalSupply.add(amount) (#588)
Reentrancy in BABYTOKENDividendTracker.processAccount(address,bool) (#1869-1878):
External calls:
- amount = _withdrawDividendOfUser(account) (#1870)
- success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#1494-1497)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1873)
Reentrancy in BABYTOKEN.swapAndLiquify(uint256) (#2306-2323):
External calls:
- swapTokensForEth(half) (#2314)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2334-2340)
- addLiquidity(otherHalf,newBalance) (#2320)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#2320)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
State variables written after the call(s):
- AmountLiquidityFee = AmountLiquidityFee - tokens (#2321)
- addLiquidity(otherHalf,newBalance) (#2320)
- _allowances[owner][spender] = amount (#635)
Reentrancy in BABYTOKEN.swapAndSendDividends(uint256) (#2375-2384):
External calls:
- swapTokensForCake(tokens) (#2376)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
State variables written after the call(s):
- AmountTokenRewardsFee = AmountTokenRewardsFee - tokens (#2377)
Reentrancy in BABYTOKEN.swapAndSendToFee(uint256) (#2298-2304):
External calls:
- swapTokensForCake(tokens) (#2300)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#2302)
State variables written after the call(s):
- AmountMarketingFee = AmountMarketingFee - tokens (#2303)
Reentrancy in BABYTOKEN.swapManual() (#2171-2179):
External calls:
- swapAndLiquify(AmountLiquidityFee) (#2175)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2334-2340)
- swapAndSendDividends(AmountTokenRewardsFee) (#2176)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#2379)
- dividendTracker.distributeCAKEDividends(dividends) (#2381)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
External calls sending eth:
- swapAndLiquify(AmountLiquidityFee) (#2175)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
State variables written after the call(s):
- swapAndSendDividends(AmountTokenRewardsFee) (#2176)
- _allowances[owner][spender] = amount (#635)
Reentrancy in BABYTOKEN.swapManual() (#2171-2179):
External calls:
- swapAndLiquify(AmountLiquidityFee) (#2175)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2334-2340)
- swapAndSendDividends(AmountTokenRewardsFee) (#2176)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#2379)
- dividendTracker.distributeCAKEDividends(dividends) (#2381)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
- swapAndSendToFee(AmountMarketingFee) (#2177)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#2302)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
External calls sending eth:
- swapAndLiquify(AmountLiquidityFee) (#2175)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
State variables written after the call(s):
- swapAndSendToFee(AmountMarketingFee) (#2177)
- _allowances[owner][spender] = amount (#635)
- swapping = false (#2178)
Reentrancy in BABYTOKEN.updateUniswapV2Router(address) (#2045-2052):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#2049-2050)
State variables written after the call(s):
- uniswapPair = _uniswapV2Pair (#2051)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BABYTOKEN._setAutomatedMarketMakerPair(address,bool) (#2078-2086):
External calls:
- dividendTracker.excludeFromDividends(pair) (#2083)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#2085)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2210-2296):
External calls:
- swapAndSendToFee(AmountMarketingFee) (#2236)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#2302)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
- swapAndLiquify(AmountLiquidityFee) (#2237)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2334-2340)
External calls sending eth:
- swapAndLiquify(AmountLiquidityFee) (#2237)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#636)
- swapAndLiquify(AmountLiquidityFee) (#2237)
- SwapAndLiquify(half,newBalance,otherHalf) (#2322)
- swapAndLiquify(AmountLiquidityFee) (#2237)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2210-2296):
External calls:
- swapAndSendToFee(AmountMarketingFee) (#2236)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#2302)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
- swapAndLiquify(AmountLiquidityFee) (#2237)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2334-2340)
- swapAndSendDividends(AmountTokenRewardsFee) (#2238)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#2379)
- dividendTracker.distributeCAKEDividends(dividends) (#2381)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
External calls sending eth:
- swapAndLiquify(AmountLiquidityFee) (#2237)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#636)
- swapAndSendDividends(AmountTokenRewardsFee) (#2238)
- SendDividends(tokens,dividends) (#2382)
- swapAndSendDividends(AmountTokenRewardsFee) (#2238)
- Transfer(sender,recipient,amount) (#571)
- super._transfer(from,deadWallet,DFee) (#2277)
- Transfer(sender,recipient,amount) (#571)
- super._transfer(from,to,amount) (#2281)
- Transfer(sender,recipient,amount) (#571)
- super._transfer(from,address(this),fees.sub(DFee)) (#2278)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2210-2296):
External calls:
- swapAndSendToFee(AmountMarketingFee) (#2236)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#2302)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
- swapAndLiquify(AmountLiquidityFee) (#2237)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2334-2340)
- swapAndSendDividends(AmountTokenRewardsFee) (#2238)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#2379)
- dividendTracker.distributeCAKEDividends(dividends) (#2381)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#2283)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#2284)
- dividendTracker.process(gas) (#2289-2294)
External calls sending eth:
- swapAndLiquify(AmountLiquidityFee) (#2237)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2290)
Reentrancy in BABYTOKEN.constructor(string,string,uint256,address[4],uint256[4],uint256[4],uint256,address,uint256) (#1955-2021):
External calls:
- dividendTracker.initialize(rewardToken,tokenBalanceForReward_) (#1992-1995)
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1998-1999)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#2004)
- dividendTracker.excludeFromDividends(pair) (#2083)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#2085)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#2004)
Reentrancy in BABYTOKEN.constructor(string,string,uint256,address[4],uint256[4],uint256[4],uint256,address,uint256) (#1955-2021):
External calls:
- dividendTracker.initialize(rewardToken,tokenBalanceForReward_) (#1992-1995)
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1998-1999)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#2004)
- dividendTracker.excludeFromDividends(pair) (#2083)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#2007)
- dividendTracker.excludeFromDividends(address(this)) (#2008)
- dividendTracker.excludeFromDividends(owner()) (#2009)
- dividendTracker.excludeFromDividends(deadWallet) (#2010)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#2011)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#2057)
- excludeFromFees(_marketingWalletAddress,true) (#2015)
- ExcludeFromFees(account,excluded) (#2057)
- excludeFromFees(address(this),true) (#2016)
- ExcludeFromFees(account,excluded) (#2057)
- excludeFromFees(owner(),true) (#2014)
- Transfer(address(0),account,amount) (#590)
- _mint(owner(),totalSupply) (#2018)
Reentrancy in BABYTOKENDividendTracker.processAccount(address,bool) (#1869-1878):
External calls:
- amount = _withdrawDividendOfUser(account) (#1870)
- success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#1494-1497)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1874)
Reentrancy in BABYTOKEN.processDividendTracker(uint256) (#2154-2157):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#2155)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#2156)
Reentrancy in BABYTOKEN.swapAndLiquify(uint256) (#2306-2323):
External calls:
- swapTokensForEth(half) (#2314)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2334-2340)
- addLiquidity(otherHalf,newBalance) (#2320)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#2320)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#636)
- addLiquidity(otherHalf,newBalance) (#2320)
- SwapAndLiquify(half,newBalance,otherHalf) (#2322)
Reentrancy in BABYTOKEN.swapAndSendDividends(uint256) (#2375-2384):
External calls:
- swapTokensForCake(tokens) (#2376)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#2379)
- dividendTracker.distributeCAKEDividends(dividends) (#2381)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#2382)
Reentrancy in BABYTOKEN.swapManual() (#2171-2179):
External calls:
- swapAndLiquify(AmountLiquidityFee) (#2175)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2334-2340)
- swapAndSendDividends(AmountTokenRewardsFee) (#2176)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#2379)
- dividendTracker.distributeCAKEDividends(dividends) (#2381)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
External calls sending eth:
- swapAndLiquify(AmountLiquidityFee) (#2175)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#636)
- swapAndSendDividends(AmountTokenRewardsFee) (#2176)
- SendDividends(tokens,dividends) (#2382)
- swapAndSendDividends(AmountTokenRewardsFee) (#2176)
Reentrancy in BABYTOKEN.swapManual() (#2171-2179):
External calls:
- swapAndLiquify(AmountLiquidityFee) (#2175)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2334-2340)
- swapAndSendDividends(AmountTokenRewardsFee) (#2176)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#2379)
- dividendTracker.distributeCAKEDividends(dividends) (#2381)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
- swapAndSendToFee(AmountMarketingFee) (#2177)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#2302)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2351-2357)
External calls sending eth:
- swapAndLiquify(AmountLiquidityFee) (#2175)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#2364-2371)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#636)
- swapAndSendToFee(AmountMarketingFee) (#2177)
Apply the check-effects-interactions pattern.
Additional information: link
Clones.clone(address) (#321-330) uses assembly
- INLINE ASM (#322-328)
Clones.cloneDeterministic(address,bytes32) (#339-348) uses assembly
- INLINE ASM (#340-346)
Clones.predictDeterministicAddress(address,bytes32,address) (#353-368) uses assembly
- INLINE ASM (#358-367)
Do not use evm assembly.
Additional information: link
Clones.cloneDeterministic(address,bytes32) (#339-348) is never used and should be removed
Clones.predictDeterministicAddress(address,bytes32) (#373-379) is never used and should be removed
Clones.predictDeterministicAddress(address,bytes32,address) (#353-368) is never used and should be removed
Context._msgData() (#9-11) is never used and should be removed
ContextUpgradeable.__Context_init() (#84-86) is never used and should be removed
ContextUpgradeable._msgData() (#94-96) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1567-1582) is never used and should be removed
ERC20._burn(address,uint256) (#604-612) is never used and should be removed
ERC20Upgradeable._transfer(address,address,uint256) (#1274-1294) is never used and should be removed
SafeMath.mod(uint256,uint256) (#237-239) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#241-244) is never used and should be removed
SafeMathInt.abs(int256) (#295-298) is never used and should be removed
SafeMathInt.div(int256,int256) (#266-272) is never used and should be removed
SafeMathInt.mul(int256,int256) (#254-261) is never used and should be removed
Remove unused functions.
Additional information: link
Function ContextUpgradeable.__Context_init() (#84-86) is not in mixedCase
Function ContextUpgradeable.__Context_init_unchained() (#88-89) is not in mixedCase
Variable ContextUpgradeable.__gap (#97) is not in mixedCase
Function OwnableUpgradeable.__Ownable_init() (#108-111) is not in mixedCase
Function OwnableUpgradeable.__Ownable_init_unchained() (#113-115) is not in mixedCase
Variable OwnableUpgradeable.__gap (#157) is not in mixedCase
Function IUniswapV2Router01.WETH() (#662) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#826) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#827) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#844) is not in mixedCase
Function ERC20Upgradeable.__ERC20_init(string,string) (#1102-1105) is not in mixedCase
Function ERC20Upgradeable.__ERC20_init_unchained(string,string) (#1107-1110) is not in mixedCase
Variable ERC20Upgradeable.__gap (#1409) is not in mixedCase
Function DividendPayingToken.__DividendPayingToken_init(address,string,string) (#1453-1461) is not in mixedCase
Parameter DividendPayingToken.__DividendPayingToken_init(address,string,string)._rewardToken (#1454) is not in mixedCase
Parameter DividendPayingToken.__DividendPayingToken_init(address,string,string)._name (#1455) is not in mixedCase
Parameter DividendPayingToken.__DividendPayingToken_init(address,string,string)._symbol (#1456) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#1515) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1522) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1534) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1548) is not in mixedCase
Constant DividendPayingToken.magnitude (#1433) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter BABYTOKENDividendTracker.getAccount(address)._account (#1719) is not in mixedCase
Parameter BABYTOKEN.setSwapAndLiquifyEnabled(bool)._enabled (#2181) is not in mixedCase
Variable BABYTOKEN.AmountLiquidityFee (#1903) is not in mixedCase
Variable BABYTOKEN.AmountTokenRewardsFee (#1904) is not in mixedCase
Variable BABYTOKEN.AmountMarketingFee (#1905) is not in mixedCase
Variable BABYTOKEN._marketingWalletAddress (#1907) is not in mixedCase
Variable BABYTOKEN._isBlacklisted (#1910) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#667) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#668)
Variable DividendPayingToken.__DividendPayingToken_init(address,string,string)._rewardToken (#1454) is too similar to BABYTOKENDividendTracker.initialize(address,uint256).rewardToken_ (#1646)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1488) is too similar to BABYTOKENDividendTracker.getAccount(address).withdrawableDividends (#1726)
Variable ERC20._totalSupply (#389) is too similar to BABYTOKEN.constructor(string,string,uint256,address[4],uint256[4],uint256[4],uint256,address,uint256).totalSupply_ (#1958)
Prevent variables from having similar names.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find KYC or doxxing proof
Unable to find audit link on the website
Unable to find whitepaper link on the website
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Telegram account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account
Twitter account has few posts