If you have
Telegram
, you can contact
@ETHKG_EN
right away.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in ETHKGToken._transfer(address,address,uint256) (#517-584):
External calls:
- swapAndLiquify(contractTokenBalance) (#557)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#662-668)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#557)
- recipient.transfer(amount) (#500)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#560)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#565)
- _basicTransfer(recipient,deadAddress,finalAmount) (#569)
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#620)
- _balances[recipient] = _balances[recipient].add(amount) (#621)
- finalAmount = takeFee(sender,recipient,amount) (#562-563)
- _balances[recipient] = _balances[recipient].add(tAmount) (#721)
Reentrancy in ETHKGToken._transfer(address,address,uint256) (#517-584):
External calls:
- swapAndLiquify(contractTokenBalance) (#557)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#662-668)
- process(distributorGas) (#579)
- IERC20(ethAddress).transfer(shareholder,amount) (#615)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#557)
- recipient.transfer(amount) (#500)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
State variables written after the call(s):
- LPFeefenhongTime = block.timestamp (#580)
Apply the check-effects-interactions pattern.
Additional information: link
ETHKGToken.distributeDividend(address,uint256) (#614-616) ignores return value by IERC20(ethAddress).transfer(shareholder,amount) (#615)
ETHKGToken.clamErcOther(address,address,uint256) (#778-781) ignores return value by IERC20(erc).transfer(recipient,amount) (#780)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
ETHKGToken._buyBackLpFee (#340) should be constant
ETHKGToken._buyDestoryFee (#339) should be constant
ETHKGToken._buyLpFenhongFee (#341) should be constant
ETHKGToken._buyMarketingFee (#342) should be constant
ETHKGToken._decimals (#309) should be constant
ETHKGToken._limitBuy (#321) should be constant
ETHKGToken._limitBuyBlock (#322) should be constant
ETHKGToken._name (#307) should be constant
ETHKGToken._saleKeepFee (#327) should be constant
ETHKGToken._sellBackLpFee (#346) should be constant
ETHKGToken._sellDestoryFee (#345) should be constant
ETHKGToken._sellLpFenhongFee (#347) should be constant
ETHKGToken._sellMarketingFee (#348) should be constant
ETHKGToken._symbol (#308) should be constant
ETHKGToken.coolBlock (#319) should be constant
ETHKGToken.deadAddress (#310) should be constant
ETHKGToken.distributorGas (#359) should be constant
ETHKGToken.ethAddress (#314) should be constant
ETHKGToken.marketingWalletAddress (#311) should be constant
ETHKGToken.minEthVal (#366) should be constant
ETHKGToken.minPeriod (#357) should be constant
ETHKGToken.recipientLpAddress (#312) should be constant
ETHKGToken.wapV2RouterAddress (#316) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#124-127)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#129-133)
name() should be declared external:
- ETHKGToken.name() (#431-433)
symbol() should be declared external:
- ETHKGToken.symbol() (#435-437)
decimals() should be declared external:
- ETHKGToken.decimals() (#439-441)
allowance(address,address) should be declared external:
- ETHKGToken.allowance(address,address) (#451-453)
increaseAllowance(address,uint256) should be declared external:
- ETHKGToken.increaseAllowance(address,uint256) (#455-458)
decreaseAllowance(address,uint256) should be declared external:
- ETHKGToken.decreaseAllowance(address,uint256) (#460-463)
minimumTokensBeforeSwapAmount() should be declared external:
- ETHKGToken.minimumTokensBeforeSwapAmount() (#465-467)
approve(address,uint256) should be declared external:
- ETHKGToken.approve(address,uint256) (#469-472)
setMarketPairStatus(address,bool) should be declared external:
- ETHKGToken.setMarketPairStatus(address,bool) (#482-484)
setIsExcludedFromFee(address,bool) should be declared external:
- ETHKGToken.setIsExcludedFromFee(address,bool) (#490-492)
getCirculatingSupply() should be declared external:
- ETHKGToken.getCirculatingSupply() (#495-497)
transfer(address,uint256) should be declared external:
- ETHKGToken.transfer(address,uint256) (#506-509)
transferFrom(address,address,uint256) should be declared external:
- ETHKGToken.transferFrom(address,address,uint256) (#511-515)
unLockLimit(address,uint256) should be declared external:
- ETHKGToken.unLockLimit(address,uint256) (#740-743)
unLockLimitByArray(address[],uint256) should be declared external:
- ETHKGToken.unLockLimitByArray(address[],uint256) (#745-751)
clamErcOther(address,address,uint256) should be declared external:
- ETHKGToken.clamErcOther(address,address,uint256) (#778-781)
Use the external attribute for functions never called from the contract.
Additional information: link
ETHKGToken.process(uint256) (#585-611) performs a multiplication on the result of a division:
-divper = nowbananceEth.mul(magnitude).div(totalSupply()) (#592)
-amount = balanceOf(shareholders[currentIndex]).mul(divper).div(magnitude) (#597)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in ETHKGToken.process(uint256) (#585-611):
External calls:
- distributeDividend(shareholders[currentIndex],amount) (#605)
- IERC20(ethAddress).transfer(shareholder,amount) (#615)
State variables written after the call(s):
- currentIndex ++ (#608)
Apply the check-effects-interactions pattern.
Additional information: link
ETHKGToken.addLiquidity(uint256,uint256) (#672-684) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
ETHKGToken.swapEthForToken(uint256,address) (#725-738) ignores return value by uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
Ensure that all the return values of the function calls are used.
Additional information: link
ETHKGToken.allowance(address,address).owner (#451) shadows:
- Ownable.owner() (#115-117) (function)
ETHKGToken._approve(address,address,uint256).owner (#474) shadows:
- Ownable.owner() (#115-117) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in ETHKGToken._transfer(address,address,uint256) (#517-584):
External calls:
- swapAndLiquify(contractTokenBalance) (#557)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#662-668)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#557)
- recipient.transfer(amount) (#500)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
State variables written after the call(s):
- setShare(fromAddress) (#573)
- _updated[shareholder] = false (#769)
- _updated[shareholder] = true (#760)
- setShare(toAddress) (#574)
- _updated[shareholder] = false (#769)
- _updated[shareholder] = true (#760)
- fromAddress = sender (#571)
- fromAddress = sender (#576)
- setShare(fromAddress) (#573)
- shareholderIndexes[shareholder] = shareholders.length (#764)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#773)
- setShare(toAddress) (#574)
- shareholderIndexes[shareholder] = shareholders.length (#764)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#773)
- setShare(fromAddress) (#573)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#772)
- shareholders.push(shareholder) (#765)
- shareholders.pop() (#774)
- setShare(toAddress) (#574)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#772)
- shareholders.push(shareholder) (#765)
- shareholders.pop() (#774)
- toAddress = recipient (#572)
- toAddress = recipient (#577)
Reentrancy in ETHKGToken.constructor() (#401-429):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#405-406)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#409)
- _balances[_msgSender()] = _totalSupply (#427)
- isDividendExempt[address(uniswapPair)] = true (#411)
- isDividendExempt[address(this)] = true (#412)
- isDividendExempt[address(deadAddress)] = true (#413)
- isExcludedFromFee[owner()] = true (#415)
- isExcludedFromFee[address(this)] = true (#416)
- isMarketPair[address(uniswapPair)] = true (#425)
- isTxLimitExempt[owner()] = true (#422)
- isTxLimitExempt[address(this)] = true (#423)
- isWalletLimitExempt[owner()] = true (#418)
- isWalletLimitExempt[address(uniswapPair)] = true (#419)
- isWalletLimitExempt[address(this)] = true (#420)
- uniswapV2Router = _uniswapV2Router (#408)
Reentrancy in ETHKGToken.swapAndLiquify(uint256) (#626-653):
External calls:
- swapTokensForEth(exBnbNum) (#630)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#662-668)
- swapEthForToken(burnBNB,deadAddress) (#638)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- swapEthForToken(fenhongBNB,address(this)) (#642)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- addLiquidity(letfBackLpToken,lpBNB) (#646)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
External calls sending eth:
- swapEthForToken(burnBNB,deadAddress) (#638)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- swapEthForToken(fenhongBNB,address(this)) (#642)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- addLiquidity(letfBackLpToken,lpBNB) (#646)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
State variables written after the call(s):
- addLiquidity(letfBackLpToken,lpBNB) (#646)
- _allowances[owner][spender] = amount (#478)
Reentrancy in ETHKGToken.transferFrom(address,address,uint256) (#511-515):
External calls:
- _transfer(sender,recipient,amount) (#512)
- IERC20(ethAddress).transfer(shareholder,amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#662-668)
External calls sending eth:
- _transfer(sender,recipient,amount) (#512)
- recipient.transfer(amount) (#500)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#513)
- _allowances[owner][spender] = amount (#478)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in ETHKGToken._transfer(address,address,uint256) (#517-584):
External calls:
- swapAndLiquify(contractTokenBalance) (#557)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#662-668)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#557)
- recipient.transfer(amount) (#500)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#622)
- _basicTransfer(recipient,deadAddress,finalAmount) (#569)
- Transfer(sender,recipient,tAmount) (#722)
- finalAmount = takeFee(sender,recipient,amount) (#562-563)
- Transfer(sender,recipient,finalAmount) (#566)
Reentrancy in ETHKGToken.constructor() (#401-429):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#405-406)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#428)
Reentrancy in ETHKGToken.swapAndLiquify(uint256) (#626-653):
External calls:
- swapTokensForEth(exBnbNum) (#630)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#662-668)
- swapEthForToken(burnBNB,deadAddress) (#638)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- swapEthForToken(fenhongBNB,address(this)) (#642)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- addLiquidity(letfBackLpToken,lpBNB) (#646)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
External calls sending eth:
- swapEthForToken(burnBNB,deadAddress) (#638)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- swapEthForToken(fenhongBNB,address(this)) (#642)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- addLiquidity(letfBackLpToken,lpBNB) (#646)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#479)
- addLiquidity(letfBackLpToken,lpBNB) (#646)
Reentrancy in ETHKGToken.swapTokensForEth(uint256) (#655-670):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#662-668)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#669)
Reentrancy in ETHKGToken.transferFrom(address,address,uint256) (#511-515):
External calls:
- _transfer(sender,recipient,amount) (#512)
- IERC20(ethAddress).transfer(shareholder,amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#662-668)
External calls sending eth:
- _transfer(sender,recipient,amount) (#512)
- recipient.transfer(amount) (#500)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#479)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#513)
Apply the check-effects-interactions pattern.
Additional information: link
ETHKGToken._transfer(address,address,uint256) (#517-584) uses timestamp for comparisons
Dangerous comparisons:
- IERC20(ethAddress).balanceOf(address(this)) >= minEthVal && LPFeefenhongTime.add(minPeriod) <= block.timestamp (#578)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#85-91) uses assembly
- INLINE ASM (#89)
Do not use evm assembly.
Additional information: link
Address.isContract(address) (#85-91) is never used and should be removed
Address.sendValue(address,uint256) (#93-99) is never used and should be removed
Context._msgData() (#10-13) is never used and should be removed
SafeMath.mod(uint256,uint256) (#73-75) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#77-80) is never used and should be removed
Remove unused functions.
Additional information: link
ETHKGToken.minimumTokensBeforeSwap (#326) is set pre-construction with a non-constant function or state variable:
- 2000 * 10 ** 8 * 10 ** _decimals
ETHKGToken._totalSupply (#329) is set pre-construction with a non-constant function or state variable:
- 10000000 * 10 ** 8 * 10 ** _decimals
ETHKGToken._buyTotalFee (#343) is set pre-construction with a non-constant function or state variable:
- _buyDestoryFee.add(_buyBackLpFee).add(_buyLpFenhongFee).add(_buyMarketingFee)
ETHKGToken._sellTotalFee (#349) is set pre-construction with a non-constant function or state variable:
- _sellDestoryFee.add(_sellBackLpFee).add(_sellLpFenhongFee).add(_sellMarketingFee)
ETHKGToken.minFenHongEthk (#368) is set pre-construction with a non-constant function or state variable:
- 500 * 10 ** 8 * 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) (#93-99):
- (success) = recipient.call{value: amount}() (#97)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Router01.WETH() (#201) is not in mixedCase
Variable ETHKGToken._saleKeepFee (#327) is not in mixedCase
Variable ETHKGToken._balances (#331) is not in mixedCase
Variable ETHKGToken._buyDestoryFee (#339) is not in mixedCase
Variable ETHKGToken._buyBackLpFee (#340) is not in mixedCase
Variable ETHKGToken._buyLpFenhongFee (#341) is not in mixedCase
Variable ETHKGToken._buyMarketingFee (#342) is not in mixedCase
Variable ETHKGToken._buyTotalFee (#343) is not in mixedCase
Variable ETHKGToken._sellDestoryFee (#345) is not in mixedCase
Variable ETHKGToken._sellBackLpFee (#346) is not in mixedCase
Variable ETHKGToken._sellLpFenhongFee (#347) is not in mixedCase
Variable ETHKGToken._sellMarketingFee (#348) is not in mixedCase
Variable ETHKGToken._sellTotalFee (#349) is not in mixedCase
Variable ETHKGToken.LPFeefenhongTime (#356) is not in mixedCase
Constant ETHKGToken.magnitude (#370) is not in UPPER_CASE_WITH_UNDERSCORES
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 ETHKGToken._transfer(address,address,uint256) (#517-584):
External calls:
- swapAndLiquify(contractTokenBalance) (#557)
- recipient.transfer(amount) (#500)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#557)
- recipient.transfer(amount) (#500)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
State variables written after the call(s):
- LPFeefenhongTime = block.timestamp (#580)
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#560)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#565)
- _basicTransfer(recipient,deadAddress,finalAmount) (#569)
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#620)
- _balances[recipient] = _balances[recipient].add(amount) (#621)
- finalAmount = takeFee(sender,recipient,amount) (#562-563)
- _balances[recipient] = _balances[recipient].add(tAmount) (#721)
- setShare(fromAddress) (#573)
- _updated[shareholder] = false (#769)
- _updated[shareholder] = true (#760)
- setShare(toAddress) (#574)
- _updated[shareholder] = false (#769)
- _updated[shareholder] = true (#760)
- process(distributorGas) (#579)
- currentIndex = 0 (#595)
- currentIndex ++ (#600)
- currentIndex ++ (#608)
- fromAddress = sender (#571)
- fromAddress = sender (#576)
- setShare(fromAddress) (#573)
- shareholderIndexes[shareholder] = shareholders.length (#764)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#773)
- setShare(toAddress) (#574)
- shareholderIndexes[shareholder] = shareholders.length (#764)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#773)
- setShare(fromAddress) (#573)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#772)
- shareholders.push(shareholder) (#765)
- shareholders.pop() (#774)
- setShare(toAddress) (#574)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#772)
- shareholders.push(shareholder) (#765)
- shareholders.pop() (#774)
- toAddress = recipient (#572)
- toAddress = recipient (#577)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#622)
- _basicTransfer(recipient,deadAddress,finalAmount) (#569)
- Transfer(sender,recipient,tAmount) (#722)
- finalAmount = takeFee(sender,recipient,amount) (#562-563)
- Transfer(sender,recipient,finalAmount) (#566)
Reentrancy in ETHKGToken.transferFrom(address,address,uint256) (#511-515):
External calls:
- _transfer(sender,recipient,amount) (#512)
- recipient.transfer(amount) (#500)
External calls sending eth:
- _transfer(sender,recipient,amount) (#512)
- recipient.transfer(amount) (#500)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,recipientLpAddress,block.timestamp) (#676-683)
- uniswapV2Router.swapExactETHForTokens{value: bnbAmount}(0,path,recipient,block.timestamp) (#732-737)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#513)
- _allowances[owner][spender] = amount (#478)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#479)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#513)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#206) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#207)
Prevent variables from having similar names.
Additional information: link
ETHKGToken.slitherConstructorVariables() (#302-783) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#310)
ETHKGToken.slitherConstructorVariables() (#302-783) uses literals with too many digits:
- _totalSupply = 10000000 * 10 ** 8 * 10 ** _decimals (#329)
ETHKGToken.slitherConstructorVariables() (#302-783) uses literals with too many digits:
- distributorGas = 500000 (#359)
ETHKGToken.slitherConstructorVariables() (#302-783) uses literals with too many digits:
- minEthVal = 1000000 (#366)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Contract has 13% 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.
Token is deployed only at one blockchain
Swap operations require suspiciously high gas. Contract logic is complex and may disguise some form of scam.
Average 30d PancakeSwap liquidity is low.
Unable to find website, listings and other project-related information
Young tokens have high risks of scam / price dump / death
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Telegram account link seems to be invalid
Unable to find Twitter account
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account