Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
SAFUCOIN.swapBack() (#1957-2001) sends eth to arbitrary user
Dangerous calls:
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percForMarketing / 100}() (#1996)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1999)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in SAFUCOIN._transfer(address,address,uint256) (#1735-1880):
External calls:
- swapBack() (#1794)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1922-1928)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1903-1908)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1888-1893)
- (success,None) = address(charityWallet).call{value: ethForCharity}() (#1982)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
- success = IERC20(token).transfer(address(dividendTracker),tokenBalance) (#1988)
- dividendTracker.distributeTokenDividends(tokenBalance) (#1991)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percForMarketing / 100}() (#1996)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1999)
External calls sending eth:
- swapBack() (#1794)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1903-1908)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1888-1893)
- (success,None) = address(charityWallet).call{value: ethForCharity}() (#1982)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percForMarketing / 100}() (#1996)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1999)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1861)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#424)
- _balances[recipient] = _balances[recipient].add(amount) (#425)
- super._transfer(from,to,amount) (#1867)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#424)
- _balances[recipient] = _balances[recipient].add(amount) (#425)
- swapping = false (#1795)
- tokensForCharity += fees * charityPenaltySellFee / totalPenaltySellFees (#1816)
- tokensForCharity += fees * charitySellFee / totalSellFees (#1824)
- tokensForCharity += fees * charityBuyFee / totalBuyFees (#1832)
- tokensForLiquidity += fees * liquidityPenaltySellFee / totalPenaltySellFees (#1814)
- tokensForLiquidity += fees * liquiditySellFee / totalSellFees (#1822)
- tokensForLiquidity += fees * liquidityBuyFee / totalBuyFees (#1830)
- tokensForMarketing += fees * marketingPenaltySellFee / totalPenaltySellFees (#1815)
- tokensForMarketing += fees * marketingSellFee / totalSellFees (#1823)
- tokensForMarketing += fees * marketingBuyFee / totalBuyFees (#1831)
- tokensForRewards += fees * rewardsPenaltySellFee / totalPenaltySellFees (#1813)
- tokensForRewards += fees * rewardsSellFee / totalSellFees (#1821)
- tokensForRewards += fees * rewardsBuyFee / totalBuyFees (#1829)
Apply the check-effects-interactions pattern.
Additional information: link
SAFUCOIN.swapBack() (#1957-2001) uses a dangerous strict equality:
- contractBalance == 0 || totalTokensToSwap == 0 (#1961)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Contract locking ether found:
Contract DividendTracker (#1129-1334) has payable functions:
- DividendPayingToken.receive() (#1002-1004)
- DividendPayingToken.distributeDividends() (#1020-1022)
- DividendPayingTokenInterface.distributeDividends() (#543)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
SAFUCOIN.swapBack().success (#1963) is written in both
(success,None) = address(charityWallet).call{value: ethForCharity}() (#1982)
(success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
SAFUCOIN.swapBack().success (#1963) is written in both
(success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
success = IERC20(token).transfer(address(dividendTracker),tokenBalance) (#1988)
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.
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-fees = amount.mul(holderTax + totalSellFees).div(feeDivisor) (#1812)
-tokensForRewards += fees * rewardsPenaltySellFee / totalPenaltySellFees (#1813)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-fees = amount.mul(holderTax + totalSellFees).div(feeDivisor) (#1812)
-tokensForLiquidity += fees * liquidityPenaltySellFee / totalPenaltySellFees (#1814)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-fees = amount.mul(holderTax + totalSellFees).div(feeDivisor) (#1812)
-tokensForMarketing += fees * marketingPenaltySellFee / totalPenaltySellFees (#1815)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-fees = amount.mul(holderTax + totalSellFees).div(feeDivisor) (#1812)
-tokensForCharity += fees * charityPenaltySellFee / totalPenaltySellFees (#1816)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-tokensForRewards += fees * rewardsSellFee / totalSellFees (#1821)
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1828)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1828)
-tokensForRewards += fees * rewardsBuyFee / totalBuyFees (#1829)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-tokensForLiquidity += fees * liquiditySellFee / totalSellFees (#1822)
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1828)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1828)
-tokensForLiquidity += fees * liquidityBuyFee / totalBuyFees (#1830)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-tokensForMarketing += fees * marketingSellFee / totalSellFees (#1823)
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1828)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1828)
-tokensForMarketing += fees * marketingBuyFee / totalBuyFees (#1831)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-tokensForCharity += fees * charitySellFee / totalSellFees (#1824)
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1828)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1828)
-tokensForCharity += fees * charityBuyFee / totalBuyFees (#1832)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-walletSellPenaltyEndTime[to] = walletSellPenaltyEndTime[to] + (penaltyDuration * (amount * 1e18 / holderBalance_scope_0)) / 1e18 (#1852)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) performs a multiplication on the result of a division:
-walletSellPenaltyEndTime[to] = walletSellPenaltyEndTime[to] + (penaltyDuration * (amount * 1e18 / holderBalance)) / 1e18 (#1839)
SAFUCOIN.getHolderPenaltySellTax(address) (#1948-1955) performs a multiplication on the result of a division:
-walletPenaltyTax = (penaltyTax * (timeRemainingForPenalty * 1e9 / penaltyDuration)) / 1e9 (#1952)
SAFUCOIN.swapBack() (#1957-2001) performs a multiplication on the result of a division:
-ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap) (#1971)
-(success,None) = address(marketingWallet).call{value: ethForMarketing * percForMarketing / 100}() (#1996)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1045-1061):
External calls:
- success = IERC20(token).transfer(user,_withdrawableDividend) (#1050)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#1053)
Reentrancy in SAFUCOIN.constructor() (#1445-1515):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1482-1483)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1488)
- dividendTracker.excludeFromDividends(pair) (#1623)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1491)
- dividendTracker.excludeFromDividends(address(this)) (#1492)
- dividendTracker.excludeFromDividends(newOwner) (#1493)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1494)
- dividendTracker.excludeFromDividends(address(0xdead)) (#1495)
State variables written after the call(s):
- transferOwnership(newOwner) (#1514)
- _owner = newOwner (#758)
Reentrancy in SAFUCOIN.swapBack() (#1957-2001):
External calls:
- swapTokensForEth(contractBalance) (#1967)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1922-1928)
State variables written after the call(s):
- tokensForCharity = 0 (#1979)
- tokensForLiquidity = 0 (#1976)
- tokensForMarketing = 0 (#1977)
- tokensForRewards = 0 (#1978)
Apply the check-effects-interactions pattern.
Additional information: link
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) uses tx.origin for authorization: require(bool,string)(_holderLastTransferTimestamp[tx.origin] < block.number,_transfer:: Transfer Delay enabled. Only one purchase per block allowed.) (#1765)
Do not use tx.origin for authorization.
Additional information: link
SAFUCOIN._transfer(address,address,uint256).claims (#1875) is a local variable never initialized
SAFUCOIN._transfer(address,address,uint256).iterations (#1875) is a local variable never initialized
SAFUCOIN._transfer(address,address,uint256).lastProcessedIndex (#1875) 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
SAFUCOIN.claim() (#1712-1714) ignores return value by dividendTracker.processAccount(address(msg.sender),false) (#1713)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) ignores return value by dividendTracker.process(gas) (#1875-1878)
SAFUCOIN.addLiquidity(uint256,uint256) (#1932-1946) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0xdead),block.timestamp) (#1937-1944)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.dividendOf(address)._owner (#1067) shadows:
- Ownable._owner (#711) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#1074) shadows:
- Ownable._owner (#711) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#1081) shadows:
- Ownable._owner (#711) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#1091) shadows:
- Ownable._owner (#711) (state variable)
SAFUCOIN.constructor().totalSupply (#1448) shadows:
- ERC20.totalSupply() (#298-300) (function)
- IERC20.totalSupply() (#148) (function)
Rename the local variables that shadow another component.
Additional information: link
SAFUCOIN.updateSwapTokensAtAmount(uint256) (#1540-1545) should emit an event for:
- swapTokensAtAmount = newAmount (#1543)
SAFUCOIN.updateMaxAmount(uint256) (#1554-1557) should emit an event for:
- maxTransactionAmount = newNum * (10 ** 18) (#1556)
SAFUCOIN.updateBuyFees(uint256,uint256,uint256,uint256) (#1559-1566) should emit an event for:
- marketingBuyFee = _marketingFee (#1560)
- rewardsBuyFee = _rewardsFee (#1561)
- liquidityBuyFee = _liquidityFee (#1562)
- charityBuyFee = _charityFee (#1563)
- totalBuyFees = marketingBuyFee + rewardsBuyFee + liquidityBuyFee + charityBuyFee (#1564)
SAFUCOIN.updateSellFees(uint256,uint256,uint256,uint256) (#1568-1575) should emit an event for:
- marketingSellFee = _marketingFee (#1569)
- rewardsSellFee = _rewardsFee (#1570)
- liquiditySellFee = _liquidityFee (#1571)
- charitySellFee = _charityFee (#1572)
- totalSellFees = marketingSellFee + rewardsSellFee + liquiditySellFee + charitySellFee (#1573)
SAFUCOIN.updatePenaltySellFees(uint256,uint256,uint256,uint256) (#1577-1585) should emit an event for:
- marketingPenaltySellFee = _marketingFee (#1578)
- rewardsPenaltySellFee = _rewardsFee (#1579)
- liquidityPenaltySellFee = _liquidityFee (#1580)
- charityPenaltySellFee = _charityFee (#1581)
- totalPenaltySellFees = marketingPenaltySellFee + rewardsPenaltySellFee + liquidityPenaltySellFee + charityPenaltySellFee (#1582)
SAFUCOIN.marketingBuyBackSettings(bool,uint256) (#2008-2012) should emit an event for:
- percForMarketing = _percForMarketing (#2010)
Emit an event for critical parameter changes.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#1045-1061) has external calls inside a loop: success = IERC20(token).transfer(user,_withdrawableDividend) (#1050)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'SAFUCOIN._transfer(address,address,uint256).claims (#1875)' in SAFUCOIN._transfer(address,address,uint256) (#1735-1880) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1876)
Variable 'SAFUCOIN._transfer(address,address,uint256).iterations (#1875)' in SAFUCOIN._transfer(address,address,uint256) (#1735-1880) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1876)
Variable 'SAFUCOIN._transfer(address,address,uint256).lastProcessedIndex (#1875)' in SAFUCOIN._transfer(address,address,uint256) (#1735-1880) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1876)
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 SAFUCOIN._transfer(address,address,uint256) (#1735-1880):
External calls:
- swapBack() (#1794)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1922-1928)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1903-1908)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1888-1893)
- (success,None) = address(charityWallet).call{value: ethForCharity}() (#1982)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
- success = IERC20(token).transfer(address(dividendTracker),tokenBalance) (#1988)
- dividendTracker.distributeTokenDividends(tokenBalance) (#1991)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percForMarketing / 100}() (#1996)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1999)
External calls sending eth:
- swapBack() (#1794)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1903-1908)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1888-1893)
- (success,None) = address(charityWallet).call{value: ethForCharity}() (#1982)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percForMarketing / 100}() (#1996)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1999)
State variables written after the call(s):
- walletLastBuy[to] = block.timestamp (#1844)
- walletLastBuy[to] = block.timestamp (#1857)
- walletSellPenaltyEndTime[to] = block.timestamp + penaltyDuration (#1836)
- walletSellPenaltyEndTime[to] = block.timestamp + penaltyDuration (#1841)
- walletSellPenaltyEndTime[to] = block.timestamp + penaltyDuration (#1849)
- walletSellPenaltyEndTime[to] = block.timestamp + penaltyDuration (#1854)
- walletSellPenaltyEndTime[to] = block.timestamp + penaltyDuration (#1839)
- walletSellPenaltyEndTime[to] = walletSellPenaltyEndTime[to] + (penaltyDuration * (amount * 1e18 / holderBalance)) / 1e18 (#1839)
- walletSellPenaltyEndTime[to] = block.timestamp + penaltyDuration (#1852)
- walletSellPenaltyEndTime[to] = walletSellPenaltyEndTime[to] + (penaltyDuration * (amount * 1e18 / holderBalance_scope_0)) / 1e18 (#1852)
Reentrancy in SAFUCOIN.constructor() (#1445-1515):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1482-1483)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1486)
- uniswapV2Router = _uniswapV2Router (#1485)
Reentrancy in SAFUCOIN.constructor() (#1445-1515):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1482-1483)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1488)
- dividendTracker.excludeFromDividends(pair) (#1623)
State variables written after the call(s):
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1488)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1588)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1488)
- automatedMarketMakerPairs[pair] = value (#1618)
Reentrancy in SAFUCOIN.constructor() (#1445-1515):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1482-1483)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1488)
- dividendTracker.excludeFromDividends(pair) (#1623)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1491)
- dividendTracker.excludeFromDividends(address(this)) (#1492)
- dividendTracker.excludeFromDividends(newOwner) (#1493)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1494)
- dividendTracker.excludeFromDividends(address(0xdead)) (#1495)
State variables written after the call(s):
- _createInitialSupply(address(newOwner),totalSupply) (#1513)
- _balances[account] = _balances[account].add(amount) (#444)
- excludeFromFees(newOwner,true) (#1498)
- _isExcludedFromFees[account] = excluded (#1593)
- excludeFromFees(address(this),true) (#1499)
- _isExcludedFromFees[account] = excluded (#1593)
- excludeFromFees(address(0xdead),true) (#1500)
- _isExcludedFromFees[account] = excluded (#1593)
- excludeFromMaxTransaction(newOwner,true) (#1502)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1588)
- excludeFromMaxTransaction(address(this),true) (#1503)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1588)
- excludeFromMaxTransaction(address(dividendTracker),true) (#1504)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1588)
- excludeFromMaxTransaction(address(_uniswapV2Router),true) (#1505)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1588)
- excludeFromMaxTransaction(address(0xdead),true) (#1506)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1588)
- _createInitialSupply(address(newOwner),totalSupply) (#1513)
- _totalSupply = _totalSupply.add(amount) (#443)
Reentrancy in DividendTracker.processAccount(address,bool) (#1323-1333):
External calls:
- amount = _withdrawDividendOfUser(account) (#1324)
- success = IERC20(token).transfer(user,_withdrawableDividend) (#1050)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1327)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in SAFUCOIN._setAutomatedMarketMakerPair(address,bool) (#1617-1627):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1623)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1626)
Reentrancy in SAFUCOIN._transfer(address,address,uint256) (#1735-1880):
External calls:
- swapBack() (#1794)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1922-1928)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1903-1908)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1888-1893)
- (success,None) = address(charityWallet).call{value: ethForCharity}() (#1982)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
- success = IERC20(token).transfer(address(dividendTracker),tokenBalance) (#1988)
- dividendTracker.distributeTokenDividends(tokenBalance) (#1991)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percForMarketing / 100}() (#1996)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1999)
External calls sending eth:
- swapBack() (#1794)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1903-1908)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1888-1893)
- (success,None) = address(charityWallet).call{value: ethForCharity}() (#1982)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percForMarketing / 100}() (#1996)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1999)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#426)
- super._transfer(from,to,amount) (#1867)
- Transfer(sender,recipient,amount) (#426)
- super._transfer(from,address(this),fees) (#1861)
Reentrancy in SAFUCOIN._transfer(address,address,uint256) (#1735-1880):
External calls:
- swapBack() (#1794)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1922-1928)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1903-1908)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1888-1893)
- (success,None) = address(charityWallet).call{value: ethForCharity}() (#1982)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
- success = IERC20(token).transfer(address(dividendTracker),tokenBalance) (#1988)
- dividendTracker.distributeTokenDividends(tokenBalance) (#1991)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percForMarketing / 100}() (#1996)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1999)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1869)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1870)
- dividendTracker.process(gas) (#1875-1878)
External calls sending eth:
- swapBack() (#1794)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1903-1908)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1888-1893)
- (success,None) = address(charityWallet).call{value: ethForCharity}() (#1982)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percForMarketing / 100}() (#1996)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1999)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1876)
Reentrancy in SAFUCOIN.constructor() (#1445-1515):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1482-1483)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1488)
- dividendTracker.excludeFromDividends(pair) (#1623)
Event emitted after the call(s):
- ExcludedMaxTransactionAmount(updAds,isEx) (#1589)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1488)
- SetAutomatedMarketMakerPair(pair,value) (#1626)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1488)
Reentrancy in SAFUCOIN.constructor() (#1445-1515):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1482-1483)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1488)
- dividendTracker.excludeFromDividends(pair) (#1623)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1491)
- dividendTracker.excludeFromDividends(address(this)) (#1492)
- dividendTracker.excludeFromDividends(newOwner) (#1493)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1494)
- dividendTracker.excludeFromDividends(address(0xdead)) (#1495)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1595)
- excludeFromFees(address(0xdead),true) (#1500)
- ExcludeFromFees(account,excluded) (#1595)
- excludeFromFees(newOwner,true) (#1498)
- ExcludeFromFees(account,excluded) (#1595)
- excludeFromFees(address(this),true) (#1499)
- ExcludedMaxTransactionAmount(updAds,isEx) (#1589)
- excludeFromMaxTransaction(address(0xdead),true) (#1506)
- ExcludedMaxTransactionAmount(updAds,isEx) (#1589)
- excludeFromMaxTransaction(newOwner,true) (#1502)
- ExcludedMaxTransactionAmount(updAds,isEx) (#1589)
- excludeFromMaxTransaction(address(this),true) (#1503)
- ExcludedMaxTransactionAmount(updAds,isEx) (#1589)
- excludeFromMaxTransaction(address(_uniswapV2Router),true) (#1505)
- ExcludedMaxTransactionAmount(updAds,isEx) (#1589)
- excludeFromMaxTransaction(address(dividendTracker),true) (#1504)
- OwnershipTransferred(_owner,newOwner) (#757)
- transferOwnership(newOwner) (#1514)
- Transfer(address(0),account,amount) (#445)
- _createInitialSupply(address(newOwner),totalSupply) (#1513)
Reentrancy in SAFUCOIN.excludeFromDividends(address) (#1528-1531):
External calls:
- dividendTracker.excludeFromDividends(account) (#1529)
Event emitted after the call(s):
- ExcludeFromDividends(account) (#1530)
Reentrancy in SAFUCOIN.includeInDividends(address) (#1534-1537):
External calls:
- dividendTracker.includeInDividends(account) (#1535)
Event emitted after the call(s):
- IncludeInDividends(account) (#1536)
Reentrancy in DividendTracker.processAccount(address,bool) (#1323-1333):
External calls:
- amount = _withdrawDividendOfUser(account) (#1324)
- success = IERC20(token).transfer(user,_withdrawableDividend) (#1050)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1328)
Reentrancy in SAFUCOIN.processDividendTracker(uint256) (#1707-1710):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1708)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1709)
Reentrancy in SAFUCOIN.swapBack() (#1957-2001):
External calls:
- swapTokensForEth(contractBalance) (#1967)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1922-1928)
- (success,None) = address(charityWallet).call{value: ethForCharity}() (#1982)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
- swapBnbForRewardToken(ethForRewards) (#1985)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1888-1893)
- success = IERC20(token).transfer(address(dividendTracker),tokenBalance) (#1988)
- dividendTracker.distributeTokenDividends(tokenBalance) (#1991)
External calls sending eth:
- (success,None) = address(charityWallet).call{value: ethForCharity}() (#1982)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
- swapBnbForRewardToken(ethForRewards) (#1985)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1888-1893)
Event emitted after the call(s):
- SendDividends(tokenBalance,ethForRewards) (#1992)
Apply the check-effects-interactions pattern.
Additional information: link
DividendTracker.getAccount(address) (#1187-1230) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1227-1229)
DividendTracker.canAutoClaim(uint256) (#1251-1257) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1252)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1256)
SAFUCOIN._transfer(address,address,uint256) (#1735-1880) uses timestamp for comparisons
Dangerous comparisons:
- amount == 0 (#1743)
- require(bool,string)(amount <= maxTransactionAmount,Buy transfer amount exceeds the maxTransactionAmount.) (#1772)
- require(bool,string)(amount <= maxTransactionAmount,Sell transfer amount exceeds the maxTransactionAmount.) (#1776)
- canSwap = contractTokenBalance >= swapTokensAtAmount (#1783)
- canSwap && swapEnabled && ! swapping && ! automatedMarketMakerPairs[from] && ! _isExcludedFromFees[from] && ! _isExcludedFromFees[to] (#1786-1791)
- automatedMarketMakerPairs[to] && totalPenaltySellFees > 0 && block.timestamp < walletSellPenaltyEndTime[from] (#1810)
- walletSellPenaltyEndTime[to] - penaltyDuration > block.timestamp (#1840)
- walletSellPenaltyEndTime[to] - penaltyDuration > block.timestamp (#1853)
- fees > 0 (#1860)
- amount >= holderBalance (#1839)
- amount >= holderBalance_scope_0 (#1852)
SAFUCOIN.getHolderPenaltySellTax(address) (#1948-1955) uses timestamp for comparisons
Dangerous comparisons:
- walletSellPenaltyEndTime[wallet] <= block.timestamp (#1949)
SAFUCOIN.swapBack() (#1957-2001) uses timestamp for comparisons
Dangerous comparisons:
- contractBalance == 0 || totalTokensToSwap == 0 (#1961)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (#10-13) is never used and should be removed
ERC20._burn(address,uint256) (#459-467) is never used and should be removed
SAFUCOIN.addLiquidity(uint256,uint256) (#1932-1946) is never used and should be removed
SafeMath.mod(uint256,uint256) (#688-690) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#704-707) is never used and should be removed
SafeMathInt.abs(int256) (#812-815) is never used and should be removed
SafeMathInt.div(int256,int256) (#783-789) is never used and should be removed
SafeMathInt.mul(int256,int256) (#771-778) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version0.8.9 (#3) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.9 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in SAFUCOIN.swapBack() (#1957-2001):
- (success,None) = address(charityWallet).call{value: ethForCharity}() (#1982)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1983)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percForMarketing / 100}() (#1996)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1999)
Low level call in SAFUCOIN.withdrawStuckEth() (#2003-2006):
- (success) = address(msg.sender).call{value: address(this).balance}() (#2004)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#31) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#32) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#49) is not in mixedCase
Function IUniswapV2Router01.WETH() (#835) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#1067) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1074) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1081) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1091) is not in mixedCase
Constant DividendPayingToken.magnitude (#976) is not in UPPER_CASE_WITH_UNDERSCORES
Constant DividendPayingToken.token (#980) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter DividendTracker.getAccount(address)._account (#1187) is not in mixedCase
Event SAFUCOINmarketingWalletUpdated(address,address) (#1422) is not in CapWords
Event SAFUCOINliquidityWalletUpdated(address,address) (#1423) is not in CapWords
Event SAFUCOINcharityWalletUpdated(address,address) (#1424) is not in CapWords
Parameter SAFUCOIN.updateBuyFees(uint256,uint256,uint256,uint256)._marketingFee (#1559) is not in mixedCase
Parameter SAFUCOIN.updateBuyFees(uint256,uint256,uint256,uint256)._rewardsFee (#1559) is not in mixedCase
Parameter SAFUCOIN.updateBuyFees(uint256,uint256,uint256,uint256)._liquidityFee (#1559) is not in mixedCase
Parameter SAFUCOIN.updateBuyFees(uint256,uint256,uint256,uint256)._charityFee (#1559) is not in mixedCase
Parameter SAFUCOIN.updateSellFees(uint256,uint256,uint256,uint256)._marketingFee (#1568) is not in mixedCase
Parameter SAFUCOIN.updateSellFees(uint256,uint256,uint256,uint256)._rewardsFee (#1568) is not in mixedCase
Parameter SAFUCOIN.updateSellFees(uint256,uint256,uint256,uint256)._liquidityFee (#1568) is not in mixedCase
Parameter SAFUCOIN.updateSellFees(uint256,uint256,uint256,uint256)._charityFee (#1568) is not in mixedCase
Parameter SAFUCOIN.updatePenaltySellFees(uint256,uint256,uint256,uint256)._marketingFee (#1577) is not in mixedCase
Parameter SAFUCOIN.updatePenaltySellFees(uint256,uint256,uint256,uint256)._rewardsFee (#1577) is not in mixedCase
Parameter SAFUCOIN.updatePenaltySellFees(uint256,uint256,uint256,uint256)._liquidityFee (#1577) is not in mixedCase
Parameter SAFUCOIN.updatePenaltySellFees(uint256,uint256,uint256,uint256)._charityFee (#1577) is not in mixedCase
Parameter SAFUCOIN.marketingBuyBackSettings(bool,uint256)._buyBackEnabled (#2008) is not in mixedCase
Parameter SAFUCOIN.marketingBuyBackSettings(bool,uint256)._percForMarketing (#2008) is not in mixedCase
Constant SAFUCOIN.penaltyDuration (#1356) is not in UPPER_CASE_WITH_UNDERSCORES
Constant SAFUCOIN.token (#1358) is not in UPPER_CASE_WITH_UNDERSCORES
Variable SAFUCOIN._isExcludedMaxTransactionAmount (#1410) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#11)" inContext (#5-14)
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 (#840) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#841)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1046) is too similar to DividendTracker.getAccount(address).withdrawableDividends (#1192)
Prevent variables from having similar names.
Additional information: link
DividendTracker.getAccountAtIndex(uint256) (#1232-1249) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1243)
SAFUCOIN.updateSwapTokensAtAmount(uint256) (#1540-1545) uses literals with too many digits:
- require(bool,string)(newAmount >= totalSupply() * 1 / 100000,Swap amount cannot be lower than 0.001% total supply.) (#1541)
SAFUCOIN.updateGasForProcessing(uint256) (#1650-1655) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 600000, gasForProcessing must be between 200,000 and 500,000) (#1651)
SAFUCOIN.slitherConstructorVariables() (#1337-2014) uses literals with too many digits:
- gasForProcessing = 400000 (#1403)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#766) is never used in SafeMathInt (#764-822)
Remove unused state variables.
Additional information: link
SAFUCOIN.feeDivisor (#1377) should be constant
SAFUCOIN.liquidityActiveBlock (#1363) should be constant
SAFUCOIN.presaleAddress (#1374) should be constant
SAFUCOIN.presaleRouterAddress (#1375) 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) (#92-94)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#96-101)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#103-105)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#109-111)
name() should be declared external:
- ERC20.name() (#266-268)
symbol() should be declared external:
- ERC20.symbol() (#274-276)
decimals() should be declared external:
- ERC20.decimals() (#291-293)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#317-320)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#325-327)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#336-339)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#354-362)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#376-379)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#395-398)
distributeTokenDividends(uint256) should be declared external:
- DividendPayingToken.distributeTokenDividends(uint256) (#1024-1035)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#1039-1041)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1067-1069)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1081-1083)
getAccountAtIndex(uint256) should be declared external:
- DividendTracker.getAccountAtIndex(uint256) (#1232-1249)
process(uint256) should be declared external:
- DividendTracker.process(uint256) (#1277-1321)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- SAFUCOIN.setAutomatedMarketMakerPair(address,bool) (#1611-1615)
isExcludedFromFees(address) should be declared external:
- SAFUCOIN.isExcludedFromFees(address) (#1669-1671)
withdrawableDividendOf(address) should be declared external:
- SAFUCOIN.withdrawableDividendOf(address) (#1673-1675)
dividendTokenBalanceOf(address) should be declared external:
- SAFUCOIN.dividendTokenBalanceOf(address) (#1677-1679)
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 price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts