Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Mycoin.swapAndCharge(uint256) (Eileen gu.sol#491-505) sends eth to arbitrary user
Dangerous calls:
- (success) = address(bnbPoolAddress).call{value: newBalance - bnbForLiquid}() (Eileen gu.sol#502)
Mycoin.addLiquidity(uint256,uint256) (Eileen gu.sol#522-537) sends eth to arbitrary user
Dangerous calls:
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Mycoin._transfer(address,address,uint256) (Eileen gu.sol#445-489):
External calls:
- swapAndCharge(tokenBalance) (Eileen gu.sol#473)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Eileen gu.sol#513-519)
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
- (success) = address(bnbPoolAddress).call{value: newBalance - bnbForLiquid}() (Eileen gu.sol#502)
External calls sending eth:
- swapAndCharge(tokenBalance) (Eileen gu.sol#473)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
- (success) = address(bnbPoolAddress).call{value: newBalance - bnbForLiquid}() (Eileen gu.sol#502)
State variables written after the call(s):
- _tokenTransfer(sender,recipient,amount,takeFee) (Eileen gu.sol#488)
- _BNBFee = _previousBNBFee (Eileen gu.sol#437)
- _BNBFee = 0 (Eileen gu.sol#432)
- _tokenTransfer(sender,recipient,amount,takeFee) (Eileen gu.sol#488)
- _balances[sender] = senderBalance - amount (Eileen gu.sol#546)
- _balances[recipient] += tTransferAmount (Eileen gu.sol#548)
- _balances[address(this)] += amount - tTransferAmount (Eileen gu.sol#549)
- _tokenTransfer(sender,recipient,amount,takeFee) (Eileen gu.sol#488)
- _liquidityFee = _previousLiquidityFee (Eileen gu.sol#438)
- _liquidityFee = 0 (Eileen gu.sol#433)
Apply the check-effects-interactions pattern.
Additional information: link
Mycoin.swapAndCharge(uint256) (Eileen gu.sol#491-505) uses a dangerous strict equality:
- require(bool,string)(success == true,Transfer failed.) (Eileen gu.sol#503)
Don't use strict equality to determine if an account has enough Ether or tokens.
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.
Contract ticker (Eileen gu) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
Mycoin.swapAndCharge(uint256) (Eileen gu.sol#491-505) performs a multiplication on the result of a division:
-liquidBalance = tokenBalance * _liquidityFee / (_liquidityFee + _BNBFee) / 2 (Eileen gu.sol#494)
-bnbForLiquid = newBalance * liquidBalance / tokenBalance (Eileen gu.sol#499)
Consider ordering multiplication before division.
Additional information: link
Mycoin.addLiquidity(uint256,uint256) (Eileen gu.sol#522-537) ignores return value by pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
Ensure that all the return values of the function calls are used.
Additional information: link
Reentrancy in Mycoin._transfer(address,address,uint256) (Eileen gu.sol#445-489):
External calls:
- swapAndCharge(tokenBalance) (Eileen gu.sol#473)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Eileen gu.sol#513-519)
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
- (success) = address(bnbPoolAddress).call{value: newBalance - bnbForLiquid}() (Eileen gu.sol#502)
External calls sending eth:
- swapAndCharge(tokenBalance) (Eileen gu.sol#473)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
- (success) = address(bnbPoolAddress).call{value: newBalance - bnbForLiquid}() (Eileen gu.sol#502)
State variables written after the call(s):
- _tokenTransfer(sender,recipient,amount,takeFee) (Eileen gu.sol#488)
- _previousBNBFee = _BNBFee (Eileen gu.sol#429)
- _tokenTransfer(sender,recipient,amount,takeFee) (Eileen gu.sol#488)
- _previousLiquidityFee = _liquidityFee (Eileen gu.sol#430)
Reentrancy in Mycoin.constructor() (Eileen gu.sol#367-377):
External calls:
- pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (Eileen gu.sol#371-372)
State variables written after the call(s):
- _mint(msg.sender,total) (Eileen gu.sol#374)
- _balances[account] += amount (Eileen gu.sol#270)
- _isExcludedFromFee[msg.sender] = true (Eileen gu.sol#375)
- _isExcludedFromFee[address(this)] = true (Eileen gu.sol#376)
- _mint(msg.sender,total) (Eileen gu.sol#374)
- _totalSupply += amount (Eileen gu.sol#269)
Reentrancy in Mycoin.swapAndCharge(uint256) (Eileen gu.sol#491-505):
External calls:
- swapTokensForEth(tokenBalance) (Eileen gu.sol#496)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Eileen gu.sol#513-519)
- addLiquidity(liquidBalance,bnbForLiquid) (Eileen gu.sol#500)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
External calls sending eth:
- addLiquidity(liquidBalance,bnbForLiquid) (Eileen gu.sol#500)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
State variables written after the call(s):
- addLiquidity(liquidBalance,bnbForLiquid) (Eileen gu.sol#500)
- _allowances[owner][spender] = amount (Eileen gu.sol#320)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Mycoin._transfer(address,address,uint256) (Eileen gu.sol#445-489):
External calls:
- swapAndCharge(tokenBalance) (Eileen gu.sol#473)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Eileen gu.sol#513-519)
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
- (success) = address(bnbPoolAddress).call{value: newBalance - bnbForLiquid}() (Eileen gu.sol#502)
External calls sending eth:
- swapAndCharge(tokenBalance) (Eileen gu.sol#473)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
- (success) = address(bnbPoolAddress).call{value: newBalance - bnbForLiquid}() (Eileen gu.sol#502)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (Eileen gu.sol#551)
- _tokenTransfer(sender,recipient,amount,takeFee) (Eileen gu.sol#488)
Reentrancy in Mycoin.constructor() (Eileen gu.sol#367-377):
External calls:
- pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (Eileen gu.sol#371-372)
Event emitted after the call(s):
- Transfer(address(0),account,amount) (Eileen gu.sol#271)
- _mint(msg.sender,total) (Eileen gu.sol#374)
Reentrancy in Mycoin.swapAndCharge(uint256) (Eileen gu.sol#491-505):
External calls:
- swapTokensForEth(tokenBalance) (Eileen gu.sol#496)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Eileen gu.sol#513-519)
- addLiquidity(liquidBalance,bnbForLiquid) (Eileen gu.sol#500)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
External calls sending eth:
- addLiquidity(liquidBalance,bnbForLiquid) (Eileen gu.sol#500)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
Event emitted after the call(s):
- Approval(owner,spender,amount) (Eileen gu.sol#321)
- addLiquidity(liquidBalance,bnbForLiquid) (Eileen gu.sol#500)
Reentrancy in Mycoin.swapAndCharge(uint256) (Eileen gu.sol#491-505):
External calls:
- swapTokensForEth(tokenBalance) (Eileen gu.sol#496)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Eileen gu.sol#513-519)
- addLiquidity(liquidBalance,bnbForLiquid) (Eileen gu.sol#500)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
- (success) = address(bnbPoolAddress).call{value: newBalance - bnbForLiquid}() (Eileen gu.sol#502)
External calls sending eth:
- addLiquidity(liquidBalance,bnbForLiquid) (Eileen gu.sol#500)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Eileen gu.sol#524-531)
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
- (success) = address(bnbPoolAddress).call{value: newBalance - bnbForLiquid}() (Eileen gu.sol#502)
Event emitted after the call(s):
- SwapAndCharged(tokenBalance,liquidBalance,newBalance - bnbForLiquid,bnbForLiquid) (Eileen gu.sol#504)
Apply the check-effects-interactions pattern.
Additional information: link
Mycoin.swapAndCharge(uint256) (Eileen gu.sol#491-505) compares to a boolean constant:
-require(bool,string)(success == true,Transfer failed.) (Eileen gu.sol#503)
Remove the equality to the boolean constant.
Additional information: link
Different versions of Solidity is used:
- Version used: ['^0.8.0', '^0.8.4']
- ^0.8.0 (Context.sol#2)
- ^0.8.4 (Eileen gu.sol#2)
- ^0.8.0 (IERC20.sol#2)
- ^0.8.0 (IERC20Metadata.sol#2)
- ^0.8.0 (Ownable.sol#2)
Use one Solidity version.
Additional information: link
Context._msgData() (Context.sol#19-21) is never used and should be removed
ERC20._burn(address,uint256) (Eileen gu.sol#286-297) is never used and should be removed
ERC20._transfer(address,address,uint256) (Eileen gu.sol#239-255) is never used and should be removed
Remove unused functions.
Additional information: link
Mycoin._previousBNBFee (Eileen gu.sol#332) is set pre-construction with a non-constant function or state variable:
- _BNBFee
Mycoin._previousLiquidityFee (Eileen gu.sol#335) is set pre-construction with a non-constant function or state variable:
- _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.8.0 (Context.sol#2) allows old versions
Pragma version^0.8.0 (IERC20.sol#2) allows old versions
Pragma version^0.8.0 (IERC20Metadata.sol#2) allows old versions
Pragma version^0.8.0 (Ownable.sol#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
Low level call in Mycoin.swapAndCharge(uint256) (Eileen gu.sol#491-505):
- (success) = address(bnbPoolAddress).call{value: newBalance - bnbForLiquid}() (Eileen gu.sol#502)
Low level call in Mycoin.addLiquidity(uint256,uint256) (Eileen gu.sol#522-537):
- (success) = address(bnbPoolAddress).call{value: balance}() (Eileen gu.sol#534)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IPancakeswapV2Router02.WETH() (Eileen gu.sol#15) is not in mixedCase
Variable ERC20._balances (Eileen gu.sol#58) is not in mixedCase
Parameter Mycoin.setSwapAndLiquifyEnabled(bool)._enabled (Eileen gu.sol#416) is not in mixedCase
Constant Mycoin.total (Eileen gu.sol#329) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Mycoin._BNBFee (Eileen gu.sol#331) is not in mixedCase
Variable Mycoin._liquidityFee (Eileen gu.sol#334) is not in mixedCase
Variable Mycoin._maxTxAmount (Eileen gu.sol#343) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Mycoin.slitherConstructorConstantVariables() (Eileen gu.sol#326-555) uses literals with too many digits:
- total = 100000000000 * 1e18 (Eileen gu.sol#329)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
name() should be declared external:
- ERC20.name() (Eileen gu.sol#80-82)
symbol() should be declared external:
- ERC20.symbol() (Eileen gu.sol#88-90)
decimals() should be declared external:
- ERC20.decimals() (Eileen gu.sol#105-107)
totalSupply() should be declared external:
- ERC20.totalSupply() (Eileen gu.sol#112-114)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (Eileen gu.sol#131-134)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (Eileen gu.sol#139-141)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (Eileen gu.sol#150-153)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (Eileen gu.sol#168-182)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (Eileen gu.sol#196-199)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (Eileen gu.sol#215-223)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#52-54)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#60-63)
Use the external attribute for functions never called from the contract.
Additional information: link
Attempt to swap token was unsuccessful. For some reason it is untradeable. If token is not in presale stage and is not traded outside PancakeSwap, then it's a scam
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
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 website, listings and other project-related information
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 Twitter account
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account