Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
FlokiNFT.swapBnbForTokens(uint256) (#820-837) sends eth to arbitrary user
Dangerous calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#827-834)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in FlokiNFT._transferFrom(address,address,uint256) (#731-774):
External calls:
- swapBack() (#746)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(swapThreshold,0,path,address(this),block.timestamp.add(300)) (#913-940)
- distributor.deposit{value: amountBNBReflection}() (#929)
- buyBackTokens() (#749)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#827-834)
External calls sending eth:
- swapBack() (#746)
- distributor.deposit{value: amountBNBReflection}() (#929)
- buyBackTokens() (#749)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#827-834)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#753-756)
- amountReceived = takeFee(sender,recipient,amount) (#758)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#799)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#759)
- buyBackTokens() (#749)
- inSwap = true (#681)
- inSwap = false (#683)
Apply the check-effects-interactions pattern.
Additional information: link
SafeToken.cleartkw(address,uint256) (#494-497) ignores return value by IBEP20(_token).transfer(safeManager,_amount) (#496)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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.
Combination 2: Unchecked transfer + 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.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Reentrancy in DividendDistributor.setShare(address,uint256) (#307-333):
External calls:
- distributeDividend(shareholder) (#313)
- RWFLOKI.transfer(shareholder,amount) (#422)
State variables written after the call(s):
- shares[shareholder].amount = amount (#329)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#330-332)
Apply the check-effects-interactions pattern.
Additional information: link
FlokiNFT.swapBack().e (#932) 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
FlokiNFT.setBuyBackEnable(uint256,bool) (#943-949) should emit an event for:
- buyBackUpperLimit = _buyBackUpperLimit (#947)
Emit an event for critical parameter changes.
Additional information: link
FlokiNFT.setMarketingWallet(address)._marketing (#878) lacks a zero-check on :
- marketing = _marketing (#879)
Check that the address is not zero.
Additional information: link
Variable 'FlokiNFT.swapBack().e (#932)' in FlokiNFT.swapBack() (#906-941) potentially used before declaration: SwapBackFailed(string(abi.encodePacked(SwapBack failed with error ,e))) (#933-935)
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 DividendDistributor.setShare(address,uint256) (#307-333):
External calls:
- distributeDividend(shareholder) (#313)
- RWFLOKI.transfer(shareholder,amount) (#422)
State variables written after the call(s):
- addShareholder(shareholder) (#320)
- shareholderIndexes[shareholder] = shareholders.length (#468)
- removeShareholder(shareholder) (#325)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#476-478)
- addShareholder(shareholder) (#320)
- shareholders.push(shareholder) (#469)
- removeShareholder(shareholder) (#325)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#473-475)
- shareholders.pop() (#479)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#328)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in FlokiNFT.swapBnbForTokens(uint256) (#820-837):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#827-834)
Event emitted after the call(s):
- SwapBNBForTokens(amount,path) (#836)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#404-412) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#409-411)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#376-402) has costly operations inside a loop:
- currentIndex ++ (#399)
Use a local variable to hold the loop computation result.
Additional information: link
Context._msgData() (#60-63) is never used and should be removed
Remove unused functions.
Additional information: link
FlokiNFT.totalFee (#672) is set pre-construction with a non-constant function or state variable:
- burnFee.add(reflectionFee).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
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
Variable FlokiNFT._maxTxAmount (#657) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#61)" inContext (#55-64)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable BASEToken._totalSupply (#542) is too similar to BASEToken.constructor(string,string,uint256,uint8).totalSupply_ (#547)
Prevent variables from having similar names.
Additional information: link
FlokiNFT.slitherConstructorVariables() (#645-955) uses literals with too many digits:
- distributorGas = 500000 (#667)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#272) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
setBuyBackEnable(uint256,bool) should be declared external:
- FlokiNFT.setBuyBackEnable(uint256,bool) (#943-949)
Use the external attribute for functions never called from the contract.
Additional information: link
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
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