CHT._liquifyContract(uint256,CHT.Taxes) (#654-699) ignores return value by IERCliquidityPairToken.transferFrom(address(liquifier),marketingWallet,marketingAmt) (#681)
CHT.rescueBSC20(address,uint256) (#844-846) ignores return value by IERC20(tokenAdd).transfer(owner(),amount) (#845)
CHT._liquifyContract(uint256,CHT.Taxes) (#654-699) ignores return value by IERCliquidityPairToken.transferFrom(address(liquifier),buybackWallet,buybackAmt) (#686)
CHT._liquifyContract(uint256,CHT.Taxes) (#654-699) ignores return value by IERCliquidityPairToken.transferFrom(address(liquifier),address(this),finalBalance) (#690)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
CHT._transfer(address,address,uint256).fee (#605) is written in both
fee = 0 (#614)
fee = (amount * feesum) / 100 (#636)
Fix or remove the writes.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
CHT.updatedeadline(uint256) (#776-779) should emit an event for:
- deadline = _deadline (#778)
CHT.updateCooldown(bool,uint256) (#789-793) should emit an event for:
- coolDownTime = time * 1 (#790)
CHT.updateMaxWalletlimit(uint256) (#825-828) should emit an event for:
- maxWalletLimit = amount * 10 ** decimals() (#826)
CHT.updateMaxSellTxLimit(uint256) (#820-823) should emit an event for:
- maxSellLimit = maxSell * 10 ** decimals() (#821)
CHT.updateLiquidityTreshhold(uint256) (#741-744) should emit an event for:
- tokenLiquidityThreshold = new_amount * 10 ** decimals() (#743)
CHT.updateMaxBuyTxLimit(uint256) (#815-818) should emit an event for:
- maxBuyLimit = maxBuy * 10 ** decimals() (#816)
CHT.updateMaxTxLimit(uint256,uint256,uint256) (#830-838) should emit an event for:
- maxBuyLimit = maxBuy * 10 ** decimals() (#834)
- maxSellLimit = maxSell * 10 ** decimals() (#835)
- maxWalletLimit = amount * 10 ** decimals() (#836)
Emit an event for critical parameter changes.
Additional information: link
CHT.updateRouterAndPair(address,address).newPair (#764) lacks a zero-check on :
- pair = newPair (#766)
CHT.updateBuybackWallet(address).newWallet (#785) lacks a zero-check on :
- buybackWallet = newWallet (#786)
CHT.updateMarketingWallet(address).newWallet (#781) lacks a zero-check on :
- marketingWallet = newWallet (#782)
Check that the address is not zero.
Additional information: link
Modifier CHT.lockliquify() (#482-488) does not always execute _; or revert
All the paths in a modifier must execute _ or revert.
Additional information: link
CHT._liquifyContract(uint256,CHT.Taxes) (#654-699) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - swapTaxes.liquidity) (#677)
-buybackAmt = unitBalance * 2 * swapTaxes.buyback (#684)
CHT._liquifyContract(uint256,CHT.Taxes) (#654-699) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - swapTaxes.liquidity) (#677)
-marketingAmt = unitBalance * 2 * swapTaxes.marketing (#679)
CHT._liquifyContract(uint256,CHT.Taxes) (#654-699) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - swapTaxes.liquidity) (#677)
-ethPairToAddLiquidityWith = unitBalance * swapTaxes.liquidity (#692)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in CHT._transfer(address,address,uint256) (#563-652):
External calls:
- _liquifyContract(feeswap,currentTaxes) (#640)
- router.addLiquidity(address(this),liquidityPairToken,tokenAmount,ethAmount,0,0,owner(),block.timestamp) (#724-733)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(liquifier),block.timestamp) (#710-716)
- IERCliquidityPairToken.transferFrom(address(liquifier),marketingWallet,marketingAmt) (#681)
- IERCliquidityPairToken.transferFrom(address(liquifier),buybackWallet,buybackAmt) (#686)
- IERCliquidityPairToken.transferFrom(address(liquifier),address(this),finalBalance) (#690)
State variables written after the call(s):
- super._transfer(sender,recipient,amount - fee) (#643)
- _balances[sender] = senderBalance - amount (#268)
- _balances[recipient] += amount (#269)
- super._transfer(sender,address(this),feeAmount) (#648)
- _balances[sender] = senderBalance - amount (#268)
- _balances[recipient] += amount (#269)
Apply the check-effects-interactions pattern.
Additional information: link
CHT._transfer(address,address,uint256).feeswap (#603) is a local variable never initialized
CHT._transfer(address,address,uint256).feesum (#604) is a local variable never initialized
CHT._transfer(address,address,uint256).currentTaxes (#606) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
Liquifier.constructor(address) (#432-434) ignores return value by IERC20(token).approve(msg.sender,uint256(~ uint256(0))) (#433)
CHT.constructor() (#490-516) ignores return value by IERCliquidityPairToken.approve(routerAdd,MAX) (#503)
CHT.addLiquidity(uint256,uint256) (#719-734) ignores return value by router.addLiquidity(address(this),liquidityPairToken,tokenAmount,ethAmount,0,0,owner(),block.timestamp) (#724-733)
CHT.constructor() (#490-516) ignores return value by IERCliquidityPairToken.approve(address(this),MAX) (#502)
Ensure that all the return values of the function calls are used.
Additional information: link
Reentrancy in CHT._liquifyContract(uint256,CHT.Taxes) (#654-699):
External calls:
- swapTokensForETH(toSwap) (#674)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(liquifier),block.timestamp) (#710-716)
- IERCliquidityPairToken.transferFrom(address(liquifier),marketingWallet,marketingAmt) (#681)
- IERCliquidityPairToken.transferFrom(address(liquifier),buybackWallet,buybackAmt) (#686)
- IERCliquidityPairToken.transferFrom(address(liquifier),address(this),finalBalance) (#690)
- addLiquidity(tokensToAddLiquidityWith,ethPairToAddLiquidityWith) (#695)
- router.addLiquidity(address(this),liquidityPairToken,tokenAmount,ethAmount,0,0,owner(),block.timestamp) (#724-733)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,ethPairToAddLiquidityWith) (#695)
- _allowances[owner][spender] = amount (#334)
Reentrancy in CHT.transferFrom(address,address,uint256) (#523-535):
External calls:
- _transfer(sender,recipient,amount) (#528)
- router.addLiquidity(address(this),liquidityPairToken,tokenAmount,ethAmount,0,0,owner(),block.timestamp) (#724-733)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(liquifier),block.timestamp) (#710-716)
- IERCliquidityPairToken.transferFrom(address(liquifier),marketingWallet,marketingAmt) (#681)
- IERCliquidityPairToken.transferFrom(address(liquifier),buybackWallet,buybackAmt) (#686)
- IERCliquidityPairToken.transferFrom(address(liquifier),address(this),finalBalance) (#690)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#532)
- _allowances[owner][spender] = amount (#334)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in CHT.transferFrom(address,address,uint256) (#523-535):
External calls:
- _transfer(sender,recipient,amount) (#528)
- router.addLiquidity(address(this),liquidityPairToken,tokenAmount,ethAmount,0,0,owner(),block.timestamp) (#724-733)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(liquifier),block.timestamp) (#710-716)
- IERCliquidityPairToken.transferFrom(address(liquifier),marketingWallet,marketingAmt) (#681)
- IERCliquidityPairToken.transferFrom(address(liquifier),buybackWallet,buybackAmt) (#686)
- IERCliquidityPairToken.transferFrom(address(liquifier),address(this),finalBalance) (#690)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#335)
- _approve(sender,_msgSender(),currentAllowance - amount) (#532)
Reentrancy in CHT._liquifyContract(uint256,CHT.Taxes) (#654-699):
External calls:
- swapTokensForETH(toSwap) (#674)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(liquifier),block.timestamp) (#710-716)
- IERCliquidityPairToken.transferFrom(address(liquifier),marketingWallet,marketingAmt) (#681)
- IERCliquidityPairToken.transferFrom(address(liquifier),buybackWallet,buybackAmt) (#686)
- IERCliquidityPairToken.transferFrom(address(liquifier),address(this),finalBalance) (#690)
- addLiquidity(tokensToAddLiquidityWith,ethPairToAddLiquidityWith) (#695)
- router.addLiquidity(address(this),liquidityPairToken,tokenAmount,ethAmount,0,0,owner(),block.timestamp) (#724-733)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#335)
- addLiquidity(tokensToAddLiquidityWith,ethPairToAddLiquidityWith) (#695)
Reentrancy in CHT._transfer(address,address,uint256) (#563-652):
External calls:
- _liquifyContract(feeswap,currentTaxes) (#640)
- router.addLiquidity(address(this),liquidityPairToken,tokenAmount,ethAmount,0,0,owner(),block.timestamp) (#724-733)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(liquifier),block.timestamp) (#710-716)
- IERCliquidityPairToken.transferFrom(address(liquifier),marketingWallet,marketingAmt) (#681)
- IERCliquidityPairToken.transferFrom(address(liquifier),buybackWallet,buybackAmt) (#686)
- IERCliquidityPairToken.transferFrom(address(liquifier),address(this),finalBalance) (#690)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#271)
- super._transfer(sender,address(this),feeAmount) (#648)
- Transfer(sender,recipient,amount) (#271)
- super._transfer(sender,recipient,amount - fee) (#643)
Apply the check-effects-interactions pattern.
Additional information: link
CHT._transfer(address,address,uint256) (#563-652) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(timePassed >= coolDownTime,Cooldown enabled) (#598)
Avoid relying on block.timestamp.
Additional information: link
Address.sendValue(address,uint256) (#360-365) is never used and should be removed
ERC20._burn(address,uint256) (#300-311) is never used and should be removed
Context._msgData() (#10-13) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.15 (#3) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.15 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#360-365):
- (success) = recipient.call{value: amount}() (#363)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter CHT.SetBuyTaxes(uint256,uint256,uint256)._liquidity (#748) is not in mixedCase
Parameter CHT.SetBuyTaxes(uint256,uint256,uint256)._buyback (#749) is not in mixedCase
Parameter CHT.SetBuyTaxes(uint256,uint256,uint256)._marketing (#747) is not in mixedCase
Parameter CHT.updatedeadline(uint256)._deadline (#776) is not in mixedCase
Parameter CHT.updateLiquidityTreshhold(uint256).new_amount (#741) is not in mixedCase
Variable CHT.genesis_block (#457) is not in mixedCase
Variable ERC20._allowances (#58) is not in mixedCase
Variable ERC20._balances (#56) is not in mixedCase
Function IRouter.WETH() (#409) is not in mixedCase
Parameter CHT.SetSellTaxes(uint256,uint256,uint256)._buyback (#758) is not in mixedCase
Function CHT.EnableTrading() (#769-774) is not in mixedCase
Function CHT.SetBuyTaxes(uint256,uint256,uint256) (#746-753) is not in mixedCase
Constant CHT.deadWallet (#463) is not in UPPER_CASE_WITH_UNDERSCORES
Variable CHT.IERCliquidityPairToken (#445) is not in mixedCase
Parameter CHT.updateExemptFee(address,bool)._address (#805) is not in mixedCase
Parameter CHT.SetSellTaxes(uint256,uint256,uint256)._marketing (#756) is not in mixedCase
Parameter CHT.SetSellTaxes(uint256,uint256,uint256)._liquidity (#757) is not in mixedCase
Function CHT.SetSellTaxes(uint256,uint256,uint256) (#755-762) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#11)" inContext (#5-14)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#414) is too similar to IRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#415)
Prevent variables from having similar names.
Additional information: link
CHT.slitherConstructorConstantVariables() (#437-851) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#463)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
CHT.launchtax (#459) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#386-388)
decreaseAllowance(address,uint256) should be declared external:
- CHT.decreaseAllowance(address,uint256) (#546-556)
- ERC20.decreaseAllowance(address,uint256) (#230-240)
symbol() should be declared external:
- ERC20.symbol() (#90-92)
increaseAllowance(address,uint256) should be declared external:
- CHT.increaseAllowance(address,uint256) (#537-544)
- ERC20.increaseAllowance(address,uint256) (#207-214)
transfer(address,uint256) should be declared external:
- CHT.transfer(address,uint256) (#558-561)
- ERC20.transfer(address,uint256) (#133-141)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#390-393)
name() should be declared external:
- ERC20.name() (#82-84)
transferFrom(address,address,uint256) should be declared external:
- CHT.transferFrom(address,address,uint256) (#523-535)
- ERC20.transferFrom(address,address,uint256) (#181-193)
totalSupply() should be declared external:
- ERC20.totalSupply() (#114-116)
approve(address,uint256) should be declared external:
- CHT.approve(address,uint256) (#518-521)
- ERC20.approve(address,uint256) (#163-166)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#146-154)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is low.
Average 30d PancakeSwap volume is low.
Average 30d number of PancakeSwap swaps is low.
Number of Binance Smart Chain (BSC) token holders is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Token is deployed only at one blockchain
Token has only one trading pair
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