Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
alpha.swapAndSendToMarketing(uint256) (#1796-1804) sends eth to arbitrary user
Dangerous calls:
- _marketingWallet.transfer(newBalance) (#1803)
alpha.addLiquidity(uint256,uint256) (#1806-1821) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in alpha._transfer(address,address,uint256) (#1721-1794):
External calls:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- swapAndSendToMarketing(marketingTokens) (#1748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- swapAndSendToMarketing(marketingTokens) (#1748)
- _marketingWallet.transfer(newBalance) (#1803)
State variables written after the call(s):
- swapAndSendToMarketing(marketingTokens) (#1748)
- swapping = true (#1499)
- swapping = false (#1501)
Reentrancy in alpha._transfer(address,address,uint256) (#1721-1794):
External calls:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- swapAndSendToMarketing(marketingTokens) (#1748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- swapAndSendDividends(sellTokens) (#1751)
- (success) = address(dividendTracker).call{value: dividends}() (#1867)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- swapAndSendToMarketing(marketingTokens) (#1748)
- _marketingWallet.transfer(newBalance) (#1803)
- swapAndSendDividends(sellTokens) (#1751)
- (success) = address(dividendTracker).call{value: dividends}() (#1867)
State variables written after the call(s):
- super._transfer(from,address(this),feeAmount) (#1776)
- _balances[sender] = senderBalance - amount (#1098)
- _balances[recipient] += amount (#1100)
- super._transfer(from,to,amount) (#1779)
- _balances[sender] = senderBalance - amount (#1098)
- _balances[recipient] += amount (#1100)
- swapAndSendDividends(sellTokens) (#1751)
- swapping = true (#1499)
- swapping = false (#1501)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1311-1327):
External calls:
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1316)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#1319)
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.
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
Reentrancy in alpha.updateDividendTracker(address) (#1550-1565):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1557)
- newDividendTracker.excludeFromDividends(address(this)) (#1558)
- newDividendTracker.excludeFromDividends(owner()) (#1559)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1560)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1564)
Apply the check-effects-interactions pattern.
Additional information: link
alpha._transfer(address,address,uint256).iterations (#1787) is a local variable never initialized
alpha._transfer(address,address,uint256).claims (#1787) is a local variable never initialized
alpha._transfer(address,address,uint256).lastProcessedIndex (#1787) is a local variable never initialized
alpha.addToBlackList(address[]).i (#1611) is a local variable never initialized
alpha._transfer(address,address,uint256).fees (#1763) 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
alpha.claim() (#1695-1697) ignores return value by dividendTracker.processAccount(address(msg.sender),false) (#1696)
alpha._transfer(address,address,uint256) (#1721-1794) ignores return value by dividendTracker.process(gas) (#1787-1792)
alpha.addLiquidity(uint256,uint256) (#1806-1821) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#1268) shadows:
- ERC20._name (#906) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#1268) shadows:
- ERC20._symbol (#907) (state variable)
Rename the local variables that shadow another component.
Additional information: link
alpha.setBuyFee(uint16,uint16) (#1627-1631) should emit an event for:
- totalBuyFee = rewardfee + marketing (#1630)
alpha.setSellFee(uint16,uint16,uint16) (#1633-1638) should emit an event for:
- totalSellFee = rewardfee + marketing + liquidity (#1637)
alpha.setSwapTokensAtAmount(uint256) (#1717-1719) should emit an event for:
- swapTokensAtAmount = numTokens (#1718)
Emit an event for critical parameter changes.
Additional information: link
alpha.setMarketingWallet(address).newWallet (#1708) lacks a zero-check on :
- _marketingWallet = address(newWallet) (#1709)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#1311-1327) has external calls inside a loop: (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1316)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'alpha._transfer(address,address,uint256).claims (#1787)' in alpha._transfer(address,address,uint256) (#1721-1794) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1788)
Variable 'alpha._transfer(address,address,uint256).iterations (#1787)' in alpha._transfer(address,address,uint256) (#1721-1794) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1788)
Variable 'alpha._transfer(address,address,uint256).lastProcessedIndex (#1787)' in alpha._transfer(address,address,uint256) (#1721-1794) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1788)
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 alpha._transfer(address,address,uint256) (#1721-1794):
External calls:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- swapAndSendToMarketing(marketingTokens) (#1748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- swapAndSendToMarketing(marketingTokens) (#1748)
- _marketingWallet.transfer(newBalance) (#1803)
State variables written after the call(s):
- swapAndSendToMarketing(marketingTokens) (#1748)
- _allowances[owner][spender] = amount (#1177)
Reentrancy in alpha._transfer(address,address,uint256) (#1721-1794):
External calls:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- swapAndSendToMarketing(marketingTokens) (#1748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- swapAndSendDividends(sellTokens) (#1751)
- (success) = address(dividendTracker).call{value: dividends}() (#1867)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- swapAndSendToMarketing(marketingTokens) (#1748)
- _marketingWallet.transfer(newBalance) (#1803)
- swapAndSendDividends(sellTokens) (#1751)
- (success) = address(dividendTracker).call{value: dividends}() (#1867)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1751)
- _allowances[owner][spender] = amount (#1177)
Reentrancy in alpha.constructor() (#1504-1542):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1519-1520)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1523)
- uniswapV2Router = _uniswapV2Router (#1522)
Reentrancy in alpha.constructor() (#1504-1542):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1519-1520)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1525)
- dividendTracker.excludeFromDividends(pair) (#1604)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1528)
- dividendTracker.excludeFromDividends(address(this)) (#1529)
- dividendTracker.excludeFromDividends(owner()) (#1530)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1531)
State variables written after the call(s):
- _mint(owner(),1 * 10 ** 12 * (10 ** 9)) (#1541)
- _balances[account] += amount (#1122)
- excludeFromFees(owner(),true) (#1534)
- _isExcludedFromFees[account] = excluded (#1579)
- excludeFromFees(address(this),true) (#1535)
- _isExcludedFromFees[account] = excluded (#1579)
- _mint(owner(),1 * 10 ** 12 * (10 ** 9)) (#1541)
- _totalSupply += amount (#1121)
Reentrancy in RWSCDividendTracker.processAccount(address,bool) (#2071-2081):
External calls:
- amount = _withdrawDividendOfUser(account) (#2072)
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1316)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#2075)
Reentrancy in alpha.swapAndLiquify(uint256) (#1823-1840):
External calls:
- swapTokensForEth(half) (#1831)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- addLiquidity(otherHalf,newBalance) (#1837)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1837)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1837)
- _allowances[owner][spender] = amount (#1177)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in alpha._setAutomatedMarketMakerPair(address,bool) (#1599-1608):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1604)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1607)
Reentrancy in alpha._transfer(address,address,uint256) (#1721-1794):
External calls:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- swapAndSendToMarketing(marketingTokens) (#1748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- swapAndSendToMarketing(marketingTokens) (#1748)
- _marketingWallet.transfer(newBalance) (#1803)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1178)
- swapAndSendToMarketing(marketingTokens) (#1748)
Reentrancy in alpha._transfer(address,address,uint256) (#1721-1794):
External calls:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- swapAndSendToMarketing(marketingTokens) (#1748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- swapAndSendDividends(sellTokens) (#1751)
- (success) = address(dividendTracker).call{value: dividends}() (#1867)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- swapAndSendToMarketing(marketingTokens) (#1748)
- _marketingWallet.transfer(newBalance) (#1803)
- swapAndSendDividends(sellTokens) (#1751)
- (success) = address(dividendTracker).call{value: dividends}() (#1867)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1178)
- swapAndSendDividends(sellTokens) (#1751)
- SendDividends(tokens,dividends) (#1870)
- swapAndSendDividends(sellTokens) (#1751)
- Transfer(sender,recipient,amount) (#1102)
- super._transfer(from,to,amount) (#1779)
- Transfer(sender,recipient,amount) (#1102)
- super._transfer(from,address(this),feeAmount) (#1776)
Reentrancy in alpha._transfer(address,address,uint256) (#1721-1794):
External calls:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- swapAndSendToMarketing(marketingTokens) (#1748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- swapAndSendDividends(sellTokens) (#1751)
- (success) = address(dividendTracker).call{value: dividends}() (#1867)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1781)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1782)
- dividendTracker.process(gas) (#1787-1792)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- swapAndSendToMarketing(marketingTokens) (#1748)
- _marketingWallet.transfer(newBalance) (#1803)
- swapAndSendDividends(sellTokens) (#1751)
- (success) = address(dividendTracker).call{value: dividends}() (#1867)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1788)
Reentrancy in alpha.constructor() (#1504-1542):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1519-1520)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1525)
- dividendTracker.excludeFromDividends(pair) (#1604)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1607)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1525)
Reentrancy in alpha.constructor() (#1504-1542):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1519-1520)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1525)
- dividendTracker.excludeFromDividends(pair) (#1604)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1528)
- dividendTracker.excludeFromDividends(address(this)) (#1529)
- dividendTracker.excludeFromDividends(owner()) (#1530)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1531)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1581)
- excludeFromFees(owner(),true) (#1534)
- ExcludeFromFees(account,excluded) (#1581)
- excludeFromFees(address(this),true) (#1535)
- Transfer(address(0),account,amount) (#1123)
- _mint(owner(),1 * 10 ** 12 * (10 ** 9)) (#1541)
Reentrancy in RWSCDividendTracker.processAccount(address,bool) (#2071-2081):
External calls:
- amount = _withdrawDividendOfUser(account) (#2072)
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1316)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#2076)
Reentrancy in alpha.processDividendTracker(uint256) (#1690-1693):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1691)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1692)
Reentrancy in alpha.swapAndLiquify(uint256) (#1823-1840):
External calls:
- swapTokensForEth(half) (#1831)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- addLiquidity(otherHalf,newBalance) (#1837)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1837)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1178)
- addLiquidity(otherHalf,newBalance) (#1837)
- SwapAndLiquify(half,newBalance,otherHalf) (#1839)
Reentrancy in alpha.swapAndSendDividends(uint256) (#1863-1872):
External calls:
- swapTokensForEth(tokens) (#1865)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1853-1859)
- (success) = address(dividendTracker).call{value: dividends}() (#1867)
External calls sending eth:
- (success) = address(dividendTracker).call{value: dividends}() (#1867)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1870)
Reentrancy in alpha.updateDividendTracker(address) (#1550-1565):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1557)
- newDividendTracker.excludeFromDividends(address(this)) (#1558)
- newDividendTracker.excludeFromDividends(owner()) (#1559)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1560)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1562)
Apply the check-effects-interactions pattern.
Additional information: link
RWSCDividendTracker.getAccount(address) (#1935-1978) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1975-1977)
RWSCDividendTracker.canAutoClaim(uint256) (#1999-2005) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#2000)
- block.timestamp.sub(lastClaimTime) >= claimWait (#2004)
Avoid relying on block.timestamp.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.5.0', '>=0.6.2', '^0.8.0', '^0.8.6']
- >=0.5.0 (#11)
- >=0.6.2 (#31)
- >=0.6.2 (#129)
- ^0.8.6 (#176)
- ^0.8.6 (#243)
- ^0.8.6 (#271)
- ^0.8.6 (#340)
- ^0.8.6 (#410)
- ^0.8.0 (#428)
- ^0.8.0 (#657)
- ^0.8.0 (#683)
- ^0.8.0 (#756)
- ^0.8.0 (#840)
- ^0.8.0 (#869)
- ^0.8.6 (#1226)
- ^0.8.6 (#1413)
Use one Solidity version.
Additional information: link
Context._msgData() (#674-676) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1367-1373) is never used and should be removed
IterableMapping.get(IterableMapping.Map,address) (#187-189) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#615-624) is never used and should be removed
SafeMath.mod(uint256,uint256) (#575-577) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#641-650) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (#592-601) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#446-452) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#488-493) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#500-505) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#471-481) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#459-464) is never used and should be removed
SafeMathInt.abs(int256) (#394-397) is never used and should be removed
SafeMathInt.div(int256,int256) (#365-371) is never used and should be removed
SafeMathInt.mul(int256,int256) (#353-360) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version>=0.5.0 (#11) allows old versions
Pragma version>=0.6.2 (#31) allows old versions
Pragma version>=0.6.2 (#129) allows old versions
Pragma version^0.8.0 (#428) allows old versions
Pragma version^0.8.0 (#657) allows old versions
Pragma version^0.8.0 (#683) allows old versions
Pragma version^0.8.0 (#756) allows old versions
Pragma version^0.8.0 (#840) allows old versions
Pragma version^0.8.0 (#869) 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) (#1311-1327):
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1316)
Low level call in alpha.swapAndSendDividends(uint256) (#1863-1872):
- (success) = address(dividendTracker).call{value: dividends}() (#1867)
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() (#35) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#1333) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1340) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1347) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1357) is not in mixedCase
Constant DividendPayingToken.magnitude (#1248) is not in UPPER_CASE_WITH_UNDERSCORES
Contract alpha (#1421-1873) is not in CapWords
Constant alpha.deadAddress (#1426) is not in UPPER_CASE_WITH_UNDERSCORES
Variable alpha._marketingWallet (#1454) is not in mixedCase
Variable alpha._isBlacklisted (#1460) is not in mixedCase
Parameter RWSCDividendTracker.getAccount(address)._account (#1935) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in alpha._transfer(address,address,uint256) (#1721-1794):
External calls:
- swapAndSendToMarketing(marketingTokens) (#1748)
- _marketingWallet.transfer(newBalance) (#1803)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1812-1819)
- swapAndSendToMarketing(marketingTokens) (#1748)
- _marketingWallet.transfer(newBalance) (#1803)
- swapAndSendDividends(sellTokens) (#1751)
- (success) = address(dividendTracker).call{value: dividends}() (#1867)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1751)
- _allowances[owner][spender] = amount (#1177)
- super._transfer(from,address(this),feeAmount) (#1776)
- _balances[sender] = senderBalance - amount (#1098)
- _balances[recipient] += amount (#1100)
- super._transfer(from,to,amount) (#1779)
- _balances[sender] = senderBalance - amount (#1098)
- _balances[recipient] += amount (#1100)
- swapAndSendDividends(sellTokens) (#1751)
- swapping = true (#1499)
- swapping = false (#1501)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1178)
- swapAndSendDividends(sellTokens) (#1751)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1788)
- SendDividends(tokens,dividends) (#1870)
- swapAndSendDividends(sellTokens) (#1751)
- Transfer(sender,recipient,amount) (#1102)
- super._transfer(from,to,amount) (#1779)
- Transfer(sender,recipient,amount) (#1102)
- super._transfer(from,address(this),feeAmount) (#1776)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#40) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#41)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1312) is too similar to RWSCDividendTracker.getAccount(address).withdrawableDividends (#1940)
Prevent variables from having similar names.
Additional information: link
alpha.updateGasForProcessing(uint256) (#1620-1625) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,Token: gasForProcessing must be between 200,000 and 500,000) (#1621)
alpha.slitherConstructorVariables() (#1421-1873) uses literals with too many digits:
- gasForProcessing = 300000 (#1457)
RWSCDividendTracker.getAccountAtIndex(uint256) (#1980-1997) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1991)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#348) is never used in SafeMathInt (#346-404)
Remove unused state variables.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#732-734)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#740-743)
name() should be declared external:
- ERC20.name() (#926-928)
symbol() should be declared external:
- ERC20.symbol() (#934-936)
decimals() should be declared external:
- ERC20.decimals() (#951-953)
- alpha.decimals() (#1546-1548)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#977-980)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#985-987)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#996-999)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#1014-1028)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#1042-1045)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#1061-1069)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#1305-1307)
- RWSCDividendTracker.withdrawDividend() (#1904-1906)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1333-1335)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1347-1349)
updateDividendTracker(address) should be declared external:
- alpha.updateDividendTracker(address) (#1550-1565)
updateUniswapV2Router(address) should be declared external:
- alpha.updateUniswapV2Router(address) (#1567-1571)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- alpha.excludeMultipleAccountsFromFees(address[],bool) (#1584-1590)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- alpha.setAutomatedMarketMakerPair(address,bool) (#1593-1597)
updateGasForProcessing(uint256) should be declared external:
- alpha.updateGasForProcessing(uint256) (#1620-1625)
isExcludedFromFees(address) should be declared external:
- alpha.isExcludedFromFees(address) (#1652-1654)
withdrawableDividendOf(address) should be declared external:
- alpha.withdrawableDividendOf(address) (#1656-1658)
dividendTokenBalanceOf(address) should be declared external:
- alpha.dividendTokenBalanceOf(address) (#1660-1662)
getAccountAtIndex(uint256) should be declared external:
- RWSCDividendTracker.getAccountAtIndex(uint256) (#1980-1997)
process(uint256) should be declared external:
- RWSCDividendTracker.process(uint256) (#2024-2069)
Use the external attribute for functions never called from the contract.
Additional information: link
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 PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
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