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...)
RunEarner.swapBack() (#902-944) sends eth to arbitrary user
Dangerous calls:
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(treasuryFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#928-933)
- (success,None) = address(insuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(insuranceFundFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#934-939)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in RunEarner._transferFrom(address,address,uint256) (#784-827):
External calls:
- rebase() (#796)
- pairContract.sync() (#743)
- addLiquidity() (#800)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#879-885)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#890-897)
- swapBack() (#804)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#916-922)
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(treasuryFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#928-933)
- (success,None) = address(insuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(insuranceFundFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#934-939)
- distributor.deposit{value: amountETHToTreasuryAndSIF.mul(gmtWbnbFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#941-943)
External calls sending eth:
- addLiquidity() (#800)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#890-897)
- swapBack() (#804)
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(treasuryFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#928-933)
- (success,None) = address(insuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(insuranceFundFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#934-939)
- distributor.deposit{value: amountETHToTreasuryAndSIF.mul(gmtWbnbFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#941-943)
State variables written after the call(s):
- _gonBalances[sender] = _gonBalances[sender].sub(gonAmount) (#808)
- _gonBalances[recipient] = _gonBalances[recipient].add(gonAmountReceived) (#812-814)
- gonAmountReceived = takeFee(sender,recipient,gonAmount) (#809-811)
- _gonBalances[autoBurn] = _gonBalances[autoBurn].add(gonAmount.div(feeDenominator).mul(autoBurnFee)) (#844-846)
- _gonBalances[address(this)] = _gonBalances[address(this)].add(gonAmount.div(feeDenominator).mul(_treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))) (#847-849)
- _gonBalances[autoLiquidityReceiver] = _gonBalances[autoLiquidityReceiver].add(gonAmount.div(feeDenominator).mul(liquidityFee)) (#850-852)
- swapBack() (#804)
- inSwap = true (#649)
- inSwap = false (#651)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#468-494) ignores return value by GMT.transfer(shareholder,reward) (#476)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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)
RunEarner.swapBack().success (#928) is written in both
(success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(treasuryFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#928-933)
(success,None) = address(insuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(insuranceFundFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#934-939)
Fix or remove the writes.
Additional information: link
Reentrancy in RunEarner.addLiquidity() (#858-900):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#879-885)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#890-897)
External calls sending eth:
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#890-897)
State variables written after the call(s):
- _lastAddLiquidityTime = block.timestamp (#899)
Reentrancy in RunEarner.constructor() (#672-712):
External calls:
- pair = IPancakeSwapFactory(router.factory()).createPair(router.WETH(),address(this)) (#679-682)
State variables written after the call(s):
- DividendReceiver = address(distributor) (#693)
- _allowedFragments[address(this)][address(router)] = uint256(- 1) (#689)
- _autoAddLiquidity = true (#706)
- _autoRebase = false (#705)
- _gonBalances[treasuryReceiver] = TOTAL_GONS (#701)
- _gonsPerFragment = TOTAL_GONS.div(_totalSupply) (#702)
- _initRebaseStartTime = block.timestamp (#703)
- _isFeeExempt[treasuryReceiver] = true (#707)
- _isFeeExempt[address(this)] = true (#708)
- _lastRebasedTime = block.timestamp (#704)
- _transferOwnership(treasuryReceiver) (#710)
- _owner = newOwner (#566)
- _totalSupply = INITIAL_FRAGMENTS_SUPPLY (#700)
- autoBurn = 0x000000000000000000000000000000000000dEaD (#686)
- autoLiquidityReceiver = 0xd4F9e6874650EEBD9989B0C42dFCb35df2C26Fb4 (#684)
- distributor = new DividendDistributor(0x10ED43C718714eb63d5aA57B78B54704E256024E) (#692)
- insuranceFundReceiver = 0x363db7D7c5Df33658Bf44EC786157737535DE175 (#687)
- isDividendExempt[msg.sender] = true (#695)
- isDividendExempt[pair] = true (#696)
- isDividendExempt[address(this)] = true (#697)
- isDividendExempt[DEAD] = true (#698)
- pairContract = IPancakeSwapPair(pair) (#690)
- treasuryReceiver = 0x7cF0E9C4EbA47059A942E4f07Efb1B94B8d8286d (#685)
Reentrancy in DividendDistributor.deposit() (#419-437):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#426-431)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#436)
- totalDividends = totalDividends.add(amount) (#435)
Reentrancy in DividendDistributor.distributeDividend(address) (#468-494):
External calls:
- GMT.transfer(shareholder,reward) (#476)
- GMT.approve(address(0x10ED43C718714eb63d5aA57B78B54704E256024E),otherreward) (#477)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(otherreward,0,path,shareholder,block.timestamp) (#482-488)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#490)
Reentrancy in DividendDistributor.setShare(address,uint256) (#403-417):
External calls:
- distributeDividend(shareholder) (#405)
- GMT.transfer(shareholder,reward) (#476)
- GMT.approve(address(0x10ED43C718714eb63d5aA57B78B54704E256024E),otherreward) (#477)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(otherreward,0,path,shareholder,block.timestamp) (#482-488)
State variables written after the call(s):
- addShareholder(shareholder) (#409)
- shareholderIndexes[shareholder] = shareholders.length (#516)
- removeShareholder(shareholder) (#411)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#522)
- addShareholder(shareholder) (#409)
- shareholders.push(shareholder) (#517)
- removeShareholder(shareholder) (#411)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#521)
- shareholders.pop() (#523)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#414)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in RunEarner._transferFrom(address,address,uint256) (#784-827):
External calls:
- rebase() (#796)
- pairContract.sync() (#743)
- addLiquidity() (#800)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#879-885)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#890-897)
- swapBack() (#804)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#916-922)
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(treasuryFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#928-933)
- (success,None) = address(insuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(insuranceFundFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#934-939)
- distributor.deposit{value: amountETHToTreasuryAndSIF.mul(gmtWbnbFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#941-943)
- distributor.setShare(sender,balanceOf(sender)) (#816)
- distributor.setShare(recipient,balanceOf(recipient)) (#817)
- distributor.process(distributorGas) (#819)
External calls sending eth:
- addLiquidity() (#800)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#890-897)
- swapBack() (#804)
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(treasuryFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#928-933)
- (success,None) = address(insuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(insuranceFundFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#934-939)
- distributor.deposit{value: amountETHToTreasuryAndSIF.mul(gmtWbnbFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#941-943)
Event emitted after the call(s):
- Transfer(sender,recipient,gonAmountReceived.div(_gonsPerFragment)) (#821-825)
Reentrancy in RunEarner._transferFrom(address,address,uint256) (#784-827):
External calls:
- rebase() (#796)
- pairContract.sync() (#743)
- addLiquidity() (#800)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#879-885)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#890-897)
- swapBack() (#804)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#916-922)
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(treasuryFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#928-933)
- (success,None) = address(insuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(insuranceFundFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#934-939)
- distributor.deposit{value: amountETHToTreasuryAndSIF.mul(gmtWbnbFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#941-943)
External calls sending eth:
- addLiquidity() (#800)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#890-897)
- swapBack() (#804)
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(treasuryFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#928-933)
- (success,None) = address(insuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(insuranceFundFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#934-939)
- distributor.deposit{value: amountETHToTreasuryAndSIF.mul(gmtWbnbFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#941-943)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount.div(_gonsPerFragment)) (#854)
- gonAmountReceived = takeFee(sender,recipient,gonAmount) (#809-811)
Reentrancy in RunEarner.constructor() (#672-712):
External calls:
- pair = IPancakeSwapFactory(router.factory()).createPair(router.WETH(),address(this)) (#679-682)
Event emitted after the call(s):
- OwnershipTransferred(_owner,newOwner) (#565)
- _transferOwnership(treasuryReceiver) (#710)
- Transfer(address(0x0),treasuryReceiver,_totalSupply) (#711)
Reentrancy in RunEarner.rebase() (#714-746):
External calls:
- pairContract.sync() (#743)
Event emitted after the call(s):
- LogRebase(epoch,_totalSupply) (#745)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#464-466) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#465)
RunEarner.rebase() (#714-746) uses timestamp for comparisons
Dangerous comparisons:
- i < times (#734)
RunEarner.shouldRebase() (#972-979) uses timestamp for comparisons
Dangerous comparisons:
- _autoRebase && (_totalSupply < MAX_SUPPLY) && msg.sender != pair && ! inSwap && block.timestamp >= (_lastRebasedTime + 300) (#973-978)
RunEarner.shouldAddLiquidity() (#981-987) uses timestamp for comparisons
Dangerous comparisons:
- _autoAddLiquidity && ! inSwap && msg.sender != pair && block.timestamp >= (_lastAddLiquidityTime + 172800) (#982-986)
Avoid relying on block.timestamp.
Additional information: link
RunEarner.isContract(address) (#1147-1151) uses assembly
- INLINE ASM (#1149)
Do not use evm assembly.
Additional information: link
DividendDistributor.process(uint256) (#439-462) has costly operations inside a loop:
- currentIndex = 0 (#450)
DividendDistributor.distributeDividend(address) (#468-494) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#473)
DividendDistributor.process(uint256) (#439-462) has costly operations inside a loop:
- currentIndex ++ (#459)
Use a local variable to hold the loop computation result.
Additional information: link
SafeMath.mod(uint256,uint256) (#108-111) is never used and should be removed
SafeMathInt.abs(int256) (#53-56) is never used and should be removed
SafeMathInt.add(int256,int256) (#47-51) is never used and should be removed
SafeMathInt.div(int256,int256) (#35-39) is never used and should be removed
SafeMathInt.mul(int256,int256) (#27-33) is never used and should be removed
SafeMathInt.sub(int256,int256) (#41-45) is never used and should be removed
Remove unused functions.
Additional information: link
RunEarner.totalFee (#625-628) is set pre-construction with a non-constant function or state variable:
- liquidityFee.add(treasuryFee).add(gmtWbnbFee).add(autoBurnFee).add(insuranceFundFee)
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 (#21) 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 RunEarner.swapBack() (#902-944):
- (success) = address(treasuryReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(treasuryFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#928-933)
- (success,None) = address(insuranceFundReceiver).call{gas: 30000,value: amountETHToTreasuryAndSIF.mul(insuranceFundFee).div(treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))}() (#934-939)
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() (#158) is not in mixedCase
Function IPancakeSwapPair.PERMIT_TYPEHASH() (#159) is not in mixedCase
Function IPancakeSwapPair.MINIMUM_LIQUIDITY() (#176) is not in mixedCase
Function IPancakeSwapRouter.WETH() (#196) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#398) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#398) is not in mixedCase
Variable DividendDistributor._token (#352) is not in mixedCase
Variable DividendDistributor.GMT (#360) is not in mixedCase
Parameter RunEarner.setAutoRebase(bool)._flag (#995) is not in mixedCase
Parameter RunEarner.setAutoAddLiquidity(bool)._flag (#1004) is not in mixedCase
Parameter RunEarner.checkFeeExempt(address)._addr (#1067) is not in mixedCase
Parameter RunEarner.setDistributionCriteria(uint256,uint256)._minPeriod (#1082) is not in mixedCase
Parameter RunEarner.setDistributionCriteria(uint256,uint256)._minDistribution (#1082) is not in mixedCase
Parameter RunEarner.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#1107) is not in mixedCase
Parameter RunEarner.setFeeReceivers(address,address,address)._treasuryReceiver (#1108) is not in mixedCase
Parameter RunEarner.setFeeReceivers(address,address,address)._insuranceFundReceiver (#1109) is not in mixedCase
Parameter RunEarner.setWhitelist(address)._addr (#1126) is not in mixedCase
Parameter RunEarner.setBotBlacklist(address,bool)._botAddress (#1130) is not in mixedCase
Parameter RunEarner.setBotBlacklist(address,bool)._flag (#1130) is not in mixedCase
Parameter RunEarner.setLP(address)._address (#1135) is not in mixedCase
Variable RunEarner._isFeeExempt (#606) is not in mixedCase
Variable RunEarner.DEAD (#631) is not in mixedCase
Variable RunEarner.ZERO (#632) is not in mixedCase
Variable RunEarner.DividendReceiver (#639) is not in mixedCase
Variable RunEarner._autoRebase (#659) is not in mixedCase
Variable RunEarner._autoAddLiquidity (#660) is not in mixedCase
Variable RunEarner._initRebaseStartTime (#661) is not in mixedCase
Variable RunEarner._lastRebasedTime (#662) is not in mixedCase
Variable RunEarner._lastAddLiquidityTime (#663) is not in mixedCase
Variable RunEarner._totalSupply (#664) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IPancakeSwapRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#201) is too similar to IPancakeSwapRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#202)
Prevent variables from having similar names.
Additional information: link
RunEarner.constructor() (#672-712) uses literals with too many digits:
- autoBurn = 0x000000000000000000000000000000000000dEaD (#686)
RunEarner.slitherConstructorVariables() (#598-1155) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#631)
RunEarner.slitherConstructorVariables() (#598-1155) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#632)
RunEarner.slitherConstructorVariables() (#598-1155) uses literals with too many digits:
- distributorGas = 2500000 (#640)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#25) is never used in SafeMathInt (#23-57)
Remove unused state variables.
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#376) should be constant
RunEarner.DEAD (#631) should be constant
RunEarner.ZERO (#632) should be constant
RunEarner.autoBurnFee (#624) should be constant
RunEarner.feeDenominator (#629) should be constant
RunEarner.gmtWbnbFee (#622) should be constant
RunEarner.insuranceFundFee (#623) should be constant
RunEarner.liquidityFee (#620) should be constant
RunEarner.swapEnabled (#643) should be constant
RunEarner.treasuryFee (#621) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
owner() should be declared external:
- Ownable.owner() (#541-543)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#554-557)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#559-561)
name() should be declared external:
- ERC20Detailed.name() (#585-587)
symbol() should be declared external:
- ERC20Detailed.symbol() (#589-591)
decimals() should be declared external:
- ERC20Detailed.decimals() (#593-595)
getLiquidityBacking(uint256) should be declared external:
- RunEarner.getLiquidityBacking(uint256) (#1116-1124)
Use the external attribute for functions never called from the contract.
Additional information: link
RunEarner.rebase() (#714-746) performs a multiplication on the result of a division:
-times = deltaTime.div(300) (#720)
-epoch = times.mul(5) (#721)
RunEarner.rebase() (#714-746) performs a multiplication on the result of a division:
-times = deltaTime.div(300) (#720)
-_lastRebasedTime = _lastRebasedTime.add(times.mul(300)) (#741)
RunEarner.takeFee(address,address,uint256) (#829-856) performs a multiplication on the result of a division:
-feeAmount = gonAmount.div(feeDenominator).mul(_totalFee) (#842)
RunEarner.takeFee(address,address,uint256) (#829-856) performs a multiplication on the result of a division:
-_gonBalances[autoBurn] = _gonBalances[autoBurn].add(gonAmount.div(feeDenominator).mul(autoBurnFee)) (#844-846)
RunEarner.takeFee(address,address,uint256) (#829-856) performs a multiplication on the result of a division:
-_gonBalances[address(this)] = _gonBalances[address(this)].add(gonAmount.div(feeDenominator).mul(_treasuryFee.add(gmtWbnbFee).add(insuranceFundFee))) (#847-849)
RunEarner.takeFee(address,address,uint256) (#829-856) performs a multiplication on the result of a division:
-_gonBalances[autoLiquidityReceiver] = _gonBalances[autoLiquidityReceiver].add(gonAmount.div(feeDenominator).mul(liquidityFee)) (#850-852)
RunEarner.getLiquidityBacking(uint256) (#1116-1124) performs a multiplication on the result of a division:
-liquidityBalance = _gonBalances[pair].div(_gonsPerFragment) (#1121)
-accuracy.mul(liquidityBalance.mul(2)).div(getCirculatingSupply()) (#1122-1123)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#468-494):
External calls:
- GMT.transfer(shareholder,reward) (#476)
- GMT.approve(address(0x10ED43C718714eb63d5aA57B78B54704E256024E),otherreward) (#477)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(otherreward,0,path,shareholder,block.timestamp) (#482-488)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#491)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#492)
Reentrancy in DividendDistributor.process(uint256) (#439-462):
External calls:
- distributeDividend(shareholders[currentIndex]) (#454)
- GMT.transfer(shareholder,reward) (#476)
- GMT.approve(address(0x10ED43C718714eb63d5aA57B78B54704E256024E),otherreward) (#477)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(otherreward,0,path,shareholder,block.timestamp) (#482-488)
State variables written after the call(s):
- currentIndex ++ (#459)
Reentrancy in DividendDistributor.setShare(address,uint256) (#403-417):
External calls:
- distributeDividend(shareholder) (#405)
- GMT.transfer(shareholder,reward) (#476)
- GMT.approve(address(0x10ED43C718714eb63d5aA57B78B54704E256024E),otherreward) (#477)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(otherreward,0,path,shareholder,block.timestamp) (#482-488)
State variables written after the call(s):
- shares[shareholder].amount = amount (#415)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#416)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#468-494) ignores return value by GMT.approve(address(0x10ED43C718714eb63d5aA57B78B54704E256024E),otherreward) (#477)
RunEarner.addLiquidity() (#858-900) ignores return value by router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#890-897)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#398-401) should emit an event for:
- minPeriod = _minPeriod (#399)
- minDistribution = _minDistribution (#400)
Emit an event for critical parameter changes.
Additional information: link
RunEarner.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#1107) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#1111)
RunEarner.setFeeReceivers(address,address,address)._treasuryReceiver (#1108) lacks a zero-check on :
- treasuryReceiver = _treasuryReceiver (#1112)
RunEarner.setFeeReceivers(address,address,address)._insuranceFundReceiver (#1109) lacks a zero-check on :
- insuranceFundReceiver = _insuranceFundReceiver (#1113)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#468-494) has external calls inside a loop: GMT.transfer(shareholder,reward) (#476)
DividendDistributor.distributeDividend(address) (#468-494) has external calls inside a loop: GMT.approve(address(0x10ED43C718714eb63d5aA57B78B54704E256024E),otherreward) (#477)
DividendDistributor.distributeDividend(address) (#468-494) has external calls inside a loop: path[1] = router.WETH() (#481)
DividendDistributor.distributeDividend(address) (#468-494) has external calls inside a loop: router.swapExactTokensForETHSupportingFeeOnTransferTokens(otherreward,0,path,shareholder,block.timestamp) (#482-488)
Favor pull over push strategy for external calls.
Additional information: link
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 Telegram and Twitter accounts