AbortionInu.swapBack(address) (#671-735) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in AbortionInu._transferFrom(address,address,uint256) (#604-643):
External calls:
- swapBack(sender) (#611)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#689-695)
- dividendDistributor.deposit{value: amountBNBReflection}() (#718)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#725-732)
External calls sending eth:
- swapBack(sender) (#611)
- dividendDistributor.deposit{value: amountBNBReflection}() (#718)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#725-732)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#620)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#628)
- finalAmount = takeFee(sender,recipient,amount) (#627)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#665)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#252-264) ignores return value by RewardToken.transfer(shareholder,amount) (#258)
DividendDistributor.rescueDividends(address) (#270-272) ignores return value by RewardToken.transfer(to,RewardToken.balanceOf(address(this))) (#271)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
AbortionInu.swapBack(address).tmpSuccess (#720) is written in both
(tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
tmpSuccess = false (#722)
Fix or remove the writes.
Additional information: link
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 2: Unchecked transfer + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
AbortionInu.swapBack(address) (#671-735) performs a multiplication on the result of a division:
-amountBNBMarketing = amountBNB.mul(marketingFee / 2).div(totalBNBFee) (#704)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#252-264):
External calls:
- RewardToken.transfer(shareholder,amount) (#258)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#260)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#261)
Reentrancy in DividendDistributor.process(uint256) (#223-245):
External calls:
- distributeDividend(shareholders[currentIndex]) (#237)
- RewardToken.transfer(shareholder,amount) (#258)
State variables written after the call(s):
- currentIndex ++ (#242)
Reentrancy in DividendDistributor.setShare(address,uint256) (#186-201):
External calls:
- distributeDividend(shareholder) (#189)
- RewardToken.transfer(shareholder,amount) (#258)
State variables written after the call(s):
- shares[shareholder].amount = amount (#199)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#200)
Apply the check-effects-interactions pattern.
Additional information: link
AbortionInu.swapBack(address) (#671-735) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#725-732)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#181-184) should emit an event for:
- minPeriod = newMinPeriod (#182)
- minDistribution = newMinDistribution (#183)
AbortionInu.changeTxLimit(uint256) (#525-527) should emit an event for:
- _maxTxAmount = newLimit (#526)
AbortionInu.changeFees(uint256,uint256,uint256) (#556-565) should emit an event for:
- liquidityFee = newLiqFee (#557)
- rewardsFee = newRewardFee (#558)
- marketingFee = newMarketingFee (#559)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#561)
- totalFeeIfSelling = totalFee (#562)
- totalFeeForPopcornPerk = liquidityFee.add(marketingFee / 1).add(rewardsFee) (#563)
- totalFeeForPopcornPerkIfSelling = totalFeeForPopcornPerk (#564)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#360) lacks a zero-check on :
- owner = adr (#361)
AbortionInu.changeFeeReceivers(address,address).newLiquidityReceiver (#567) lacks a zero-check on :
- autoLiquidityReceiver = newLiquidityReceiver (#568)
AbortionInu.changeFeeReceivers(address,address).newMarketingWallet (#567) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#569)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#252-264) has external calls inside a loop: RewardToken.transfer(shareholder,amount) (#258)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in AbortionInu._transferFrom(address,address,uint256) (#604-643):
External calls:
- swapBack(sender) (#611)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#689-695)
- dividendDistributor.deposit{value: amountBNBReflection}() (#718)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#725-732)
External calls sending eth:
- swapBack(sender) (#611)
- dividendDistributor.deposit{value: amountBNBReflection}() (#718)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#725-732)
State variables written after the call(s):
- launch() (#615)
- launchedAt = block.number (#522)
Reentrancy in AbortionInu.constructor() (#440-481):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#443)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#444)
- _balances[msg.sender] = _totalSupply (#479)
- autoLiquidityReceiver = msg.sender (#469)
- dividendDistributor = new DividendDistributor(address(router)) (#446)
- isDividendExempt[pair] = true (#457)
- isDividendExempt[msg.sender] = true (#458)
- isDividendExempt[address(this)] = true (#459)
- isDividendExempt[DEAD] = true (#460)
- isDividendExempt[ZERO] = true (#461)
- isDividendExempt[Sixtynine] = true (#462)
- isFeeExempt[msg.sender] = true (#448)
- isFeeExempt[address(this)] = true (#449)
- isTxLimitExempt[msg.sender] = true (#451)
- isTxLimitExempt[pair] = true (#452)
- isTxLimitExempt[DEAD] = true (#453)
- isTxLimitExempt[ZERO] = true (#454)
- isTxLimitExempt[Sixtynine] = true (#455)
- iswalletMaxExempt[DEAD] = true (#464)
- iswalletMaxExempt[ZERO] = true (#465)
- iswalletMaxExempt[msg.sender] = true (#466)
- iswalletMaxExempt[Sixtynine] = true (#467)
- marketingWallet = 0x8c4296DC8C288f47c0047245B6AA4dbb04AE9B6A (#470)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#473)
- totalFeeForPopcornPerk = liquidityFee.add(marketingFee / 2).add(rewardsFee) (#476)
- totalFeeForPopcornPerkIfSelling = totalFeeForPopcornPerk (#477)
- totalFeeIfSelling = totalFee (#474)
Reentrancy in DividendDistributor.deposit() (#203-221):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#211-216)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#220)
- totalDividends = totalDividends.add(amount) (#219)
Reentrancy in DividendDistributor.distributeDividend(address) (#252-264):
External calls:
- RewardToken.transfer(shareholder,amount) (#258)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#259)
Reentrancy in DividendDistributor.setShare(address,uint256) (#186-201):
External calls:
- distributeDividend(shareholder) (#189)
- RewardToken.transfer(shareholder,amount) (#258)
State variables written after the call(s):
- addShareholder(shareholder) (#193)
- shareholderIndexes[shareholder] = shareholders.length (#294)
- removeShareholder(shareholder) (#195)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#300)
- addShareholder(shareholder) (#193)
- shareholders.push(shareholder) (#295)
- removeShareholder(shareholder) (#195)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#299)
- shareholders.pop() (#301)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#198)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in AbortionInu._transferFrom(address,address,uint256) (#604-643):
External calls:
- swapBack(sender) (#611)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#689-695)
- dividendDistributor.deposit{value: amountBNBReflection}() (#718)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#725-732)
- dividendDistributor.setShare(sender,_balances[sender]) (#632)
- dividendDistributor.setShare(recipient,_balances[recipient]) (#636)
- dividendDistributor.process(distributorGas) (#639)
External calls sending eth:
- swapBack(sender) (#611)
- dividendDistributor.deposit{value: amountBNBReflection}() (#718)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#725-732)
Event emitted after the call(s):
- Transfer(sender,recipient,finalAmount) (#641)
Reentrancy in AbortionInu._transferFrom(address,address,uint256) (#604-643):
External calls:
- swapBack(sender) (#611)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#689-695)
- dividendDistributor.deposit{value: amountBNBReflection}() (#718)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#725-732)
External calls sending eth:
- swapBack(sender) (#611)
- dividendDistributor.deposit{value: amountBNBReflection}() (#718)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#725-732)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#666)
- finalAmount = takeFee(sender,recipient,amount) (#627)
Reentrancy in AbortionInu.constructor() (#440-481):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#443)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#480)
Reentrancy in AbortionInu.swapBack(address) (#671-735):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#689-695)
- dividendDistributor.deposit{value: amountBNBReflection}() (#718)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#725-732)
External calls sending eth:
- dividendDistributor.deposit{value: amountBNBReflection}() (#718)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#725-732)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#733)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#247-250) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#248-249)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#223-245) has costly operations inside a loop:
- currentIndex = 0 (#234)
DividendDistributor.distributeDividend(address) (#252-264) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#257)
DividendDistributor.process(uint256) (#223-245) has costly operations inside a loop:
- currentIndex ++ (#242)
Use a local variable to hold the loop computation result.
Additional information: link
AbortionInu.checkTxLimit(address,uint256) (#529-531) is never used and should be removed
Remove unused functions.
Additional information: link
AbortionInu._maxTxAmount (#393) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 10 / 1000
AbortionInu._walletMax (#394) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 20 / 1000
AbortionInu.swapThreshold (#432) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 5 / 2000
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 (#5) allows old versions
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in AbortionInu.swapBack(address) (#671-735):
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: amountBNBMarketing}() (#720)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IDEXRouter.WETH() (#72) is not in mixedCase
Parameter DividendDistributor.setRewardToken(address)._rewardToken (#274) is not in mixedCase
Variable DividendDistributor._token (#128) is not in mixedCase
Variable DividendDistributor.RewardToken (#139) is not in mixedCase
Variable DividendDistributor.DEAD (#145) is not in mixedCase
Variable DividendDistributor.ZERO (#146) is not in mixedCase
Variable DividendDistributor.Sixtynine (#147) is not in mixedCase
Parameter AbortionInu.popcornBalance(address)._addressToQuery (#498) is not in mixedCase
Parameter AbortionInu.setRewardToken(address)._rewardToken (#588) is not in mixedCase
Constant AbortionInu._name (#377) is not in UPPER_CASE_WITH_UNDERSCORES
Constant AbortionInu._symbol (#378) is not in UPPER_CASE_WITH_UNDERSCORES
Constant AbortionInu._decimals (#379) is not in UPPER_CASE_WITH_UNDERSCORES
Variable AbortionInu.DEAD (#381) is not in mixedCase
Variable AbortionInu.ZERO (#382) is not in mixedCase
Variable AbortionInu.Sixtynine (#383) is not in mixedCase
Variable AbortionInu.RewardToken (#387) is not in mixedCase
Variable AbortionInu._totalSupply (#392) is not in mixedCase
Variable AbortionInu._maxTxAmount (#393) is not in mixedCase
Variable AbortionInu._walletMax (#394) is not in mixedCase
Variable AbortionInu._balances (#397) is not in mixedCase
Variable AbortionInu._allowances (#398) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#77) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#78)
Prevent variables from having similar names.
Additional information: link
DividendDistributor.slitherConstructorVariables() (#125-304) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#145)
DividendDistributor.slitherConstructorVariables() (#125-304) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#146)
DividendDistributor.slitherConstructorVariables() (#125-304) uses literals with too many digits:
- Sixtynine = 0x0000000000000000000000000000000000000069 (#147)
AbortionInu.swapBack(address) (#671-735) uses literals with too many digits:
- popcornBalance(sender) > 100000000 (#702)
AbortionInu.slitherConstructorVariables() (#373-740) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#381)
AbortionInu.slitherConstructorVariables() (#373-740) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#382)
AbortionInu.slitherConstructorVariables() (#373-740) uses literals with too many digits:
- Sixtynine = 0x0000000000000000000000000000000000000069 (#383)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.popcorn (#142) is never used in DividendDistributor (#125-304)
DividendDistributor.DEAD (#145) is never used in DividendDistributor (#125-304)
DividendDistributor.ZERO (#146) is never used in DividendDistributor (#125-304)
DividendDistributor.Sixtynine (#147) is never used in DividendDistributor (#125-304)
AbortionInu.RewardToken (#387) is never used in AbortionInu (#373-740)
Remove unused state variables.
Additional information: link
AbortionInu.DEAD (#381) should be constant
AbortionInu.RewardToken (#387) should be constant
AbortionInu.Sixtynine (#383) should be constant
AbortionInu.ZERO (#382) should be constant
AbortionInu._totalSupply (#392) should be constant
AbortionInu.popcorn (#389) should be constant
AbortionInu.restrictWhales (#395) should be constant
AbortionInu.routerAddress (#385) should be constant
AbortionInu.tradingOpen (#423) should be constant
DividendDistributor.DEAD (#145) should be constant
DividendDistributor.Sixtynine (#147) should be constant
DividendDistributor.ZERO (#146) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#158) should be constant
DividendDistributor.routerAddress (#137) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
authorize(address) should be declared external:
- Auth.authorize(address) (#332-334)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#339-341)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#360-364)
balanceOf(address) should be declared external:
- BEP20Interface.balanceOf(address) (#370)
getCirculatingSupply() should be declared external:
- AbortionInu.getCirculatingSupply() (#491-493)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract ticker ($ABORT) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
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