FlokiDogeKing Token Logo

FlokiDogeK [FlokiDogeKing] Token

About FlokiDogeK

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 4 February 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...)

FlokiDogeKing.swapBack() (#324-365) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in FlokiDogeKing._transferFrom(address,address,uint256) (#265-285):
External calls:
- swapBack() (#274)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#335-341)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
External calls sending eth:
- swapBack() (#274)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#278)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#281)
- amountReceived = takeFee(sender,recipient,amount) (#280)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#311)
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.


Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.

FlokiDogeKing.slitherConstructorVariables() (#180-449) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 1 (#216)
Consider ordering multiplication before division.

Additional information: link

FlokiDogeKing.swapBack() (#324-365) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
Ensure that all the return values of the function calls are used.

Additional information: link

Auth.transferOwnership(address).adr (#119) lacks a zero-check on :
- owner = adr (#120)
FlokiDogeKing.setFeeReceiver(address,address)._marketingFeeReceiver (#414) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#415)
FlokiDogeKing.setFeeReceiver(address,address)._buybackFeeReceiver (#414) lacks a zero-check on :
- buybackFeeReceiver = _buybackFeeReceiver (#416)
Check that the address is not zero.

Additional information: link

Reentrancy in FlokiDogeKing._transferFrom(address,address,uint256) (#265-285):
External calls:
- swapBack() (#274)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#335-341)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
External calls sending eth:
- swapBack() (#274)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
State variables written after the call(s):
- launch() (#276)
- launchedAt = block.number (#385)
Reentrancy in FlokiDogeKing.constructor() (#220-231):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#222)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#223)
- _balances[_owner] = _totalSupply (#229)
- isFeeExempt[_owner] = true (#226)
- isTxLimitExempt[_owner] = true (#227)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in FlokiDogeKing._transferFrom(address,address,uint256) (#265-285):
External calls:
- swapBack() (#274)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#335-341)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
External calls sending eth:
- swapBack() (#274)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#312)
- amountReceived = takeFee(sender,recipient,amount) (#280)
- Transfer(sender,recipient,amountReceived) (#283)
Reentrancy in FlokiDogeKing.constructor() (#220-231):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#222)
Event emitted after the call(s):
- Transfer(address(0),_owner,_totalSupply) (#230)
Reentrancy in FlokiDogeKing.swapBack() (#324-365):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#335-341)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#363)
Apply the check-effects-interactions pattern.

Additional information: link

FlokiDogeKing.buyTokens(uint256,address) (#367-378) is never used and should be removed
Remove unused functions.

Additional information: link

FlokiDogeKing._maxTxAmount (#192) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 5) / 100
FlokiDogeKing._maxWalletSize (#193) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 5) / 100
FlokiDogeKing.swapThreshold (#216) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000 * 1
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 FlokiDogeKing.swapBack() (#324-365):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#351)
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() (#134) is not in mixedCase
Parameter FlokiDogeKing.setFeeReceiver(address,address)._marketingFeeReceiver (#414) is not in mixedCase
Parameter FlokiDogeKing.setFeeReceiver(address,address)._buybackFeeReceiver (#414) is not in mixedCase
Parameter FlokiDogeKing.setSwapBackSettings(bool,uint256)._enabled (#419) is not in mixedCase
Parameter FlokiDogeKing.setSwapBackSettings(bool,uint256)._amount (#419) is not in mixedCase
Parameter FlokiDogeKing.transferForeignToken(address)._token (#429) is not in mixedCase
Variable FlokiDogeKing.WBNB (#183) is not in mixedCase
Variable FlokiDogeKing.DEAD (#184) is not in mixedCase
Variable FlokiDogeKing.ZERO (#185) is not in mixedCase
Constant FlokiDogeKing._name (#187) is not in UPPER_CASE_WITH_UNDERSCORES
Constant FlokiDogeKing._symbol (#188) is not in UPPER_CASE_WITH_UNDERSCORES
Constant FlokiDogeKing._decimals (#189) is not in UPPER_CASE_WITH_UNDERSCORES
Variable FlokiDogeKing._totalSupply (#191) is not in mixedCase
Variable FlokiDogeKing._maxTxAmount (#192) is not in mixedCase
Variable FlokiDogeKing._maxWalletSize (#193) is not in mixedCase
Variable FlokiDogeKing._balances (#195) is not in mixedCase
Variable FlokiDogeKing._allowances (#196) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#139) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#140)
Prevent variables from having similar names.

Additional information: link

FlokiDogeKing.slitherConstructorVariables() (#180-449) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#184)
FlokiDogeKing.slitherConstructorVariables() (#180-449) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#185)
FlokiDogeKing.slitherConstructorVariables() (#180-449) uses literals with too many digits:
- _totalSupply = 1000000000 * (10 ** _decimals) (#191)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

FlokiDogeKing.DEAD (#184) should be constant
FlokiDogeKing.WBNB (#183) should be constant
FlokiDogeKing.ZERO (#185) should be constant
FlokiDogeKing._totalSupply (#191) should be constant
FlokiDogeKing.buybackFee (#202) should be constant
FlokiDogeKing.feeDenominator (#205) should be constant
FlokiDogeKing.liquidityFee (#201) should be constant
FlokiDogeKing.marketingFee (#203) should be constant
FlokiDogeKing.totalFee (#204) 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) (#91-93)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#98-100)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#119-123)
transferForeignToken(address) should be declared external:
- FlokiDogeKing.transferForeignToken(address) (#429-433)
isOverLiquified(uint256,uint256) should be declared external:
- FlokiDogeKing.isOverLiquified(uint256,uint256) (#443-445)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.


Unable to find Telegram and Twitter accounts


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


Young tokens have high risks of scam / price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank

Price for FlokiDogeK