Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
CatMars.swapBack() (#322-363) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#347)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#349)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in CatMars._transferFrom(address,address,uint256) (#264-284):
External calls:
- swapBack() (#273)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#333-339)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#347)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#349)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#353-360)
External calls sending eth:
- swapBack() (#273)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#347)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#349)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#353-360)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#277)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#280)
- amountReceived = takeFee(sender,recipient,amount) (#279)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#310)
Apply the check-effects-interactions pattern.
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.
CatMars.swapBack() (#322-363) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#353-360)
Ensure that all the return values of the function calls are used.
Additional information: link
CatMars.setTxLimit(uint256) (#386-389) should emit an event for:
- _maxTxAmount = amount (#388)
CatMars.setFees(uint256,uint256,uint256,uint256) (#404-410) should emit an event for:
- liquidityFee = _liquidityFee (#405)
- buybackFee = _buybackFee (#406)
- marketingFee = _marketingFee (#407)
- totalFee = _liquidityFee.add(_buybackFee).add(_marketingFee) (#408)
- feeDenominator = _feeDenominator (#409)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#119) lacks a zero-check on :
- owner = adr (#120)
CatMars.setFeeReceiver(address,address)._marketingFeeReceiver (#412) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#413)
CatMars.setFeeReceiver(address,address)._buybackFeeReceiver (#412) lacks a zero-check on :
- buybackFeeReceiver = _buybackFeeReceiver (#414)
Check that the address is not zero.
Additional information: link
Reentrancy in CatMars._transferFrom(address,address,uint256) (#264-284):
External calls:
- swapBack() (#273)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#333-339)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#347)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#349)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#353-360)
External calls sending eth:
- swapBack() (#273)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#347)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#349)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#353-360)
State variables written after the call(s):
- launch() (#275)
- launchedAt = block.number (#383)
Reentrancy in CatMars.constructor() (#219-230):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#221)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#222)
- _balances[_owner] = _totalSupply (#228)
- isFeeExempt[_owner] = true (#225)
- isTxLimitExempt[_owner] = true (#226)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in CatMars._transferFrom(address,address,uint256) (#264-284):
External calls:
- swapBack() (#273)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#333-339)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#347)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#349)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#353-360)
External calls sending eth:
- swapBack() (#273)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#347)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#349)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#353-360)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#311)
- amountReceived = takeFee(sender,recipient,amount) (#279)
- Transfer(sender,recipient,amountReceived) (#282)
Reentrancy in CatMars.constructor() (#219-230):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#221)
Event emitted after the call(s):
- Transfer(address(0),_owner,_totalSupply) (#229)
Reentrancy in CatMars.swapBack() (#322-363):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#333-339)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#347)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#349)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#353-360)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#347)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#349)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#353-360)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#361)
Apply the check-effects-interactions pattern.
Additional information: link
CatMars.buyTokens(uint256,address) (#365-376) is never used and should be removed
Remove unused functions.
Additional information: link
CatMars._maxTxAmount (#192) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 1) / 100
CatMars._maxWalletSize (#193) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
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 CatMars.swapBack() (#322-363):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#347)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#349)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IDEXRouter.WETH() (#134) is not in mixedCase
Parameter CatMars.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#404) is not in mixedCase
Parameter CatMars.setFees(uint256,uint256,uint256,uint256)._buybackFee (#404) is not in mixedCase
Parameter CatMars.setFees(uint256,uint256,uint256,uint256)._marketingFee (#404) is not in mixedCase
Parameter CatMars.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#404) is not in mixedCase
Parameter CatMars.setFeeReceiver(address,address)._marketingFeeReceiver (#412) is not in mixedCase
Parameter CatMars.setFeeReceiver(address,address)._buybackFeeReceiver (#412) is not in mixedCase
Parameter CatMars.transferForeignToken(address)._token (#422) is not in mixedCase
Variable CatMars.WBNB (#183) is not in mixedCase
Variable CatMars.DEAD (#184) is not in mixedCase
Variable CatMars.ZERO (#185) is not in mixedCase
Constant CatMars._name (#187) is not in UPPER_CASE_WITH_UNDERSCORES
Constant CatMars._symbol (#188) is not in UPPER_CASE_WITH_UNDERSCORES
Constant CatMars._decimals (#189) is not in UPPER_CASE_WITH_UNDERSCORES
Variable CatMars._totalSupply (#191) is not in mixedCase
Variable CatMars._maxTxAmount (#192) is not in mixedCase
Variable CatMars._maxWalletSize (#193) is not in mixedCase
Variable CatMars._balances (#195) is not in mixedCase
Variable CatMars._allowances (#196) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#139) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#140)
Prevent variables from having similar names.
Additional information: link
CatMars.slitherConstructorVariables() (#180-442) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#184)
CatMars.slitherConstructorVariables() (#180-442) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#185)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
CatMars.DEAD (#184) should be constant
CatMars.WBNB (#183) should be constant
CatMars.ZERO (#185) should be constant
CatMars._totalSupply (#191) should be constant
CatMars.swapThreshold (#215) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
authorize(address) should be declared external:
- Auth.authorize(address) (#91-93)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#98-100)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#119-123)
transferForeignToken(address) should be declared external:
- CatMars.transferForeignToken(address) (#422-426)
isOverLiquified(uint256,uint256) should be declared external:
- CatMars.isOverLiquified(uint256,uint256) (#436-438)
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 Twitter account
Telegram account has less than 100 subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account