If you have
Telegram
, you can contact
@godflokicommunity
right away.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
GodFloki.swapAndLiquify(uint256) (#1899-1954) sends eth to arbitrary user
Dangerous calls:
- (success,None) = address(buyBackWallet).call{value: buyBackBalance}() (#1948)
GodFloki.addLiquidity(uint256,uint256) (#1977-1992) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
GodFloki.sendToOperationsWallet(uint256) (#2010-2012) sends eth to arbitrary user
Dangerous calls:
- address(operationsWallet).transfer(amount) (#2011)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in GodFloki._transfer(address,address,uint256) (#1768-1897):
External calls:
- swapAndLiquify(swapTokens) (#1848)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
- (success,None) = address(operationsWallet).call{value: operationsBalance}() (#1941)
- (success,None) = address(buyBackWallet).call{value: buyBackBalance}() (#1948)
- swapAndSendDividends(sellTokens) (#1851)
- (success) = address(dividendTracker).call{value: dividends}() (#1997)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1848)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
- (success,None) = address(operationsWallet).call{value: operationsBalance}() (#1941)
- (success,None) = address(buyBackWallet).call{value: buyBackBalance}() (#1948)
- swapAndSendDividends(sellTokens) (#1851)
- (success) = address(dividendTracker).call{value: dividends}() (#1997)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1880)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#653)
- _balances[recipient] = _balances[recipient].add(amount) (#654)
- super._transfer(from,to,amount) (#1883)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#653)
- _balances[recipient] = _balances[recipient].add(amount) (#654)
- _holderLastSellDate[from] = block.timestamp (#1874)
- swapping = false (#1853)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#935-962):
External calls:
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#944)
State variables written after the call(s):
- rawBNBWithdrawnDividends[user] = rawBNBWithdrawnDividends[user].sub(_withdrawableDividend) (#948)
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#947)
Reentrancy in GodFloki.buyBackTokensWithNoFees() (#1715-1743):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,address(msg.sender),block.timestamp + 360) (#1733-1738)
State variables written after the call(s):
- _isExcludedFromFees[msg.sender] = prevExclusion (#1740)
Reentrancy in DividendPayingToken.swapETHForTokens(address,uint256) (#806-849):
External calls:
- swapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(1,path,address(recipient),block.timestamp + 360) (#825-835)
- (success) = recipient.call{gas: 3000,value: ethAmount}() (#840)
State variables written after the call(s):
- rawBNBWithdrawnDividends[recipient] = rawBNBWithdrawnDividends[recipient].sub(ethAmount) (#844)
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.
Contract ownership is not renounced (belongs to a wallet)
GodFloki._transfer(address,address,uint256) (#1768-1897) uses a dangerous strict equality:
- _holderLastSellDate[to] == block.timestamp (#1804)
GodFloki.getHolderSellFactor(address) (#1600-1616) uses a dangerous strict equality:
- _holderLastSellDate[holder] == 0 (#1605)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
solc-0.8.10 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
GodFloki.getHolderSellFactor(address) (#1600-1616) performs a multiplication on the result of a division:
-timeSinceLastSale = (block.timestamp.sub(_holderLastSellDate[holder])).div(1209600) (#1602)
-sellFeeIncreaseFactor - (timeSinceLastSale.mul(10)) (#1615)
GodFloki._transfer(address,address,uint256) (#1768-1897) performs a multiplication on the result of a division:
-amount = amount.mul(_maxSellPercent).div(100) (#1821)
-fees = amount.mul(totalFees).div(100) (#1866)
GodFloki._transfer(address,address,uint256) (#1768-1897) performs a multiplication on the result of a division:
-rewardSellFee = amount.mul(BNBRewardsFee).div(100).mul(rewardFeeSellFactor).div(100) (#1870)
GodFloki._transfer(address,address,uint256) (#1768-1897) performs a multiplication on the result of a division:
-otherSellFee = amount.mul(liquidityFee).div(100).mul(getHolderSellFactor(from)).div(100) (#1871)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in GodFloki.updateDividendTracker(address) (#1419-1434):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1426)
- newDividendTracker.excludeFromDividends(address(this)) (#1427)
- newDividendTracker.excludeFromDividends(owner()) (#1428)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1429)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1433)
Apply the check-effects-interactions pattern.
Additional information: link
GodFloki._transfer(address,address,uint256).iterations (#1891) is a local variable never initialized
GodFloki._transfer(address,address,uint256).claims (#1891) is a local variable never initialized
GodFloki._transfer(address,address,uint256).lastProcessedIndex (#1891) is a local variable never initialized
DividendPayingToken.swapETHForTokens(address,uint256).swapSuccess (#811) 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
GodFloki.claim() (#1746-1748) ignores return value by dividendTracker.processAccount(address(msg.sender),false) (#1747)
GodFloki._transfer(address,address,uint256) (#1768-1897) ignores return value by dividendTracker.process(gas) (#1891-1895)
GodFloki.addLiquidity(uint256,uint256) (#1977-1992) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string,uint8)._name (#792) shadows:
- ERC20._name (#473) (state variable)
DividendPayingToken.constructor(string,string,uint8)._symbol (#792) shadows:
- ERC20._symbol (#474) (state variable)
DividendPayingToken.constructor(string,string,uint8)._decimals (#792) shadows:
- ERC20._decimals (#475) (state variable)
DividendPayingToken.dividendOf(address)._owner (#968) shadows:
- Ownable._owner (#35) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#975) shadows:
- Ownable._owner (#35) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#982) shadows:
- Ownable._owner (#35) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#992) shadows:
- Ownable._owner (#35) (state variable)
Rename the local variables that shadow another component.
Additional information: link
GodFloki.updateSwapTokensAtAmount(uint256) (#1407-1411) should emit an event for:
- swapTokensAtAmount = newAmount (#1409)
GodFloki.updateMaxTxn(uint256) (#1437-1439) should emit an event for:
- maxSellTransactionAmount = maxTxnAmount (#1438)
GodFloki.setMaxSellPercent(uint256) (#2014-2017) should emit an event for:
- _maxSellPercent = maxSellPercent (#2016)
Emit an event for critical parameter changes.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#935-962) has external calls inside a loop: (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#944)
DividendPayingToken.swapETHForTokens(address,uint256) (#806-849) has external calls inside a loop: path[0] = swapRouter.WETH() (#821)
DividendPayingToken.swapETHForTokens(address,uint256) (#806-849) has external calls inside a loop: swapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(1,path,address(recipient),block.timestamp + 360) (#825-835)
DividendPayingToken.swapETHForTokens(address,uint256) (#806-849) has external calls inside a loop: (success) = recipient.call{gas: 3000,value: ethAmount}() (#840)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'GodFloki._transfer(address,address,uint256).iterations (#1891)' in GodFloki._transfer(address,address,uint256) (#1768-1897) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1892)
Variable 'GodFloki._transfer(address,address,uint256).lastProcessedIndex (#1891)' in GodFloki._transfer(address,address,uint256) (#1768-1897) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1892)
Variable 'GodFloki._transfer(address,address,uint256).claims (#1891)' in GodFloki._transfer(address,address,uint256) (#1768-1897) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1892)
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
Parameter DividendPayingToken.dividendOf(address)._owner (#968) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#975) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#982) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#992) is not in mixedCase
Constant DividendPayingToken.magnitude (#757) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Router01.WETH() (#1047) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#1214) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#1215) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#1232) is not in mixedCase
Variable GodFloki._isAllowedDuringDisabled (#1261) is not in mixedCase
Variable GodFloki._isIgnoredAddress (#1262) is not in mixedCase
Variable GodFloki._holderLastSellDate (#1278) is not in mixedCase
Variable GodFloki.BNBRewardsFee (#1281) is not in mixedCase
Parameter GodFlokiDividendTracker.getAccount(address)._account (#2151) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in GodFloki._transfer(address,address,uint256) (#1768-1897):
External calls:
- swapAndLiquify(swapTokens) (#1848)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
- (success,None) = address(operationsWallet).call{value: operationsBalance}() (#1941)
- (success,None) = address(buyBackWallet).call{value: buyBackBalance}() (#1948)
- swapAndSendDividends(sellTokens) (#1851)
- (success) = address(dividendTracker).call{value: dividends}() (#1997)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1848)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
- (success,None) = address(operationsWallet).call{value: operationsBalance}() (#1941)
- (success,None) = address(buyBackWallet).call{value: buyBackBalance}() (#1948)
- swapAndSendDividends(sellTokens) (#1851)
- (success) = address(dividendTracker).call{value: dividends}() (#1997)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1851)
- _allowances[owner][spender] = amount (#719)
Reentrancy in GodFloki.constructor() (#1348-1392):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1361-1362)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1365)
- uniswapV2Router = _uniswapV2Router (#1364)
Reentrancy in GodFloki.constructor() (#1348-1392):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1361-1362)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1367)
- dividendTracker.excludeFromDividends(pair) (#1763)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1370)
- dividendTracker.excludeFromDividends(address(this)) (#1371)
- dividendTracker.excludeFromDividends(liquidityWallet) (#1372)
- dividendTracker.excludeFromDividends(address(0x000000000000000000000000000000000000dEaD)) (#1373)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1374)
State variables written after the call(s):
- _mint(owner(),1 * 10 ** 11 * (10 ** 9)) (#1391)
- _balances[account] = _balances[account].add(amount) (#673)
- _isAllowedDuringDisabled[address(this)] = true (#1383)
- _isAllowedDuringDisabled[owner()] = true (#1384)
- _isAllowedDuringDisabled[liquidityWallet] = true (#1385)
- excludeFromFees(liquidityWallet,true) (#1377)
- _isExcludedFromFees[account] = excluded (#1465)
- excludeFromFees(address(this),true) (#1378)
- _isExcludedFromFees[account] = excluded (#1465)
- excludeFromFees(address(dividendTracker),true) (#1379)
- _isExcludedFromFees[account] = excluded (#1465)
- excludeFromFees(address(operationsWallet),true) (#1380)
- _isExcludedFromFees[account] = excluded (#1465)
- excludeFromFees(address(buyBackWallet),true) (#1381)
- _isExcludedFromFees[account] = excluded (#1465)
- _mint(owner(),1 * 10 ** 11 * (10 ** 9)) (#1391)
- _totalSupply = _totalSupply.add(amount) (#672)
Reentrancy in GodFlokiDividendTracker.processAccount(address,bool) (#2287-2297):
External calls:
- amount = _withdrawDividendOfUser(account) (#2288)
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#944)
- swapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(1,path,address(recipient),block.timestamp + 360) (#825-835)
- (success) = recipient.call{gas: 3000,value: ethAmount}() (#840)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#2291)
Reentrancy in GodFloki.swapAndLiquify(uint256) (#1899-1954):
External calls:
- swapTokensForEth(half) (#1925)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
- addLiquidity(otherHalf,newBalance) (#1931)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1931)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1931)
- _allowances[owner][spender] = amount (#719)
Reentrancy in GodFloki.swapAndLiquify(uint256) (#1899-1954):
External calls:
- swapTokensForEth(half) (#1925)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
- addLiquidity(otherHalf,newBalance) (#1931)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
- swapTokensForEth(tokensForBuyBackAndOperations) (#1933)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1931)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
State variables written after the call(s):
- swapTokensForEth(tokensForBuyBackAndOperations) (#1933)
- _allowances[owner][spender] = amount (#719)
Reentrancy in DividendPayingToken.swapETHForTokens(address,uint256) (#806-849):
External calls:
- swapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(1,path,address(recipient),block.timestamp + 360) (#825-835)
State variables written after the call(s):
- rawBNBWithdrawnDividends[recipient] = rawBNBWithdrawnDividends[recipient].add(ethAmount) (#839)
Reentrancy in DividendPayingToken.swapETHForTokens(address,uint256) (#806-849):
External calls:
- swapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(1,path,address(recipient),block.timestamp + 360) (#825-835)
- (success) = recipient.call{gas: 3000,value: ethAmount}() (#840)
State variables written after the call(s):
- withdrawnDividends[recipient] = withdrawnDividends[recipient].sub(ethAmount) (#843)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in GodFloki._setAutomatedMarketMakerPair(address,bool) (#1758-1766):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1763)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1765)
Reentrancy in GodFloki._transfer(address,address,uint256) (#1768-1897):
External calls:
- swapAndLiquify(swapTokens) (#1848)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
- (success,None) = address(operationsWallet).call{value: operationsBalance}() (#1941)
- (success,None) = address(buyBackWallet).call{value: buyBackBalance}() (#1948)
- swapAndSendDividends(sellTokens) (#1851)
- (success) = address(dividendTracker).call{value: dividends}() (#1997)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1848)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
- (success,None) = address(operationsWallet).call{value: operationsBalance}() (#1941)
- (success,None) = address(buyBackWallet).call{value: buyBackBalance}() (#1948)
- swapAndSendDividends(sellTokens) (#1851)
- (success) = address(dividendTracker).call{value: dividends}() (#1997)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#720)
- swapAndSendDividends(sellTokens) (#1851)
- SendDividends(tokens,dividends) (#2000)
- swapAndSendDividends(sellTokens) (#1851)
- Transfer(sender,recipient,amount) (#655)
- super._transfer(from,address(this),fees) (#1880)
- Transfer(sender,recipient,amount) (#655)
- super._transfer(from,to,amount) (#1883)
Reentrancy in GodFloki._transfer(address,address,uint256) (#1768-1897):
External calls:
- swapAndLiquify(swapTokens) (#1848)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
- (success,None) = address(operationsWallet).call{value: operationsBalance}() (#1941)
- (success,None) = address(buyBackWallet).call{value: buyBackBalance}() (#1948)
- swapAndSendDividends(sellTokens) (#1851)
- (success) = address(dividendTracker).call{value: dividends}() (#1997)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1885)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1886)
- dividendTracker.process(gas) (#1891-1895)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1848)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
- (success,None) = address(operationsWallet).call{value: operationsBalance}() (#1941)
- (success,None) = address(buyBackWallet).call{value: buyBackBalance}() (#1948)
- swapAndSendDividends(sellTokens) (#1851)
- (success) = address(dividendTracker).call{value: dividends}() (#1997)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1892)
Reentrancy in GodFloki.buyBackTokensWithNoFees() (#1715-1743):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,address(msg.sender),block.timestamp + 360) (#1733-1738)
Event emitted after the call(s):
- BuyBackWithNoFees(msg.sender,ethAmount) (#1741)
Reentrancy in GodFloki.constructor() (#1348-1392):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1361-1362)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1367)
- dividendTracker.excludeFromDividends(pair) (#1763)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1765)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1367)
Reentrancy in GodFloki.constructor() (#1348-1392):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1361-1362)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1367)
- dividendTracker.excludeFromDividends(pair) (#1763)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1370)
- dividendTracker.excludeFromDividends(address(this)) (#1371)
- dividendTracker.excludeFromDividends(liquidityWallet) (#1372)
- dividendTracker.excludeFromDividends(address(0x000000000000000000000000000000000000dEaD)) (#1373)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1374)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1466)
- excludeFromFees(address(operationsWallet),true) (#1380)
- ExcludeFromFees(account,excluded) (#1466)
- excludeFromFees(address(dividendTracker),true) (#1379)
- ExcludeFromFees(account,excluded) (#1466)
- excludeFromFees(address(this),true) (#1378)
- ExcludeFromFees(account,excluded) (#1466)
- excludeFromFees(liquidityWallet,true) (#1377)
- ExcludeFromFees(account,excluded) (#1466)
- excludeFromFees(address(buyBackWallet),true) (#1381)
- Transfer(address(0),account,amount) (#674)
- _mint(owner(),1 * 10 ** 11 * (10 ** 9)) (#1391)
Reentrancy in GodFlokiDividendTracker.processAccount(address,bool) (#2287-2297):
External calls:
- amount = _withdrawDividendOfUser(account) (#2288)
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#944)
- swapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(1,path,address(recipient),block.timestamp + 360) (#825-835)
- (success) = recipient.call{gas: 3000,value: ethAmount}() (#840)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#2292)
Reentrancy in GodFloki.processDividendTracker(uint256) (#1751-1754):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1752)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1753)
Reentrancy in GodFloki.swapAndLiquify(uint256) (#1899-1954):
External calls:
- swapTokensForEth(half) (#1925)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
- addLiquidity(otherHalf,newBalance) (#1931)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1931)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#720)
- addLiquidity(otherHalf,newBalance) (#1931)
Reentrancy in GodFloki.swapAndLiquify(uint256) (#1899-1954):
External calls:
- swapTokensForEth(half) (#1925)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
- addLiquidity(otherHalf,newBalance) (#1931)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
- swapTokensForEth(tokensForBuyBackAndOperations) (#1933)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1931)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#720)
- swapTokensForEth(tokensForBuyBackAndOperations) (#1933)
Reentrancy in GodFloki.swapAndLiquify(uint256) (#1899-1954):
External calls:
- swapTokensForEth(half) (#1925)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
- addLiquidity(otherHalf,newBalance) (#1931)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
- swapTokensForEth(tokensForBuyBackAndOperations) (#1933)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
- (success,None) = address(operationsWallet).call{value: operationsBalance}() (#1941)
- (success,None) = address(buyBackWallet).call{value: buyBackBalance}() (#1948)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1931)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1983-1990)
- (success,None) = address(operationsWallet).call{value: operationsBalance}() (#1941)
- (success,None) = address(buyBackWallet).call{value: buyBackBalance}() (#1948)
Event emitted after the call(s):
- SwapAndLiquify(half,newBalance,otherHalf) (#1952)
Reentrancy in GodFloki.swapAndSendDividends(uint256) (#1994-2002):
External calls:
- swapTokensForEth(tokens) (#1995)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1967-1973)
- (success) = address(dividendTracker).call{value: dividends}() (#1997)
External calls sending eth:
- (success) = address(dividendTracker).call{value: dividends}() (#1997)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#2000)
Reentrancy in GodFloki.updateDividendTracker(address) (#1419-1434):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1426)
- newDividendTracker.excludeFromDividends(address(this)) (#1427)
- newDividendTracker.excludeFromDividends(owner()) (#1428)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1429)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1431)
Apply the check-effects-interactions pattern.
Additional information: link
GodFloki.getHolderSellFactor(address) (#1600-1616) uses timestamp for comparisons
Dangerous comparisons:
- _holderLastSellDate[holder] == 0 (#1605)
- timeSinceLastSale >= 7 (#1610)
GodFloki._transfer(address,address,uint256) (#1768-1897) uses timestamp for comparisons
Dangerous comparisons:
- amount == 0 (#1786)
- require(bool,string)(_holderLastTransferTimestamp[to] < block.timestamp,_transfer:: Transfer Delay enabled. Please try again later.) (#1795)
- _holderLastSellDate[to] == block.timestamp (#1804)
- _holderLastSellDate[to] >= block.timestamp (#1812)
- require(bool,string)(amount <= maxSellTransactionAmount,BEP20: Exceeds max sell amount) (#1819)
- canSwap = contractTokenBalance >= swapTokensAtAmount (#1826)
- canSwap && ! swapping && isSwapAndLiquifyEnabled && ! automatedMarketMakerPairs[from] && from != liquidityWallet && to != liquidityWallet && from != operationsWallet && to != operationsWallet && from != buyBackWallet && to != buyBackWallet && ! _isExcludedFromFees[to] && ! _isExcludedFromFees[from] && from != address(this) && from != address(dividendTracker) (#1829-1842)
GodFlokiDividendTracker.getAccount(address) (#2151-2194) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#2191-2193)
GodFlokiDividendTracker.canAutoClaim(uint256) (#2215-2221) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#2216)
- block.timestamp.sub(lastClaimTime) >= claimWait (#2220)
Avoid relying on block.timestamp.
Additional information: link
GodFloki.isContract(address) (#1567-1576) uses assembly
- INLINE ASM (#1574)
Do not use evm assembly.
Additional information: link
DividendPayingToken.setRewardToken(address,address,address) (#868-886) compares to a boolean constant:
-userHasCustomRewardToken[holder] == true (#869)
GodFloki.setRewardTokenWithCustomAMM(address,address) (#1692-1700) compares to a boolean constant:
-require(bool,string)(isAMMWhitelisted(ammContractAddress) == true,GodFloki: setRewardToken:: AMM is not whitelisted!) (#1697)
Remove the equality to the boolean constant.
Additional information: link
Context._msgData() (#28-31) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1002-1008) is never used and should be removed
SafeMath.mod(uint256,uint256) (#442-444) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#458-461) is never used and should be removed
SafeMathInt.abs(int256) (#297-300) is never used and should be removed
SafeMathInt.div(int256,int256) (#268-274) is never used and should be removed
SafeMathInt.mul(int256,int256) (#256-263) is never used and should be removed
Remove unused functions.
Additional information: link
GodFloki.totalFees (#1283) is set pre-construction with a non-constant function or state variable:
- BNBRewardsFee.add(liquidityFee)
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
Low level call in DividendPayingToken.swapETHForTokens(address,uint256) (#806-849):
- (success) = recipient.call{gas: 3000,value: ethAmount}() (#840)
Low level call in DividendPayingToken._withdrawDividendOfUser(address) (#935-962):
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#944)
Low level call in GodFloki.swapAndLiquify(uint256) (#1899-1954):
- (success,None) = address(operationsWallet).call{value: operationsBalance}() (#1941)
- (success,None) = address(buyBackWallet).call{value: buyBackBalance}() (#1948)
Low level call in GodFloki.swapAndSendDividends(uint256) (#1994-2002):
- (success) = address(dividendTracker).call{value: dividends}() (#1997)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Redundant expression "this (#29)" inContext (#23-32)
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 (#1052) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#1053)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#936) is too similar to GodFlokiDividendTracker.getAccount(address).withdrawableDividends (#2156)
Prevent variables from having similar names.
Additional information: link
GodFloki.constructor() (#1348-1392) uses literals with too many digits:
- dividendTracker.excludeFromDividends(address(0x000000000000000000000000000000000000dEaD)) (#1373)
GodFloki.updateGasForProcessing(uint256) (#1541-1546) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,GodFloki: gasForProcessing must be between 200,000 and 500,000) (#1542)
GodFloki.slitherConstructorVariables() (#1250-2018) uses literals with too many digits:
- gasForProcessing = 300000 (#1301)
GodFlokiDividendTracker.getAccountAtIndex(uint256) (#2196-2213) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#2207)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#251) is never used in SafeMathInt (#249-307)
Remove unused state variables.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#70-73)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#79-83)
name() should be declared external:
- ERC20.name() (#495-497)
symbol() should be declared external:
- ERC20.symbol() (#503-505)
decimals() should be declared external:
- ERC20.decimals() (#520-522)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#546-549)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#554-556)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#565-568)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#583-591)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#605-608)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#624-627)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#929-931)
- GodFlokiDividendTracker.withdrawDividend() (#2111-2113)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#968-970)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#982-984)
updateDividendTracker(address) should be declared external:
- GodFloki.updateDividendTracker(address) (#1419-1434)
getUserCurrentRewardToken(address) should be declared external:
- GodFloki.getUserCurrentRewardToken(address) (#1578-1580)
getUserHasCustomRewardToken(address) should be declared external:
- GodFloki.getUserHasCustomRewardToken(address) (#1582-1584)
getRewardTokenSelectionCount(address) should be declared external:
- GodFloki.getRewardTokenSelectionCount(address) (#1586-1588)
isExcludedFromFees(address) should be declared external:
- GodFloki.isExcludedFromFees(address) (#1630-1632)
withdrawableDividendOf(address) should be declared external:
- GodFloki.withdrawableDividendOf(address) (#1634-1636)
dividendTokenBalanceOf(address) should be declared external:
- GodFloki.dividendTokenBalanceOf(address) (#1638-1640)
getBNBAvailableForHolderBuyBack(address) should be declared external:
- GodFloki.getBNBAvailableForHolderBuyBack(address) (#1672-1674)
setRewardToken(address) should be declared external:
- GodFloki.setRewardToken(address) (#1683-1689)
setRewardTokenWithCustomAMM(address,address) should be declared external:
- GodFloki.setRewardTokenWithCustomAMM(address,address) (#1692-1700)
unsetRewardToken() should be declared external:
- GodFloki.unsetRewardToken() (#1703-1706)
activateContract() should be declared external:
- GodFloki.activateContract() (#1709-1712)
recoverContractBNB(uint256) should be declared external:
- GodFloki.recoverContractBNB(uint256) (#2004-2009)
setMaxSellPercent(uint256) should be declared external:
- GodFloki.setMaxSellPercent(uint256) (#2014-2017)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#2029-2031)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#2033-2038)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#2040-2042)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#2046-2048)
getAccountAtIndex(uint256) should be declared external:
- GodFlokiDividendTracker.getAccountAtIndex(uint256) (#2196-2213)
process(uint256) should be declared external:
- GodFlokiDividendTracker.process(uint256) (#2240-2285)
Use the external attribute for functions never called from the contract.
Additional information: link
Attempt to swap token was unsuccessful. For some reason it is untradeable. If token is not in presale stage and is not traded outside PancakeSwap, then it's a scam
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
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find token contract audit
Unable to verify that token and website are owned by the same team (no listings + unable to find contract on website)
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Telegram account link seems to be invalid
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account