Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
CHOP.swapAndLiquify(uint256) (#1698-1771) sends eth to arbitrary user
Dangerous calls:
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
CHOP.swapAndSendDividends(uint256) (#1773-1793) sends eth to arbitrary user
Dangerous calls:
- (sent) = diviTracker.call{value: newBalance}() (#1786)
CHOP.swapEthForTokens(uint256,address,address) (#1794-1807) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
CHOP.addLiquidity(uint256,uint256) (#1846-1861) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in CHOP._transfer(address,address,uint256) (#1863-2034):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#1975)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- swapAndSendDividends(sellTokens) (#1978)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1837-1843)
- success = IERC20(DividendToken).transfer(address(dividendTracker),dividends) (#1780)
- (sent) = diviTracker.call{value: newBalance}() (#1786)
- dividendTracker.distributeTokenDividends(dividends) (#1790)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#1975)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- swapAndSendDividends(sellTokens) (#1978)
- (sent) = diviTracker.call{value: newBalance}() (#1786)
State variables written after the call(s):
- super._transfer(from,address(this),feeAmount) (#1999)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#779)
- _balances[recipient] = _balances[recipient].add(amount) (#780)
- super._transfer(from,burnAddress,burnAmount) (#2000)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#779)
- _balances[recipient] = _balances[recipient].add(amount) (#780)
- super._transfer(from,burnAddress,burnAmount_scope_0) (#2008)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#779)
- _balances[recipient] = _balances[recipient].add(amount) (#780)
- super._transfer(from,to,amount) (#2013)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#779)
- _balances[recipient] = _balances[recipient].add(amount) (#780)
- restoreFees() (#2016)
- burnFee = previousBurnFee (#1403)
- restoreFees() (#2016)
- buyBackFee = previousBuyBackFee (#1400)
- restoreFees() (#2016)
- charityFee = previousCharityFee (#1399)
- restoreFees() (#2016)
- liquidityFee = previousLiquidityFee (#1402)
- restoreFees() (#2016)
- marketFee = previousMarketFee (#1398)
- swapping = false (#1980)
- restoreFees() (#2016)
- tokenRewardsFee = previousTokenRewardsFee (#1401)
- restoreFees() (#2016)
- totalFees = previousTotalFees (#1404)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1157-1181):
External calls:
- (sent) = user.call{value: _withdrawableDividend}() (#1164)
- success = IERC20(DividendToken).transfer(user,_withdrawableDividend) (#1168)
External calls sending eth:
- (sent) = user.call{value: _withdrawableDividend}() (#1164)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#1173)
Apply the check-effects-interactions pattern.
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.
Reentrancy in CHOP.updateDividendTracker(address) (#1529-1543):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1536)
- newDividendTracker.excludeFromDividends(address(this)) (#1537)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1538)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1542)
Apply the check-effects-interactions pattern.
Additional information: link
CHOP.swapAndLiquify(uint256).charityFeeBalance (#1731) is a local variable never initialized
CHOP._transfer(address,address,uint256).iterations (#2027) is a local variable never initialized
CHOP.swapAndLiquify(uint256).buyBackFeeBalance (#1732) is a local variable never initialized
CHOP.swapAndLiquify(uint256).charityFeeFull (#1700) is a local variable never initialized
CHOP._transfer(address,address,uint256).claims (#2027) is a local variable never initialized
CHOP.swapAndLiquify(uint256).buyBackFeeFull (#1701) is a local variable never initialized
CHOP.swapAndLiquify(uint256).marketFeeBalance (#1730) is a local variable never initialized
CHOP._transfer(address,address,uint256).lastProcessedIndex (#2027) is a local variable never initialized
CHOP.swapAndLiquify(uint256).marketFeeFull (#1699) 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
CHOP.claim() (#1682-1684) ignores return value by dividendTracker.processAccount(msg.sender,false) (#1683)
CHOP.addLiquidity(uint256,uint256) (#1846-1861) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
CHOP._transfer(address,address,uint256) (#1863-2034) ignores return value by dividendTracker.process(gas) (#2027-2032)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#1117) shadows:
- ERC20._name (#607) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#1117) shadows:
- ERC20._symbol (#608) (state variable)
Rename the local variables that shadow another component.
Additional information: link
DividendPayingToken.updateMasterContract(address) (#1124-1126) should emit an event for:
- masterContract = newAddress (#1125)
Emit an event for critical parameter changes.
Additional information: link
CHOP.updateSellLimitTime(uint256) (#1407-1409) should emit an event for:
- sellLimitTime = _newTime (#1408)
CHOP.updateMaxSellTx(uint256) (#1411-1413) should emit an event for:
- maxSellTransactionAmount = _newAmountNoDecimals * (10 ** decimals()) (#1412)
CHOP.updateSwapAtAmount(uint256) (#1419-1421) should emit an event for:
- swapTokensAtAmount = newAmountNoDecimials * (10 ** decimals()) (#1420)
CHOP.updateMaxBuyTx(uint256) (#1423-1425) should emit an event for:
- maxBuyTransactionAmount = _newAmountNoDecimals * (10 ** decimals()) (#1424)
CHOP.updatedividendTime(uint256) (#1427-1429) should emit an event for:
- dividendTime = _dividendTime (#1428)
CHOP.updateTradingEnabledTime(uint256) (#1439-1441) should emit an event for:
- tradingEnabledTimestamp = newTimeInEpoch (#1440)
CHOP.updateFees(uint256,uint256,uint256,uint256,uint256,uint256) (#1488-1496) should emit an event for:
- tokenRewardsFee = _tokenRewardsFee (#1489)
- liquidityFee = _liquidityFee (#1490)
- marketFee = _marketFee (#1491)
- charityFee = _charityFee (#1492)
- buyBackFee = _buyBackFee (#1493)
- burnFee = _burnFee (#1494)
- totalFees = _tokenRewardsFee.add(_liquidityFee).add(_marketFee).add(_charityFee).add(_buyBackFee).add(_burnFee) (#1495)
CHOP.updateBuyFees(uint256,uint256,uint256,uint256,uint256,uint256) (#1498-1506) should emit an event for:
- buyTokenRewardsFee = _tokenRewardsFee (#1499)
- buyLiquidityFee = _liquidityFee (#1500)
- buyMarketFee = _marketFee (#1501)
- buyCharityFee = _charityFee (#1502)
- buyBuyBackFee = _buyBackFee (#1503)
- buyBurnFee = _burnFee (#1504)
- buyTotalFees = _tokenRewardsFee.add(_liquidityFee).add(_marketFee).add(_charityFee).add(_buyBackFee).add(_burnFee) (#1505)
CHOP.updateSellFees(uint256,uint256,uint256,uint256,uint256,uint256) (#1508-1516) should emit an event for:
- sellTokenRewardsFee = _tokenRewardsFee (#1509)
- sellLiquidityFee = _liquidityFee (#1510)
- sellMarketFee = _marketFee (#1511)
- sellCharityFee = _charityFee (#1512)
- sellBuyBackFee = _buyBackFee (#1513)
- sellBurnFee = _burnFee (#1514)
- sellTotalFees = _tokenRewardsFee.add(_liquidityFee).add(_marketFee).add(_charityFee).add(_buyBackFee).add(_burnFee) (#1515)
Emit an event for critical parameter changes.
Additional information: link
CHOP.updateTokenForDividend(address).newAddress (#1448) lacks a zero-check on :
- DividendToken = newAddress (#1450)
CHOP.updateMarketAddress(address).newAddress (#1454) lacks a zero-check on :
- marketAddress = newAddress (#1455)
CHOP.updateCharityAddress(address).newAddress (#1460) lacks a zero-check on :
- charityAddress = newAddress (#1461)
CHOP.updateBuyBackAddress(address).newAddress (#1466) lacks a zero-check on :
- buyBackAddress = newAddress (#1467)
CHOP.updateMarketTokenFeeAddress(address).newAddress (#1472) lacks a zero-check on :
- marketTokenAddressForFee = newAddress (#1473)
CHOP.updateCharityTokenFeeAddress(address).newAddress (#1476) lacks a zero-check on :
- charityTokenAddressForFee = newAddress (#1477)
CHOP.updateBuyBackTokenFeeAddress(address).newAddress (#1480) lacks a zero-check on :
- buyBackTokenAddressForFee = newAddress (#1481)
CHOP.whitelistDxSale(address,address)._presaleAddress (#1518) lacks a zero-check on :
- presaleAddress = _presaleAddress (#1519)
DividendPayingToken.updateMasterContract(address).newAddress (#1124) lacks a zero-check on :
- masterContract = newAddress (#1125)
CHOPDividendTracker.updateTokenForDividend(address).newAddress (#2067) lacks a zero-check on :
- DividendToken = newAddress (#2068)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#1157-1181) has external calls inside a loop: (sent) = user.call{value: _withdrawableDividend}() (#1164)
DividendPayingToken._withdrawDividendOfUser(address) (#1157-1181) has external calls inside a loop: success = IERC20(DividendToken).transfer(user,_withdrawableDividend) (#1168)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'CHOP.swapAndLiquify(uint256).sent (#1751)' in CHOP.swapAndLiquify(uint256) (#1698-1771) potentially used before declaration: (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
Variable 'CHOP.swapAndLiquify(uint256).sent (#1751)' in CHOP.swapAndLiquify(uint256) (#1698-1771) potentially used before declaration: (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
Variable 'CHOP._transfer(address,address,uint256).claims (#2027)' in CHOP._transfer(address,address,uint256) (#1863-2034) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2028)
Variable 'CHOP._transfer(address,address,uint256).iterations (#2027)' in CHOP._transfer(address,address,uint256) (#1863-2034) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2028)
Variable 'CHOP._transfer(address,address,uint256).lastProcessedIndex (#2027)' in CHOP._transfer(address,address,uint256) (#1863-2034) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2028)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in CHOP._transfer(address,address,uint256) (#1863-2034):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#1975)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- swapAndSendDividends(sellTokens) (#1978)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1837-1843)
- success = IERC20(DividendToken).transfer(address(dividendTracker),dividends) (#1780)
- (sent) = diviTracker.call{value: newBalance}() (#1786)
- dividendTracker.distributeTokenDividends(dividends) (#1790)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#1975)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- swapAndSendDividends(sellTokens) (#1978)
- (sent) = diviTracker.call{value: newBalance}() (#1786)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1978)
- _allowances[owner][spender] = amount (#841)
Reentrancy in CHOP._transfer(address,address,uint256) (#1863-2034):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#1975)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- swapAndSendDividends(sellTokens) (#1978)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1837-1843)
- success = IERC20(DividendToken).transfer(address(dividendTracker),dividends) (#1780)
- (sent) = diviTracker.call{value: newBalance}() (#1786)
- dividendTracker.distributeTokenDividends(dividends) (#1790)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#2019)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#2020)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#1975)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- swapAndSendDividends(sellTokens) (#1978)
- (sent) = diviTracker.call{value: newBalance}() (#1786)
State variables written after the call(s):
- processDividendTime += dividendTime (#2026)
Reentrancy in CHOP.constructor() (#1346-1384):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1356-1357)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1360)
- uniswapV2Router = _uniswapV2Router (#1359)
Reentrancy in CHOP.constructor() (#1346-1384):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1356-1357)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1362)
- dividendTracker.excludeFromDividends(pair) (#1610)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1364)
- dividendTracker.excludeFromDividends(address(this)) (#1365)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1366)
- dividendTracker.excludeFromDividends(owner()) (#1367)
State variables written after the call(s):
- _mint(owner(),100000000000 * (10 ** decimals())) (#1383)
- _balances[account] = _balances[account].add(amount) (#799)
- excludeFromFees(burnAddress,true) (#1374)
- _isExcludedFromFees[account] = excluded (#1553)
- excludeFromFees(address(this),true) (#1375)
- _isExcludedFromFees[account] = excluded (#1553)
- excludeFromFees(owner(),true) (#1376)
- _isExcludedFromFees[account] = excluded (#1553)
- _mint(owner(),100000000000 * (10 ** decimals())) (#1383)
- _totalSupply = _totalSupply.add(amount) (#798)
- canTransferBeforeTradingIsEnabled[owner()] = true (#1378)
Reentrancy in CHOPDividendTracker.processAccount(address,bool) (#2246-2256):
External calls:
- amount = _withdrawDividendOfUser(account) (#2247)
- (sent) = user.call{value: _withdrawableDividend}() (#1164)
- success = IERC20(DividendToken).transfer(user,_withdrawableDividend) (#1168)
External calls sending eth:
- amount = _withdrawDividendOfUser(account) (#2247)
- (sent) = user.call{value: _withdrawableDividend}() (#1164)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#2250)
Reentrancy in CHOP.swapAndLiquify(uint256) (#1698-1771):
External calls:
- swapTokensForEth(initHalf) (#1726)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- swapEthForTokens(marketFeeBalance,marketTokenAddressForFee,marketAddress) (#1749)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- swapEthForTokens(charityFeeBalance,charityTokenAddressForFee,charityAddress) (#1756)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- swapEthForTokens(buyBackFeeBalance,address(this),buyBackAddress) (#1763)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- addLiquidity(finalHalf,finalBalance) (#1769)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
External calls sending eth:
- swapEthForTokens(marketFeeBalance,marketTokenAddressForFee,marketAddress) (#1749)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- swapEthForTokens(charityFeeBalance,charityTokenAddressForFee,charityAddress) (#1756)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- swapEthForTokens(buyBackFeeBalance,address(this),buyBackAddress) (#1763)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- addLiquidity(finalHalf,finalBalance) (#1769)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
State variables written after the call(s):
- addLiquidity(finalHalf,finalBalance) (#1769)
- _allowances[owner][spender] = amount (#841)
Reentrancy in CHOP.updateTokenForDividend(address) (#1448-1452):
External calls:
- dividendTracker.updateTokenForDividend(newAddress) (#1449)
State variables written after the call(s):
- DividendToken = newAddress (#1450)
Reentrancy in CHOP.whitelistDxSale(address,address) (#1518-1527):
External calls:
- dividendTracker.excludeFromDividends(_presaleAddress) (#1521)
State variables written after the call(s):
- excludeFromFees(_presaleAddress,true) (#1522)
- _isExcludedFromFees[account] = excluded (#1553)
- canTransferBeforeTradingIsEnabled[_routerAddress] = true (#1524)
Reentrancy in CHOP.whitelistDxSale(address,address) (#1518-1527):
External calls:
- dividendTracker.excludeFromDividends(_presaleAddress) (#1521)
- dividendTracker.excludeFromDividends(_routerAddress) (#1525)
State variables written after the call(s):
- excludeFromFees(_routerAddress,true) (#1526)
- _isExcludedFromFees[account] = excluded (#1553)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in CHOP._setAutomatedMarketMakerPair(address,bool) (#1605-1614):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1610)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1613)
Reentrancy in CHOP._transfer(address,address,uint256) (#1863-2034):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#1975)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- swapAndSendDividends(sellTokens) (#1978)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1837-1843)
- success = IERC20(DividendToken).transfer(address(dividendTracker),dividends) (#1780)
- (sent) = diviTracker.call{value: newBalance}() (#1786)
- dividendTracker.distributeTokenDividends(dividends) (#1790)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#1975)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- swapAndSendDividends(sellTokens) (#1978)
- (sent) = diviTracker.call{value: newBalance}() (#1786)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#842)
- swapAndSendDividends(sellTokens) (#1978)
- SendDividends(tokens,dividends) (#1791)
- swapAndSendDividends(sellTokens) (#1978)
- Transfer(sender,recipient,amount) (#781)
- super._transfer(from,burnAddress,burnAmount) (#2000)
- Transfer(sender,recipient,amount) (#781)
- super._transfer(from,burnAddress,burnAmount_scope_0) (#2008)
- Transfer(sender,recipient,amount) (#781)
- super._transfer(from,to,amount) (#2013)
- Transfer(sender,recipient,amount) (#781)
- super._transfer(from,address(this),feeAmount) (#1999)
Reentrancy in CHOP._transfer(address,address,uint256) (#1863-2034):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#1975)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- swapAndSendDividends(sellTokens) (#1978)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1837-1843)
- success = IERC20(DividendToken).transfer(address(dividendTracker),dividends) (#1780)
- (sent) = diviTracker.call{value: newBalance}() (#1786)
- dividendTracker.distributeTokenDividends(dividends) (#1790)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#2019)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#2020)
- dividendTracker.process(gas) (#2027-2032)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#1975)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- swapAndSendDividends(sellTokens) (#1978)
- (sent) = diviTracker.call{value: newBalance}() (#1786)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2028)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1157-1181):
External calls:
- (sent) = user.call{value: _withdrawableDividend}() (#1164)
Event emitted after the call(s):
- DividendWithdrawn(user,_withdrawableDividend,DividendToken) (#1166)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1157-1181):
External calls:
- success = IERC20(DividendToken).transfer(user,_withdrawableDividend) (#1168)
Event emitted after the call(s):
- DividendWithdrawn(user,_withdrawableDividend,DividendToken) (#1169)
Reentrancy in CHOP.constructor() (#1346-1384):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1356-1357)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1362)
- dividendTracker.excludeFromDividends(pair) (#1610)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1613)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1362)
Reentrancy in CHOP.constructor() (#1346-1384):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1356-1357)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1362)
- dividendTracker.excludeFromDividends(pair) (#1610)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1364)
- dividendTracker.excludeFromDividends(address(this)) (#1365)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1366)
- dividendTracker.excludeFromDividends(owner()) (#1367)
Event emitted after the call(s):
- Transfer(address(0),account,amount) (#800)
- _mint(owner(),100000000000 * (10 ** decimals())) (#1383)
Reentrancy in CHOPDividendTracker.processAccount(address,bool) (#2246-2256):
External calls:
- amount = _withdrawDividendOfUser(account) (#2247)
- (sent) = user.call{value: _withdrawableDividend}() (#1164)
- success = IERC20(DividendToken).transfer(user,_withdrawableDividend) (#1168)
External calls sending eth:
- amount = _withdrawDividendOfUser(account) (#2247)
- (sent) = user.call{value: _withdrawableDividend}() (#1164)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#2251)
Reentrancy in CHOP.processDividendTracker(uint256) (#1677-1680):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1678)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1679)
Reentrancy in CHOP.swapAndLiquify(uint256) (#1698-1771):
External calls:
- swapTokensForEth(initHalf) (#1726)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- swapEthForTokens(marketFeeBalance,marketTokenAddressForFee,marketAddress) (#1749)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- swapEthForTokens(charityFeeBalance,charityTokenAddressForFee,charityAddress) (#1756)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- swapEthForTokens(buyBackFeeBalance,address(this),buyBackAddress) (#1763)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- addLiquidity(finalHalf,finalBalance) (#1769)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
External calls sending eth:
- swapEthForTokens(marketFeeBalance,marketTokenAddressForFee,marketAddress) (#1749)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- swapEthForTokens(charityFeeBalance,charityTokenAddressForFee,charityAddress) (#1756)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- swapEthForTokens(buyBackFeeBalance,address(this),buyBackAddress) (#1763)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,receiver,block.timestamp) (#1801-1806)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
- addLiquidity(finalHalf,finalBalance) (#1769)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1852-1859)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#842)
- addLiquidity(finalHalf,finalBalance) (#1769)
- SwapAndLiquify(half,finalBalance,otherHalf) (#1770)
Reentrancy in CHOP.swapAndSendDividends(uint256) (#1773-1793):
External calls:
- swapTokensForTokens(tokens,address(this)) (#1778)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1837-1843)
- success = IERC20(DividendToken).transfer(address(dividendTracker),dividends) (#1780)
- swapTokensForEth(tokens) (#1783)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1817-1823)
- (sent) = diviTracker.call{value: newBalance}() (#1786)
- dividendTracker.distributeTokenDividends(dividends) (#1790)
External calls sending eth:
- (sent) = diviTracker.call{value: newBalance}() (#1786)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1791)
Reentrancy in CHOP.updateDividendTracker(address) (#1529-1543):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1536)
- newDividendTracker.excludeFromDividends(address(this)) (#1537)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1538)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1540)
Reentrancy in CHOP.updateTokenForDividend(address) (#1448-1452):
External calls:
- dividendTracker.updateTokenForDividend(newAddress) (#1449)
Event emitted after the call(s):
- UpdateDividendToken(newAddress,address(DividendToken)) (#1451)
Apply the check-effects-interactions pattern.
Additional information: link
CHOP.getTradingIsEnabled() (#1694-1696) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp >= tradingEnabledTimestamp (#1695)
CHOP._transfer(address,address,uint256) (#1863-2034) uses timestamp for comparisons
Dangerous comparisons:
- from != owner() && ! swapping && tradingIsEnabled && automatedMarketMakerPairs[to] && from != address(uniswapV2Router) && ! _isExcludedFromFees[to] (#1915-1920)
- firstsell[from] + sellLimitTime < block.timestamp (#1924)
- tradingIsEnabled && canSwap && ! swapping && ! automatedMarketMakerPairs[from] && from != burnAddress && to != burnAddress (#1964-1969)
- takeFee = tradingIsEnabled && ! swapping (#1984)
- takeFee || buyOrSell (#1991)
- canDividend = block.timestamp >= processDividendTime (#2022)
- ! swapping && canDividend (#2024)
CHOPDividendTracker.getAccount(address) (#2110-2153) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#2150-2152)
CHOPDividendTracker.canAutoClaim(uint256) (#2174-2180) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#2175)
- block.timestamp.sub(lastClaimTime) >= claimWait (#2179)
Avoid relying on block.timestamp.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.5.0', '>=0.6.0<0.8.0', '>=0.6.2', '^0.7.6']
- ^0.7.6 (#1)
- >=0.6.0<0.8.0 (#79)
- >=0.6.2 (#104)
- >=0.6.2 (#201)
- >=0.5.0 (#246)
- >=0.5.0 (#265)
- ^0.7.6 (#319)
- ^0.7.6 (#381)
- ^0.7.6 (#448)
- ^0.7.6 (#472)
- ^0.7.6 (#513)
- ^0.7.6 (#559)
- ^0.7.6 (#573)
- ^0.7.6 (#873)
- ^0.7.6 (#1085)
- ^0.7.6 (#1235)
Use one Solidity version.
Additional information: link
Context._msgData() (#96-99) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1200-1206) is never used and should be removed
ERC20._setupDecimals(uint8) (#852-854) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#1059-1062) is never used and should be removed
SafeMath.mod(uint256,uint256) (#1021-1024) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#1079-1082) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#893-897) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#929-932) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#939-942) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#914-922) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#904-907) is never used and should be removed
SafeMathInt.div(int256,int256) (#532-538) is never used and should be removed
SafeMathInt.mul(int256,int256) (#522-530) is never used and should be removed
Remove unused functions.
Additional information: link
CHOP.totalFees (#1273) is set pre-construction with a non-constant function or state variable:
- tokenRewardsFee.add(liquidityFee).add(marketFee).add(charityFee).add(buyBackFee).add(burnFee)
CHOP.buyTotalFees (#1281) is set pre-construction with a non-constant function or state variable:
- buyTokenRewardsFee.add(buyLiquidityFee).add(buyMarketFee).add(buyCharityFee).add(buyBuyBackFee).add(buyBurnFee)
CHOP.sellTotalFees (#1289) is set pre-construction with a non-constant function or state variable:
- sellTokenRewardsFee.add(sellLiquidityFee).add(sellMarketFee).add(sellCharityFee).add(sellBuyBackFee).add(sellBurnFee)
CHOP.previousMarketFee (#1291) is set pre-construction with a non-constant function or state variable:
- marketFee
CHOP.previousCharityFee (#1292) is set pre-construction with a non-constant function or state variable:
- charityFee
CHOP.previousBuyBackFee (#1293) is set pre-construction with a non-constant function or state variable:
- buyBackFee
CHOP.previousTokenRewardsFee (#1294) is set pre-construction with a non-constant function or state variable:
- tokenRewardsFee
CHOP.previousLiquidityFee (#1295) is set pre-construction with a non-constant function or state variable:
- liquidityFee
CHOP.previousBurnFee (#1296) is set pre-construction with a non-constant function or state variable:
- burnFee
CHOP.previousTotalFees (#1297) is set pre-construction with a non-constant function or state variable:
- totalFees
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.6.0<0.8.0 (#79) is too complex
Pragma version>=0.6.2 (#104) allows old versions
Pragma version>=0.6.2 (#201) allows old versions
Pragma version>=0.5.0 (#246) allows old versions
Pragma version>=0.5.0 (#265) 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 DividendPayingToken._withdrawDividendOfUser(address) (#1157-1181):
- (sent) = user.call{value: _withdrawableDividend}() (#1164)
Low level call in CHOP.swapAndLiquify(uint256) (#1698-1771):
- (sent) = marketAddress.call{value: marketFeeBalance}() (#1751)
- (sent) = charityAddress.call{value: charityFeeBalance}() (#1758)
- (sent) = buyBackAddress.call{value: buyBackFeeBalance}() (#1765)
Low level call in CHOP.swapAndSendDividends(uint256) (#1773-1793):
- (sent) = diviTracker.call{value: newBalance}() (#1786)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Router01.WETH() (#108) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#282) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#283) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#300) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#1183) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1187) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1191) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1195) is not in mixedCase
Constant DividendPayingToken.magnitude (#1099) is not in UPPER_CASE_WITH_UNDERSCORES
Variable DividendPayingToken.DividendToken (#1104) is not in mixedCase
Parameter CHOP.swapAndLiquifyOwner(uint256)._tokens (#1390) is not in mixedCase
Parameter CHOP.swapAndSendDividendsOwner(uint256)._tokens (#1394) is not in mixedCase
Parameter CHOP.updateSellLimitTime(uint256)._newTime (#1407) is not in mixedCase
Parameter CHOP.updateMaxSellTx(uint256)._newAmountNoDecimals (#1411) is not in mixedCase
Parameter CHOP.updateMaxBuyTx(uint256)._newAmountNoDecimals (#1423) is not in mixedCase
Parameter CHOP.updatedividendTime(uint256)._dividendTime (#1427) is not in mixedCase
Parameter CHOP.updateBuyBackMode(bool)._isBuyBackActive (#1431) is not in mixedCase
Parameter CHOP.updateisTransferDisabled(bool)._isTransferDisabled (#1435) is not in mixedCase
Parameter CHOP.updateFees(uint256,uint256,uint256,uint256,uint256,uint256)._tokenRewardsFee (#1488) is not in mixedCase
Parameter CHOP.updateFees(uint256,uint256,uint256,uint256,uint256,uint256)._liquidityFee (#1488) is not in mixedCase
Parameter CHOP.updateFees(uint256,uint256,uint256,uint256,uint256,uint256)._marketFee (#1488) is not in mixedCase
Parameter CHOP.updateFees(uint256,uint256,uint256,uint256,uint256,uint256)._charityFee (#1488) is not in mixedCase
Parameter CHOP.updateFees(uint256,uint256,uint256,uint256,uint256,uint256)._buyBackFee (#1488) is not in mixedCase
Parameter CHOP.updateFees(uint256,uint256,uint256,uint256,uint256,uint256)._burnFee (#1488) is not in mixedCase
Parameter CHOP.updateBuyFees(uint256,uint256,uint256,uint256,uint256,uint256)._tokenRewardsFee (#1498) is not in mixedCase
Parameter CHOP.updateBuyFees(uint256,uint256,uint256,uint256,uint256,uint256)._liquidityFee (#1498) is not in mixedCase
Parameter CHOP.updateBuyFees(uint256,uint256,uint256,uint256,uint256,uint256)._marketFee (#1498) is not in mixedCase
Parameter CHOP.updateBuyFees(uint256,uint256,uint256,uint256,uint256,uint256)._charityFee (#1498) is not in mixedCase
Parameter CHOP.updateBuyFees(uint256,uint256,uint256,uint256,uint256,uint256)._buyBackFee (#1498) is not in mixedCase
Parameter CHOP.updateBuyFees(uint256,uint256,uint256,uint256,uint256,uint256)._burnFee (#1498) is not in mixedCase
Parameter CHOP.updateSellFees(uint256,uint256,uint256,uint256,uint256,uint256)._tokenRewardsFee (#1508) is not in mixedCase
Parameter CHOP.updateSellFees(uint256,uint256,uint256,uint256,uint256,uint256)._liquidityFee (#1508) is not in mixedCase
Parameter CHOP.updateSellFees(uint256,uint256,uint256,uint256,uint256,uint256)._marketFee (#1508) is not in mixedCase
Parameter CHOP.updateSellFees(uint256,uint256,uint256,uint256,uint256,uint256)._charityFee (#1508) is not in mixedCase
Parameter CHOP.updateSellFees(uint256,uint256,uint256,uint256,uint256,uint256)._buyBackFee (#1508) is not in mixedCase
Parameter CHOP.updateSellFees(uint256,uint256,uint256,uint256,uint256,uint256)._burnFee (#1508) is not in mixedCase
Parameter CHOP.whitelistDxSale(address,address)._presaleAddress (#1518) is not in mixedCase
Parameter CHOP.whitelistDxSale(address,address)._routerAddress (#1518) is not in mixedCase
Variable CHOP.DividendToken (#1242) is not in mixedCase
Variable CHOP._maxWalletToken (#1253) is not in mixedCase
Parameter CHOPDividendTracker.getAccount(address)._account (#2110) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#97)" inContext (#91-100)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#113) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#114)
Variable CHOP.updateMaxSellTx(uint256)._newAmountNoDecimals (#1411) is too similar to CHOP.updateMinimumBalanceForDividends(uint256).newAmountNoDecimials (#1443)
Variable CHOP.updateMaxBuyTx(uint256)._newAmountNoDecimals (#1423) is too similar to CHOP.updateMinimumBalanceForDividends(uint256).newAmountNoDecimials (#1443)
Variable CHOP.updateMaxSellTx(uint256)._newAmountNoDecimals (#1411) is too similar to CHOP.updateMaxWalletAmount(uint256).newAmountNoDecimials (#1415)
Variable CHOP.updateMaxSellTx(uint256)._newAmountNoDecimals (#1411) is too similar to CHOP.updateSwapAtAmount(uint256).newAmountNoDecimials (#1419)
Variable CHOP.updateMaxBuyTx(uint256)._newAmountNoDecimals (#1423) is too similar to CHOP.updateMaxWalletAmount(uint256).newAmountNoDecimials (#1415)
Variable CHOP.updateMaxBuyTx(uint256)._newAmountNoDecimals (#1423) is too similar to CHOP.updateSwapAtAmount(uint256).newAmountNoDecimials (#1419)
Variable CHOP.swapAndLiquify(uint256).sent_scope_0 (#1758) is too similar to CHOP.swapAndLiquify(uint256).sent_scope_1 (#1765)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1158) is too similar to CHOPDividendTracker.getAccount(address).withdrawableDividends (#2115)
Prevent variables from having similar names.
Additional information: link
CHOP.constructor() (#1346-1384) uses literals with too many digits:
- _mint(owner(),100000000000 * (10 ** decimals())) (#1383)
CHOP.updateGasForProcessing(uint256) (#1616-1621) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,CHOP: gasForProcessing must be between 200,000 and 500,000) (#1617)
CHOP.slitherConstructorVariables() (#1236-2036) uses literals with too many digits:
- maxBuyTransactionAmount = 100000000000 * (10 ** 18) (#1250)
CHOP.slitherConstructorVariables() (#1236-2036) uses literals with too many digits:
- maxSellTransactionAmount = 100000000000 * (10 ** 18) (#1251)
CHOP.slitherConstructorVariables() (#1236-2036) uses literals with too many digits:
- swapTokensAtAmount = 100000000000 * (10 ** 18) (#1252)
CHOP.slitherConstructorVariables() (#1236-2036) uses literals with too many digits:
- _maxWalletToken = 100000000000 * (10 ** 18) (#1253)
CHOP.slitherConstructorVariables() (#1236-2036) uses literals with too many digits:
- gasForProcessing = 300000 (#1304)
CHOPDividendTracker.getAccountAtIndex(uint256) (#2155-2172) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#2166)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendPayingToken.lastAmount (#1102) is never used in CHOPDividendTracker (#2038-2259)
Remove unused state variables.
Additional information: link
DividendPayingToken.lastAmount (#1102) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#330-332)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#334-339)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#341-343)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#345-347)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#431-434)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#440-444)
name() should be declared external:
- ERC20.name() (#629-631)
symbol() should be declared external:
- ERC20.symbol() (#637-639)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#680-683)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#688-690)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#699-702)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#717-721)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#735-738)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#754-757)
updateMasterContract(address) should be declared external:
- DividendPayingToken.updateMasterContract(address) (#1124-1126)
distributeDividends() should be declared external:
- DividendPayingToken.distributeDividends() (#1127-1138)
distributeTokenDividends(uint256) should be declared external:
- DividendPayingToken.distributeTokenDividends(uint256) (#1140-1151)
withdrawDividend() should be declared external:
- CHOPDividendTracker.withdrawDividend() (#2074-2076)
- DividendPayingToken.withdrawDividend() (#1153-1155)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1183-1185)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1191-1193)
excludeFromLimits(address,bool) should be declared external:
- CHOP.excludeFromLimits(address,bool) (#1558-1563)
blacklistAddress(address,bool) should be declared external:
- CHOP.blacklistAddress(address,bool) (#1572-1577)
excludeFromDividends(address) should be declared external:
- CHOP.excludeFromDividends(address) (#1579-1583)
enableDividends(address) should be declared external:
- CHOP.enableDividends(address) (#1585-1589)
updateGasForProcessing(uint256) should be declared external:
- CHOP.updateGasForProcessing(uint256) (#1616-1621)
isExcludedFromFees(address) should be declared external:
- CHOP.isExcludedFromFees(address) (#1635-1637)
isExcludedFromLimits(address) should be declared external:
- CHOP.isExcludedFromLimits(address) (#1639-1641)
withdrawableDividendOf(address) should be declared external:
- CHOP.withdrawableDividendOf(address) (#1643-1645)
dividendTokenBalanceOf(address) should be declared external:
- CHOP.dividendTokenBalanceOf(address) (#1647-1649)
getAccountAtIndex(uint256) should be declared external:
- CHOPDividendTracker.getAccountAtIndex(uint256) (#2155-2172)
process(uint256) should be declared external:
- CHOPDividendTracker.process(uint256) (#2199-2244)
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.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find website, listings and other project-related information
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