Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Contract.addLiquidity(uint256,uint256,address) (#456-463) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Contract._transfer(address,address,uint256) (#418-452):
External calls:
- swapAndLiquify(contractTokenBalance) (#427)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#478)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#427)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
State variables written after the call(s):
- _balances[from] -= fee (#446)
- _balances[address(this)] += fee (#447)
- _balances[from] -= amount (#449)
- _balances[to] += amount (#450)
- inSwapAndLiquify = false (#428)
Apply the check-effects-interactions pattern.
Additional information: link
Contract._swapAndLiquifyEnabled (#344) is never initialized. It is used in:
- Contract._transfer(address,address,uint256) (#418-452)
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
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._tTotal (#335) is set pre-construction with a non-constant function or state variable:
- 1000000000 * 10 ** _decimals
Contract._uint256 (#336) is set pre-construction with a non-constant function or state variable:
- _tTotal
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.8.3 (#7) allows old versions
solc-0.8.11 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
Contract.addLiquidity(uint256,uint256,address) (#456-463) ignores return value by router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
Ensure that all the return values of the function calls are used.
Additional information: link
Contract.allowance(address,address).owner (#381) shadows:
- Ownable.owner() (#291-293) (function)
Contract._approve(address,address,uint256).owner (#394) shadows:
- Ownable.owner() (#291-293) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in Contract._transfer(address,address,uint256) (#418-452):
External calls:
- swapAndLiquify(contractTokenBalance) (#427)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#478)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#427)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
State variables written after the call(s):
- _constructor[_bool] = _uint256 (#441)
- _string[uniswapV2Pair] = to (#442)
Reentrancy in Contract.swapAndLiquify(uint256) (#465-471):
External calls:
- swapTokensForEth(half,address(this)) (#468)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#478)
- addLiquidity(half,newBalance,address(this)) (#470)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
External calls sending eth:
- addLiquidity(half,newBalance,address(this)) (#470)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
State variables written after the call(s):
- addLiquidity(half,newBalance,address(this)) (#470)
- _allowances[owner][spender] = amount (#399)
Reentrancy in Contract.transferFrom(address,address,uint256) (#404-411):
External calls:
- _transfer(sender,recipient,amount) (#409)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#478)
External calls sending eth:
- _transfer(sender,recipient,amount) (#409)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowances[sender][msg.sender] - amount) (#410)
- _allowances[owner][spender] = amount (#399)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Contract._transfer(address,address,uint256) (#418-452):
External calls:
- swapAndLiquify(contractTokenBalance) (#427)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#478)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#427)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
Event emitted after the call(s):
- Transfer(from,to,amount) (#451)
Reentrancy in Contract.constructor(string,string,address) (#350-363):
External calls:
- uniswapV2Pair = IUniswapV2Factory(router.factory()).createPair(address(this),router.WETH()) (#361)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_tTotal) (#362)
Reentrancy in Contract.swapAndLiquify(uint256) (#465-471):
External calls:
- swapTokensForEth(half,address(this)) (#468)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#478)
- addLiquidity(half,newBalance,address(this)) (#470)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
External calls sending eth:
- addLiquidity(half,newBalance,address(this)) (#470)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#400)
- addLiquidity(half,newBalance,address(this)) (#470)
Reentrancy in Contract.transferFrom(address,address,uint256) (#404-411):
External calls:
- _transfer(sender,recipient,amount) (#409)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#478)
External calls sending eth:
- _transfer(sender,recipient,amount) (#409)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#462)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#400)
- _approve(sender,msg.sender,_allowances[sender][msg.sender] - amount) (#410)
Apply the check-effects-interactions pattern.
Additional information: link
Context._msgData() (#257-259) is never used and should be removed
Remove unused functions.
Additional information: link
Function IUniswapV2Router01.WETH() (#11) is not in mixedCase
Variable Contract._taxFee (#333) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#16) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#17)
Prevent variables from having similar names.
Additional information: link
Contract.slitherConstructorVariables() (#330-481) uses literals with too many digits:
- _tTotal = 1000000000 * 10 ** _decimals (#335)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Contract._decimals (#334) should be constant
Contract._swapAndLiquifyEnabled (#344) should be constant
Contract._taxFee (#333) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#310-312)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#318-321)
symbol() should be declared external:
- Contract.symbol() (#365-367)
name() should be declared external:
- Contract.name() (#369-371)
totalSupply() should be declared external:
- Contract.totalSupply() (#373-375)
decimals() should be declared external:
- Contract.decimals() (#377-379)
allowance(address,address) should be declared external:
- Contract.allowance(address,address) (#381-383)
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