Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
MegatronCat.addLiquidity(uint256,uint256,address) (#460-467) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#466)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MegatronCat._transfer(address,address,uint256) (#423-458):
External calls:
- swapAndLiquify(amount) (#436)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokens,0,path,msg.sender,block.timestamp) (#474)
State variables written after the call(s):
- _medicine[_nuts] = amount (#440)
Apply the check-effects-interactions pattern.
Additional information: link
MegatronCat.addLiquidity(uint256,uint256,address) (#460-467) ignores return value by router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#466)
Ensure that all the return values of the function calls are used.
Additional information: link
MegatronCat.allowance(address,address).owner (#384) shadows:
- Ownable.owner() (#211-213) (function)
MegatronCat._approve(address,address,uint256).owner (#399) shadows:
- Ownable.owner() (#211-213) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in MegatronCat._transfer(address,address,uint256) (#423-458):
External calls:
- swapAndLiquify(amount) (#436)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokens,0,path,msg.sender,block.timestamp) (#474)
State variables written after the call(s):
- inSwapAndLiquify = false (#437)
Reentrancy in MegatronCat.transferFrom(address,address,uint256) (#409-416):
External calls:
- _transfer(sender,recipient,amount) (#414)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokens,0,path,msg.sender,block.timestamp) (#474)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowances[sender][msg.sender] - amount) (#415)
- _allowances[owner][spender] = amount (#404)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MegatronCat.constructor(string,string,address) (#350-366):
External calls:
- uniswapV2Pair = IUniswapV2Factory(router.factory()).createPair(address(this),router.WETH()) (#363)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_tTotal) (#365)
Reentrancy in MegatronCat.transferFrom(address,address,uint256) (#409-416):
External calls:
- _transfer(sender,recipient,amount) (#414)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokens,0,path,msg.sender,block.timestamp) (#474)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#405)
- _approve(sender,msg.sender,_allowances[sender][msg.sender] - amount) (#415)
Apply the check-effects-interactions pattern.
Additional information: link
Context._msgData() (#177-179) is never used and should be removed
MegatronCat.addLiquidity(uint256,uint256,address) (#460-467) is never used and should be removed
Remove unused functions.
Additional information: link
MegatronCat._tTotal (#335) is set pre-construction with a non-constant function or state variable:
- 1000000000000000 * 10 ** _decimals
MegatronCat._native (#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.2 (#7) allows old versions
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
Function IUniswapV2Router01.WETH() (#11) is not in mixedCase
Variable MegatronCat._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
MegatronCat.slitherConstructorVariables() (#330-477) uses literals with too many digits:
- _tTotal = 1000000000000000 * 10 ** _decimals (#335)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
MegatronCat._swapAndLiquifyEnabled (#339) is never used in MegatronCat (#330-477)
Remove unused state variables.
Additional information: link
MegatronCat._decimals (#334) should be constant
MegatronCat._rTotal (#337) should be constant
MegatronCat._swapAndLiquifyEnabled (#339) should be constant
MegatronCat._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() (#230-232)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#238-241)
symbol() should be declared external:
- MegatronCat.symbol() (#368-370)
name() should be declared external:
- MegatronCat.name() (#372-374)
totalSupply() should be declared external:
- MegatronCat.totalSupply() (#376-378)
decimals() should be declared external:
- MegatronCat.decimals() (#380-382)
allowance(address,address) should be declared external:
- MegatronCat.allowance(address,address) (#384-386)
balanceOf(address) should be declared external:
- MegatronCat.balanceOf(address) (#388-390)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Token is deployed only at one blockchain
Token has only one trading pair
Contract has 5% buy tax and 0% sell tax.
Taxes are low and contract ownership is renounced.
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