$BabyEth proposes an innovative feature in its contract : DIVIDEND YIELD PAID IN ETH With the auto-claim feature, simply hold $BabyEth and you'll receive ETH automatically in your wallet every 60min . Hold Babyeth and get rewarded in ETH on every transaction!
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BabyETH.swapBNBForETH() (#1874-1885) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#1879-1884)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BabyETH._transfer(address,address,uint256) (#1713-1791):
External calls:
- swapAndLiquify(swapTokens) (#1750)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1809-1816)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1850-1856)
- swapAndSendToMarketing(marketingTokens) (#1753)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1850-1856)
- swapAndSendDividends(sellTokens) (#1756)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#1879-1884)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1850-1856)
- success = IERC20(ETHToken).transfer(address(dividendTracker),dividends) (#1867)
- dividendTracker.distributeETHDividends(dividends) (#1870)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1750)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1809-1816)
- swapAndSendToMarketing(marketingTokens) (#1753)
- _marketingWallet.transfer(newBalance) (#1800)
- swapAndSendDividends(sellTokens) (#1756)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#1879-1884)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1773)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#642)
- _balances[recipient] = _balances[recipient].add(amount) (#643)
- super._transfer(from,to,amount) (#1776)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#642)
- _balances[recipient] = _balances[recipient].add(amount) (#643)
- swapAndSendDividends(sellTokens) (#1756)
- swapping = true (#1513)
- swapping = false (#1515)
Apply the check-effects-interactions pattern.
Additional information: link
Contract locking ether found:
Contract TokenDividendTracker (#974-1173) has payable functions:
- DividendPayingToken.receive() (#824-825)
- DividendPayingToken.distributeDividends() (#840-851)
- IDividendPayingToken.distributeDividends() (#743)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
BabyETH.setmarketingFee(uint256) (#1685-1689) contains a tautology or contradiction:
- require(bool,string)(amount >= 0 && amount <= 5,marketingFee should be in 0 - 5) (#1686)
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.
BabyETH.slitherConstructorVariables() (#1439-1887) uses literals with too many digits:
- gasForProcessing = 300000 (#1467)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendPayingToken.lastAmount (#799) is never used in TokenDividendTracker (#974-1173)
Remove unused state variables.
Additional information: link
DividendPayingToken.lastAmount (#799) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#875-891):
External calls:
- success = IERC20(RewordToken).transfer(user,_withdrawableDividend) (#880)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#883)
Apply the check-effects-interactions pattern.
Additional information: link
BabyETH._transfer(address,address,uint256).lastProcessedIndex (#1784) 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
BabyETH.swapBNBForETH() (#1874-1885) ignores return value by uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#1879-1884)
Ensure that all the return values of the function calls are used.
Additional information: link
TokenDividendTracker.constructor(string,string,address)._symbol (#995) shadows:
- ERC20._symbol (#465) (state variable)
Rename the local variables that shadow another component.
Additional information: link
BabyETH.setSwapBnbForETHAmountInBNB(uint256) (#1705-1707) should emit an event for:
- swapBnbForETHAmount = amount * (10 ** 17) (#1706)
Emit an event for critical parameter changes.
Additional information: link
BabyETH.setMarketingWallet(address).newWallet (#1697) lacks a zero-check on :
- _marketingWallet = address(newWallet) (#1698)
Check that the address is not zero.
Additional information: link
Variable 'BabyETH._transfer(address,address,uint256).lastProcessedIndex (#1784)' in BabyETH._transfer(address,address,uint256) (#1713-1791) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1785)
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 BabyETH.swapAndLiquify(uint256) (#1820-1837):
External calls:
- swapTokensForEth(half) (#1828)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1850-1856)
- addLiquidity(otherHalf,newBalance) (#1834)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1809-1816)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1834)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1809-1816)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1834)
- _allowances[owner][spender] = amount (#708)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BabyETH.swapAndLiquify(uint256) (#1820-1837):
External calls:
- swapTokensForEth(half) (#1828)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1850-1856)
- addLiquidity(otherHalf,newBalance) (#1834)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1809-1816)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1834)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1809-1816)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#709)
- addLiquidity(otherHalf,newBalance) (#1834)
- SwapAndLiquify(half,newBalance,otherHalf) (#1836)
Apply the check-effects-interactions pattern.
Additional information: link
TokenDividendTracker.canAutoClaim(uint256) (#1090-1096) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1091)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1095)
Avoid relying on block.timestamp.
Additional information: link
SafeMathInt.mul(int256,int256) (#29-36) is never used and should be removed
Remove unused functions.
Additional information: link
BabyETH.totalFees (#1460) is set pre-construction with a non-constant function or state variable:
- ETHRewardsFee.add(marketingFee).add(liquidityFee)
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
Pragma version^0.6.2 (#3) 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
Variable BabyETH._marketingWallet (#1464) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#243)" inContext (#237-247)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in BabyETH._transfer(address,address,uint256) (#1713-1791):
External calls:
- swapAndSendToMarketing(marketingTokens) (#1753)
- _marketingWallet.transfer(newBalance) (#1800)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1750)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1809-1816)
- swapAndSendToMarketing(marketingTokens) (#1753)
- _marketingWallet.transfer(newBalance) (#1800)
- swapAndSendDividends(sellTokens) (#1756)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#1879-1884)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1756)
- _allowances[owner][spender] = amount (#708)
- super._transfer(from,address(this),fees) (#1773)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#642)
- _balances[recipient] = _balances[recipient].add(amount) (#643)
- super._transfer(from,to,amount) (#1776)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#642)
- _balances[recipient] = _balances[recipient].add(amount) (#643)
- swapAndSendDividends(sellTokens) (#1756)
- swapping = true (#1513)
- swapping = false (#1515)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#709)
- swapAndSendDividends(sellTokens) (#1756)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1785)
- Transfer(sender,recipient,amount) (#644)
- super._transfer(from,address(this),fees) (#1773)
- Transfer(sender,recipient,amount) (#644)
- super._transfer(from,to,amount) (#1776)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#1310) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#1311)
Prevent variables from having similar names.
Additional information: link
dividendTokenBalanceOf(address) should be declared external:
- BabyETH.dividendTokenBalanceOf(address) (#1623-1625)
Use the external attribute for functions never called from the contract.
Additional information: link
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 crawl data from the website
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find token contract audit
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
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
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account