Floki 2.0 is here with the newest 2.0 trends in BSC #FLOKITWOZERO
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Floki20.swapBack() (#326-367) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#351)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#353)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Floki20._transferFrom(address,address,uint256) (#267-287):
External calls:
- swapBack() (#276)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#337-343)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#351)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#353)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#357-364)
External calls sending eth:
- swapBack() (#276)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#351)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#353)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#357-364)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#280)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#283)
- amountReceived = takeFee(sender,recipient,amount) (#282)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#313)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
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.
Floki20.slitherConstructorVariables() (#182-451) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 3 (#218)
Consider ordering multiplication before division.
Additional information: link
Contract name (Floki 2.0) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
Contract ticker (FLOKI2.0) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
Floki20.swapBack() (#326-367) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#357-364)
Ensure that all the return values of the function calls are used.
Additional information: link
Floki20.setTxLimit(uint256) (#390-393) should emit an event for:
- _maxTxAmount = amount (#392)
Floki20.setFees(uint256,uint256,uint256,uint256) (#408-414) should emit an event for:
- liquidityFee = _liquidityFee (#409)
- teamFee = _teamFee (#410)
- marketingFee = _marketingFee (#411)
- totalFee = _liquidityFee.add(_teamFee).add(_marketingFee) (#412)
- feeDenominator = _feeDenominator (#413)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#121) lacks a zero-check on :
- owner = adr (#122)
Floki20.setFeeReceiver(address,address)._marketingFeeReceiver (#416) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#417)
Floki20.setFeeReceiver(address,address)._teamFeeReceiver (#416) lacks a zero-check on :
- teamFeeReceiver = _teamFeeReceiver (#418)
Check that the address is not zero.
Additional information: link
Reentrancy in Floki20._transferFrom(address,address,uint256) (#267-287):
External calls:
- swapBack() (#276)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#337-343)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#351)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#353)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#357-364)
External calls sending eth:
- swapBack() (#276)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#351)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#353)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#357-364)
State variables written after the call(s):
- launch() (#278)
- launchedAt = block.number (#387)
Reentrancy in Floki20.constructor() (#222-233):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#224)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#225)
- _balances[_owner] = _totalSupply (#231)
- isFeeExempt[_owner] = true (#228)
- isTxLimitExempt[_owner] = true (#229)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Floki20._transferFrom(address,address,uint256) (#267-287):
External calls:
- swapBack() (#276)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#337-343)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#351)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#353)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#357-364)
External calls sending eth:
- swapBack() (#276)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#351)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#353)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#357-364)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#314)
- amountReceived = takeFee(sender,recipient,amount) (#282)
- Transfer(sender,recipient,amountReceived) (#285)
Reentrancy in Floki20.constructor() (#222-233):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#224)
Event emitted after the call(s):
- Transfer(address(0),_owner,_totalSupply) (#232)
Reentrancy in Floki20.swapBack() (#326-367):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#337-343)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#351)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#353)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#357-364)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#351)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#353)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#357-364)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#365)
Apply the check-effects-interactions pattern.
Additional information: link
Floki20.buyTokens(uint256,address) (#369-380) is never used and should be removed
Remove unused functions.
Additional information: link
Floki20._maxTxAmount (#194) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
Floki20._maxWalletSize (#195) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
Floki20.swapThreshold (#218) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000 * 3
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 Floki20.swapBack() (#326-367):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#351)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#353)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IDEXRouter.WETH() (#136) is not in mixedCase
Parameter Floki20.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#408) is not in mixedCase
Parameter Floki20.setFees(uint256,uint256,uint256,uint256)._teamFee (#408) is not in mixedCase
Parameter Floki20.setFees(uint256,uint256,uint256,uint256)._marketingFee (#408) is not in mixedCase
Parameter Floki20.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#408) is not in mixedCase
Parameter Floki20.setFeeReceiver(address,address)._marketingFeeReceiver (#416) is not in mixedCase
Parameter Floki20.setFeeReceiver(address,address)._teamFeeReceiver (#416) is not in mixedCase
Parameter Floki20.setSwapBackSettings(bool,uint256)._enabled (#421) is not in mixedCase
Parameter Floki20.setSwapBackSettings(bool,uint256)._amount (#421) is not in mixedCase
Parameter Floki20.transferForeignToken(address)._token (#431) is not in mixedCase
Variable Floki20.WBNB (#185) is not in mixedCase
Variable Floki20.DEAD (#186) is not in mixedCase
Variable Floki20.ZERO (#187) is not in mixedCase
Constant Floki20._name (#189) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Floki20._symbol (#190) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Floki20._decimals (#191) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Floki20._totalSupply (#193) is not in mixedCase
Variable Floki20._maxTxAmount (#194) is not in mixedCase
Variable Floki20._maxWalletSize (#195) is not in mixedCase
Variable Floki20._balances (#197) is not in mixedCase
Variable Floki20._allowances (#198) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#141) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#142)
Prevent variables from having similar names.
Additional information: link
Floki20.slitherConstructorVariables() (#182-451) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#186)
Floki20.slitherConstructorVariables() (#182-451) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#187)
Floki20.slitherConstructorVariables() (#182-451) uses literals with too many digits:
- _totalSupply = 1000000000 * (10 ** _decimals) (#193)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Floki20.DEAD (#186) should be constant
Floki20.WBNB (#185) should be constant
Floki20.ZERO (#187) should be constant
Floki20._totalSupply (#193) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
authorize(address) should be declared external:
- Auth.authorize(address) (#93-95)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#100-102)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#121-125)
transferForeignToken(address) should be declared external:
- Floki20.transferForeignToken(address) (#431-435)
isOverLiquified(uint256,uint256) should be declared external:
- Floki20.isOverLiquified(uint256,uint256) (#445-447)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 12% buy tax and 13% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
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 website, listings and other project-related information
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Twitter account has less than 100 followers
Telegram account has relatively few subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account
Twitter account has few posts