AstroFloki Token Logo

AFI [AstroFloki] Token

About AFI

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 24 January 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

AstroFloki.addLiquidity(uint256,uint256) (#1667-1682) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in AstroFloki._transfer(address,address,uint256) (#1507-1600):
External calls:
- swapTokensForEth(marketingTokens) (#1554)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
- swapAndSendDividends(sellTokens) (#1562)
- success = IERC20(FLOKI).transfer(address(dividendTracker),dividends) (#1687)
- dividendTracker.distributeFLOKIDividends(dividends) (#1690)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1658-1664)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1556)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1582)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#394)
- _balances[recipient] = _balances[recipient].add(amount) (#395)
- super._transfer(from,to,amount) (#1585)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#394)
- _balances[recipient] = _balances[recipient].add(amount) (#395)
- swapping = false (#1564)
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.

DividendPayingToken._withdrawDividendOfUser(address) (#606-622) has external calls inside a loop: success = IERC20(FLOKI).transfer(user,_withdrawableDividend) (#611)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#606-622):
External calls:
- success = IERC20(FLOKI).transfer(user,_withdrawableDividend) (#611)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#614)
Reentrancy in AstroFloki.updateDividendTracker(address) (#1339-1354):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1346)
- newDividendTracker.excludeFromDividends(address(this)) (#1347)
- newDividendTracker.excludeFromDividends(owner()) (#1348)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1349)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1353)
Apply the check-effects-interactions pattern.

Additional information: link

AstroFloki._transfer(address,address,uint256).iterations (#1593) is a local variable never initialized
AstroFloki._transfer(address,address,uint256).claims (#1593) is a local variable never initialized
AstroFloki._transfer(address,address,uint256).lastProcessedIndex (#1593) 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

AstroFloki.claim() (#1494-1496) ignores return value by dividendTracker.processAccount(address(msg.sender),false) (#1495)
AstroFloki._transfer(address,address,uint256) (#1507-1600) ignores return value by dividendTracker.process(gas) (#1593-1598)
AstroFloki.addLiquidity(uint256,uint256) (#1667-1682) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendPayingToken.constructor(string,string)._name (#580) shadows:
- ERC20._name (#216) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#580) shadows:
- ERC20._symbol (#217) (state variable)
DividendPayingToken.dividendOf(address)._owner (#628) shadows:
- Ownable._owner (#28) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#635) shadows:
- Ownable._owner (#28) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#642) shadows:
- Ownable._owner (#28) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#652) shadows:
- Ownable._owner (#28) (state variable)
Rename the local variables that shadow another component.

Additional information: link

AstroFloki.setMaxWalletTokend(uint256) (#1380-1382) should emit an event for:
- maxWalletToken = _maxToken * (10 ** 18) (#1381)
AstroFloki.setFLOKIRewardsFee(uint256) (#1388-1391) should emit an event for:
- FLOKIRewardsFee = value (#1389)
- totalFees = FLOKIRewardsFee.add(liquidityFee).add(marketingFee) (#1390)
AstroFloki.setLiquiditFee(uint256) (#1393-1396) should emit an event for:
- liquidityFee = value (#1394)
- totalFees = FLOKIRewardsFee.add(liquidityFee).add(marketingFee) (#1395)
AstroFloki.setMarketingFee(uint256) (#1398-1402) should emit an event for:
- marketingFee = _marketingFee (#1399)
- totalFees = FLOKIRewardsFee.add(liquidityFee).add(marketingFee) (#1400)
Emit an event for critical parameter changes.

Additional information: link

AstroFloki.updateUniswapV2Router(address)._uniswapV2Pair (#1360-1361) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#1362)
AstroFloki.setMarketingWallet(address).wallet (#1384) lacks a zero-check on :
- _marketingWalletAddress = wallet (#1385)
Check that the address is not zero.

Additional information: link

Variable 'AstroFloki._transfer(address,address,uint256).lastProcessedIndex (#1593)' in AstroFloki._transfer(address,address,uint256) (#1507-1600) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1594)
Variable 'AstroFloki._transfer(address,address,uint256).claims (#1593)' in AstroFloki._transfer(address,address,uint256) (#1507-1600) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1594)
Variable 'AstroFloki._transfer(address,address,uint256).iterations (#1593)' in AstroFloki._transfer(address,address,uint256) (#1507-1600) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1594)
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 AstroFloki._transfer(address,address,uint256) (#1507-1600):
External calls:
- swapTokensForEth(marketingTokens) (#1554)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1556)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1559)
- _allowances[owner][spender] = amount (#460)
Reentrancy in AstroFloki._transfer(address,address,uint256) (#1507-1600):
External calls:
- swapTokensForEth(marketingTokens) (#1554)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
- swapAndSendDividends(sellTokens) (#1562)
- success = IERC20(FLOKI).transfer(address(dividendTracker),dividends) (#1687)
- dividendTracker.distributeFLOKIDividends(dividends) (#1690)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1658-1664)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1556)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1562)
- _allowances[owner][spender] = amount (#460)
Reentrancy in AstroFloki.constructor() (#1301-1333):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1308-1309)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1312)
- uniswapV2Router = _uniswapV2Router (#1311)
Reentrancy in AstroFloki.constructor() (#1301-1333):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1308-1309)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1314)
- dividendTracker.excludeFromDividends(pair) (#1421)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1317)
- dividendTracker.excludeFromDividends(address(this)) (#1318)
- dividendTracker.excludeFromDividends(owner()) (#1319)
- dividendTracker.excludeFromDividends(deadWallet) (#1320)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1321)
State variables written after the call(s):
- _mint(owner(),1000000000 * (10 ** 18)) (#1332)
- _balances[account] = _balances[account].add(amount) (#414)
- excludeFromFees(owner(),true) (#1324)
- _isExcludedFromFees[account] = excluded (#1367)
- excludeFromFees(_marketingWalletAddress,true) (#1325)
- _isExcludedFromFees[account] = excluded (#1367)
- excludeFromFees(address(this),true) (#1326)
- _isExcludedFromFees[account] = excluded (#1367)
- _mint(owner(),1000000000 * (10 ** 18)) (#1332)
- _totalSupply = _totalSupply.add(amount) (#413)
Reentrancy in AstroFlokiDividendTracker.processAccount(address,bool) (#1892-1902):
External calls:
- amount = _withdrawDividendOfUser(account) (#1893)
- success = IERC20(FLOKI).transfer(user,_withdrawableDividend) (#611)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1896)
Reentrancy in AstroFloki.swapAndLiquify(uint256) (#1603-1624):
External calls:
- swapTokensForEth(half) (#1615)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
- addLiquidity(otherHalf,newBalance) (#1621)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1621)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1621)
- _allowances[owner][spender] = amount (#460)
Reentrancy in AstroFloki.updateUniswapV2Router(address) (#1356-1363):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#1360-1361)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1362)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in AstroFloki._setAutomatedMarketMakerPair(address,bool) (#1416-1425):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1421)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1424)
Reentrancy in AstroFloki._transfer(address,address,uint256) (#1507-1600):
External calls:
- swapTokensForEth(marketingTokens) (#1554)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1556)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#461)
- swapAndLiquify(swapTokens) (#1559)
- SwapAndLiquify(half,newBalance,otherHalf) (#1623)
- swapAndLiquify(swapTokens) (#1559)
Reentrancy in AstroFloki._transfer(address,address,uint256) (#1507-1600):
External calls:
- swapTokensForEth(marketingTokens) (#1554)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
- swapAndSendDividends(sellTokens) (#1562)
- success = IERC20(FLOKI).transfer(address(dividendTracker),dividends) (#1687)
- dividendTracker.distributeFLOKIDividends(dividends) (#1690)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1658-1664)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1556)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#461)
- swapAndSendDividends(sellTokens) (#1562)
- SendDividends(tokens,dividends) (#1691)
- swapAndSendDividends(sellTokens) (#1562)
- Transfer(sender,recipient,amount) (#396)
- super._transfer(from,address(this),fees) (#1582)
- Transfer(sender,recipient,amount) (#396)
- super._transfer(from,to,amount) (#1585)
Reentrancy in AstroFloki._transfer(address,address,uint256) (#1507-1600):
External calls:
- swapTokensForEth(marketingTokens) (#1554)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
- swapAndSendDividends(sellTokens) (#1562)
- success = IERC20(FLOKI).transfer(address(dividendTracker),dividends) (#1687)
- dividendTracker.distributeFLOKIDividends(dividends) (#1690)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1658-1664)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1587)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1588)
- dividendTracker.process(gas) (#1593-1598)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1556)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1594)
Reentrancy in AstroFloki.constructor() (#1301-1333):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1308-1309)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1314)
- dividendTracker.excludeFromDividends(pair) (#1421)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1424)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1314)
Reentrancy in AstroFloki.constructor() (#1301-1333):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1308-1309)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1314)
- dividendTracker.excludeFromDividends(pair) (#1421)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1317)
- dividendTracker.excludeFromDividends(address(this)) (#1318)
- dividendTracker.excludeFromDividends(owner()) (#1319)
- dividendTracker.excludeFromDividends(deadWallet) (#1320)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1321)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1369)
- excludeFromFees(owner(),true) (#1324)
- ExcludeFromFees(account,excluded) (#1369)
- excludeFromFees(address(this),true) (#1326)
- ExcludeFromFees(account,excluded) (#1369)
- excludeFromFees(_marketingWalletAddress,true) (#1325)
- Transfer(address(0),account,amount) (#415)
- _mint(owner(),1000000000 * (10 ** 18)) (#1332)
Reentrancy in AstroFlokiDividendTracker.processAccount(address,bool) (#1892-1902):
External calls:
- amount = _withdrawDividendOfUser(account) (#1893)
- success = IERC20(FLOKI).transfer(user,_withdrawableDividend) (#611)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1897)
Reentrancy in AstroFloki.processDividendTracker(uint256) (#1489-1492):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1490)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1491)
Reentrancy in AstroFloki.swapAndLiquify(uint256) (#1603-1624):
External calls:
- swapTokensForEth(half) (#1615)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1638-1644)
- addLiquidity(otherHalf,newBalance) (#1621)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1621)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#461)
- addLiquidity(otherHalf,newBalance) (#1621)
- SwapAndLiquify(half,newBalance,otherHalf) (#1623)
Reentrancy in AstroFloki.swapAndSendDividends(uint256) (#1684-1693):
External calls:
- swapTokensForFLOKI(tokens) (#1685)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1658-1664)
- success = IERC20(FLOKI).transfer(address(dividendTracker),dividends) (#1687)
- dividendTracker.distributeFLOKIDividends(dividends) (#1690)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1691)
Reentrancy in AstroFloki.updateDividendTracker(address) (#1339-1354):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1346)
- newDividendTracker.excludeFromDividends(address(this)) (#1347)
- newDividendTracker.excludeFromDividends(owner()) (#1348)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1349)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1351)
Apply the check-effects-interactions pattern.

Additional information: link

AstroFlokiDividendTracker.getAccount(address) (#1756-1799) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1796-1798)
AstroFlokiDividendTracker.canAutoClaim(uint256) (#1820-1826) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1821)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1825)
Avoid relying on block.timestamp.

Additional information: link

Context._msgData() (#20-23) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#662-668) is never used and should be removed
SafeMath.mod(uint256,uint256) (#1099-1101) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#1115-1118) is never used and should be removed
SafeMathInt.abs(int256) (#1199-1202) is never used and should be removed
SafeMathInt.div(int256,int256) (#1170-1176) is never used and should be removed
SafeMathInt.mul(int256,int256) (#1158-1165) is never used and should be removed
Remove unused functions.

Additional information: link

AstroFloki.totalFees (#1246) is set pre-construction with a non-constant function or state variable:
- FLOKIRewardsFee.add(liquidityFee).add(marketingFee)
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

Parameter DividendPayingToken.dividendOf(address)._owner (#628) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#635) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#642) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#652) is not in mixedCase
Variable DividendPayingToken.FLOKI (#554) is not in mixedCase
Constant DividendPayingToken.magnitude (#560) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#740) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#741) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#758) is not in mixedCase
Function IUniswapV2Router01.WETH() (#779) is not in mixedCase
Parameter AstroFloki.setMaxWalletTokend(uint256)._maxToken (#1380) is not in mixedCase
Parameter AstroFloki.setMarketingFee(uint256)._marketingFee (#1398) is not in mixedCase
Variable AstroFloki.FLOKI (#1237) is not in mixedCase
Variable AstroFloki._isBlacklisted (#1241) is not in mixedCase
Variable AstroFloki.FLOKIRewardsFee (#1243) is not in mixedCase
Variable AstroFloki._marketingWalletAddress (#1249) is not in mixedCase
Parameter AstroFlokiDividendTracker.getAccount(address)._account (#1756) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#21)" inContext (#15-24)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in AstroFloki._transfer(address,address,uint256) (#1507-1600):
External calls:
- address(_marketingWalletAddress).transfer(newBalance) (#1556)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1556)
- swapAndLiquify(swapTokens) (#1559)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1673-1680)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1559)
- _allowances[owner][spender] = amount (#460)
- swapAndSendDividends(sellTokens) (#1562)
- _allowances[owner][spender] = amount (#460)
- super._transfer(from,address(this),fees) (#1582)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#394)
- _balances[recipient] = _balances[recipient].add(amount) (#395)
- super._transfer(from,to,amount) (#1585)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#394)
- _balances[recipient] = _balances[recipient].add(amount) (#395)
- swapping = false (#1564)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#461)
- swapAndLiquify(swapTokens) (#1559)
- Approval(owner,spender,amount) (#461)
- swapAndSendDividends(sellTokens) (#1562)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1594)
- SendDividends(tokens,dividends) (#1691)
- swapAndSendDividends(sellTokens) (#1562)
- SwapAndLiquify(half,newBalance,otherHalf) (#1623)
- swapAndLiquify(swapTokens) (#1559)
- Transfer(sender,recipient,amount) (#396)
- super._transfer(from,address(this),fees) (#1582)
- Transfer(sender,recipient,amount) (#396)
- super._transfer(from,to,amount) (#1585)
Apply the check-effects-interactions pattern.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#784) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#785)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#607) is too similar to AstroFlokiDividendTracker.getAccount(address).withdrawableDividends (#1761)
Prevent variables from having similar names.

Additional information: link

AstroFloki.constructor() (#1301-1333) uses literals with too many digits:
- _mint(owner(),1000000000 * (10 ** 18)) (#1332)
AstroFloki.updateGasForProcessing(uint256) (#1428-1433) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,AstroFloki: gasForProcessing must be between 200,000 and 500,000) (#1429)
AstroFloki.slitherConstructorVariables() (#1225-1694) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#1235)
AstroFloki.slitherConstructorVariables() (#1225-1694) uses literals with too many digits:
- swapTokensAtAmount = 200000 * (10 ** 18) (#1239)
AstroFloki.slitherConstructorVariables() (#1225-1694) uses literals with too many digits:
- maxWalletToken = 1000000000 * (10 ** 18) (#1247)
AstroFloki.slitherConstructorVariables() (#1225-1694) uses literals with too many digits:
- gasForProcessing = 300000 (#1253)
AstroFlokiDividendTracker.constructor() (#1716-1719) uses literals with too many digits:
- minimumTokenBalanceForDividends = 200000 * (10 ** 18) (#1718)
AstroFlokiDividendTracker.getAccountAtIndex(uint256) (#1801-1818) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1812)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SafeMathInt.MAX_INT256 (#1153) is never used in SafeMathInt (#1151-1209)
Remove unused state variables.

Additional information: link

AstroFloki.deadWallet (#1235) should be constant
AstroFloki.swapTokensAtAmount (#1239) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#63-66)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#72-76)
name() should be declared external:
- ERC20.name() (#236-238)
symbol() should be declared external:
- ERC20.symbol() (#244-246)
decimals() should be declared external:
- ERC20.decimals() (#261-263)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#287-290)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#295-297)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#306-309)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#324-332)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#346-349)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#365-368)
distributeFLOKIDividends(uint256) should be declared external:
- DividendPayingToken.distributeFLOKIDividends(uint256) (#585-596)
withdrawDividend() should be declared external:
- AstroFlokiDividendTracker.withdrawDividend() (#1725-1727)
- DividendPayingToken.withdrawDividend() (#600-602)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#628-630)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#642-644)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#925-927)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#929-934)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#936-938)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#942-944)
updateDividendTracker(address) should be declared external:
- AstroFloki.updateDividendTracker(address) (#1339-1354)
updateUniswapV2Router(address) should be declared external:
- AstroFloki.updateUniswapV2Router(address) (#1356-1363)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- AstroFloki.excludeMultipleAccountsFromFees(address[],bool) (#1372-1378)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- AstroFloki.setAutomatedMarketMakerPair(address,bool) (#1405-1409)
updateGasForProcessing(uint256) should be declared external:
- AstroFloki.updateGasForProcessing(uint256) (#1428-1433)
isExcludedFromFees(address) should be declared external:
- AstroFloki.isExcludedFromFees(address) (#1447-1449)
withdrawableDividendOf(address) should be declared external:
- AstroFloki.withdrawableDividendOf(address) (#1451-1453)
dividendTokenBalanceOf(address) should be declared external:
- AstroFloki.dividendTokenBalanceOf(address) (#1455-1457)
getAccountAtIndex(uint256) should be declared external:
- AstroFlokiDividendTracker.getAccountAtIndex(uint256) (#1801-1818)
process(uint256) should be declared external:
- AstroFlokiDividendTracker.process(uint256) (#1845-1890)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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 Telegram and Twitter accounts


Unable to find website, listings and other project-related information


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank


Young tokens have high risks of price dump / death

Price for AFI