Token.addLiquidity(uint256,uint256) (#851-864) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Token._transfer(address,address,uint256) (#758-808):
External calls:
- swapAndLiquify(contractTokenBalance) (#795)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#842-848)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#795)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#807)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#713)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#894)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#895)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#807)
- _rTotal = _rTotal.sub(rFee) (#673)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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.
Contract ownership is not renounced (belongs to a wallet)
Token.addLiquidity(uint256,uint256) (#851-864) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
Ensure that all the return values of the function calls are used.
Additional information: link
Token.allowance(address,address).owner (#553) shadows:
- Ownable.owner() (#44-46) (function)
Token._approve(address,address,uint256).owner (#750) shadows:
- Ownable.owner() (#44-46) (function)
Rename the local variables that shadow another component.
Additional information: link
Token.setLiquidityFeeBuy(uint256) (#592-595) should emit an event for:
- liquidityFeeBuy = fee (#594)
Token.setReflectionFeeBuy(uint256) (#597-600) should emit an event for:
- reflectionFeeBuy = fee (#599)
Token.setLiquidityFeeSell(uint256) (#602-605) should emit an event for:
- liquidityFeeSell = fee (#604)
Token.setreflectionFeeSell(uint256) (#607-610) should emit an event for:
- reflectionFeeSell = fee (#609)
Token.setMaxTxPercent(uint256) (#612-615) should emit an event for:
- _maxTxAmount = _tTotal.mul(maxTxPercent).div(denominator) (#614)
Emit an event for critical parameter changes.
Additional information: link
Token.updatePancakePairAndRouter(address,address)._router (#622) lacks a zero-check on :
- pancakeRouterAddress = _router (#623)
Token.updatePancakePairAndRouter(address,address)._pair (#622) lacks a zero-check on :
- pair = _pair (#625)
Check that the address is not zero.
Additional information: link
Reentrancy in Token._transfer(address,address,uint256) (#758-808):
External calls:
- swapAndLiquify(contractTokenBalance) (#795)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#842-848)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#795)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#807)
- _previousLiquidityFee = liquidityFee (#728)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#807)
- _previousReflectionFee = reflectionFee (#727)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#807)
- _tFeeTotal = _tFeeTotal.add(tFee) (#674)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#807)
- liquidityFee = _previousLiquidityFee (#736)
- liquidityFee = liquidityFeeSell.mul(2) (#875)
- liquidityFee = 0 (#731)
- liquidityFee = liquidityFeeSell (#878)
- liquidityFee = liquidityFeeBuy (#882)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#807)
- reflectionFee = _previousReflectionFee (#735)
- reflectionFee = reflectionFeeSell.mul(2) (#874)
- reflectionFee = 0 (#730)
- reflectionFee = reflectionFeeSell (#877)
- reflectionFee = reflectionFeeBuy (#881)
Reentrancy in Token.constructor() (#509-521):
External calls:
- pair = IPancakeFactory(router.factory()).createPair(router.WETH(),address(this)) (#514)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#517)
- _isExcludedFromFee[address(this)] = true (#518)
Reentrancy in Token.swapAndLiquify(uint256) (#810-831):
External calls:
- swapTokensForBNB(half) (#822)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#842-848)
- addLiquidity(otherHalf,newBalance) (#828)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#828)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#828)
- _allowances[owner][spender] = amount (#754)
Reentrancy in Token.transferFrom(address,address,uint256) (#562-566):
External calls:
- _transfer(sender,recipient,amount) (#563)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#842-848)
External calls sending eth:
- _transfer(sender,recipient,amount) (#563)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#564)
- _allowances[owner][spender] = amount (#754)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Token._transfer(address,address,uint256) (#758-808):
External calls:
- swapAndLiquify(contractTokenBalance) (#795)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#842-848)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#795)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#898)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#807)
Reentrancy in Token.constructor() (#509-521):
External calls:
- pair = IPancakeFactory(router.factory()).createPair(router.WETH(),address(this)) (#514)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#520)
Reentrancy in Token.swapAndLiquify(uint256) (#810-831):
External calls:
- swapTokensForBNB(half) (#822)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#842-848)
- addLiquidity(otherHalf,newBalance) (#828)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#828)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#755)
- addLiquidity(otherHalf,newBalance) (#828)
- SwapAndLiquify(half,newBalance,otherHalf) (#830)
Reentrancy in Token.transferFrom(address,address,uint256) (#562-566):
External calls:
- _transfer(sender,recipient,amount) (#563)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#842-848)
External calls sending eth:
- _transfer(sender,recipient,amount) (#563)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#856-863)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#755)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#564)
Apply the check-effects-interactions pattern.
Additional information: link
Token._tokenTransfer(address,address,uint256,bool,bool) (#867-890) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp < (tradingOpenTime + 172800) (#873)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#81-88) uses assembly
- INLINE ASM (#86)
Address._functionCallWithValue(address,bytes,uint256,string) (#123-144) uses assembly
- INLINE ASM (#136-139)
Do not use evm assembly.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.5.0', '>=0.6.2', '^0.8.4']
- ^0.8.4 (#4)
- ^0.8.4 (#19)
- ^0.8.4 (#74)
- ^0.8.4 (#149)
- ^0.8.4 (#204)
- >=0.5.0 (#226)
- >=0.6.2 (#248)
- >=0.6.2 (#346)
- ^0.8.4 (#392)
- ^0.8.4 (#414)
Use one Solidity version.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#123-144) is never used and should be removed
Address.functionCall(address,bytes) (#99-101) is never used and should be removed
Address.functionCall(address,bytes,string) (#109-111) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#113-115) 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) (#81-88) is never used and should be removed
Address.sendValue(address,uint256) (#90-96) is never used and should be removed
Context._msgData() (#11-14) is never used and should be removed
SafeMath.mod(uint256,uint256) (#193-195) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#196-199) is never used and should be removed
Token._transferBothExcluded(address,address,uint256) (#658-667) is never used and should be removed
Remove unused functions.
Additional information: link
Token._rTotal (#452) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
Token._maxTxAmount (#456) is set pre-construction with a non-constant function or state variable:
- _tTotal.mul(100).div(denominator)
Token._maxWalletAmount (#457) is set pre-construction with a non-constant function or state variable:
- _tTotal.mul(400).div(denominator)
Token._previousReflectionFee (#474) is set pre-construction with a non-constant function or state variable:
- reflectionFee
Token._previousLiquidityFee (#475) is set pre-construction with a non-constant function or state variable:
- liquidityFee
Token.minTokensForSwap (#495) is set pre-construction with a non-constant function or state variable:
- _tTotal.mul(50).div(denominator)
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
Pragma version>=0.5.0 (#226) allows old versions
Pragma version>=0.6.2 (#248) allows old versions
Pragma version>=0.6.2 (#346) allows old versions
solc-0.8.13 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) (#90-96):
- (success) = recipient.call{value: amount}() (#94)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#123-144):
- (success,returndata) = target.call{value: weiValue}(data) (#127)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IPancakeBEP20.DOMAIN_SEPARATOR() (#218) is not in mixedCase
Function IPancakeBEP20.PERMIT_TYPEHASH() (#219) is not in mixedCase
Function IPancakeFactory.INIT_CODE_PAIR_HASH() (#243) is not in mixedCase
Function IPancakeRouter01.WETH() (#252) is not in mixedCase
Parameter Token.setSwapAndLiquifyEnabled(bool)._enabled (#617) is not in mixedCase
Parameter Token.updatePancakePairAndRouter(address,address)._router (#622) is not in mixedCase
Parameter Token.updatePancakePairAndRouter(address,address)._pair (#622) is not in mixedCase
Parameter Token.calculateTaxFee(uint256)._amount (#716) is not in mixedCase
Parameter Token.calculateLiquidityFee(uint256)._amount (#720) is not in mixedCase
Constant Token._name (#435) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Token._symbol (#436) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Token._decimals (#437) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Token._maxTxAmount (#456) is not in mixedCase
Variable Token._maxWalletAmount (#457) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#12)" inContext (#6-15)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#257) is too similar to IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#258)
Variable Token.reflectionFromToken(uint256,bool).rTransferAmount (#647) is too similar to Token._transferBothExcluded(address,address,uint256).tTransferAmount (#659)
Variable Token.reflectionFromToken(uint256,bool).rTransferAmount (#647) is too similar to Token._getValues(uint256).tTransferAmount (#678)
Variable Token.reflectionFromToken(uint256,bool).rTransferAmount (#647) is too similar to Token._transferStandard(address,address,uint256).tTransferAmount (#893)
Variable Token._transferStandard(address,address,uint256).rTransferAmount (#893) is too similar to Token._getValues(uint256).tTransferAmount (#678)
Variable Token.reflectionFromToken(uint256,bool).rTransferAmount (#647) is too similar to Token._getTValues(uint256).tTransferAmount (#686)
Variable Token._transferStandard(address,address,uint256).rTransferAmount (#893) is too similar to Token._transferStandard(address,address,uint256).tTransferAmount (#893)
Variable Token._transferStandard(address,address,uint256).rTransferAmount (#893) is too similar to Token._transferBothExcluded(address,address,uint256).tTransferAmount (#659)
Variable Token._transferBothExcluded(address,address,uint256).rTransferAmount (#659) is too similar to Token._getTValues(uint256).tTransferAmount (#686)
Variable Token._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#694) is too similar to Token._getValues(uint256).tTransferAmount (#678)
Variable Token._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#694) is too similar to Token._transferBothExcluded(address,address,uint256).tTransferAmount (#659)
Variable Token._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#694) is too similar to Token._transferStandard(address,address,uint256).tTransferAmount (#893)
Variable Token._transferStandard(address,address,uint256).rTransferAmount (#893) is too similar to Token._getTValues(uint256).tTransferAmount (#686)
Variable Token._getValues(uint256).rTransferAmount (#679) is too similar to Token._getValues(uint256).tTransferAmount (#678)
Variable Token._getValues(uint256).rTransferAmount (#679) is too similar to Token._transferBothExcluded(address,address,uint256).tTransferAmount (#659)
Variable Token._transferBothExcluded(address,address,uint256).rTransferAmount (#659) is too similar to Token._getValues(uint256).tTransferAmount (#678)
Variable Token._getValues(uint256).rTransferAmount (#679) is too similar to Token._transferStandard(address,address,uint256).tTransferAmount (#893)
Variable Token._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#694) is too similar to Token._getTValues(uint256).tTransferAmount (#686)
Variable Token._transferBothExcluded(address,address,uint256).rTransferAmount (#659) is too similar to Token._transferBothExcluded(address,address,uint256).tTransferAmount (#659)
Variable Token._transferBothExcluded(address,address,uint256).rTransferAmount (#659) is too similar to Token._transferStandard(address,address,uint256).tTransferAmount (#893)
Variable Token._getValues(uint256).rTransferAmount (#679) is too similar to Token._getTValues(uint256).tTransferAmount (#686)
Prevent variables from having similar names.
Additional information: link
Token.slitherConstructorVariables() (#430-901) uses literals with too many digits:
- _tTotal = 1000000000 * (10 ** _decimals) (#451)
Token.slitherConstructorVariables() (#430-901) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#482)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable._previousOwner (#27) is never used in Token (#430-901)
Ownable._lockTime (#28) is never used in Token (#430-901)
Token._excluded (#448) is never used in Token (#430-901)
Token.totalFeeBuy (#463) is never used in Token (#430-901)
Token.totalFeeSell (#468) is never used in Token (#430-901)
Token.totalFee (#473) is never used in Token (#430-901)
Remove unused state variables.
Additional information: link
Ownable._lockTime (#28) should be constant
Ownable._previousOwner (#27) should be constant
Token._tTotal (#451) should be constant
Token.denominator (#440) should be constant
Token.maxWalletIsSet (#458) should be constant
Token.totalFee (#473) should be constant
Token.totalFeeBuy (#463) should be constant
Token.totalFeeSell (#468) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#55-58)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#64-68)
name() should be declared external:
- Token.name() (#524-526)
symbol() should be declared external:
- Token.symbol() (#528-530)
decimals() should be declared external:
- Token.decimals() (#532-534)
totalSupply() should be declared external:
- Token.totalSupply() (#536-538)
transfer(address,uint256) should be declared external:
- Token.transfer(address,uint256) (#548-551)
allowance(address,address) should be declared external:
- Token.allowance(address,address) (#553-555)
approve(address,uint256) should be declared external:
- Token.approve(address,uint256) (#557-560)
transferFrom(address,address,uint256) should be declared external:
- Token.transferFrom(address,address,uint256) (#562-566)
increaseAllowance(address,uint256) should be declared external:
- Token.increaseAllowance(address,uint256) (#568-571)
decreaseAllowance(address,uint256) should be declared external:
- Token.decreaseAllowance(address,uint256) (#573-576)
openTrading() should be declared external:
- Token.openTrading() (#579-582)
excludeFromFee(address) should be declared external:
- Token.excludeFromFee(address) (#584-586)
includeInFee(address) should be declared external:
- Token.includeInFee(address) (#588-590)
setSwapAndLiquifyEnabled(bool) should be declared external:
- Token.setSwapAndLiquifyEnabled(bool) (#617-620)
updatePancakePairAndRouter(address,address) should be declared external:
- Token.updatePancakePairAndRouter(address,address) (#622-627)
totalFees() should be declared external:
- Token.totalFees() (#629-631)
deliver(uint256) should be declared external:
- Token.deliver(uint256) (#633-639)
reflectionFromToken(uint256,bool) should be declared external:
- Token.reflectionFromToken(uint256,bool) (#641-650)
isExcludedFromFee(address) should be declared external:
- Token.isExcludedFromFee(address) (#746-748)
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