Octaplex is creating a Network functioning across the borders of blockchains. We are acquiring partnerships with other projects to enable a safe and beneficial ecosystem for everyone participating. The network is backed by bringing novel ideas into the popular frictionless yield concept, taking it to the next level. By creating an expandable and customisable reward system, we incentivise the holding of our token. Through our dApp, holders have access to an expanding list of reward options that they can select simultaneously and customise to suit their portfolio. They receive random airdrops, lottery multipliers on purchases and will reap the benefits of our price stabilising mechanics as the Octaplex Network expands.
Through cooperation within the network, we create exposure to a variety of projects and businesses, driving the multi-token reward system that Octaplex holders receive by simply holding $PLX tokens in their wallets
The Future of Octaplex Network will be a multichain one, through the development of our bridges, creating an interoperable and safe ecosystem connecting high quality projects into a network of mutual support and growth. We are oriented at mutual co-operation instead of the past competition driven mindset throughout the markets. We wish to enable all our partners to be able to share their resources, assistance and information to give birth to new ideas and make our paths of development friendlier and more efficient.
Octaplex.SendBNBfromContract(uint256,address) (#1189-1194) sends eth to arbitrary user
Dangerous calls:
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Octaplex.random(uint256) (#1124-1130) uses a weak PRNG: "randomnumber = uint256(keccak256(bytes)(abi.encodePacked(block.timestamp,msg.sender,nonce))) % range (#1126)"
Do not use block.timestamp, now or blockhash as a source of randomness
Additional information: link
Reentrancy in Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32) (#1534-1561):
External calls:
- CheckforWork() (#1536)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
External calls sending eth:
- CheckforWork() (#1536)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
State variables written after the call(s):
- _RewardTokens[msg.sender].Token1 = Token1 (#1546)
- _RewardTokens[msg.sender].Token2 = Token2 (#1547)
- _RewardTokens[msg.sender].Token3 = Token3 (#1548)
- _RewardTokens[msg.sender].Token4 = Token4 (#1549)
- _RewardTokens[msg.sender].Token5 = Token5 (#1550)
- _RewardTokens[msg.sender].Token6 = Token6 (#1551)
- _RewardTokens[msg.sender].Slice1 = Slice1 (#1552)
- _RewardTokens[msg.sender].Slice2 = Slice2 (#1553)
- _RewardTokens[msg.sender].Slice3 = Slice3 (#1554)
- _RewardTokens[msg.sender].Slice4 = Slice4 (#1555)
- _RewardTokens[msg.sender].Slice5 = Slice5 (#1556)
- _RewardTokens[msg.sender].Slice6 = Slice6 (#1557)
- _SplitTokenRewards[msg.sender] = true (#1559)
Reentrancy in Octaplex.ChooseSinglePayoutToken(uint32) (#1527-1532):
External calls:
- CheckforWork() (#1527)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
External calls sending eth:
- CheckforWork() (#1527)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
State variables written after the call(s):
- _RewardTokens[msg.sender].Token1 = PayoutTokenNumber (#1529)
- _RewardTokens[msg.sender].Slice1 = 100 (#1530)
- _SplitTokenRewards[msg.sender] = false (#1531)
Reentrancy in Octaplex.ClaimMyRewards() (#1670-1677):
External calls:
- CheckforWork() (#1670)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
External calls sending eth:
- CheckforWork() (#1670)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
State variables written after the call(s):
- _CalculateSpecificReward(msg.sender) (#1672)
- HolderPotBNB -= NewEarnings (#1650)
- _CalculateSpecificReward(msg.sender) (#1672)
- _LastRewardCycle[holder] = Rewardcycle (#1640)
- _CalculateSpecificReward(msg.sender) (#1672)
- _PrevBalance[holder] = __balanceOf[holder] (#1645)
- _CalculateSpecificReward(msg.sender) (#1672)
- _earnings[holder] += NewEarnings (#1652)
- _CalculateSpecificReward(msg.sender) (#1672)
- claimableBNBearnings += NewEarnings (#1651)
Reentrancy in Octaplex.ClaimMyRewards() (#1670-1677):
External calls:
- ClaimRewards(msg.sender) (#1676)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- CheckforWork() (#1670)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
External calls sending eth:
- ClaimRewards(msg.sender) (#1676)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- CheckforWork() (#1670)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
State variables written after the call(s):
- ClaimRewards(msg.sender) (#1676)
- _LastPayout[receiver] = block.timestamp (#1752)
- ClaimRewards(msg.sender) (#1676)
- _earnings[receiver] = 0 (#1756)
- _earnings[receiver] = amountBNB (#1846)
- ClaimRewards(msg.sender) (#1676)
- claimableBNBearnings -= amountBNB (#1755)
- claimableBNBearnings += amountBNB (#1848)
- ClaimRewards(msg.sender) (#1676)
- distributedRewards += dist - amountBNB (#1847)
Reentrancy in Octaplex.ClaimRewards(address) (#1750-1852):
External calls:
- _swapBNBforChosenTokenandPayout(promotokenBNB,PayoutTokenList[RewardTokenoftheWeek],receiver) (#1760)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- _swapBNBforChosenTokenandPayout(amountBNB,PayoutTokenContract,receiver) (#1784)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- SendBNBfromContract(BNBslice,receiver) (#1830)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _swapBNBforChosenTokenandPayout(BNBslice,PayoutTokenContract_scope_0,receiver) (#1838)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
State variables written after the call(s):
- _earnings[receiver] = amountBNB (#1846)
- claimableBNBearnings += amountBNB (#1848)
Reentrancy in Octaplex.RefundGas() (#501-520):
External calls:
- SendBNBfromContract(GasUsed,msg.sender) == false (#508)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- GasPotBNB += GasUsed (#509)
Reentrancy in Octaplex.RefundGas() (#501-520):
External calls:
- SendBNBfromContract(GasUsed,msg.sender) == false (#515)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- BuybackPotBNB += GasUsed (#516)
Reentrancy in Octaplex.WorkHelper(uint32) (#1013-1017):
External calls:
- doWork(NextTask) (#1016)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- RefundGas() (#1013)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- doWork(NextTask) (#1016)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- RefundGas() (#1013)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- doWork(NextTask) (#1016)
- BuybackPotBNB -= amountBNB (#1917)
- BuybackPotBNB += amountBNB (#1919)
- BuybackPotBNB -= GasUsed (#514)
- BuybackPotBNB += GasUsed (#516)
- doWork(NextTask) (#1016)
- GasPotBNB -= GasUsed (#507)
- GasPotBNB += GasUsed (#509)
Reentrancy in Octaplex._DistributeRewards(uint32) (#1714-1749):
External calls:
- ClaimRewards(recipient) (#1728)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
State variables written after the call(s):
- DistHolderPos ++ (#1742)
- DistHolderPos = 0 (#1745)
- _LastPayout[recipient] = current_time (#1735)
- _earnings[recipient] = 0 (#1737)
Reentrancy in Octaplex._PayTeam() (#688-715):
External calls:
- SendBNBfromContract(MarketingBNB,MarketingWallet) == true (#690)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- MarketingBNB = 0 (#691)
Reentrancy in Octaplex.doBuyback() (#1907-1941):
External calls:
- _swapBNBforChosenTokenandPayout(amountBNB,address(this),MainWallet) == false (#1918)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
State variables written after the call(s):
- BuybackPotBNB += amountBNB (#1919)
Reentrancy in Octaplex.doWork(uint32) (#1019-1060):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- sendLiquidity() (#1028)
- LQPotBNB -= BNB (#979)
- sendLiquidity() (#1028)
- LQPotToken -= TKN (#978)
- sendLiquidity() (#1028)
- __allowances[_owner][_spender] += _value (#1145)
Reentrancy in Octaplex.doWork(uint32) (#1019-1060):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _DistributeRewards(N_perTransfer) (#1048)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _DistributeRewards(N_perTransfer) (#1048)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- AirdropPayout() == false (#1053)
- AirdropPot -= payoutperwinner (#1881)
- _DistributeRewards(N_perTransfer) (#1048)
- HolderPotBNB += temp (#1738)
- AirdropPayout() == false (#1053)
- __balanceOf[address(this)] -= payoutperwinner (#1883)
- __balanceOf[winner] += payoutperwinner (#1884)
Reentrancy in Octaplex.doWork(uint32) (#1019-1060):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _DistributeRewards(N_perTransfer) (#1048)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- doBuyback() (#1054)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _DistributeRewards(N_perTransfer) (#1048)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- doBuyback() (#1054)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- doBuyback() (#1054)
- BuybackPotBNB -= amountBNB (#1917)
- BuybackPotBNB += amountBNB (#1919)
- doBuyback() (#1054)
- __balanceOf[account] -= amount (#1467)
- __balanceOf[sender] = senderBalance - amount (#911)
- __balanceOf[recipient] += amount (#913)
- doBuyback() (#1054)
- __totalSupply -= amount (#1469)
Reentrancy in Octaplex.sendLiquidity() (#971-983):
External calls:
- (TKN,BNB) = _addLiquidityFromContract(LQPotToken,LQPotBNB) (#975)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
State variables written after the call(s):
- LQPotBNB -= BNB (#979)
- LQPotToken -= TKN (#978)
Reentrancy in Octaplex.setMyAutoPayout(bool) (#1679-1683):
External calls:
- CheckforWork() (#1679)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
External calls sending eth:
- CheckforWork() (#1679)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
State variables written after the call(s):
- _AutoPayoutEnabled[msg.sender] = Checked (#1681)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Octaplex.RefundGas() (#501-520) uses a dangerous strict equality:
- SendBNBfromContract(GasUsed,msg.sender) == false (#508)
Octaplex.RefundGas() (#501-520) uses a dangerous strict equality:
- SendBNBfromContract(GasUsed,msg.sender) == false (#515)
Octaplex._PayTeam() (#688-715) uses a dangerous strict equality:
- SendBNBfromContract(MarketingBNB,MarketingWallet) == true (#690)
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.
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) performs a multiplication on the result of a division:
-tokenportionofselltax = Sell * 205 / 1000 (#1248)
-AirdropPot += tokenportionofselltax * 366 / 10000 (#1260)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) performs a multiplication on the result of a division:
-tokenportionofselltax = Sell * 205 / 1000 (#1248)
-RafflePot += tokenportionofselltax * 122 / 10000 (#1261)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) performs a multiplication on the result of a division:
-tokenportionofselltax = Sell * 205 / 1000 (#1248)
-LotteryPot += tokenportionofselltax * 976 / 10000 (#1264)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) performs a multiplication on the result of a division:
-tokenportionofselltax = Sell * 205 / 1000 (#1248)
-LQPotToken += tokenportionofselltax * 8536 / 10000 (#1267)
Octaplex.ClaimRewards(address) (#1750-1852) performs a multiplication on the result of a division:
-slicevalue = amountBNB / 100 (#1814)
-BNBslice = slicevalue * percslice (#1823)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303):
External calls:
- bnbs = _swapTokenForBNB(total + additionalLiquidity / 2 - tokenportionofselltax) (#1275)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
State variables written after the call(s):
- LQPotToken += additionalLiquidity / 2 (#1280)
Reentrancy in Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303):
External calls:
- bnbs = _swapTokenForBNB(total + additionalLiquidity / 2 - tokenportionofselltax) (#1275)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- bnbs = _swapTokenForBNB(total) (#1285)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
State variables written after the call(s):
- BuyTaxTokenPot += Buy (#1296)
- SellTaxTokenPot += Sell (#1297)
Reentrancy in Octaplex.constructor() (#564-604):
External calls:
- _pancakePairAddress = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this),_pancakeRouter.WETH()) (#589)
State variables written after the call(s):
- UpdateRegister(_pancakePairAddress,false) (#590)
- N_holders ++ (#650)
- UpdateRegister(_pancakePairAddress,false) (#590)
- _RewardTokens[recipient].Slice1 = 75 (#654)
- _RewardTokens[recipient].Slice1 = 25 (#655)
- _RewardTokens[recipient].Token1 = 0 (#656)
- _RewardTokens[recipient].Token2 = 1 (#657)
- UpdateRegister(_pancakePairAddress,false) (#590)
- _isregistered[recipient] = true (#645)
- UpdateRegister(_pancakePairAddress,false) (#590)
- investorList.push(recipient) (#644)
Apply the check-effects-interactions pattern.
Additional information: link
Octaplex.CalculateRewards(uint32).N_calculated (#1601) is a local variable never initialized
Octaplex._DistributeRewards(uint32).runs (#1715) is a local variable never initialized
Octaplex._transferWithTax(address,address,uint256).TaxFree (#801) is a local variable never initialized
Octaplex.AirdropPayout().Dropsmade (#1871) is a local variable never initialized
Octaplex.ClaimRewards(address).pie (#1794) is a local variable never initialized
Octaplex._transferWithTax(address,address,uint256).AdditionalTax (#838) is a local variable never initialized
Octaplex.CalculateRewards(uint32).currenttry (#1600) is a local variable never initialized
Octaplex._swapTaxTokenForBNB(uint256,uint256).bnbs (#1243) is a local variable never initialized
Octaplex.AirdropPayout().tries (#1869) is a local variable never initialized
Octaplex.PlayLotto(uint256).winnings (#1105) 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
Octaplex.setMarketingOwnership(address) (#540-544) should emit an event for:
- MarketingWallet = newMarketOwner (#541)
- MarketingWallet = newMarketOwner (#541)
Octaplex.setWorkHelper(address) (#547-551) should emit an event for:
- WorkHelperWallet = newWorkHelper (#548)
- WorkHelperWallet = newWorkHelper (#548)
Octaplex.setMainWallet(address) (#759-768) should emit an event for:
- MainWallet = addr (#763)
- MainWallet = addr (#763)
Emit an event for critical parameter changes.
Additional information: link
Octaplex.addBNBtoHolderPot(uint256) (#1391-1395) should emit an event for:
- HolderPotBNB += amountbnb (#1394)
Octaplex.addBNBtoGasPot(uint256) (#1397-1401) should emit an event for:
- GasPotBNB += amountbnb (#1400)
Octaplex.setNperTransfer(uint32) (#1590-1593) should emit an event for:
- N_perTransfer = N (#1592)
Octaplex.sendAirdrop(uint256,address) (#1698-1706) should emit an event for:
- AirdropPot -= _Tokens (#1704)
Emit an event for critical parameter changes.
Additional information: link
Octaplex.setMarketingOwnership(address).newMarketOwner (#540) lacks a zero-check on :
- MarketingWallet = newMarketOwner (#541)
Octaplex.setWorkHelper(address).newWorkHelper (#547) lacks a zero-check on :
- WorkHelperWallet = newWorkHelper (#548)
Octaplex.setMainWallet(address).addr (#759) lacks a zero-check on :
- MainWallet = addr (#763)
Check that the address is not zero.
Additional information: link
Octaplex.SendBNBfromContract(uint256,address) (#1189-1194) has external calls inside a loop: (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
Octaplex._swapTokenForBNB(uint256) (#1305-1337) has external calls inside a loop: path[1] = _pancakeRouter.WETH() (#1314)
Octaplex._swapTokenForBNB(uint256) (#1305-1337) has external calls inside a loop: (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
Octaplex._addLiquidityFromContract(uint256,uint256) (#1173-1187) has external calls inside a loop: (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
Octaplex._swapBNBforChosenTokenandPayout(uint256,address,address) (#1343-1360) has external calls inside a loop: path[0] = _pancakeRouter.WETH() (#1346)
Octaplex._swapBNBforChosenTokenandPayout(uint256,address,address) (#1343-1360) has external calls inside a loop: _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
Octaplex.ClaimRewards(address) (#1750-1852) has external calls inside a loop: PayoutTokenContract == _pancakeRouter.WETH() (#1771)
Octaplex.ClaimRewards(address) (#1750-1852) has external calls inside a loop: PayoutTokenContract_scope_0 == _pancakeRouter.WETH() (#1828)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in Octaplex.CalculateNRewards(uint32) (#1583-1588):
External calls:
- RefundGas() (#1583)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- CalculateRewards(counts) (#1587)
- HolderPos ++ (#1614)
- HolderPos = 0 (#1621)
- CalculateRewards(counts) (#1587)
- HolderPotBNB -= NewEarnings (#1650)
- CalculateRewards(counts) (#1587)
- HolderPotBNBcalc = 0 (#1622)
- CalculateRewards(counts) (#1587)
- LastRewardCalculationTime = block.timestamp (#1625)
- CalculateRewards(counts) (#1587)
- _CalculatingRewards = false (#1624)
- CalculateRewards(counts) (#1587)
- _LastRewardCycle[holder] = Rewardcycle (#1640)
- CalculateRewards(counts) (#1587)
- _PrevBalance[holder] = __balanceOf[holder] (#1645)
- CalculateRewards(counts) (#1587)
- _earnings[holder] += NewEarnings (#1652)
- CalculateRewards(counts) (#1587)
- claimableBNBearnings += NewEarnings (#1651)
Reentrancy in Octaplex.ClaimMyRewards() (#1670-1677):
External calls:
- ClaimRewards(msg.sender) (#1676)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- CheckforWork() (#1670)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
External calls sending eth:
- ClaimRewards(msg.sender) (#1676)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- CheckforWork() (#1670)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
State variables written after the call(s):
- ClaimRewards(msg.sender) (#1676)
- SingleUntaxedTransfer = true (#1783)
- SingleUntaxedTransfer = true (#1837)
Reentrancy in Octaplex.ClaimRewards(address) (#1750-1852):
External calls:
- _swapBNBforChosenTokenandPayout(promotokenBNB,PayoutTokenList[RewardTokenoftheWeek],receiver) (#1760)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
State variables written after the call(s):
- SingleUntaxedTransfer = true (#1783)
Reentrancy in Octaplex.ClaimRewards(address) (#1750-1852):
External calls:
- _swapBNBforChosenTokenandPayout(promotokenBNB,PayoutTokenList[RewardTokenoftheWeek],receiver) (#1760)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- SendBNBfromContract(BNBslice,receiver) (#1830)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _swapBNBforChosenTokenandPayout(BNBslice,PayoutTokenContract_scope_0,receiver) (#1838)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
State variables written after the call(s):
- SingleUntaxedTransfer = true (#1837)
Reentrancy in Octaplex.ClaimRewards(address) (#1750-1852):
External calls:
- _swapBNBforChosenTokenandPayout(promotokenBNB,PayoutTokenList[RewardTokenoftheWeek],receiver) (#1760)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- _swapBNBforChosenTokenandPayout(amountBNB,PayoutTokenContract,receiver) (#1784)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- SendBNBfromContract(BNBslice,receiver) (#1830)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _swapBNBforChosenTokenandPayout(BNBslice,PayoutTokenContract_scope_0,receiver) (#1838)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
State variables written after the call(s):
- distributedRewards += dist - amountBNB (#1847)
Reentrancy in Octaplex.DistributeRewards(uint32) (#1691-1694):
External calls:
- _DistributeRewards(count) (#1693)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1691)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- _DistributeRewards(count) (#1693)
- SingleUntaxedTransfer = true (#1783)
- SingleUntaxedTransfer = true (#1837)
Reentrancy in Octaplex.WorkHelper(uint32) (#1013-1017):
External calls:
- RefundGas() (#1013)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- NextTask = 0 (#1014)
Reentrancy in Octaplex.WorkHelper(uint32) (#1013-1017):
External calls:
- doWork(NextTask) (#1016)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- RefundGas() (#1013)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- doWork(NextTask) (#1016)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- RefundGas() (#1013)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- doWork(NextTask) (#1016)
- AdminPotBNBcalc = AdminPotBNB (#1572)
- doWork(NextTask) (#1016)
- ModPotBNBcalc = ModPotBNB (#1573)
- doWork(NextTask) (#1016)
- SingleUntaxedTransfer = true (#1175)
- SingleUntaxedTransfer = true (#1311)
- SingleUntaxedTransfer = true (#1916)
- SingleUntaxedTransfer = false (#1185)
- SingleUntaxedTransfer = false (#1335)
- SingleUntaxedTransfer = true (#1783)
- SingleUntaxedTransfer = false (#1301)
- SingleUntaxedTransfer = true (#1837)
Reentrancy in Octaplex._DistributeRewards(uint32) (#1714-1749):
External calls:
- ClaimRewards(recipient) (#1728)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
State variables written after the call(s):
- HolderPotBNB += temp (#1738)
Reentrancy in Octaplex._PayTeam() (#688-715):
External calls:
- SendBNBfromContract(MarketingBNB,MarketingWallet) == true (#690)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- AdminPotBNB = 0 (#697)
Reentrancy in Octaplex._PayTeam() (#688-715):
External calls:
- SendBNBfromContract(MarketingBNB,MarketingWallet) == true (#690)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- SendBNBfromContract(Adminshare,AdminList[pos]) (#700)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- ModPotBNB = 0 (#709)
Reentrancy in Octaplex._addLiquidityFromContract(uint256,uint256) (#1173-1187):
External calls:
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
State variables written after the call(s):
- SingleUntaxedTransfer = false (#1185)
Reentrancy in Octaplex._buyBackTokens(uint256) (#1405-1432):
External calls:
- amounts = _pancakeRouter.swapExactETHForTokens{value: amountBNB}(0,path,MainWallet,block.timestamp) (#1412-1417)
State variables written after the call(s):
- SingleUntaxedTransfer = false (#1430)
- _transfer(MainWallet,address(this),TOKENS) (#1427)
- __balanceOf[sender] = senderBalance - amount (#911)
- __balanceOf[recipient] += amount (#913)
Reentrancy in Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303):
External calls:
- bnbs = _swapTokenForBNB(total + additionalLiquidity / 2 - tokenportionofselltax) (#1275)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
State variables written after the call(s):
- LQPotBNB += extraLQbnb (#1278)
Reentrancy in Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303):
External calls:
- bnbs = _swapTokenForBNB(total + additionalLiquidity / 2 - tokenportionofselltax) (#1275)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- bnbs = _swapTokenForBNB(total) (#1285)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
State variables written after the call(s):
- BuyTaxBNBPot += buybnbs (#1291)
- SellTaxBNBPot += bnbs - buybnbs (#1292)
- SingleUntaxedTransfer = false (#1301)
Reentrancy in Octaplex._swapTokenForBNB(uint256) (#1305-1337):
External calls:
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
State variables written after the call(s):
- SingleUntaxedTransfer = false (#1335)
Reentrancy in Octaplex.constructor() (#564-604):
External calls:
- _pancakePairAddress = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this),_pancakeRouter.WETH()) (#589)
State variables written after the call(s):
- AddTokentoPayoutList(_pancakeRouter.WETH(),BNB) (#594)
- NumberofPayoutTokens ++ (#1482)
- AddTokentoPayoutList(address(this),PLX) (#595)
- NumberofPayoutTokens ++ (#1482)
- AddTokentoPayoutList(_pancakeRouter.WETH(),BNB) (#594)
- PayoutTokenList.push(TokenAddress) (#1480)
- AddTokentoPayoutList(address(this),PLX) (#595)
- PayoutTokenList.push(TokenAddress) (#1480)
- AddTokentoPayoutList(_pancakeRouter.WETH(),BNB) (#594)
- PayoutTokenListNames.push(Name) (#1481)
- AddTokentoPayoutList(address(this),PLX) (#595)
- PayoutTokenListNames.push(Name) (#1481)
- UpdateRegister(_pancakePairAddress,false) (#590)
- _AutoPayoutEnabled[recipient] = true (#649)
- UpdateRegister(_pancakePairAddress,false) (#590)
- _LastPayout[recipient] = block.timestamp (#646)
- UpdateRegister(_pancakePairAddress,false) (#590)
- _SplitTokenRewards[recipient] = true (#653)
- UpdateRegister(_pancakePairAddress,false) (#590)
- _excludedfromTax[recipient] = ExcludedfromTax (#651)
Reentrancy in Octaplex.doWork(uint32) (#1019-1060):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- SingleUntaxedTransfer = true (#1311)
- SingleUntaxedTransfer = false (#1335)
- SingleUntaxedTransfer = false (#1301)
Reentrancy in Octaplex.doWork(uint32) (#1019-1060):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- CalculateRewards(N_perTransfer) (#1035)
- HolderPos ++ (#1614)
- HolderPos = 0 (#1621)
- CalculateRewards(N_perTransfer) (#1035)
- HolderPotBNB -= NewEarnings (#1650)
- CalculateRewards(N_perTransfer) (#1035)
- HolderPotBNBcalc = 0 (#1622)
- CalculateRewards(N_perTransfer) (#1035)
- LastRewardCalculationTime = block.timestamp (#1625)
- sendLiquidity() (#1028)
- SingleUntaxedTransfer = true (#1175)
- SingleUntaxedTransfer = false (#1185)
- CalculateRewards(N_perTransfer) (#1035)
- _CalculatingRewards = false (#1624)
- CalculateRewards(N_perTransfer) (#1035)
- _LastRewardCycle[holder] = Rewardcycle (#1640)
- CalculateRewards(N_perTransfer) (#1035)
- _PrevBalance[holder] = __balanceOf[holder] (#1645)
- CalculateRewards(N_perTransfer) (#1035)
- _earnings[holder] += NewEarnings (#1652)
- CalculateRewards(N_perTransfer) (#1035)
- claimableBNBearnings += NewEarnings (#1651)
Reentrancy in Octaplex.doWork(uint32) (#1019-1060):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- _StartRewardCalculation() (#1040)
- AdminPotBNBcalc = AdminPotBNB (#1572)
- _StartRewardCalculation() (#1040)
- CircSupplycalc = __totalSupply - __balanceOf[address(this)] - __balanceOf[_pancakePairAddress] - __balanceOf[routerAddress] (#1574)
- _StartRewardCalculation() (#1040)
- HolderPotBNBcalc = HolderPotBNB (#1571)
- _StartRewardCalculation() (#1040)
- ModPotBNBcalc = ModPotBNB (#1573)
Reentrancy in Octaplex.doWork(uint32) (#1019-1060):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _DistributeRewards(N_perTransfer) (#1048)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _DistributeRewards(N_perTransfer) (#1048)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- AirdropPayout() == false (#1053)
- Airdrop_timeoflastPayout = currenttime (#1896)
- AirdropPayout() == false (#1053)
- Airdrop_totalPaidOut += payoutperwinner (#1886)
- _DistributeRewards(N_perTransfer) (#1048)
- SingleUntaxedTransfer = true (#1783)
- SingleUntaxedTransfer = true (#1837)
- AirdropPayout() == false (#1053)
- _LastAirdrop[winner] = currenttime (#1885)
- AirdropPayout() == false (#1053)
- nonce ++ (#1127)
Reentrancy in Octaplex.doWork(uint32) (#1019-1060):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _DistributeRewards(N_perTransfer) (#1048)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- doBuyback() (#1054)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _DistributeRewards(N_perTransfer) (#1048)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- doBuyback() (#1054)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
State variables written after the call(s):
- NextTask ++ (#1057)
- NextTask = 0 (#1059)
- doBuyback() (#1054)
- SingleUntaxedTransfer = true (#1916)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Octaplex.CalculateNRewards(uint32) (#1583-1588):
External calls:
- RefundGas() (#1583)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
Event emitted after the call(s):
- RewardsRecalculated() (#1626)
- CalculateRewards(counts) (#1587)
Reentrancy in Octaplex.WorkHelper(uint32) (#1013-1017):
External calls:
- doWork(NextTask) (#1016)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- RefundGas() (#1013)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- doWork(NextTask) (#1016)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- RefundGas() (#1013)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
Event emitted after the call(s):
- Airdrop_(winner,payoutperwinner) (#1887)
- doWork(NextTask) (#1016)
- Approval(_owner,_spender,old + _value) (#1146)
- doWork(NextTask) (#1016)
- Buyback_(tokens,N_holders) (#1931)
- doWork(NextTask) (#1016)
- RewardsRecalculated() (#1626)
- doWork(NextTask) (#1016)
- TokensBurned(amount) (#1472)
- doWork(NextTask) (#1016)
- Transfer(account,deadwallet,amount) (#1471)
- doWork(NextTask) (#1016)
- Transfer(sender,recipient,amount) (#915)
- doWork(NextTask) (#1016)
Reentrancy in Octaplex._buyBackTokens(uint256) (#1405-1432):
External calls:
- amounts = _pancakeRouter.swapExactETHForTokens{value: amountBNB}(0,path,MainWallet,block.timestamp) (#1412-1417)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#915)
- _transfer(MainWallet,address(this),TOKENS) (#1427)
Reentrancy in Octaplex.doWork(uint32) (#1019-1060):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
Event emitted after the call(s):
- Approval(_owner,_spender,old + _value) (#1146)
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
Reentrancy in Octaplex.doWork(uint32) (#1019-1060):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
Event emitted after the call(s):
- Approval(_owner,_spender,old + _value) (#1146)
- sendLiquidity() (#1028)
- RewardsRecalculated() (#1626)
- CalculateRewards(N_perTransfer) (#1035)
Reentrancy in Octaplex.doWork(uint32) (#1019-1060):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _DistributeRewards(N_perTransfer) (#1048)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _DistributeRewards(N_perTransfer) (#1048)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
Event emitted after the call(s):
- Airdrop_(winner,payoutperwinner) (#1887)
- AirdropPayout() == false (#1053)
Reentrancy in Octaplex.doWork(uint32) (#1019-1060):
External calls:
- _swapTaxTokenForBNB(_maxTxAmount,_maxTxAmount) (#1024)
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _DistributeRewards(N_perTransfer) (#1048)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- doBuyback() (#1054)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
External calls sending eth:
- sendLiquidity() (#1028)
- (amountToken,amountETH) = _pancakeRouter.addLiquidityETH{value: bnbamount}(Contract,tokenamount,0,0,address(0),block.timestamp) (#1177-1184)
- _StartRewardCalculation() (#1040)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _DistributeRewards(N_perTransfer) (#1048)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- doBuyback() (#1054)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountBNB}(0,path,address(receiver),block.timestamp) (#1349-1356)
- RefundGas() (#1019)
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
Event emitted after the call(s):
- Buyback_(tokens,N_holders) (#1931)
- doBuyback() (#1054)
- TokensBurned(amount) (#1472)
- doBuyback() (#1054)
- Transfer(account,deadwallet,amount) (#1471)
- doBuyback() (#1054)
- Transfer(sender,recipient,amount) (#915)
- doBuyback() (#1054)
Apply the check-effects-interactions pattern.
Additional information: link
Octaplex.transfer(address,uint256) (#620-629) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(_value > 0 && _value <= balanceOf(msg.sender)) (#621)
Octaplex._PayTeam() (#688-715) uses timestamp for comparisons
Dangerous comparisons:
- SendBNBfromContract(MarketingBNB,MarketingWallet) == true (#690)
- (L > 0) && (AdminPotBNB > 0) (#695)
- (L_scope_0 > 0) && (ModPotBNB > 0) (#707)
Octaplex._transferWithTax(address,address,uint256) (#799-894) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(amount <= _maxTxAmount) (#839)
Octaplex._transfer(address,address,uint256) (#896-917) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(senderBalance >= amount + getReservedTokens()) (#900)
- require(bool)(senderBalance >= amount) (#902)
Octaplex.DistributeSellTax() (#919-959) uses timestamp for comparisons
Dangerous comparisons:
- SellTaxBNBPot > 10000 (#928)
Octaplex.sendLiquidity() (#971-983) uses timestamp for comparisons
Dangerous comparisons:
- (LQPotToken > 1000) && (LQPotBNB >= 1000000000000000000) (#973)
- TKN > 0 (#976)
Octaplex.DistributeBuyTax() (#986-1010) uses timestamp for comparisons
Dangerous comparisons:
- BuyTaxBNBPot > 100 (#988)
Octaplex.doWork(uint32) (#1019-1060) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp - LastRewardCalculationTime > 7200 (#1038)
- HolderPotBNB >= 500000000000000000 (#1039)
Octaplex.getSellSlippage() (#1063-1096) uses timestamp for comparisons
Dangerous comparisons:
- current_time >= launch_time + 4838400 (#1068)
- current_time >= launch_time + 2419200 (#1071)
- current_time >= launch_time + 11232200 (#1074)
- current_time >= launch_time + 604800 (#1077)
- current_time >= launch_time + 259200 (#1080)
- current_time >= launch_time + 86400 (#1083)
- current_time >= launch_time + 14400 (#1086)
- current_time >= launch_time + 60 (#1089)
Octaplex.PlayLotto(uint256) (#1102-1122) uses timestamp for comparisons
Dangerous comparisons:
- random(100) < 5 (#1109)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) uses timestamp for comparisons
Dangerous comparisons:
- __balanceOf[Contract] > total + additionalLiquidity + getReservedTokens() (#1273)
- bnbs > 0 (#1279)
- bnbs > 0 (#1288)
Octaplex._swapTokenForBNB(uint256) (#1305-1337) uses timestamp for comparisons
Dangerous comparisons:
- amounts.length >= 2 (#1329)
Octaplex.addBNBtoHolderPot(uint256) (#1391-1395) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(amountbnb <= getFreeBNBs()) (#1393)
Octaplex.addBNBtoGasPot(uint256) (#1397-1401) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(amountbnb <= getFreeBNBs()) (#1399)
Octaplex._buyBackTokens(uint256) (#1405-1432) uses timestamp for comparisons
Dangerous comparisons:
- amounts[1] > 0 (#1419)
- __balanceOf[MainWallet] >= amounts[1] (#1421)
Octaplex.burnbeforeLaunch(uint256) (#1448-1453) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(__balanceOf[address(this)] >= tokens) (#1450)
Octaplex._burn(address,uint256) (#1455-1475) uses timestamp for comparisons
Dangerous comparisons:
- __totalSupply > burnUntil (#1457)
- __totalSupply > amount (#1458)
- __totalSupply - amount < burnUntil (#1459)
- __balanceOf[account] >= amount (#1464)
Octaplex.CalculateRewards(uint32) (#1595-1634) uses timestamp for comparisons
Dangerous comparisons:
- (CircSupplycalc > 0) && (HolderPotBNBcalc > 0) (#1603)
Octaplex._CalculateSpecificReward(address) (#1636-1660) uses timestamp for comparisons
Dangerous comparisons:
- __balanceOf[holder] < bal (#1642)
- NewEarnings <= HolderPotBNB (#1648)
Octaplex.ClaimMyRewards() (#1670-1677) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(_earnings[msg.sender] > 0,All rewards claimed) (#1673)
- require(bool)(__balanceOf[msg.sender] > 0) (#1674)
Octaplex._DistributeRewards(uint32) (#1714-1749) uses timestamp for comparisons
Dangerous comparisons:
- current_time - _LastPayout[recipient] > 7200 (#1727)
- _earnings[recipient] > 0 (#1732)
- current_time - _LastPayout[recipient] > 15552000 (#1733)
Octaplex.ClaimRewards(address) (#1750-1852) uses timestamp for comparisons
Dangerous comparisons:
- (_earnings[receiver] > 0) && (__balanceOf[receiver] > 0) (#1751)
- BNBslice > amountBNB (#1824)
Octaplex.AirdropPayout() (#1860-1900) uses timestamp for comparisons
Dangerous comparisons:
- (_isLaunched == true) && (currenttime - Airdrop_timeoflastPayout > 18000) && (AirdropPot > 10000000000) (#1862)
- payoutperwinner > _maxTxAmount (#1866)
- currenttime - _LastAirdrop[winner] > 432000 (#1879)
Octaplex.doBuyback() (#1907-1941) uses timestamp for comparisons
Dangerous comparisons:
- __balanceOf[MainWallet] > tokens (#1923)
- (__totalSupply - tokens > burnUntil) (#1928)
Avoid relying on block.timestamp.
Additional information: link
Octaplex.isContract(address) (#633-638) uses assembly
- INLINE ASM (#636)
Octaplex.sliceUint(bytes,uint256) (#1197-1207) uses assembly
- INLINE ASM (#1203-1205)
Do not use evm assembly.
Additional information: link
Octaplex.UpdateRegister(address,bool) (#641-660) compares to a boolean constant:
-_isregistered[recipient] == false (#643)
Octaplex.addtoAdminList(address) (#672-683) compares to a boolean constant:
-_isAdmin[addr] == false (#674)
Octaplex.addtoAdminList(address) (#672-683) compares to a boolean constant:
-_isregistered[addr] == false (#676)
Octaplex._PayTeam() (#688-715) compares to a boolean constant:
-SendBNBfromContract(MarketingBNB,MarketingWallet) == true (#690)
Octaplex.addtoModList(address) (#718-729) compares to a boolean constant:
-_isregistered[addr] == false (#722)
Octaplex.addtoModList(address) (#718-729) compares to a boolean constant:
-_isMod[addr] == false (#720)
Octaplex.removefromModList(address) (#731-738) compares to a boolean constant:
-_isMod[addr] == true (#733)
Octaplex.ExcludefromTax(address) (#743-749) compares to a boolean constant:
-_isregistered[addr] == false (#745)
Octaplex.UndoExcludefromTax(address) (#751-757) compares to a boolean constant:
-_isregistered[addr] == false (#753)
Octaplex.setMainWallet(address) (#759-768) compares to a boolean constant:
-_isregistered[addr] == false (#764)
Octaplex._transferWithTax(address,address,uint256) (#799-894) compares to a boolean constant:
-_isLaunched == false (#892)
Octaplex._transferWithTax(address,address,uint256) (#799-894) compares to a boolean constant:
-_CalculatingRewards == true (#880)
Octaplex._transfer(address,address,uint256) (#896-917) compares to a boolean constant:
-require(bool)(_isLaunched == true) (#907)
Octaplex.doWork(uint32) (#1019-1060) compares to a boolean constant:
-_CalculatingRewards == true (#1034)
Octaplex.doWork(uint32) (#1019-1060) compares to a boolean constant:
-AirdropPayout() == false (#1053)
Octaplex.getSellSlippage() (#1063-1096) compares to a boolean constant:
-_isLaunched == true (#1066)
Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32) (#1534-1561) compares to a boolean constant:
-require(bool)(OutofBounds == false) (#1545)
Octaplex._StartRewardCalculation() (#1568-1581) compares to a boolean constant:
-_CalculatingRewards == false (#1569)
Octaplex.CalculateNRewards(uint32) (#1583-1588) compares to a boolean constant:
-require(bool)(_CalculatingRewards == true) (#1585)
Octaplex.CalculateRewards(uint32) (#1595-1634) compares to a boolean constant:
-(_CalculatingRewards == true) && (currenttry < maxtries) (#1607)
Octaplex._CalculateSpecificReward(address) (#1636-1660) compares to a boolean constant:
-(_excludedfromTax[holder] == false) && (_LastRewardCycle[holder] < Rewardcycle) (#1638)
Octaplex.ClaimRewards(address) (#1750-1852) compares to a boolean constant:
-_SplitTokenRewards[receiver] == false (#1768)
Octaplex.AirdropPayout() (#1860-1900) compares to a boolean constant:
-(_isLaunched == true) && (currenttime - Airdrop_timeoflastPayout > 18000) && (AirdropPot > 10000000000) (#1862)
Octaplex.AirdropPayout() (#1860-1900) compares to a boolean constant:
-(__balanceOf[winner] >= 10000000000000000000) && (_excludedfromTax[winner] == false) && (! isContract(winner)) (#1878)
Octaplex.doBuyback() (#1907-1941) compares to a boolean constant:
-(_isLaunched == true) && (N_holders >= NextBuybackMemberCount) (#1909)
Octaplex.doBuyback() (#1907-1941) compares to a boolean constant:
-_swapBNBforChosenTokenandPayout(amountBNB,address(this),MainWallet) == false (#1918)
Octaplex.onlyAdmin() (#478-483) compares to a boolean constant:
-_isAdmin[msg.sender] != true (#480)
Octaplex.LockedafterLaunch() (#490-493) compares to a boolean constant:
-require(bool)(_isLaunched == false) (#491)
Octaplex.CheckforWork() (#494-499) compares to a boolean constant:
-_AutoCalcRewards == true (#497)
Octaplex.RefundGas() (#501-520) compares to a boolean constant:
-SendBNBfromContract(GasUsed,msg.sender) == false (#515)
Octaplex.RefundGas() (#501-520) compares to a boolean constant:
-SendBNBfromContract(GasUsed,msg.sender) == false (#508)
Remove the equality to the boolean constant.
Additional information: link
Octaplex.RefundGas() (#501-520) has costly operations inside a loop:
- GasPotBNB -= GasUsed (#507)
Octaplex.RefundGas() (#501-520) has costly operations inside a loop:
- GasPotBNB += GasUsed (#509)
Octaplex.RefundGas() (#501-520) has costly operations inside a loop:
- BuybackPotBNB -= GasUsed (#514)
Octaplex.RefundGas() (#501-520) has costly operations inside a loop:
- BuybackPotBNB += GasUsed (#516)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- BuyTaxTokenPot -= Buy (#1238)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- SellTaxTokenPot -= Sell (#1239)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- AirdropPot += tokenportionofselltax * 366 / 10000 (#1260)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- RafflePot += tokenportionofselltax * 122 / 10000 (#1261)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- LotteryPot += tokenportionofselltax * 976 / 10000 (#1264)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- LQPotToken += tokenportionofselltax * 8536 / 10000 (#1267)
Octaplex._swapTokenForBNB(uint256) (#1305-1337) has costly operations inside a loop:
- SingleUntaxedTransfer = true (#1311)
Octaplex._swapTokenForBNB(uint256) (#1305-1337) has costly operations inside a loop:
- SingleUntaxedTransfer = false (#1335)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- LQPotBNB += extraLQbnb (#1278)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- LQPotToken += additionalLiquidity / 2 (#1280)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- BuyTaxBNBPot += buybnbs (#1291)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- SellTaxBNBPot += bnbs - buybnbs (#1292)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- SingleUntaxedTransfer = false (#1301)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- BuyTaxTokenPot += Buy (#1296)
Octaplex._swapTaxTokenForBNB(uint256,uint256) (#1215-1303) has costly operations inside a loop:
- SellTaxTokenPot += Sell (#1297)
Octaplex._addLiquidityFromContract(uint256,uint256) (#1173-1187) has costly operations inside a loop:
- SingleUntaxedTransfer = true (#1175)
Octaplex._addLiquidityFromContract(uint256,uint256) (#1173-1187) has costly operations inside a loop:
- SingleUntaxedTransfer = false (#1185)
Octaplex.sendLiquidity() (#971-983) has costly operations inside a loop:
- LQPotToken -= TKN (#978)
Octaplex.sendLiquidity() (#971-983) has costly operations inside a loop:
- LQPotBNB -= BNB (#979)
Octaplex._CalculateSpecificReward(address) (#1636-1660) has costly operations inside a loop:
- HolderPotBNB -= NewEarnings (#1650)
Octaplex._CalculateSpecificReward(address) (#1636-1660) has costly operations inside a loop:
- claimableBNBearnings += NewEarnings (#1651)
Octaplex.CalculateRewards(uint32) (#1595-1634) has costly operations inside a loop:
- HolderPos ++ (#1614)
Octaplex.CalculateRewards(uint32) (#1595-1634) has costly operations inside a loop:
- HolderPos = 0 (#1621)
Octaplex.CalculateRewards(uint32) (#1595-1634) has costly operations inside a loop:
- HolderPotBNBcalc = 0 (#1622)
Octaplex.CalculateRewards(uint32) (#1595-1634) has costly operations inside a loop:
- _CalculatingRewards = false (#1624)
Octaplex.CalculateRewards(uint32) (#1595-1634) has costly operations inside a loop:
- LastRewardCalculationTime = block.timestamp (#1625)
Octaplex.ClaimRewards(address) (#1750-1852) has costly operations inside a loop:
- claimableBNBearnings -= amountBNB (#1755)
Octaplex.ClaimRewards(address) (#1750-1852) has costly operations inside a loop:
- distributedRewards += dist - amountBNB (#1847)
Octaplex.ClaimRewards(address) (#1750-1852) has costly operations inside a loop:
- claimableBNBearnings += amountBNB (#1848)
Octaplex.ClaimRewards(address) (#1750-1852) has costly operations inside a loop:
- SingleUntaxedTransfer = true (#1783)
Octaplex.ClaimRewards(address) (#1750-1852) has costly operations inside a loop:
- SingleUntaxedTransfer = true (#1837)
Octaplex._DistributeRewards(uint32) (#1714-1749) has costly operations inside a loop:
- HolderPotBNB += temp (#1738)
Octaplex._DistributeRewards(uint32) (#1714-1749) has costly operations inside a loop:
- DistHolderPos ++ (#1742)
Octaplex._DistributeRewards(uint32) (#1714-1749) has costly operations inside a loop:
- DistHolderPos = 0 (#1745)
Octaplex.random(uint256) (#1124-1130) has costly operations inside a loop:
- nonce ++ (#1127)
Octaplex.AirdropPayout() (#1860-1900) has costly operations inside a loop:
- AirdropPot -= payoutperwinner (#1881)
Octaplex.AirdropPayout() (#1860-1900) has costly operations inside a loop:
- Airdrop_totalPaidOut += payoutperwinner (#1886)
Octaplex.AirdropPayout() (#1860-1900) has costly operations inside a loop:
- Airdrop_timeoflastPayout = currenttime (#1896)
Octaplex.doBuyback() (#1907-1941) has costly operations inside a loop:
- SingleUntaxedTransfer = true (#1916)
Octaplex.doBuyback() (#1907-1941) has costly operations inside a loop:
- BuybackPotBNB -= amountBNB (#1917)
Octaplex.doBuyback() (#1907-1941) has costly operations inside a loop:
- BuybackPotBNB += amountBNB (#1919)
Octaplex._burn(address,uint256) (#1455-1475) has costly operations inside a loop:
- __totalSupply -= amount (#1469)
Octaplex.doBuyback() (#1907-1941) has costly operations inside a loop:
- NextBuybackMemberCount = NextBuybackMemberCount + Buyback_increment (#1933)
Octaplex.doBuyback() (#1907-1941) has costly operations inside a loop:
- Buyback_increment = Buyback_increment * 110 / 100 (#1934)
Octaplex.doWork(uint32) (#1019-1060) has costly operations inside a loop:
- NextTask ++ (#1057)
Octaplex.doWork(uint32) (#1019-1060) has costly operations inside a loop:
- NextTask = 0 (#1059)
Octaplex._StartRewardCalculation() (#1568-1581) has costly operations inside a loop:
- HolderPotBNBcalc = HolderPotBNB (#1571)
Octaplex._StartRewardCalculation() (#1568-1581) has costly operations inside a loop:
- AdminPotBNBcalc = AdminPotBNB (#1572)
Octaplex._StartRewardCalculation() (#1568-1581) has costly operations inside a loop:
- ModPotBNBcalc = ModPotBNB (#1573)
Octaplex._StartRewardCalculation() (#1568-1581) has costly operations inside a loop:
- CircSupplycalc = __totalSupply - __balanceOf[address(this)] - __balanceOf[_pancakePairAddress] - __balanceOf[routerAddress] (#1574)
Octaplex._StartRewardCalculation() (#1568-1581) has costly operations inside a loop:
- Rewardcycle ++ (#1575)
Octaplex._StartRewardCalculation() (#1568-1581) has costly operations inside a loop:
- _CalculatingRewards = true (#1576)
Octaplex._PayTeam() (#688-715) has costly operations inside a loop:
- MarketingBNB = 0 (#691)
Octaplex._PayTeam() (#688-715) has costly operations inside a loop:
- AdminPotBNB = 0 (#697)
Octaplex._PayTeam() (#688-715) has costly operations inside a loop:
- ModPotBNB = 0 (#709)
Use a local variable to hold the loop computation result.
Additional information: link
Octaplex._buyBackTokens(uint256) (#1405-1432) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Octaplex.SendBNBfromContract(uint256,address) (#1189-1194):
- (success) = receiver.call{value: amountBNB}(new bytes(0)) (#1191)
Low level call in Octaplex._swapTokenForBNB(uint256) (#1305-1337):
- (success,data) = routerAddress.call(abi.encodeWithSelector(0x18cbafe5,tokenamount,0,path,Contract,block.timestamp)) (#1316-1324)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Octaplex (#353-1944) should inherit from DAPP (#318-332)
Inherit from the missing interface or contract.
Additional information: link
Function IPancakePair.DOMAIN_SEPARATOR() (#113) is not in mixedCase
Function IPancakePair.PERMIT_TYPEHASH() (#114) is not in mixedCase
Function IPancakePair.MINIMUM_LIQUIDITY() (#131) is not in mixedCase
Function IPancakeRouter01.WETH() (#151) is not in mixedCase
Parameter DAPP.setMyAutoPayout(bool).Checked (#320) is not in mixedCase
Function DAPP.ClaimMyRewards() (#322) is not in mixedCase
Function DAPP.ChooseSinglePayoutToken(uint32) (#323) is not in mixedCase
Parameter DAPP.ChooseSinglePayoutToken(uint32).PayoutTokenNumber (#323) is not in mixedCase
Function DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32) (#324-326) is not in mixedCase
Parameter DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Token1 (#324) is not in mixedCase
Parameter DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Slice1 (#324) is not in mixedCase
Parameter DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Token2 (#324) is not in mixedCase
Parameter DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Slice2 (#324) is not in mixedCase
Parameter DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Token3 (#325) is not in mixedCase
Parameter DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Slice3 (#325) is not in mixedCase
Parameter DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Token4 (#325) is not in mixedCase
Parameter DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Slice4 (#325) is not in mixedCase
Parameter DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Token5 (#326) is not in mixedCase
Parameter DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Slice5 (#326) is not in mixedCase
Parameter DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Token6 (#326) is not in mixedCase
Parameter DAPP.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Slice6 (#326) is not in mixedCase
Function DAPP.MyAvailableRewards() (#328) is not in mixedCase
Function DAPP.ShowMyRewardTOKENS() (#329) is not in mixedCase
Function DAPP.ShowMyRewardSLICES() (#330) is not in mixedCase
Function DAPP.ShowAllRewardTokens() (#331) is not in mixedCase
Event OctaplexTOKEN_LAUNCHED() (#475) is not in CapWords
Function Octaplex.StartLaunch() (#524-536) is not in mixedCase
Function Octaplex.ToggleTransfers() (#537-539) is not in mixedCase
Parameter Octaplex.balanceOf(address)._addr (#612) is not in mixedCase
Parameter Octaplex.transfer(address,uint256)._to (#620) is not in mixedCase
Parameter Octaplex.transfer(address,uint256)._value (#620) is not in mixedCase
Function Octaplex.UpdateRegister(address,bool) (#641-660) is not in mixedCase
Parameter Octaplex.UpdateRegister(address,bool).ExcludedfromTax (#641) is not in mixedCase
Function Octaplex._PayTeam() (#688-715) is not in mixedCase
Function Octaplex.ExcludefromTax(address) (#743-749) is not in mixedCase
Function Octaplex.UndoExcludefromTax(address) (#751-757) is not in mixedCase
Parameter Octaplex.transferFrom(address,address,uint256)._from (#785) is not in mixedCase
Parameter Octaplex.transferFrom(address,address,uint256)._to (#785) is not in mixedCase
Parameter Octaplex.transferFrom(address,address,uint256)._value (#785) is not in mixedCase
Function Octaplex.DistributeSellTax() (#919-959) is not in mixedCase
Parameter Octaplex.addLiquidityFromContract(uint256,uint256,bool).TKN (#961) is not in mixedCase
Parameter Octaplex.addLiquidityFromContract(uint256,uint256,bool).BNB (#961) is not in mixedCase
Function Octaplex.DistributeBuyTax() (#986-1010) is not in mixedCase
Function Octaplex.WorkHelper(uint32) (#1013-1017) is not in mixedCase
Function Octaplex.PlayLotto(uint256) (#1102-1122) is not in mixedCase
Parameter Octaplex.approve(address,uint256)._spender (#1136) is not in mixedCase
Parameter Octaplex.approve(address,uint256)._value (#1136) is not in mixedCase
Parameter Octaplex.allowance(address,address)._owner (#1153) is not in mixedCase
Parameter Octaplex.allowance(address,address)._spender (#1153) is not in mixedCase
Function Octaplex.ReservesBNB() (#1161-1164) is not in mixedCase
Function Octaplex.ReservesToken() (#1166-1169) is not in mixedCase
Function Octaplex.SendBNBfromContract(uint256,address) (#1189-1194) is not in mixedCase
Parameter Octaplex.setPromotedRewardTokenoftheWeek(uint32,uint32)._PromoPerc (#1434) is not in mixedCase
Function Octaplex.AddTokentoPayoutList(address,string) (#1478-1483) is not in mixedCase
Parameter Octaplex.AddTokentoPayoutList(address,string).TokenAddress (#1478) is not in mixedCase
Parameter Octaplex.AddTokentoPayoutList(address,string).Name (#1478) is not in mixedCase
Function Octaplex.EditPayoutList(uint32,address,string) (#1486-1492) is not in mixedCase
Parameter Octaplex.EditPayoutList(uint32,address,string).TokenAddress (#1486) is not in mixedCase
Parameter Octaplex.EditPayoutList(uint32,address,string).Name (#1486) is not in mixedCase
Function Octaplex.ShowMyRewardTOKENS() (#1495-1506) is not in mixedCase
Function Octaplex.ShowAllRewardTokens() (#1509-1511) is not in mixedCase
Function Octaplex.ShowMyRewardSLICES() (#1514-1525) is not in mixedCase
Function Octaplex.ChooseSinglePayoutToken(uint32) (#1527-1532) is not in mixedCase
Parameter Octaplex.ChooseSinglePayoutToken(uint32).PayoutTokenNumber (#1527) is not in mixedCase
Function Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32) (#1534-1561) is not in mixedCase
Parameter Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Token1 (#1534) is not in mixedCase
Parameter Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Slice1 (#1534) is not in mixedCase
Parameter Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Token2 (#1534) is not in mixedCase
Parameter Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Slice2 (#1534) is not in mixedCase
Parameter Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Token3 (#1535) is not in mixedCase
Parameter Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Slice3 (#1535) is not in mixedCase
Parameter Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Token4 (#1535) is not in mixedCase
Parameter Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Slice4 (#1535) is not in mixedCase
Parameter Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Token5 (#1536) is not in mixedCase
Parameter Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Slice5 (#1536) is not in mixedCase
Parameter Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Token6 (#1536) is not in mixedCase
Parameter Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32).Slice6 (#1536) is not in mixedCase
Function Octaplex.StartRewardCalculation() (#1563-1566) is not in mixedCase
Function Octaplex._StartRewardCalculation() (#1568-1581) is not in mixedCase
Function Octaplex.CalculateNRewards(uint32) (#1583-1588) is not in mixedCase
Parameter Octaplex.setNperTransfer(uint32).N (#1590) is not in mixedCase
Function Octaplex.CalculateRewards(uint32) (#1595-1634) is not in mixedCase
Function Octaplex._CalculateSpecificReward(address) (#1636-1660) is not in mixedCase
Function Octaplex.ClaimMyRewards() (#1670-1677) is not in mixedCase
Parameter Octaplex.setMyAutoPayout(bool).Checked (#1679) is not in mixedCase
Function Octaplex.DistributeRewards(uint32) (#1691-1694) is not in mixedCase
Parameter Octaplex.sendAirdrop(uint256,address)._Tokens (#1698) is not in mixedCase
Function Octaplex._DistributeRewards(uint32) (#1714-1749) is not in mixedCase
Function Octaplex.ClaimRewards(address) (#1750-1852) is not in mixedCase
Function Octaplex.MyAvailableRewards() (#1854-1857) is not in mixedCase
Function Octaplex.AirdropPayout() (#1860-1900) is not in mixedCase
Constant Octaplex.initialSupply (#359) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Octaplex.__totalSupply (#360) is not in mixedCase
Variable Octaplex._maxTxAmount (#362) is not in mixedCase
Variable Octaplex.__balanceOf (#365) is not in mixedCase
Variable Octaplex.__allowances (#367) is not in mixedCase
Variable Octaplex._PrevBalance (#370) is not in mixedCase
Variable Octaplex._LastPayout (#371) is not in mixedCase
Variable Octaplex._LastAirdrop (#372) is not in mixedCase
Variable Octaplex._LastRewardCycle (#373) is not in mixedCase
Variable Octaplex._RewardTokens (#375) is not in mixedCase
Variable Octaplex._SplitTokenRewards (#376) is not in mixedCase
Variable Octaplex._AutoPayoutEnabled (#377) is not in mixedCase
Variable Octaplex.ModList (#400) is not in mixedCase
Variable Octaplex.AdminList (#401) is not in mixedCase
Variable Octaplex.PayoutTokenList (#402) is not in mixedCase
Variable Octaplex.PayoutTokenListNames (#403) is not in mixedCase
Variable Octaplex.RewardTokenoftheWeek (#404) is not in mixedCase
Variable Octaplex.PromoPerc (#405) is not in mixedCase
Variable Octaplex.Rewardcycle (#407) is not in mixedCase
Variable Octaplex._enableTax (#410) is not in mixedCase
Variable Octaplex._enableTransfer (#411) is not in mixedCase
Variable Octaplex._isLaunched (#412) is not in mixedCase
Variable Octaplex._CalculatingRewards (#414) is not in mixedCase
Variable Octaplex._AutoCalcRewards (#415) is not in mixedCase
Variable Octaplex.HolderPos (#416) is not in mixedCase
Variable Octaplex.DistHolderPos (#417) is not in mixedCase
Variable Octaplex.N_holders (#419) is not in mixedCase
Variable Octaplex.N_Admin (#420) is not in mixedCase
Variable Octaplex.N_Mods (#421) is not in mixedCase
Variable Octaplex.N_perTransfer (#422) is not in mixedCase
Variable Octaplex.launch_time (#426) is not in mixedCase
Variable Octaplex.NumberofPayoutTokens (#427) is not in mixedCase
Variable Octaplex.LastRewardCalculationTime (#429) is not in mixedCase
Variable Octaplex.LQPotBNB (#432) is not in mixedCase
Variable Octaplex.LQPotToken (#433) is not in mixedCase
Variable Octaplex.MarketingBNB (#434) is not in mixedCase
Variable Octaplex.BuybackPotBNB (#436) is not in mixedCase
Variable Octaplex.GasPotBNB (#437) is not in mixedCase
Variable Octaplex.HolderPotBNB (#438) is not in mixedCase
Variable Octaplex.AdminPotBNB (#439) is not in mixedCase
Variable Octaplex.ModPotBNB (#440) is not in mixedCase
Variable Octaplex.AirdropPot (#441) is not in mixedCase
Variable Octaplex.RafflePot (#442) is not in mixedCase
Variable Octaplex.LotteryPot (#443) is not in mixedCase
Variable Octaplex.NextBuybackMemberCount (#444) is not in mixedCase
Variable Octaplex.HolderPotBNBcalc (#446) is not in mixedCase
Variable Octaplex.AdminPotBNBcalc (#447) is not in mixedCase
Variable Octaplex.ModPotBNBcalc (#448) is not in mixedCase
Variable Octaplex.CircSupplycalc (#449) is not in mixedCase
Variable Octaplex.Contract (#450) is not in mixedCase
Variable Octaplex.SellSlippage (#452) is not in mixedCase
Variable Octaplex.NextTask (#453) is not in mixedCase
Variable Octaplex.SellTaxTokenPot (#455) is not in mixedCase
Variable Octaplex.SellTaxBNBPot (#456) is not in mixedCase
Variable Octaplex.BuyTaxTokenPot (#459) is not in mixedCase
Variable Octaplex.BuyTaxBNBPot (#460) is not in mixedCase
Variable Octaplex.MarketingWallet (#461) is not in mixedCase
Variable Octaplex.SingleUntaxedTransfer (#462) is not in mixedCase
Variable Octaplex.Buyback_increment (#464) is not in mixedCase
Variable Octaplex.Airdrop_timeoflastPayout (#465) is not in mixedCase
Variable Octaplex.Airdrop_totalPaidOut (#466) is not in mixedCase
Constant Octaplex.routerAddress (#557) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Octaplex._pancakePairAddress (#560) is not in mixedCase
Variable Octaplex.MainWallet (#561) is not in mixedCase
Variable Octaplex.WorkHelperWallet (#562) is not in mixedCase
Modifier Octaplex.LockedafterLaunch() (#490-493) is not in mixedCase
Modifier Octaplex.CheckforWork() (#494-499) is not in mixedCase
Modifier Octaplex.RefundGas() (#501-520) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "DistributeBuyTax (#1025)" inOctaplex (#353-1944)
Redundant expression "DistributeSellTax (#1026)" inOctaplex (#353-1944)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#156) is too similar to IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#157)
Prevent variables from having similar names.
Additional information: link
Octaplex.constructor() (#564-604) uses literals with too many digits:
- UpdateRegister(address(0x000000000000000000000000000000000000dEaD),true) (#570)
Octaplex.sendLiquidity() (#971-983) uses literals with too many digits:
- (LQPotToken > 1000) && (LQPotBNB >= 1000000000000000000) (#973)
Octaplex.doWork(uint32) (#1019-1060) uses literals with too many digits:
- HolderPotBNB >= 500000000000000000 (#1039)
Octaplex._burn(address,uint256) (#1455-1475) uses literals with too many digits:
- deadwallet = address(0x000000000000000000000000000000000000dEaD) (#1461)
Octaplex.AirdropPayout() (#1860-1900) uses literals with too many digits:
- (_isLaunched == true) && (currenttime - Airdrop_timeoflastPayout > 18000) && (AirdropPot > 10000000000) (#1862)
Octaplex.AirdropPayout() (#1860-1900) uses literals with too many digits:
- (__balanceOf[winner] >= 10000000000000000000) && (_excludedfromTax[winner] == false) && (! isContract(winner)) (#1878)
Octaplex.slitherConstructorConstantVariables() (#353-1944) uses literals with too many digits:
- initialSupply = 1000000000000000000000000 (#359)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
StartLaunch() should be declared external:
- Octaplex.StartLaunch() (#524-536)
ToggleTransfers() should be declared external:
- Octaplex.ToggleTransfers() (#537-539)
setMarketingOwnership(address) should be declared external:
- Octaplex.setMarketingOwnership(address) (#540-544)
setWorkHelper(address) should be declared external:
- Octaplex.setWorkHelper(address) (#547-551)
totalSupply() should be declared external:
- Octaplex.totalSupply() (#607-609)
transfer(address,uint256) should be declared external:
- Octaplex.transfer(address,uint256) (#620-629)
isModerator(address) should be declared external:
- Octaplex.isModerator(address) (#662-665)
isExcludedfromTax(address) should be declared external:
- Octaplex.isExcludedfromTax(address) (#667-670)
addtoAdminList(address) should be declared external:
- Octaplex.addtoAdminList(address) (#672-683)
addtoModList(address) should be declared external:
- Octaplex.addtoModList(address) (#718-729)
removefromModList(address) should be declared external:
- Octaplex.removefromModList(address) (#731-738)
ExcludefromTax(address) should be declared external:
- Octaplex.ExcludefromTax(address) (#743-749)
UndoExcludefromTax(address) should be declared external:
- Octaplex.UndoExcludefromTax(address) (#751-757)
setMainWallet(address) should be declared external:
- Octaplex.setMainWallet(address) (#759-768)
setAutoCalcRewards(bool) should be declared external:
- Octaplex.setAutoCalcRewards(bool) (#774-777)
transferFrom(address,address,uint256) should be declared external:
- Octaplex.transferFrom(address,address,uint256) (#785-796)
addLiquidityFromContract(uint256,uint256,bool) should be declared external:
- Octaplex.addLiquidityFromContract(uint256,uint256,bool) (#961-969)
WorkHelper(uint32) should be declared external:
- Octaplex.WorkHelper(uint32) (#1013-1017)
checkRewards(address) should be declared external:
- Octaplex.checkRewards(address) (#1097-1100)
ReservesBNB() should be declared external:
- Octaplex.ReservesBNB() (#1161-1164)
ReservesToken() should be declared external:
- Octaplex.ReservesToken() (#1166-1169)
sliceUint(bytes,uint256) should be declared external:
- Octaplex.sliceUint(bytes,uint256) (#1197-1207)
swapTaxTokenForBNB(uint256,uint256) should be declared external:
- Octaplex.swapTaxTokenForBNB(uint256,uint256) (#1210-1212)
addBNBtoHolderPot(uint256) should be declared external:
- Octaplex.addBNBtoHolderPot(uint256) (#1391-1395)
addBNBtoGasPot(uint256) should be declared external:
- Octaplex.addBNBtoGasPot(uint256) (#1397-1401)
setPromotedRewardTokenoftheWeek(uint32,uint32) should be declared external:
- Octaplex.setPromotedRewardTokenoftheWeek(uint32,uint32) (#1434-1441)
getPromotedRewardTokenoftheWeek() should be declared external:
- Octaplex.getPromotedRewardTokenoftheWeek() (#1443-1446)
burnbeforeLaunch(uint256) should be declared external:
- Octaplex.burnbeforeLaunch(uint256) (#1448-1453)
EditPayoutList(uint32,address,string) should be declared external:
- Octaplex.EditPayoutList(uint32,address,string) (#1486-1492)
ShowMyRewardTOKENS() should be declared external:
- Octaplex.ShowMyRewardTOKENS() (#1495-1506)
ShowAllRewardTokens() should be declared external:
- Octaplex.ShowAllRewardTokens() (#1509-1511)
ShowMyRewardSLICES() should be declared external:
- Octaplex.ShowMyRewardSLICES() (#1514-1525)
ChooseSinglePayoutToken(uint32) should be declared external:
- Octaplex.ChooseSinglePayoutToken(uint32) (#1527-1532)
ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32) should be declared external:
- Octaplex.ChooseMultiplePayoutTokens(uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32,uint32) (#1534-1561)
StartRewardCalculation() should be declared external:
- Octaplex.StartRewardCalculation() (#1563-1566)
CalculateNRewards(uint32) should be declared external:
- Octaplex.CalculateNRewards(uint32) (#1583-1588)
setNperTransfer(uint32) should be declared external:
- Octaplex.setNperTransfer(uint32) (#1590-1593)
ClaimMyRewards() should be declared external:
- Octaplex.ClaimMyRewards() (#1670-1677)
setMyAutoPayout(bool) should be declared external:
- Octaplex.setMyAutoPayout(bool) (#1679-1683)
getMyAutoPayoutisActive() should be declared external:
- Octaplex.getMyAutoPayoutisActive() (#1685-1688)
DistributeRewards(uint32) should be declared external:
- Octaplex.DistributeRewards(uint32) (#1691-1694)
sendAirdrop(uint256,address) should be declared external:
- Octaplex.sendAirdrop(uint256,address) (#1698-1706)
MyAvailableRewards() should be declared external:
- Octaplex.MyAvailableRewards() (#1854-1857)
Use the external attribute for functions never called from the contract.
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.
Contract has 10% buy tax and 15% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid
Unable to find Youtube account