Entity is a decentralized financial asset which rewards users with a sustainable fixed compound interest model through use of it's auto-staking protocol. By simply buying and holding the asset in your wallet, you earn rebase rewards as interest payments directly into your wallet. Your tokens will auto-increase every 15 minutes.
Entity.swapBack() (#773-835) sends eth to arbitrary user
Dangerous calls:
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(treasuryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#799-804)
- (success,None) = address(entityInsuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(entityInsuranceFundFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#805-810)
- (success,None) = address(blackhole).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(blackholeFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#811-816)
- (success,None) = address(tip).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(tipFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#817-822)
- (success,None) = address(lottery).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(lotteryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#823-828)
- (success,None) = address(foundation).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(foundationFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#829-834)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Entity._transferFrom(address,address,uint256) (#639-678):
External calls:
- rebase() (#651)
- pairContract.sync() (#597)
- addLiquidity() (#655)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#750-756)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#761-768)
- swapBack() (#659)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#787-793)
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(treasuryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#799-804)
- (success,None) = address(entityInsuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(entityInsuranceFundFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#805-810)
- (success,None) = address(blackhole).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(blackholeFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#811-816)
- (success,None) = address(tip).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(tipFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#817-822)
- (success,None) = address(lottery).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(lotteryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#823-828)
- (success,None) = address(foundation).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(foundationFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#829-834)
External calls sending eth:
- addLiquidity() (#655)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#761-768)
- swapBack() (#659)
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(treasuryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#799-804)
- (success,None) = address(entityInsuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(entityInsuranceFundFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#805-810)
- (success,None) = address(blackhole).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(blackholeFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#811-816)
- (success,None) = address(tip).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(tipFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#817-822)
- (success,None) = address(lottery).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(lotteryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#823-828)
- (success,None) = address(foundation).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(foundationFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#829-834)
State variables written after the call(s):
- _gonBalances[sender] = _gonBalances[sender].sub(gonAmount) (#663)
- _gonBalances[recipient] = _gonBalances[recipient].add(gonAmountReceived) (#667-669)
- gonAmountReceived = takeFee(sender,recipient,gonAmount) (#664-666)
- _gonBalances[blackhole] = _gonBalances[blackhole].add(gonAmount.div(feeDenominator).mul(_blackholeFee)) (#702-704)
- _gonBalances[lottery] = _gonBalances[lottery].add(gonAmount.div(feeDenominator).mul(_lotteryFee)) (#705-707)
- _gonBalances[tip] = _gonBalances[tip].add(gonAmount.div(feeDenominator).mul(_tipFee)) (#708-710)
- _gonBalances[foundation] = _gonBalances[foundation].add(gonAmount.div(feeDenominator).mul(_foundationFee)) (#711-713)
- _gonBalances[address(this)] = _gonBalances[address(this)].add(gonAmount.div(feeDenominator).mul(_treasuryFee.add(entityInsuranceFundFee))) (#714-716)
- _gonBalances[autoLiquidityReceiver] = _gonBalances[autoLiquidityReceiver].add(gonAmount.div(feeDenominator).mul(liquidityFee)) (#717-719)
- swapBack() (#659)
- inSwap = true (#485)
- inSwap = false (#487)
Apply the check-effects-interactions pattern.
Additional information: link
Entity._name (#436) shadows:
- ERC20Detailed._name (#402)
Entity._symbol (#437) shadows:
- ERC20Detailed._symbol (#403)
Entity._decimals (#438) shadows:
- ERC20Detailed._decimals (#404)
Remove the state variable shadowing.
Additional information: link
Rescuer.rescueTokens() (#395-398) ignores return value by Rescue(contractAddress).transfer(Owner,balance) (#397)
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.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Entity.swapBack().success (#799) is written in both
(success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(treasuryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#799-804)
(success,None) = address(entityInsuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(entityInsuranceFundFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#805-810)
Entity.swapBack().success (#799) is written in both
(success,None) = address(entityInsuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(entityInsuranceFundFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#805-810)
(success,None) = address(blackhole).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(blackholeFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#811-816)
Entity.swapBack().success (#799) is written in both
(success,None) = address(blackhole).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(blackholeFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#811-816)
(success,None) = address(tip).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(tipFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#817-822)
Entity.swapBack().success (#799) is written in both
(success,None) = address(tip).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(tipFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#817-822)
(success,None) = address(lottery).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(lotteryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#823-828)
Entity.swapBack().success (#799) is written in both
(success,None) = address(lottery).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(lotteryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#823-828)
(success,None) = address(foundation).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(foundationFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#829-834)
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.
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.
Contract ownership is not renounced (belongs to a wallet)
Entity.constructor() (#507-539) uses literals with too many digits:
- blackhole = 0x0000000000000000000000000000000000000000 (#518)
Entity.constructor() (#507-539) uses literals with too many digits:
- lottery = 0x0000000000000000000000000000000000000000 (#519)
Entity.slitherConstructorVariables() (#429-1037) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#469)
Entity.slitherConstructorVariables() (#429-1037) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#470)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Entity.addLiquidity() (#729-771) ignores return value by router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#761-768)
Ensure that all the return values of the function calls are used.
Additional information: link
SafeMathInt.MAX_INT256 (#24) is never used in SafeMathInt (#22-56)
Remove unused state variables.
Additional information: link
Rescuer.setContractAddress(address)._contractAddress (#386) lacks a zero-check on :
- contractAddress = _contractAddress (#390)
Entity.setAutoLiquidityReceiver(address)._autoLiquidityReceiver (#541) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#542)
Entity.setTreasuryReceiver(address)._treasuryReceiver (#545) lacks a zero-check on :
- treasuryReceiver = _treasuryReceiver (#546)
Entity.setEntityInsuranceFundReceiver(address)._entityInsuranceFundReceiver (#549) lacks a zero-check on :
- entityInsuranceFundReceiver = _entityInsuranceFundReceiver (#550)
Entity.setBlackhole(address)._blackhole (#553) lacks a zero-check on :
- blackhole = _blackhole (#554)
Entity.setLottery(address)._lottery (#557) lacks a zero-check on :
- lottery = _lottery (#558)
Entity.setFoundation(address)._foundation (#561) lacks a zero-check on :
- foundation = _foundation (#562)
Entity.setTip(address)._tip (#565) lacks a zero-check on :
- tip = _tip (#566)
Entity.setFeeReceivers(address,address,address,address,address,address,address)._autoLiquidityReceiver (#978) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#986)
Entity.setFeeReceivers(address,address,address,address,address,address,address)._treasuryReceiver (#979) lacks a zero-check on :
- treasuryReceiver = _treasuryReceiver (#987)
Entity.setFeeReceivers(address,address,address,address,address,address,address)._entityInsuranceFundReceiver (#980) lacks a zero-check on :
- entityInsuranceFundReceiver = _entityInsuranceFundReceiver (#988)
Entity.setFeeReceivers(address,address,address,address,address,address,address)._blackhole (#981) lacks a zero-check on :
- blackhole = _blackhole (#989)
Entity.setFeeReceivers(address,address,address,address,address,address,address)._lottery (#982) lacks a zero-check on :
- lottery = _lottery (#990)
Entity.setFeeReceivers(address,address,address,address,address,address,address)._tip (#983) lacks a zero-check on :
- tip = _tip (#991)
Entity.setFeeReceivers(address,address,address,address,address,address,address)._foundation (#984) lacks a zero-check on :
- foundation = _foundation (#992)
Entity.setPairAddress(address)._pairAddress (#1014) lacks a zero-check on :
- pairAddress = _pairAddress (#1015)
Check that the address is not zero.
Additional information: link
Entity.rebase() (#569-600) performs a multiplication on the result of a division:
-times = deltaTime.div(900) (#575)
-epoch = times.mul(15) (#576)
Entity.rebase() (#569-600) performs a multiplication on the result of a division:
-times = deltaTime.div(900) (#575)
-_lastRebasedTime = _lastRebasedTime.add(times.mul(900)) (#595)
Entity.takeFee(address,address,uint256) (#680-727) performs a multiplication on the result of a division:
-feeAmount = gonAmount.div(feeDenominator).mul(_totalFee) (#699)
Entity.takeFee(address,address,uint256) (#680-727) performs a multiplication on the result of a division:
-_gonBalances[blackhole] = _gonBalances[blackhole].add(gonAmount.div(feeDenominator).mul(_blackholeFee)) (#702-704)
Entity.takeFee(address,address,uint256) (#680-727) performs a multiplication on the result of a division:
-_gonBalances[lottery] = _gonBalances[lottery].add(gonAmount.div(feeDenominator).mul(_lotteryFee)) (#705-707)
Entity.takeFee(address,address,uint256) (#680-727) performs a multiplication on the result of a division:
-_gonBalances[tip] = _gonBalances[tip].add(gonAmount.div(feeDenominator).mul(_tipFee)) (#708-710)
Entity.takeFee(address,address,uint256) (#680-727) performs a multiplication on the result of a division:
-_gonBalances[foundation] = _gonBalances[foundation].add(gonAmount.div(feeDenominator).mul(_foundationFee)) (#711-713)
Entity.takeFee(address,address,uint256) (#680-727) performs a multiplication on the result of a division:
-_gonBalances[address(this)] = _gonBalances[address(this)].add(gonAmount.div(feeDenominator).mul(_treasuryFee.add(entityInsuranceFundFee))) (#714-716)
Entity.takeFee(address,address,uint256) (#680-727) performs a multiplication on the result of a division:
-_gonBalances[autoLiquidityReceiver] = _gonBalances[autoLiquidityReceiver].add(gonAmount.div(feeDenominator).mul(liquidityFee)) (#717-719)
Entity.getLiquidityBacking(uint256) (#995-1003) performs a multiplication on the result of a division:
-liquidityBalance = _gonBalances[pair].div(_gonsPerFragment) (#1000)
-accuracy.mul(liquidityBalance.mul(2)).div(getCirculatingSupply()) (#1001-1002)
Consider ordering multiplication before division.
Additional information: link
Entity.rebase().rebaseRate (#572) 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
Reentrancy in Entity.addLiquidity() (#729-771):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#750-756)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#761-768)
External calls sending eth:
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#761-768)
State variables written after the call(s):
- _lastAddLiquidityTime = block.timestamp (#770)
Reentrancy in Entity.constructor() (#507-539):
External calls:
- pair = IPancakeSwapFactory(router.factory()).createPair(router.WETH(),address(this)) (#510-513)
State variables written after the call(s):
- _allowedFragments[address(this)][address(router)] = uint256(- 1) (#523)
- _autoAddLiquidity = true (#533)
- _autoRebase = true (#532)
- _gonBalances[treasuryReceiver] = TOTAL_GONS (#528)
- _gonsPerFragment = TOTAL_GONS.div(_totalSupply) (#529)
- _initRebaseStartTime = block.timestamp (#530)
- _isFeeExempt[treasuryReceiver] = true (#534)
- _isFeeExempt[address(this)] = true (#535)
- _lastRebasedTime = block.timestamp (#531)
- _transferOwnership(treasuryReceiver) (#537)
- _owner = newOwner (#373)
- _totalSupply = INITIAL_FRAGMENTS_SUPPLY (#527)
- autoLiquidityReceiver = 0x7C737860e68bDdb24757b95952879C9454C50723 (#515)
- blackhole = 0x0000000000000000000000000000000000000000 (#518)
- entityInsuranceFundReceiver = 0x486b3C7b5a6E52088bc8dD0A589C47781935A3f5 (#517)
- foundation = 0x63fB6C509B21fF86dD610628570e1F01da4Fe21a (#520)
- lottery = 0x0000000000000000000000000000000000000000 (#519)
- pairAddress = pair (#524)
- pairContract = IPancakeSwapPair(pair) (#525)
- tip = 0xFf2DEE92059eAFBC059E0d1fa2554E7D07cC5a0f (#521)
- treasuryReceiver = 0x4768c5f6c62FAD9158fa5cE0F53398932d6d000D (#516)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Entity._transferFrom(address,address,uint256) (#639-678):
External calls:
- rebase() (#651)
- pairContract.sync() (#597)
- addLiquidity() (#655)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#750-756)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#761-768)
- swapBack() (#659)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#787-793)
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(treasuryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#799-804)
- (success,None) = address(entityInsuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(entityInsuranceFundFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#805-810)
- (success,None) = address(blackhole).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(blackholeFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#811-816)
- (success,None) = address(tip).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(tipFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#817-822)
- (success,None) = address(lottery).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(lotteryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#823-828)
- (success,None) = address(foundation).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(foundationFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#829-834)
External calls sending eth:
- addLiquidity() (#655)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#761-768)
- swapBack() (#659)
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(treasuryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#799-804)
- (success,None) = address(entityInsuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(entityInsuranceFundFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#805-810)
- (success,None) = address(blackhole).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(blackholeFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#811-816)
- (success,None) = address(tip).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(tipFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#817-822)
- (success,None) = address(lottery).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(lotteryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#823-828)
- (success,None) = address(foundation).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(foundationFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#829-834)
Event emitted after the call(s):
- Transfer(sender,recipient,gonAmountReceived.div(_gonsPerFragment)) (#672-676)
- Transfer(sender,address(this),feeAmount.div(_gonsPerFragment)) (#721)
- gonAmountReceived = takeFee(sender,recipient,gonAmount) (#664-666)
- Transfer(sender,lottery,lotteryFee.div(_gonsPerFragment)) (#722)
- gonAmountReceived = takeFee(sender,recipient,gonAmount) (#664-666)
- Transfer(sender,blackhole,_blackholeFee.div(_gonsPerFragment)) (#723)
- gonAmountReceived = takeFee(sender,recipient,gonAmount) (#664-666)
- Transfer(sender,tip,_tipFee.div(_gonsPerFragment)) (#724)
- gonAmountReceived = takeFee(sender,recipient,gonAmount) (#664-666)
- Transfer(sender,foundation,_foundationFee.div(_gonsPerFragment)) (#725)
- gonAmountReceived = takeFee(sender,recipient,gonAmount) (#664-666)
Reentrancy in Entity.constructor() (#507-539):
External calls:
- pair = IPancakeSwapFactory(router.factory()).createPair(router.WETH(),address(this)) (#510-513)
Event emitted after the call(s):
- OwnershipTransferred(_owner,newOwner) (#372)
- _transferOwnership(treasuryReceiver) (#537)
- Transfer(address(0x0),treasuryReceiver,_totalSupply) (#538)
Reentrancy in Entity.rebase() (#569-600):
External calls:
- pairContract.sync() (#597)
Event emitted after the call(s):
- LogRebase(epoch,_totalSupply) (#599)
Apply the check-effects-interactions pattern.
Additional information: link
Entity.rebase() (#569-600) uses timestamp for comparisons
Dangerous comparisons:
- deltaTimeFromInit < (31536000) (#578)
- deltaTimeFromInit >= (31536000) (#580)
- deltaTimeFromInit >= ((15 * 31536000) / 10) (#582)
- deltaTimeFromInit >= (7 * 31536000) (#584)
- i < times (#588)
Entity.shouldRebase() (#863-870) uses timestamp for comparisons
Dangerous comparisons:
- _autoRebase && (_totalSupply < MAX_SUPPLY) && msg.sender != pair && ! inSwap && block.timestamp >= (_lastRebasedTime + 900) (#864-869)
Entity.shouldAddLiquidity() (#872-878) uses timestamp for comparisons
Dangerous comparisons:
- _autoAddLiquidity && ! inSwap && msg.sender != pair && block.timestamp >= (_lastAddLiquidityTime + 432) (#873-877)
Avoid relying on block.timestamp.
Additional information: link
Entity.isContract(address) (#1030-1034) uses assembly
- INLINE ASM (#1032)
Do not use evm assembly.
Additional information: link
SafeMath.mod(uint256,uint256) (#107-110) is never used and should be removed
SafeMathInt.abs(int256) (#52-55) is never used and should be removed
SafeMathInt.add(int256,int256) (#46-50) is never used and should be removed
SafeMathInt.div(int256,int256) (#34-38) is never used and should be removed
SafeMathInt.mul(int256,int256) (#26-32) is never used and should be removed
SafeMathInt.sub(int256,int256) (#40-44) is never used and should be removed
Remove unused functions.
Additional information: link
Entity.totalFee (#463-466) is set pre-construction with a non-constant function or state variable:
- liquidityFee.add(treasuryFee).add(entityInsuranceFundFee)
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 (#20) 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 Entity.swapBack() (#773-835):
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(treasuryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#799-804)
- (success,None) = address(entityInsuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(entityInsuranceFundFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#805-810)
- (success,None) = address(blackhole).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(blackholeFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#811-816)
- (success,None) = address(tip).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(tipFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#817-822)
- (success,None) = address(lottery).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(lotteryFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#823-828)
- (success,None) = address(foundation).call{gas: 30000,value: amountETHToTreasuryAndEIF.mul(foundationFee).div(treasuryFee.add(entityInsuranceFundFee).add(blackholeFee).add(tipFee).add(lotteryFee).add(foundationFee))}() (#829-834)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IPancakeSwapPair.DOMAIN_SEPARATOR() (#157) is not in mixedCase
Function IPancakeSwapPair.PERMIT_TYPEHASH() (#158) is not in mixedCase
Function IPancakeSwapPair.MINIMUM_LIQUIDITY() (#175) is not in mixedCase
Function IPancakeSwapRouter.WETH() (#195) is not in mixedCase
Parameter Rescuer.setContractAddress(address)._contractAddress (#386) is not in mixedCase
Variable Rescuer.Owner (#379) is not in mixedCase
Parameter Entity.setAutoLiquidityReceiver(address)._autoLiquidityReceiver (#541) is not in mixedCase
Parameter Entity.setTreasuryReceiver(address)._treasuryReceiver (#545) is not in mixedCase
Parameter Entity.setEntityInsuranceFundReceiver(address)._entityInsuranceFundReceiver (#549) is not in mixedCase
Parameter Entity.setBlackhole(address)._blackhole (#553) is not in mixedCase
Parameter Entity.setLottery(address)._lottery (#557) is not in mixedCase
Parameter Entity.setFoundation(address)._foundation (#561) is not in mixedCase
Parameter Entity.setTip(address)._tip (#565) is not in mixedCase
Parameter Entity.setAutoRebase(bool)._flag (#886) is not in mixedCase
Parameter Entity.setAutoAddLiquidity(bool)._flag (#895) is not in mixedCase
Parameter Entity.checkFeeExempt(address)._addr (#958) is not in mixedCase
Parameter Entity.setFeeReceivers(address,address,address,address,address,address,address)._autoLiquidityReceiver (#978) is not in mixedCase
Parameter Entity.setFeeReceivers(address,address,address,address,address,address,address)._treasuryReceiver (#979) is not in mixedCase
Parameter Entity.setFeeReceivers(address,address,address,address,address,address,address)._entityInsuranceFundReceiver (#980) is not in mixedCase
Parameter Entity.setFeeReceivers(address,address,address,address,address,address,address)._blackhole (#981) is not in mixedCase
Parameter Entity.setFeeReceivers(address,address,address,address,address,address,address)._lottery (#982) is not in mixedCase
Parameter Entity.setFeeReceivers(address,address,address,address,address,address,address)._tip (#983) is not in mixedCase
Parameter Entity.setFeeReceivers(address,address,address,address,address,address,address)._foundation (#984) is not in mixedCase
Parameter Entity.setWhitelist(address)._addr (#1005) is not in mixedCase
Parameter Entity.setBotBlacklist(address,bool)._botAddress (#1009) is not in mixedCase
Parameter Entity.setBotBlacklist(address,bool)._flag (#1009) is not in mixedCase
Parameter Entity.setPairAddress(address)._pairAddress (#1014) is not in mixedCase
Parameter Entity.setLP(address)._address (#1018) is not in mixedCase
Variable Entity._name (#436) is not in mixedCase
Variable Entity._symbol (#437) is not in mixedCase
Variable Entity._decimals (#438) is not in mixedCase
Variable Entity._isFeeExempt (#441) is not in mixedCase
Variable Entity.DEAD (#469) is not in mixedCase
Variable Entity.ZERO (#470) is not in mixedCase
Variable Entity._autoRebase (#495) is not in mixedCase
Variable Entity._autoAddLiquidity (#496) is not in mixedCase
Variable Entity._initRebaseStartTime (#497) is not in mixedCase
Variable Entity._lastRebasedTime (#498) is not in mixedCase
Variable Entity._lastAddLiquidityTime (#499) is not in mixedCase
Variable Entity._totalSupply (#500) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IPancakeSwapRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#200) is too similar to IPancakeSwapRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#201)
Prevent variables from having similar names.
Additional information: link
Entity.DEAD (#469) should be constant
Entity.ZERO (#470) should be constant
Entity._decimals (#438) should be constant
Entity._name (#436) should be constant
Entity._symbol (#437) should be constant
Entity.blackholeFee (#459) should be constant
Entity.entityInsuranceFundFee (#457) should be constant
Entity.feeDenominator (#467) should be constant
Entity.foundationFee (#461) should be constant
Entity.liquidityFee (#455) should be constant
Entity.lotteryFee (#460) should be constant
Entity.sellFee (#458) should be constant
Entity.swapEnabled (#480) should be constant
Entity.tipFee (#462) should be constant
Entity.treasuryFee (#456) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
owner() should be declared external:
- Ownable.owner() (#353-355)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#366-368)
setContractAddress(address) should be declared external:
- Rescuer.setContractAddress(address) (#386-391)
name() should be declared external:
- ERC20Detailed.name() (#416-418)
symbol() should be declared external:
- ERC20Detailed.symbol() (#420-422)
decimals() should be declared external:
- ERC20Detailed.decimals() (#424-426)
setAutoLiquidityReceiver(address) should be declared external:
- Entity.setAutoLiquidityReceiver(address) (#541-543)
setTreasuryReceiver(address) should be declared external:
- Entity.setTreasuryReceiver(address) (#545-547)
setEntityInsuranceFundReceiver(address) should be declared external:
- Entity.setEntityInsuranceFundReceiver(address) (#549-551)
setBlackhole(address) should be declared external:
- Entity.setBlackhole(address) (#553-555)
setLottery(address) should be declared external:
- Entity.setLottery(address) (#557-559)
setFoundation(address) should be declared external:
- Entity.setFoundation(address) (#561-563)
setTip(address) should be declared external:
- Entity.setTip(address) (#565-567)
getLiquidityBacking(uint256) should be declared external:
- Entity.getLiquidityBacking(uint256) (#995-1003)
setPairAddress(address) should be declared external:
- Entity.setPairAddress(address) (#1014-1016)
transfer(address,uint256) should be declared external:
- Rescue.transfer(address,uint256) (#1042)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 5% buy tax and 6% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d PancakeSwap liquidity is low.
Average 30d PancakeSwap volume is low.
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 token on CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to find KYC or doxxing proof
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
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
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
Token is relatively young, but twitter if very old (probably it's fake).
Telegram account link seems to be invalid
Twitter account has less than 100 followers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account