EarthShiba.addLiquidity(uint256,uint256) (#1487-1500) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1492-1499)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in EarthShiba._transfer(address,address,uint256) (#1397-1444):
External calls:
- swapAndLiquify(contractTokenBalance) (#1431)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1492-1499)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1478-1484)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1431)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1492-1499)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1443)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1345)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1559)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1539)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1581)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1540)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1205)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1561)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1582)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1207)
- _tokenTransfer(from,to,amount,takeFee) (#1443)
- _rTotal = _rTotal.sub(rFee) (#1249)
- _tokenTransfer(from,to,amount,takeFee) (#1443)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1347)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1204)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1580)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1560)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1206)
Apply the check-effects-interactions pattern.
Additional information: link
EarthShiba.withdrawToken(address) (#1594-1597) ignores return value by token.transfer(contractOwner,token.balanceOf(address(this))) (#1596)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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.
EarthShiba.addLiquidity(uint256,uint256) (#1487-1500) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1492-1499)
Ensure that all the return values of the function calls are used.
Additional information: link
EarthShiba.changeContractOwner(address).owner (#1599) shadows:
- Ownable.owner() (#468-470) (function)
Rename the local variables that shadow another component.
Additional information: link
EarthShiba.setMaxTxPercent(uint256) (#1236-1238) should emit an event for:
- _maxTxAmount = maxTxPercent * 10 ** _decimals (#1237)
Emit an event for critical parameter changes.
Additional information: link
EarthShiba.changeContractOwner(address).owner (#1599) lacks a zero-check on :
- contractOwner = address(owner) (#1600)
Check that the address is not zero.
Additional information: link
Reentrancy in EarthShiba.transferFrom(address,address,uint256) (#1058-1073):
External calls:
- _transfer(sender,recipient,amount) (#1063)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1492-1499)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1478-1484)
External calls sending eth:
- _transfer(sender,recipient,amount) (#1063)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1492-1499)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#1064-1071)
- _allowances[owner][spender] = amount (#1393)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in EarthShiba.transferFrom(address,address,uint256) (#1058-1073):
External calls:
- _transfer(sender,recipient,amount) (#1063)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1492-1499)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1478-1484)
External calls sending eth:
- _transfer(sender,recipient,amount) (#1063)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1492-1499)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1394)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#1064-1071)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#518-526) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now > _lockTime,Contract is locked until 7 days) (#523)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#412-440) uses assembly
- INLINE ASM (#432-435)
Do not use evm assembly.
Additional information: link
EarthShiba.onlyAdmin() (#978-981) compares to a boolean constant:
-require(bool,string)(listAdmins[msg.sender] == true,User is not allowed) (#979)
Remove the equality to the boolean constant.
Additional information: link
SafeMath.mod(uint256,uint256,string) (#244-251) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#412-440):
- (success,returndata) = target.call{value: weiValue}(data) (#421-423)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable EarthShiba._maxTxAmount (#917) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#260)" inContext (#254-263)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable EarthShiba.reflectionFromToken(uint256,bool).rTransferAmount (#1147) is too similar to EarthShiba._transferFromExcluded(address,address,uint256).tTransferAmount (#1576)
Prevent variables from having similar names.
Additional information: link
changeContractOwner(address) should be declared external:
- EarthShiba.changeContractOwner(address) (#1599-1601)
Use the external attribute for functions never called from the contract.
Additional information: link
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Number of Binance Smart Chain (BSC) token holders is low.
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.
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
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinHunt, CoinGecko, CoinMarketCap
Young tokens have high risks of 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
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