Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
FirstDogeKing.addLiquidity(uint256,uint256) (#736-749) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in FirstDogeKing._transfer(address,address,uint256) (#640-678):
External calls:
- swapAndLiquify(contractTokenBalance) (#662)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#725-731)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#662)
- recipient.transfer(amount) (#604)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#665)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#673)
- finalAmount = takeFee(sender,recipient,amount) (#667-668)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#763)
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.
FirstDogeKing.addLiquidity(uint256,uint256) (#736-749) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
Ensure that all the return values of the function calls are used.
Additional information: link
FirstDogeKing.allowance(address,address).owner (#495) shadows:
- Ownable.owner() (#148-150) (function)
FirstDogeKing._approve(address,address,uint256).owner (#518) shadows:
- Ownable.owner() (#148-150) (function)
Rename the local variables that shadow another component.
Additional information: link
Ownable.transferOwnership(address) (#166-168) should emit an event for:
- _owner = newOwner (#167)
Emit an event for critical parameter changes.
Additional information: link
FirstDogeKing.setDistributionSettings(uint256,uint256,uint256) (#554-560) should emit an event for:
- _liquidityShare = newLiquidityShare (#555)
- _teamShare = newTeamShare (#557)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#559)
FirstDogeKing.setMaxTxAmount(uint256) (#562-564) should emit an event for:
- _maxTxAmount = maxTxAmount (#563)
FirstDogeKing.setWalletLimit(uint256) (#574-576) should emit an event for:
- _walletMax = newLimit (#575)
FirstDogeKing.setNumTokensBeforeSwap(uint256) (#578-580) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#579)
Emit an event for critical parameter changes.
Additional information: link
Ownable.transferOwnership(address).newOwner (#166) lacks a zero-check on :
- _owner = newOwner (#167)
FirstDogeKing.setMarketingWalletAddress(address).newAddress (#582) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#583)
FirstDogeKing.setTeamWalletAddress(address).newAddress (#586) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#587)
Check that the address is not zero.
Additional information: link
Reentrancy in FirstDogeKing.changeRouterVersion(address) (#607-624):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#615-616)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#623)
- isWalletLimitExempt[address(uniswapPair)] = true (#622)
- uniswapPair = newPairAddress (#619)
- uniswapV2Router = _uniswapV2Router (#620)
Reentrancy in FirstDogeKing.constructor() (#445-473):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#449-450)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#453)
- _balances[_msgSender()] = _totalSupply (#471)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#460)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#458)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#459)
- isExcludedFromFee[owner()] = true (#455)
- isExcludedFromFee[address(this)] = true (#456)
- isMarketPair[address(uniswapPair)] = true (#469)
- isTxLimitExempt[owner()] = true (#466)
- isTxLimitExempt[address(this)] = true (#467)
- isWalletLimitExempt[owner()] = true (#462)
- isWalletLimitExempt[address(uniswapPair)] = true (#463)
- isWalletLimitExempt[address(this)] = true (#464)
- uniswapV2Router = _uniswapV2Router (#452)
Reentrancy in FirstDogeKing.swapAndLiquify(uint256) (#692-714):
External calls:
- swapTokensForEth(tokensForSwap) (#697)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#725-731)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#713)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#707)
- recipient.transfer(amount) (#604)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#710)
- recipient.transfer(amount) (#604)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#713)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#713)
- _allowances[owner][spender] = amount (#522)
Reentrancy in FirstDogeKing.transferFrom(address,address,uint256) (#634-638):
External calls:
- _transfer(sender,recipient,amount) (#635)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#725-731)
External calls sending eth:
- _transfer(sender,recipient,amount) (#635)
- recipient.transfer(amount) (#604)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#636)
- _allowances[owner][spender] = amount (#522)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in FirstDogeKing._transfer(address,address,uint256) (#640-678):
External calls:
- swapAndLiquify(contractTokenBalance) (#662)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#725-731)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#662)
- recipient.transfer(amount) (#604)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#764)
- finalAmount = takeFee(sender,recipient,amount) (#667-668)
- Transfer(sender,recipient,finalAmount) (#675)
Reentrancy in FirstDogeKing.constructor() (#445-473):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#449-450)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#472)
Reentrancy in FirstDogeKing.swapAndLiquify(uint256) (#692-714):
External calls:
- swapTokensForEth(tokensForSwap) (#697)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#725-731)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#713)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#707)
- recipient.transfer(amount) (#604)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#710)
- recipient.transfer(amount) (#604)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#713)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#523)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#713)
Reentrancy in FirstDogeKing.swapTokensForEth(uint256) (#716-734):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#725-731)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#733)
Reentrancy in FirstDogeKing.transferFrom(address,address,uint256) (#634-638):
External calls:
- _transfer(sender,recipient,amount) (#635)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#725-731)
External calls sending eth:
- _transfer(sender,recipient,amount) (#635)
- recipient.transfer(amount) (#604)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#523)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#636)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#83-92) uses assembly
- INLINE ASM (#90)
Address._functionCallWithValue(address,bytes,uint256,string) (#119-136) uses assembly
- INLINE ASM (#128-131)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#119-136) is never used and should be removed
Address.functionCall(address,bytes) (#102-104) is never used and should be removed
Address.functionCall(address,bytes,string) (#106-108) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#110-112) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#114-117) is never used and should be removed
Address.isContract(address) (#83-92) is never used and should be removed
Address.sendValue(address,uint256) (#94-100) is never used and should be removed
Context._msgData() (#10-13) is never used and should be removed
SafeMath.mod(uint256,uint256) (#71-73) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#75-78) is never used and should be removed
Remove unused functions.
Additional information: link
FirstDogeKing._totalSupply (#409) is set pre-construction with a non-constant function or state variable:
- 1000 * 10 ** 6 * 10 ** 6 * 10 ** _decimals
FirstDogeKing._maxTxAmount (#410) is set pre-construction with a non-constant function or state variable:
- 1000 * 10 ** 6 * 10 ** 6 * 10 ** _decimals
FirstDogeKing._walletMax (#411) is set pre-construction with a non-constant function or state variable:
- 1000 * 10 ** 6 * 10 ** 6 * 10 ** _decimals
FirstDogeKing.minimumTokensBeforeSwap (#412) is set pre-construction with a non-constant function or state variable:
- 1000 * 10 ** 6 * 10 ** _decimals
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 Address.sendValue(address,uint256) (#94-100):
- (success) = recipient.call{value: amount}() (#98)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#119-136):
- (success,returndata) = target.call{value: weiValue}(data) (#122)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#203) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#204) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#220) is not in mixedCase
Function IUniswapV2Router01.WETH() (#239) is not in mixedCase
Parameter FirstDogeKing.setSwapAndLiquifyEnabled(bool)._enabled (#590) is not in mixedCase
Variable FirstDogeKing._balances (#385) is not in mixedCase
Variable FirstDogeKing._buyLiquidityFee (#393) is not in mixedCase
Variable FirstDogeKing._buyMarketingFee (#394) is not in mixedCase
Variable FirstDogeKing._buyTeamFee (#395) is not in mixedCase
Variable FirstDogeKing._sellLiquidityFee (#397) is not in mixedCase
Variable FirstDogeKing._sellMarketingFee (#398) is not in mixedCase
Variable FirstDogeKing._sellTeamFee (#399) is not in mixedCase
Variable FirstDogeKing._liquidityShare (#401) is not in mixedCase
Variable FirstDogeKing._marketingShare (#402) is not in mixedCase
Variable FirstDogeKing._teamShare (#403) is not in mixedCase
Variable FirstDogeKing._totalTaxIfBuying (#405) is not in mixedCase
Variable FirstDogeKing._totalTaxIfSelling (#406) is not in mixedCase
Variable FirstDogeKing._totalDistributionShares (#407) is not in mixedCase
Variable FirstDogeKing._maxTxAmount (#410) is not in mixedCase
Variable FirstDogeKing._walletMax (#411) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#11)" inContext (#4-14)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in FirstDogeKing._transfer(address,address,uint256) (#640-678):
External calls:
- swapAndLiquify(contractTokenBalance) (#662)
- recipient.transfer(amount) (#604)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#662)
- recipient.transfer(amount) (#604)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#665)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#673)
- finalAmount = takeFee(sender,recipient,amount) (#667-668)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#763)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#764)
- finalAmount = takeFee(sender,recipient,amount) (#667-668)
- Transfer(sender,recipient,finalAmount) (#675)
Reentrancy in FirstDogeKing.swapAndLiquify(uint256) (#692-714):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#707)
- recipient.transfer(amount) (#604)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#710)
- recipient.transfer(amount) (#604)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#707)
- recipient.transfer(amount) (#604)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#710)
- recipient.transfer(amount) (#604)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#713)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#713)
- _allowances[owner][spender] = amount (#522)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#523)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#713)
Reentrancy in FirstDogeKing.transferFrom(address,address,uint256) (#634-638):
External calls:
- _transfer(sender,recipient,amount) (#635)
- recipient.transfer(amount) (#604)
External calls sending eth:
- _transfer(sender,recipient,amount) (#635)
- recipient.transfer(amount) (#604)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#741-748)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#636)
- _allowances[owner][spender] = amount (#522)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#523)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#636)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#244) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#245)
Prevent variables from having similar names.
Additional information: link
FirstDogeKing.slitherConstructorVariables() (#372-771) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#383)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
FirstDogeKing._decimals (#379) should be constant
FirstDogeKing._name (#377) should be constant
FirstDogeKing._symbol (#378) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#162-164)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#166-168)
name() should be declared external:
- FirstDogeKing.name() (#475-477)
symbol() should be declared external:
- FirstDogeKing.symbol() (#479-481)
decimals() should be declared external:
- FirstDogeKing.decimals() (#483-485)
totalSupply() should be declared external:
- FirstDogeKing.totalSupply() (#487-489)
allowance(address,address) should be declared external:
- FirstDogeKing.allowance(address,address) (#495-497)
increaseAllowance(address,uint256) should be declared external:
- FirstDogeKing.increaseAllowance(address,uint256) (#499-502)
decreaseAllowance(address,uint256) should be declared external:
- FirstDogeKing.decreaseAllowance(address,uint256) (#504-507)
minimumTokensBeforeSwapAmount() should be declared external:
- FirstDogeKing.minimumTokensBeforeSwapAmount() (#509-511)
approve(address,uint256) should be declared external:
- FirstDogeKing.approve(address,uint256) (#513-516)
setMarketPairStatus(address,bool) should be declared external:
- FirstDogeKing.setMarketPairStatus(address,bool) (#526-528)
setIsExcludedFromFee(address,bool) should be declared external:
- FirstDogeKing.setIsExcludedFromFee(address,bool) (#534-536)
setSwapAndLiquifyEnabled(bool) should be declared external:
- FirstDogeKing.setSwapAndLiquifyEnabled(bool) (#590-593)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- FirstDogeKing.setSwapAndLiquifyByLimitOnly(bool) (#595-597)
getCirculatingSupply() should be declared external:
- FirstDogeKing.getCirculatingSupply() (#599-601)
changeRouterVersion(address) should be declared external:
- FirstDogeKing.changeRouterVersion(address) (#607-624)
transfer(address,uint256) should be declared external:
- FirstDogeKing.transfer(address,uint256) (#629-632)
transferFrom(address,address,uint256) should be declared external:
- FirstDogeKing.transferFrom(address,address,uint256) (#634-638)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to find website, listings and other project-related information
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Twitter account
Telegram account has relatively few subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account