Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
TERRA.swapBack() (#324-365) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (developmentSuccess) = address(stakingFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#351)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in TERRA._transferFrom(address,address,uint256) (#265-285):
External calls:
- swapBack() (#274)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#335-341)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (developmentSuccess) = address(stakingFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
External calls sending eth:
- swapBack() (#274)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (developmentSuccess) = address(stakingFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#278)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#281)
- amountReceived = takeFee(sender,recipient,amount) (#280)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#311)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
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 name (TERRA 2.0) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
Contract ticker ($LUNA 2) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
TERRA.slitherConstructorVariables() (#180-449) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#184)
TERRA.slitherConstructorVariables() (#180-449) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#185)
TERRA.slitherConstructorVariables() (#180-449) uses literals with too many digits:
- _totalSupply = 1000000000000 * (10 ** _decimals) (#191)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
TERRA.DEAD (#184) should be constant
TERRA.WBNB (#183) should be constant
TERRA.ZERO (#185) should be constant
TERRA._totalSupply (#191) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
TERRA.slitherConstructorVariables() (#180-449) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 3 (#216)
Consider ordering multiplication before division.
Additional information: link
TERRA.swapBack() (#324-365) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
Ensure that all the return values of the function calls are used.
Additional information: link
TERRA.setTxLimit(uint256) (#388-391) should emit an event for:
- _maxTxAmount = amount (#390)
TERRA.setFees(uint256,uint256,uint256,uint256) (#406-412) should emit an event for:
- liquidityFee = _liquidityFee (#407)
- stakingFee = _stakingFee (#408)
- marketingFee = _marketingFee (#409)
- totalFee = _liquidityFee.add(_stakingFee).add(_marketingFee) (#410)
- feeDenominator = _feeDenominator (#411)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#119) lacks a zero-check on :
- owner = adr (#120)
TERRA.setFeeReceiver(address,address)._marketingFeeReceiver (#414) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#415)
TERRA.setFeeReceiver(address,address)._stakingFeeReceiver (#414) lacks a zero-check on :
- stakingFeeReceiver = _stakingFeeReceiver (#416)
Check that the address is not zero.
Additional information: link
Reentrancy in TERRA._transferFrom(address,address,uint256) (#265-285):
External calls:
- swapBack() (#274)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#335-341)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (developmentSuccess) = address(stakingFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
External calls sending eth:
- swapBack() (#274)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (developmentSuccess) = address(stakingFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
State variables written after the call(s):
- launch() (#276)
- launchedAt = block.number (#385)
Reentrancy in TERRA.constructor() (#220-231):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#222)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#223)
- _balances[_owner] = _totalSupply (#229)
- isFeeExempt[_owner] = true (#226)
- isTxLimitExempt[_owner] = true (#227)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in TERRA._transferFrom(address,address,uint256) (#265-285):
External calls:
- swapBack() (#274)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#335-341)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (developmentSuccess) = address(stakingFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
External calls sending eth:
- swapBack() (#274)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (developmentSuccess) = address(stakingFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#312)
- amountReceived = takeFee(sender,recipient,amount) (#280)
- Transfer(sender,recipient,amountReceived) (#283)
Reentrancy in TERRA.constructor() (#220-231):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#222)
Event emitted after the call(s):
- Transfer(address(0),_owner,_totalSupply) (#230)
Reentrancy in TERRA.swapBack() (#324-365):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#335-341)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (developmentSuccess) = address(stakingFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (developmentSuccess) = address(stakingFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#363)
Apply the check-effects-interactions pattern.
Additional information: link
TERRA.buyTokens(uint256,address) (#367-378) is never used and should be removed
Remove unused functions.
Additional information: link
TERRA._maxTxAmount (#192) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 5) / 100
TERRA._maxWalletSize (#193) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 5) / 100
TERRA.swapThreshold (#216) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000 * 3
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 TERRA.swapBack() (#324-365):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (developmentSuccess) = address(stakingFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#351)
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 TERRA.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#406) is not in mixedCase
Parameter TERRA.setFees(uint256,uint256,uint256,uint256)._stakingFee (#406) is not in mixedCase
Parameter TERRA.setFees(uint256,uint256,uint256,uint256)._marketingFee (#406) is not in mixedCase
Parameter TERRA.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#406) is not in mixedCase
Parameter TERRA.setFeeReceiver(address,address)._marketingFeeReceiver (#414) is not in mixedCase
Parameter TERRA.setFeeReceiver(address,address)._stakingFeeReceiver (#414) is not in mixedCase
Parameter TERRA.setSwapBackSettings(bool,uint256)._enabled (#419) is not in mixedCase
Parameter TERRA.setSwapBackSettings(bool,uint256)._amount (#419) is not in mixedCase
Parameter TERRA.transferForeignToken(address)._token (#429) is not in mixedCase
Variable TERRA.WBNB (#183) is not in mixedCase
Variable TERRA.DEAD (#184) is not in mixedCase
Variable TERRA.ZERO (#185) is not in mixedCase
Constant TERRA._name (#187) is not in UPPER_CASE_WITH_UNDERSCORES
Constant TERRA._symbol (#188) is not in UPPER_CASE_WITH_UNDERSCORES
Constant TERRA._decimals (#189) is not in UPPER_CASE_WITH_UNDERSCORES
Variable TERRA._totalSupply (#191) is not in mixedCase
Variable TERRA._maxTxAmount (#192) is not in mixedCase
Variable TERRA._maxWalletSize (#193) is not in mixedCase
Variable TERRA._balances (#195) is not in mixedCase
Variable TERRA._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
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:
- TERRA.transferForeignToken(address) (#429-433)
isOverLiquified(uint256,uint256) should be declared external:
- TERRA.isOverLiquified(uint256,uint256) (#443-445)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 11% buy tax and 13% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.
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
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