Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
WolfKing.addLiquidity(uint256,uint256) (#780-793) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in WolfKing._transfer(address,address,uint256) (#689-727):
External calls:
- swapAndLiquify(contractTokenBalance) (#711)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#769-775)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#711)
- recipient.transfer(amount) (#653)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#714)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#722)
- finalAmount = takeFee(sender,recipient,amount) (#716-717)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#807)
Apply the check-effects-interactions pattern.
Additional information: link
WolfKing.deadAddress (#423) shadows:
- Ownable.deadAddress (#159)
Remove the state variable shadowing.
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.
WolfKing.allowance(address,address).owner (#538) shadows:
- Ownable.owner() (#169-171) (function)
WolfKing._approve(address,address,uint256).owner (#561) shadows:
- Ownable.owner() (#169-171) (function)
Rename the local variables that shadow another component.
Additional information: link
WolfKing.addLiquidity(uint256,uint256) (#780-793) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
Ensure that all the return values of the function calls are used.
Additional information: link
WolfKing.setBuyTaxes(uint256,uint256,uint256) (#587-593) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#592)
WolfKing.setSellTaxes(uint256,uint256,uint256) (#595-601) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#600)
WolfKing.setDistributionSettings(uint256,uint256,uint256) (#603-609) should emit an event for:
- _liquidityShare = newLiquidityShare (#604)
- _teamShare = newTeamShare (#606)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#608)
WolfKing.setMaxTxAmount(uint256) (#611-613) should emit an event for:
- _maxTxAmount = maxTxAmount (#612)
WolfKing.setWalletLimit(uint256) (#623-625) should emit an event for:
- _walletMax = newLimit (#624)
WolfKing.setNumTokensBeforeSwap(uint256) (#627-629) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#628)
Emit an event for critical parameter changes.
Additional information: link
WolfKing.setMarketingWalletAddress(address).newAddress (#631) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#632)
WolfKing.setTeamWalletAddress(address).newAddress (#635) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#636)
Check that the address is not zero.
Additional information: link
Reentrancy in WolfKing.changeRouterVersion(address) (#656-673):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#664-665)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#672)
- isWalletLimitExempt[address(uniswapPair)] = true (#671)
- uniswapPair = newPairAddress (#668)
- uniswapV2Router = _uniswapV2Router (#669)
Reentrancy in WolfKing.constructor() (#486-515):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#490-491)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#494)
- _balances[_msgSender()] = _totalSupply (#513)
- _pre = owner() (#495)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#502)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#500)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#501)
- isExcludedFromFee[owner()] = true (#497)
- isExcludedFromFee[address(this)] = true (#498)
- isMarketPair[address(uniswapPair)] = true (#511)
- isTxLimitExempt[owner()] = true (#508)
- isTxLimitExempt[address(this)] = true (#509)
- isWalletLimitExempt[owner()] = true (#504)
- isWalletLimitExempt[address(uniswapPair)] = true (#505)
- isWalletLimitExempt[address(this)] = true (#506)
- uniswapV2Router = _uniswapV2Router (#493)
Reentrancy in WolfKing.swapAndLiquify(uint256) (#736-758):
External calls:
- swapTokensForEth(tokensForSwap) (#741)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#769-775)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#757)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#751)
- recipient.transfer(amount) (#653)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#754)
- recipient.transfer(amount) (#653)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#757)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#757)
- _allowances[owner][spender] = amount (#565)
Reentrancy in WolfKing.transferFrom(address,address,uint256) (#683-687):
External calls:
- _transfer(sender,recipient,amount) (#684)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#769-775)
External calls sending eth:
- _transfer(sender,recipient,amount) (#684)
- recipient.transfer(amount) (#653)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#685)
- _allowances[owner][spender] = amount (#565)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in WolfKing._transfer(address,address,uint256) (#689-727):
External calls:
- swapAndLiquify(contractTokenBalance) (#711)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#769-775)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#711)
- recipient.transfer(amount) (#653)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#808)
- finalAmount = takeFee(sender,recipient,amount) (#716-717)
- Transfer(sender,recipient,finalAmount) (#724)
Reentrancy in WolfKing.constructor() (#486-515):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#490-491)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#514)
Reentrancy in WolfKing.swapAndLiquify(uint256) (#736-758):
External calls:
- swapTokensForEth(tokensForSwap) (#741)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#769-775)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#757)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#751)
- recipient.transfer(amount) (#653)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#754)
- recipient.transfer(amount) (#653)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#757)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#566)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#757)
Reentrancy in WolfKing.swapTokensForEth(uint256) (#760-778):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#769-775)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#777)
Reentrancy in WolfKing.transferFrom(address,address,uint256) (#683-687):
External calls:
- _transfer(sender,recipient,amount) (#684)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#769-775)
External calls sending eth:
- _transfer(sender,recipient,amount) (#684)
- recipient.transfer(amount) (#653)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#566)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#685)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#204-209) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#206)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#99-108) uses assembly
- INLINE ASM (#106)
Address._functionCallWithValue(address,bytes,uint256,string) (#135-152) uses assembly
- INLINE ASM (#144-147)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#135-152) is never used and should be removed
Address.functionCall(address,bytes) (#118-120) is never used and should be removed
Address.functionCall(address,bytes,string) (#122-124) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#126-128) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#130-133) is never used and should be removed
Address.isContract(address) (#99-108) is never used and should be removed
Address.sendValue(address,uint256) (#110-116) is never used and should be removed
Context._msgData() (#26-29) is never used and should be removed
SafeMath.mod(uint256,uint256) (#87-89) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#91-94) is never used and should be removed
Remove unused functions.
Additional information: link
WolfKing._totalSupply (#450) is set pre-construction with a non-constant function or state variable:
- 100000000000 * 10 ** _decimals
WolfKing._maxTxAmount (#451) is set pre-construction with a non-constant function or state variable:
- 100000000000 * 10 ** _decimals
WolfKing._walletMax (#452) is set pre-construction with a non-constant function or state variable:
- 100000000000 * 10 ** _decimals
WolfKing.minimumTokensBeforeSwap (#453) is set pre-construction with a non-constant function or state variable:
- 10 * 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) (#110-116):
- (success) = recipient.call{value: amount}() (#114)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#135-152):
- (success,returndata) = target.call{value: weiValue}(data) (#138)
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() (#243) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#244) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#260) is not in mixedCase
Function IUniswapV2Router01.WETH() (#279) is not in mixedCase
Parameter WolfKing.setSwapAndLiquifyEnabled(bool)._enabled (#639) is not in mixedCase
Variable WolfKing._balances (#425) is not in mixedCase
Variable WolfKing._buyLiquidityFee (#433) is not in mixedCase
Variable WolfKing._buyMarketingFee (#434) is not in mixedCase
Variable WolfKing._buyTeamFee (#435) is not in mixedCase
Variable WolfKing._sellLiquidityFee (#437) is not in mixedCase
Variable WolfKing._sellMarketingFee (#438) is not in mixedCase
Variable WolfKing._sellTeamFee (#439) is not in mixedCase
Variable WolfKing._liquidityShare (#441) is not in mixedCase
Variable WolfKing._marketingShare (#442) is not in mixedCase
Variable WolfKing._teamShare (#443) is not in mixedCase
Variable WolfKing._totalTaxIfBuying (#446) is not in mixedCase
Variable WolfKing._totalTaxIfSelling (#447) is not in mixedCase
Variable WolfKing._totalDistributionShares (#448) is not in mixedCase
Variable WolfKing._maxTxAmount (#451) is not in mixedCase
Variable WolfKing._walletMax (#452) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#27)" inContext (#20-30)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in WolfKing._transfer(address,address,uint256) (#689-727):
External calls:
- swapAndLiquify(contractTokenBalance) (#711)
- recipient.transfer(amount) (#653)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#711)
- recipient.transfer(amount) (#653)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#714)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#722)
- finalAmount = takeFee(sender,recipient,amount) (#716-717)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#807)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#808)
- finalAmount = takeFee(sender,recipient,amount) (#716-717)
- Transfer(sender,recipient,finalAmount) (#724)
Reentrancy in WolfKing.swapAndLiquify(uint256) (#736-758):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#751)
- recipient.transfer(amount) (#653)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#754)
- recipient.transfer(amount) (#653)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#751)
- recipient.transfer(amount) (#653)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#754)
- recipient.transfer(amount) (#653)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#757)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#757)
- _allowances[owner][spender] = amount (#565)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#566)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#757)
Reentrancy in WolfKing.transferFrom(address,address,uint256) (#683-687):
External calls:
- _transfer(sender,recipient,amount) (#684)
- recipient.transfer(amount) (#653)
External calls sending eth:
- _transfer(sender,recipient,amount) (#684)
- recipient.transfer(amount) (#653)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#785-792)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#685)
- _allowances[owner][spender] = amount (#565)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#566)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#685)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#284) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#285)
Prevent variables from having similar names.
Additional information: link
WolfKing.slitherConstructorVariables() (#412-815) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#423)
WolfKing.slitherConstructorVariables() (#412-815) uses literals with too many digits:
- _totalSupply = 100000000000 * 10 ** _decimals (#450)
WolfKing.slitherConstructorVariables() (#412-815) uses literals with too many digits:
- _maxTxAmount = 100000000000 * 10 ** _decimals (#451)
WolfKing.slitherConstructorVariables() (#412-815) uses literals with too many digits:
- _walletMax = 100000000000 * 10 ** _decimals (#452)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable.deadAddress (#159) should be constant
WolfKing._decimals (#419) should be constant
WolfKing._name (#417) should be constant
WolfKing._symbol (#418) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#178-181)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#183-187)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#189-191)
getTime() should be declared external:
- Ownable.getTime() (#193-195)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#197-202)
unlock() should be declared external:
- Ownable.unlock() (#204-209)
name() should be declared external:
- WolfKing.name() (#517-519)
symbol() should be declared external:
- WolfKing.symbol() (#522-524)
decimals() should be declared external:
- WolfKing.decimals() (#526-528)
totalSupply() should be declared external:
- WolfKing.totalSupply() (#530-532)
allowance(address,address) should be declared external:
- WolfKing.allowance(address,address) (#538-540)
increaseAllowance(address,uint256) should be declared external:
- WolfKing.increaseAllowance(address,uint256) (#542-545)
decreaseAllowance(address,uint256) should be declared external:
- WolfKing.decreaseAllowance(address,uint256) (#547-550)
minimumTokensBeforeSwapAmount() should be declared external:
- WolfKing.minimumTokensBeforeSwapAmount() (#552-554)
approve(address,uint256) should be declared external:
- WolfKing.approve(address,uint256) (#556-559)
setUniswapRoute(uint256) should be declared external:
- WolfKing.setUniswapRoute(uint256) (#569-572)
setMarketPairStatus(address,bool) should be declared external:
- WolfKing.setMarketPairStatus(address,bool) (#575-577)
setIsExcludedFromFee(address,bool) should be declared external:
- WolfKing.setIsExcludedFromFee(address,bool) (#583-585)
setSwapAndLiquifyEnabled(bool) should be declared external:
- WolfKing.setSwapAndLiquifyEnabled(bool) (#639-642)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- WolfKing.setSwapAndLiquifyByLimitOnly(bool) (#644-646)
getCirculatingSupply() should be declared external:
- WolfKing.getCirculatingSupply() (#648-650)
changeRouterVersion(address) should be declared external:
- WolfKing.changeRouterVersion(address) (#656-673)
transfer(address,uint256) should be declared external:
- WolfKing.transfer(address,uint256) (#678-681)
transferFrom(address,address,uint256) should be declared external:
- WolfKing.transferFrom(address,address,uint256) (#683-687)
Use the external attribute for functions never called from the contract.
Additional information: link
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
Unable to find Telegram and Twitter accounts