Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
EternalFomo.swapBack() (EternalFomo.sol#272-341) sends eth to arbitrary user
Dangerous calls:
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountETHMarketing}() (EternalFomo.sol#316-319)
- (success,None) = address(buyBackFeeReceiver).call{gas: 30000,value: amountETHBuyBack}() (EternalFomo.sol#320-323)
- (success,None) = address(ecosystemFeeReceiver).call{gas: 30000,value: amountETHEco}() (EternalFomo.sol#324-327)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in EternalFomo._transferFrom(address,address,uint256) (EternalFomo.sol#207-245):
External calls:
- swapBack() (EternalFomo.sol#227)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (EternalFomo.sol#294-300)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountETHMarketing}() (EternalFomo.sol#316-319)
- (success,None) = address(buyBackFeeReceiver).call{gas: 30000,value: amountETHBuyBack}() (EternalFomo.sol#320-323)
- (success,None) = address(ecosystemFeeReceiver).call{gas: 30000,value: amountETHEco}() (EternalFomo.sol#324-327)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (EternalFomo.sol#332-339)
External calls sending eth:
- swapBack() (EternalFomo.sol#227)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountETHMarketing}() (EternalFomo.sol#316-319)
- (success,None) = address(buyBackFeeReceiver).call{gas: 30000,value: amountETHBuyBack}() (EternalFomo.sol#320-323)
- (success,None) = address(ecosystemFeeReceiver).call{gas: 30000,value: amountETHEco}() (EternalFomo.sol#324-327)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (EternalFomo.sol#332-339)
State variables written after the call(s):
- _gonBalances[sender] = _gonBalances[sender].sub(gonAmount) (EternalFomo.sol#230)
- _gonBalances[recipient] = _gonBalances[recipient].add(gonAmountReceived) (EternalFomo.sol#235-237)
- gonAmountReceived = takeFee(sender,gonAmount) (EternalFomo.sol#232-234)
- _gonBalances[address(this)] = _gonBalances[address(this)].add(feeAmount) (EternalFomo.sol#264-266)
Apply the check-effects-interactions pattern.
Additional information: link
EternalFomo.swapBack().success (EternalFomo.sol#316) is written in both
(success) = address(marketingFeeReceiver).call{gas: 30000,value: amountETHMarketing}() (EternalFomo.sol#316-319)
(success,None) = address(buyBackFeeReceiver).call{gas: 30000,value: amountETHBuyBack}() (EternalFomo.sol#320-323)
EternalFomo.swapBack().success (EternalFomo.sol#316) is written in both
(success,None) = address(buyBackFeeReceiver).call{gas: 30000,value: amountETHBuyBack}() (EternalFomo.sol#320-323)
(success,None) = address(ecosystemFeeReceiver).call{gas: 30000,value: amountETHEco}() (EternalFomo.sol#324-327)
EternalFomo.swapBack().success (EternalFomo.sol#316) is written in both
(success,None) = address(ecosystemFeeReceiver).call{gas: 30000,value: amountETHEco}() (EternalFomo.sol#324-327)
success = false (EternalFomo.sol#329)
Fix or remove the writes.
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.
Token is flagged by TokenSniffer due to previous scams commited by owner (blacklist)
Contract ownership is not renounced (belongs to a wallet)
EternalFomo.swapBack() (EternalFomo.sol#272-341) has external calls inside a loop: path[1] = router.WETH() (EternalFomo.sol#290)
EternalFomo.swapBack() (EternalFomo.sol#272-341) has external calls inside a loop: router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (EternalFomo.sol#294-300)
EternalFomo.swapBack() (EternalFomo.sol#272-341) has external calls inside a loop: (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountETHMarketing}() (EternalFomo.sol#316-319)
EternalFomo.swapBack() (EternalFomo.sol#272-341) has external calls inside a loop: (success,None) = address(buyBackFeeReceiver).call{gas: 30000,value: amountETHBuyBack}() (EternalFomo.sol#320-323)
EternalFomo.swapBack() (EternalFomo.sol#272-341) has external calls inside a loop: (success,None) = address(ecosystemFeeReceiver).call{gas: 30000,value: amountETHEco}() (EternalFomo.sol#324-327)
EternalFomo.swapBack() (EternalFomo.sol#272-341) has external calls inside a loop: router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (EternalFomo.sol#332-339)
Favor pull over push strategy for external calls.
Additional information: link
EternalFomo.swapping() (EternalFomo.sol#78-82) has costly operations inside a loop:
- inSwap = true (EternalFomo.sol#79)
EternalFomo.swapping() (EternalFomo.sol#78-82) has costly operations inside a loop:
- inSwap = false (EternalFomo.sol#81)
Use a local variable to hold the loop computation result.
Additional information: link
EternalFomo.swapBack() (EternalFomo.sol#272-341) performs a multiplication on the result of a division:
-contractTokenBalance = _gonBalances[address(this)].div(_gonsPerFragment) (EternalFomo.sol#279-281)
-amountToLiquify = contractTokenBalance.mul(dynamicLiquidityFee).div(totalFee).div(2) (EternalFomo.sol#282-285)
EternalFomo.setMaxWalletToken(uint256,uint256) (EternalFomo.sol#415-420) performs a multiplication on the result of a division:
-gonMaxWallet = TOTAL_GONS.div(_denom).mul(_num) (EternalFomo.sol#419)
EternalFomo.setSwapBackSettings(bool,uint256,uint256) (EternalFomo.sol#438-445) performs a multiplication on the result of a division:
-gonSwapThreshold = TOTAL_GONS.div(_denom).mul(_num) (EternalFomo.sol#444)
EternalFomo.getLiquidityBacking(uint256) (EternalFomo.sol#529-537) performs a multiplication on the result of a division:
-liquidityBalance = _gonBalances[pair].div(_gonsPerFragment) (EternalFomo.sol#534)
-accuracy.mul(liquidityBalance.mul(2)).div(getCirculatingSupply()) (EternalFomo.sol#535-536)
EternalFomo.slitherConstructorVariables() (EternalFomo.sol#12-549) performs a multiplication on the result of a division:
-gonMaxWallet = TOTAL_GONS.div(100).mul(5) (EternalFomo.sol#51)
Consider ordering multiplication before division.
Additional information: link
EternalFomo.swapBack() (EternalFomo.sol#272-341) ignores return value by router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (EternalFomo.sol#332-339)
Ensure that all the return values of the function calls are used.
Additional information: link
EternalFomo.setMaster(address) (EternalFomo.sol#155-157) should emit an event for:
- master = _master (EternalFomo.sol#156)
Emit an event for critical parameter changes.
Additional information: link
EternalFomo.setMaxWalletToken(uint256,uint256) (EternalFomo.sol#415-420) should emit an event for:
- gonMaxWallet = TOTAL_GONS.div(_denom).mul(_num) (EternalFomo.sol#419)
EternalFomo.setSwapBackSettings(bool,uint256,uint256) (EternalFomo.sol#438-445) should emit an event for:
- gonSwapThreshold = TOTAL_GONS.div(_denom).mul(_num) (EternalFomo.sol#444)
EternalFomo.setTargetLiquidity(uint256,uint256) (EternalFomo.sol#447-450) should emit an event for:
- targetLiquidity = target (EternalFomo.sol#448)
- targetLiquidityDenominator = accuracy (EternalFomo.sol#449)
EternalFomo.setFees(uint256,uint256,uint256,uint256,uint256) (EternalFomo.sol#464-478) should emit an event for:
- ecosystemFee = _ecosystemFee (EternalFomo.sol#471)
- liquidityFee = _liquidityFee (EternalFomo.sol#472)
- buyBackFee = _buyBackFee (EternalFomo.sol#473)
- marketingFee = _marketingFee (EternalFomo.sol#474)
- totalFee = ecosystemFee.add(liquidityFee).add(marketingFee).add(buyBackFee) (EternalFomo.sol#475)
- feeDenominator = _feeDenominator (EternalFomo.sol#476)
Emit an event for critical parameter changes.
Additional information: link
EternalFomo.setMaster(address)._master (EternalFomo.sol#155) lacks a zero-check on :
- master = _master (EternalFomo.sol#156)
EternalFomo.setFeeReceivers(address,address,address,address)._autoLiquidityReceiver (EternalFomo.sol#481) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (EternalFomo.sol#486)
EternalFomo.setFeeReceivers(address,address,address,address)._ecosystemFeeReceiver (EternalFomo.sol#482) lacks a zero-check on :
- ecosystemFeeReceiver = _ecosystemFeeReceiver (EternalFomo.sol#487)
EternalFomo.setFeeReceivers(address,address,address,address)._marketingFeeReceiver (EternalFomo.sol#483) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (EternalFomo.sol#488)
EternalFomo.setFeeReceivers(address,address,address,address)._buyBackFeeReceiver (EternalFomo.sol#484) lacks a zero-check on :
- buyBackFeeReceiver = _buyBackFeeReceiver (EternalFomo.sol#489)
EternalFomo.clearStuckBalance(uint256,address).adr (EternalFomo.sol#500) lacks a zero-check on :
- address(adr).transfer((amountETH * amountPercentage) / 100) (EternalFomo.sol#502-504)
Check that the address is not zero.
Additional information: link
Reentrancy in EternalFomo.constructor() (EternalFomo.sol#123-153):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (EternalFomo.sol#126-129)
State variables written after the call(s):
- _allowedFragments[address(this)][address(router)] = uint256(- 1) (EternalFomo.sol#130)
- _gonBalances[msg.sender] = TOTAL_GONS (EternalFomo.sol#134)
- _gonsPerFragment = TOTAL_GONS.div(_totalSupply) (EternalFomo.sol#135)
- _isFeeExempt[msg.sender] = true (EternalFomo.sol#138)
- _isFeeExempt[address(this)] = true (EternalFomo.sol#139)
- _isMaxWalletExempt[pair] = true (EternalFomo.sol#141)
- _isMaxWalletExempt[DEAD] = true (EternalFomo.sol#142)
- _isMaxWalletExempt[address(this)] = true (EternalFomo.sol#143)
- _isMaxWalletExempt[msg.sender] = true (EternalFomo.sol#144)
- _isMaxWalletExempt[owner()] = true (EternalFomo.sol#145)
- _totalSupply = INITIAL_FRAGMENTS_SUPPLY (EternalFomo.sol#133)
- autoLiquidityReceiver = 0x000000000000000000000000000000000000dEaD (EternalFomo.sol#147)
- buyBackFeeReceiver = 0xF887d602aF31244354129eb4C22cac22cA558a67 (EternalFomo.sol#150)
- ecosystemFeeReceiver = 0x68ADD46Aef0EC771680B0B3302e897a54F084DF4 (EternalFomo.sol#149)
- initialDistributionFinished = false (EternalFomo.sol#137)
- marketingFeeReceiver = 0x5f117A6A577399cF703e2943f308e3Dd74281294 (EternalFomo.sol#148)
- pairContract = InterfaceLP(pair) (EternalFomo.sol#131)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in EternalFomo._transferFrom(address,address,uint256) (EternalFomo.sol#207-245):
External calls:
- swapBack() (EternalFomo.sol#227)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (EternalFomo.sol#294-300)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountETHMarketing}() (EternalFomo.sol#316-319)
- (success,None) = address(buyBackFeeReceiver).call{gas: 30000,value: amountETHBuyBack}() (EternalFomo.sol#320-323)
- (success,None) = address(ecosystemFeeReceiver).call{gas: 30000,value: amountETHEco}() (EternalFomo.sol#324-327)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (EternalFomo.sol#332-339)
External calls sending eth:
- swapBack() (EternalFomo.sol#227)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountETHMarketing}() (EternalFomo.sol#316-319)
- (success,None) = address(buyBackFeeReceiver).call{gas: 30000,value: amountETHBuyBack}() (EternalFomo.sol#320-323)
- (success,None) = address(ecosystemFeeReceiver).call{gas: 30000,value: amountETHEco}() (EternalFomo.sol#324-327)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (EternalFomo.sol#332-339)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount.div(_gonsPerFragment)) (EternalFomo.sol#267)
- gonAmountReceived = takeFee(sender,gonAmount) (EternalFomo.sol#232-234)
- Transfer(sender,recipient,gonAmountReceived.div(_gonsPerFragment)) (EternalFomo.sol#239-243)
Reentrancy in EternalFomo.constructor() (EternalFomo.sol#123-153):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (EternalFomo.sol#126-129)
Event emitted after the call(s):
- Transfer(address(0x0),msg.sender,_totalSupply) (EternalFomo.sol#152)
Reentrancy in EternalFomo.rebase(uint256,int256) (EternalFomo.sol#95-121):
External calls:
- pairContract.sync() (EternalFomo.sol#117)
Event emitted after the call(s):
- LogRebase(epoch,_totalSupply) (EternalFomo.sol#119)
Apply the check-effects-interactions pattern.
Additional information: link
EternalFomo.transferToAddressETH(address,uint256) (EternalFomo.sol#507-511) is never used and should be removed
SafeMath.mod(uint256,uint256) (SafeMath.sol#53-56) is never used and should be removed
SafeMathInt.abs(int256) (SafeMathInt.sol#34-37) is never used and should be removed
SafeMathInt.add(int256,int256) (SafeMathInt.sol#28-32) is never used and should be removed
SafeMathInt.div(int256,int256) (SafeMathInt.sol#16-20) is never used and should be removed
SafeMathInt.mul(int256,int256) (SafeMathInt.sol#8-14) is never used and should be removed
SafeMathInt.sub(int256,int256) (SafeMathInt.sol#22-26) is never used and should be removed
Remove unused functions.
Additional information: link
EternalFomo.totalFee (EternalFomo.sol#57-58) is set pre-construction with a non-constant function or state variable:
- ecosystemFee.add(liquidityFee).add(marketingFee).add(buyBackFee)
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.7.4 (ERC20Detailed.sol#2) allows old versions
Pragma version^0.7.4 (EternalFomo.sol#2) allows old versions
Pragma version^0.7.4 (IDEXFactory.sol#2) allows old versions
Pragma version^0.7.4 (IDEXRouter.sol#2) allows old versions
Pragma version^0.7.4 (IERC20.sol#2) allows old versions
Pragma version^0.7.4 (InterfaceLP.sol#2) allows old versions
Pragma version^0.7.4 (Ownable.sol#2) allows old versions
Pragma version^0.7.4 (SafeMath.sol#2) allows old versions
Pragma version^0.7.4 (SafeMathInt.sol#2) allows old versions
solc-0.7.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
Low level call in EternalFomo.swapBack() (EternalFomo.sol#272-341):
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountETHMarketing}() (EternalFomo.sol#316-319)
- (success,None) = address(buyBackFeeReceiver).call{gas: 30000,value: amountETHBuyBack}() (EternalFomo.sol#320-323)
- (success,None) = address(ecosystemFeeReceiver).call{gas: 30000,value: amountETHEco}() (EternalFomo.sol#324-327)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter EternalFomo.setMaster(address)._master (EternalFomo.sol#155) is not in mixedCase
Parameter EternalFomo.setLP(address)._address (EternalFomo.sol#159) is not in mixedCase
Parameter EternalFomo.enableTransfer(address)._addr (EternalFomo.sol#395) is not in mixedCase
Parameter EternalFomo.setFeeExempt(address)._addr (EternalFomo.sol#399) is not in mixedCase
Parameter EternalFomo.checkFeeExempt(address)._addr (EternalFomo.sol#403) is not in mixedCase
Parameter EternalFomo.setMaxWalletExempt(address)._addr (EternalFomo.sol#407) is not in mixedCase
Parameter EternalFomo.checkMaxWalletExempt(address)._addr (EternalFomo.sol#411) is not in mixedCase
Parameter EternalFomo.setMaxWalletToken(uint256,uint256)._num (EternalFomo.sol#415) is not in mixedCase
Parameter EternalFomo.setMaxWalletToken(uint256,uint256)._denom (EternalFomo.sol#415) is not in mixedCase
Parameter EternalFomo.setSwapBackSettings(bool,uint256,uint256)._enabled (EternalFomo.sol#439) is not in mixedCase
Parameter EternalFomo.setSwapBackSettings(bool,uint256,uint256)._num (EternalFomo.sol#440) is not in mixedCase
Parameter EternalFomo.setSwapBackSettings(bool,uint256,uint256)._denom (EternalFomo.sol#441) is not in mixedCase
Parameter EternalFomo.setFees(uint256,uint256,uint256,uint256,uint256)._ecosystemFee (EternalFomo.sol#465) is not in mixedCase
Parameter EternalFomo.setFees(uint256,uint256,uint256,uint256,uint256)._liquidityFee (EternalFomo.sol#466) is not in mixedCase
Parameter EternalFomo.setFees(uint256,uint256,uint256,uint256,uint256)._buyBackFee (EternalFomo.sol#467) is not in mixedCase
Parameter EternalFomo.setFees(uint256,uint256,uint256,uint256,uint256)._marketingFee (EternalFomo.sol#468) is not in mixedCase
Parameter EternalFomo.setFees(uint256,uint256,uint256,uint256,uint256)._feeDenominator (EternalFomo.sol#469) is not in mixedCase
Parameter EternalFomo.setFeeReceivers(address,address,address,address)._autoLiquidityReceiver (EternalFomo.sol#481) is not in mixedCase
Parameter EternalFomo.setFeeReceivers(address,address,address,address)._ecosystemFeeReceiver (EternalFomo.sol#482) is not in mixedCase
Parameter EternalFomo.setFeeReceivers(address,address,address,address)._marketingFeeReceiver (EternalFomo.sol#483) is not in mixedCase
Parameter EternalFomo.setFeeReceivers(address,address,address,address)._buyBackFeeReceiver (EternalFomo.sol#484) is not in mixedCase
Variable EternalFomo._isFeeExempt (EternalFomo.sol#30) is not in mixedCase
Variable EternalFomo._isMaxWalletExempt (EternalFomo.sol#31) is not in mixedCase
Variable EternalFomo.DEAD (EternalFomo.sol#61) is not in mixedCase
Variable EternalFomo.ZERO (EternalFomo.sol#62) is not in mixedCase
Function IDEXRouter.WETH() (IDEXRouter.sol#7) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (IDEXRouter.sol#12) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (IDEXRouter.sol#13)
Prevent variables from having similar names.
Additional information: link
EternalFomo.constructor() (EternalFomo.sol#123-153) uses literals with too many digits:
- autoLiquidityReceiver = 0x000000000000000000000000000000000000dEaD (EternalFomo.sol#147)
EternalFomo.slitherConstructorVariables() (EternalFomo.sol#12-549) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (EternalFomo.sol#61)
EternalFomo.slitherConstructorVariables() (EternalFomo.sol#12-549) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (EternalFomo.sol#62)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (SafeMathInt.sol#6) is never used in SafeMathInt (SafeMathInt.sol#4-39)
Remove unused state variables.
Additional information: link
EternalFomo.DEAD (EternalFomo.sol#61) should be constant
EternalFomo.ZERO (EternalFomo.sol#62) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
name() should be declared external:
- ERC20Detailed.name() (ERC20Detailed.sol#22-24)
symbol() should be declared external:
- ERC20Detailed.symbol() (ERC20Detailed.sol#26-28)
decimals() should be declared external:
- ERC20Detailed.decimals() (ERC20Detailed.sol#30-32)
rescueToken(address,uint256) should be declared external:
- EternalFomo.rescueToken(address,uint256) (EternalFomo.sol#492-498)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#31-34)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#36-38)
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.
Contract has 0% buy tax and 11% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.
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.
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
Token has a considerable age, but we're still unable to find its website
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Token has a considerable age, but social accounts / website are missing or have few users
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Young tokens have high risks of price dump / death
Unable to find Telegram and Twitter accounts