Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Kingkongking.addLiquidity(uint256,uint256) (#742-755) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Kingkongking._transfer(address,address,uint256) (#651-689):
External calls:
- swapAndLiquify(contractTokenBalance) (#673)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#673)
- recipient.transfer(amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#676)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#684)
- finalAmount = takeFee(sender,recipient,amount) (#678-679)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#769)
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.
Kingkongking.setBuyTaxes(uint256,uint256,uint256) (#549-555) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#554)
Kingkongking.setSelTaxes(uint256,uint256,uint256) (#557-563) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#562)
Kingkongking.setDistributionSettings(uint256,uint256,uint256) (#565-571) should emit an event for:
- _liquidityShare = newLiquidityShare (#566)
- _teamShare = newTeamShare (#568)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#570)
Kingkongking.setMaxTxAmount(uint256) (#573-575) should emit an event for:
- _maxTxAmount = maxTxAmount (#574)
Kingkongking.setWalletLimit(uint256) (#585-587) should emit an event for:
- _walletMax = newLimit (#586)
Kingkongking.setNumTokensBeforeSwap(uint256) (#589-591) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#590)
Emit an event for critical parameter changes.
Additional information: link
Kingkongking.setMarketingWalletAddress(address).newAddress (#593) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#594)
Kingkongking.setTeamWalletAddress(address).newAddress (#597) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#598)
Check that the address is not zero.
Additional information: link
Kingkongking.addLiquidity(uint256,uint256) (#742-755) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
Ensure that all the return values of the function calls are used.
Additional information: link
Kingkongking.allowance(address,address).owner (#506) shadows:
- Ownable.owner() (#156-158) (function)
Kingkongking._approve(address,address,uint256).owner (#529) shadows:
- Ownable.owner() (#156-158) (function)
Rename the local variables that shadow another component.
Additional information: link
Ownable.asdasd (#145) is never used in Kingkongking (#382-777)
Ownable._lockTime (#146) is never used in Kingkongking (#382-777)
Remove unused state variables.
Additional information: link
Kingkongking._decimals (#389) should be constant
Kingkongking._name (#387) should be constant
Kingkongking._symbol (#388) should be constant
Ownable._lockTime (#146) should be constant
Ownable.asdasd (#145) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
Reentrancy in Kingkongking.changeRouterVersion(address) (#618-635):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#626-627)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#634)
- isWalletLimitExempt[address(uniswapPair)] = true (#633)
- uniswapPair = newPairAddress (#630)
- uniswapV2Router = _uniswapV2Router (#631)
Reentrancy in Kingkongking.constructor() (#455-484):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#460-461)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#464)
- _balances[_msgSender()] = _totalSupply (#482)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#471)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#469)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#470)
- isExcludedFromFee[owner()] = true (#466)
- isExcludedFromFee[address(this)] = true (#467)
- isMarketPair[address(uniswapPair)] = true (#480)
- isTxLimitExempt[owner()] = true (#477)
- isTxLimitExempt[address(this)] = true (#478)
- isWalletLimitExempt[owner()] = true (#473)
- isWalletLimitExempt[address(uniswapPair)] = true (#474)
- isWalletLimitExempt[address(this)] = true (#475)
- uniswapV2Router = _uniswapV2Router (#463)
Reentrancy in Kingkongking.swapAndLiquify(uint256) (#698-720):
External calls:
- swapTokensForEth(tokensForSwap) (#703)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#713)
- recipient.transfer(amount) (#615)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#716)
- recipient.transfer(amount) (#615)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- _allowances[owner][spender] = amount (#533)
Reentrancy in Kingkongking.transferFrom(address,address,uint256) (#645-649):
External calls:
- _transfer(sender,recipient,amount) (#646)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
External calls sending eth:
- _transfer(sender,recipient,amount) (#646)
- recipient.transfer(amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#647)
- _allowances[owner][spender] = amount (#533)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Kingkongking._transfer(address,address,uint256) (#651-689):
External calls:
- swapAndLiquify(contractTokenBalance) (#673)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#673)
- recipient.transfer(amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#770)
- finalAmount = takeFee(sender,recipient,amount) (#678-679)
- Transfer(sender,recipient,finalAmount) (#686)
Reentrancy in Kingkongking.constructor() (#455-484):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#460-461)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#483)
Reentrancy in Kingkongking.swapAndLiquify(uint256) (#698-720):
External calls:
- swapTokensForEth(tokensForSwap) (#703)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#713)
- recipient.transfer(amount) (#615)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#716)
- recipient.transfer(amount) (#615)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#534)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
Reentrancy in Kingkongking.swapTokensForEth(uint256) (#722-740):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#739)
Reentrancy in Kingkongking.transferFrom(address,address,uint256) (#645-649):
External calls:
- _transfer(sender,recipient,amount) (#646)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
External calls sending eth:
- _transfer(sender,recipient,amount) (#646)
- recipient.transfer(amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#534)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#647)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#87-96) uses assembly
- INLINE ASM (#94)
Address._functionCallWithValue(address,bytes,uint256,string) (#123-140) uses assembly
- INLINE ASM (#132-135)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#123-140) is never used and should be removed
Address.functionCall(address,bytes) (#106-108) is never used and should be removed
Address.functionCall(address,bytes,string) (#110-112) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#114-116) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#118-121) is never used and should be removed
Address.isContract(address) (#87-96) is never used and should be removed
Address.sendValue(address,uint256) (#98-104) is never used and should be removed
Context._msgData() (#14-17) is never used and should be removed
SafeMath.mod(uint256,uint256) (#75-77) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#79-82) is never used and should be removed
Remove unused functions.
Additional information: link
Kingkongking._totalSupply (#419) is set pre-construction with a non-constant function or state variable:
- 10000000000000000 * 10 ** _decimals
Kingkongking._maxTxAmount (#420) is set pre-construction with a non-constant function or state variable:
- 10000000000000000 * 10 ** _decimals
Kingkongking._walletMax (#421) is set pre-construction with a non-constant function or state variable:
- 10000000000000000 * 10 ** _decimals
Kingkongking.minimumTokensBeforeSwap (#422) is set pre-construction with a non-constant function or state variable:
- 1 * 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) (#98-104):
- (success) = recipient.call{value: amount}() (#102)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#123-140):
- (success,returndata) = target.call{value: weiValue}(data) (#126)
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() (#213) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#214) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#230) is not in mixedCase
Function IUniswapV2Router01.WETH() (#249) is not in mixedCase
Parameter Kingkongking.setSwapAndLiquifyEnabled(bool)._enabled (#601) is not in mixedCase
Variable Kingkongking._balances (#395) is not in mixedCase
Variable Kingkongking._buyLiquidityFee (#403) is not in mixedCase
Variable Kingkongking._buyMarketingFee (#404) is not in mixedCase
Variable Kingkongking._buyTeamFee (#405) is not in mixedCase
Variable Kingkongking._sellLiquidityFee (#407) is not in mixedCase
Variable Kingkongking._sellMarketingFee (#408) is not in mixedCase
Variable Kingkongking._sellTeamFee (#409) is not in mixedCase
Variable Kingkongking._liquidityShare (#411) is not in mixedCase
Variable Kingkongking._marketingShare (#412) is not in mixedCase
Variable Kingkongking._teamShare (#413) is not in mixedCase
Variable Kingkongking._totalTaxIfBuying (#415) is not in mixedCase
Variable Kingkongking._totalTaxIfSelling (#416) is not in mixedCase
Variable Kingkongking._totalDistributionShares (#417) is not in mixedCase
Variable Kingkongking._maxTxAmount (#420) is not in mixedCase
Variable Kingkongking._walletMax (#421) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#15)" inContext (#8-18)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in Kingkongking._transfer(address,address,uint256) (#651-689):
External calls:
- swapAndLiquify(contractTokenBalance) (#673)
- recipient.transfer(amount) (#615)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#673)
- recipient.transfer(amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#676)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#684)
- finalAmount = takeFee(sender,recipient,amount) (#678-679)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#769)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#770)
- finalAmount = takeFee(sender,recipient,amount) (#678-679)
- Transfer(sender,recipient,finalAmount) (#686)
Reentrancy in Kingkongking.swapAndLiquify(uint256) (#698-720):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#713)
- recipient.transfer(amount) (#615)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#716)
- recipient.transfer(amount) (#615)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#713)
- recipient.transfer(amount) (#615)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#716)
- recipient.transfer(amount) (#615)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- _allowances[owner][spender] = amount (#533)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#534)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
Reentrancy in Kingkongking.transferFrom(address,address,uint256) (#645-649):
External calls:
- _transfer(sender,recipient,amount) (#646)
- recipient.transfer(amount) (#615)
External calls sending eth:
- _transfer(sender,recipient,amount) (#646)
- recipient.transfer(amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#647)
- _allowances[owner][spender] = amount (#533)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#534)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#647)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#254) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#255)
Prevent variables from having similar names.
Additional information: link
Ownable.waiveOwnership() (#165-168) uses literals with too many digits:
- OwnershipTransferred(_owner,address(0x000000000000000000000000000000000000dEaD)) (#166)
Ownable.waiveOwnership() (#165-168) uses literals with too many digits:
- _owner = address(0x000000000000000000000000000000000000dEaD) (#167)
Kingkongking.slitherConstructorVariables() (#382-777) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#393)
Kingkongking.slitherConstructorVariables() (#382-777) uses literals with too many digits:
- _totalSupply = 10000000000000000 * 10 ** _decimals (#419)
Kingkongking.slitherConstructorVariables() (#382-777) uses literals with too many digits:
- _maxTxAmount = 10000000000000000 * 10 ** _decimals (#420)
Kingkongking.slitherConstructorVariables() (#382-777) uses literals with too many digits:
- _walletMax = 10000000000000000 * 10 ** _decimals (#421)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#165-168)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#170-174)
getTime() should be declared external:
- Ownable.getTime() (#176-178)
name() should be declared external:
- Kingkongking.name() (#486-488)
symbol() should be declared external:
- Kingkongking.symbol() (#490-492)
decimals() should be declared external:
- Kingkongking.decimals() (#494-496)
totalSupply() should be declared external:
- Kingkongking.totalSupply() (#498-500)
allowance(address,address) should be declared external:
- Kingkongking.allowance(address,address) (#506-508)
increaseAllowance(address,uint256) should be declared external:
- Kingkongking.increaseAllowance(address,uint256) (#510-513)
decreaseAllowance(address,uint256) should be declared external:
- Kingkongking.decreaseAllowance(address,uint256) (#515-518)
minimumTokensBeforeSwapAmount() should be declared external:
- Kingkongking.minimumTokensBeforeSwapAmount() (#520-522)
approve(address,uint256) should be declared external:
- Kingkongking.approve(address,uint256) (#524-527)
setMarketPairStatus(address,bool) should be declared external:
- Kingkongking.setMarketPairStatus(address,bool) (#537-539)
setIsExcludedFromFee(address,bool) should be declared external:
- Kingkongking.setIsExcludedFromFee(address,bool) (#545-547)
setSwapAndLiquifyEnabled(bool) should be declared external:
- Kingkongking.setSwapAndLiquifyEnabled(bool) (#601-604)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- Kingkongking.setSwapAndLiquifyByLimitOnly(bool) (#606-608)
getCirculatingSupply() should be declared external:
- Kingkongking.getCirculatingSupply() (#610-612)
changeRouterVersion(address) should be declared external:
- Kingkongking.changeRouterVersion(address) (#618-635)
transfer(address,uint256) should be declared external:
- Kingkongking.transfer(address,uint256) (#640-643)
transferFrom(address,address,uint256) should be declared external:
- Kingkongking.transferFrom(address,address,uint256) (#645-649)
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