Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
STFU.swapBack() (#333-374) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#358)
- (teamSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBteam}() (#360)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in STFU._transferFrom(address,address,uint256) (#271-294):
External calls:
- swapBack() (#283)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#344-350)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#358)
- (teamSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBteam}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
External calls sending eth:
- swapBack() (#283)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#358)
- (teamSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBteam}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#287)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#290)
- amountReceived = takeFee(sender,recipient,amount) (#289)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#320)
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.
STFU.slitherConstructorVariables() (#185-472) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 3 (#222)
Consider ordering multiplication before division.
Additional information: link
STFU.swapBack() (#333-374) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
Ensure that all the return values of the function calls are used.
Additional information: link
STFU.setTxLimit(uint256) (#397-400) should emit an event for:
- _maxTxAmount = amount (#399)
STFU.setFees(uint256,uint256,uint256,uint256) (#415-421) should emit an event for:
- liquidityFee = _liquidityFee (#416)
- teamFee = _teamFee (#417)
- marketingFee = _marketingFee (#418)
- totalFee = _liquidityFee.add(_teamFee).add(_marketingFee) (#419)
- feeDenominator = _feeDenominator (#420)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#124) lacks a zero-check on :
- owner = adr (#125)
STFU.setFeeReceiver(address,address)._marketingFeeReceiver (#423) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#424)
STFU.setFeeReceiver(address,address)._teamFeeReceiver (#423) lacks a zero-check on :
- teamFeeReceiver = _teamFeeReceiver (#425)
Check that the address is not zero.
Additional information: link
Reentrancy in STFU._transferFrom(address,address,uint256) (#271-294):
External calls:
- swapBack() (#283)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#344-350)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#358)
- (teamSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBteam}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
External calls sending eth:
- swapBack() (#283)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#358)
- (teamSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBteam}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
State variables written after the call(s):
- launch() (#285)
- launchedAt = block.number (#394)
Reentrancy in STFU.constructor() (#226-237):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#228)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#229)
- _balances[_owner] = _totalSupply (#235)
- isFeeExempt[_owner] = true (#232)
- isTxLimitExempt[_owner] = true (#233)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in STFU._transferFrom(address,address,uint256) (#271-294):
External calls:
- swapBack() (#283)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#344-350)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#358)
- (teamSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBteam}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
External calls sending eth:
- swapBack() (#283)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#358)
- (teamSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBteam}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#321)
- amountReceived = takeFee(sender,recipient,amount) (#289)
- Transfer(sender,recipient,amountReceived) (#292)
Reentrancy in STFU.constructor() (#226-237):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#228)
Event emitted after the call(s):
- Transfer(address(0),_owner,_totalSupply) (#236)
Reentrancy in STFU.swapBack() (#333-374):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#344-350)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#358)
- (teamSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBteam}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#358)
- (teamSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBteam}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#372)
Apply the check-effects-interactions pattern.
Additional information: link
STFU.buyTokens(uint256,address) (#376-387) is never used and should be removed
Remove unused functions.
Additional information: link
STFU._maxTxAmount (#197) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 1) / 100
STFU._maxWalletSize (#198) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
STFU.swapThreshold (#222) 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 STFU.swapBack() (#333-374):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#358)
- (teamSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBteam}() (#360)
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() (#139) is not in mixedCase
Parameter STFU.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#415) is not in mixedCase
Parameter STFU.setFees(uint256,uint256,uint256,uint256)._teamFee (#415) is not in mixedCase
Parameter STFU.setFees(uint256,uint256,uint256,uint256)._marketingFee (#415) is not in mixedCase
Parameter STFU.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#415) is not in mixedCase
Parameter STFU.setFeeReceiver(address,address)._marketingFeeReceiver (#423) is not in mixedCase
Parameter STFU.setFeeReceiver(address,address)._teamFeeReceiver (#423) is not in mixedCase
Parameter STFU.setSwapBackSettings(bool,uint256)._enabled (#428) is not in mixedCase
Parameter STFU.setSwapBackSettings(bool,uint256)._amount (#428) is not in mixedCase
Parameter STFU.transferForeignToken(address)._token (#452) is not in mixedCase
Variable STFU.WBNB (#188) is not in mixedCase
Variable STFU.DEAD (#189) is not in mixedCase
Variable STFU.ZERO (#190) is not in mixedCase
Constant STFU._name (#192) is not in UPPER_CASE_WITH_UNDERSCORES
Constant STFU._symbol (#193) is not in UPPER_CASE_WITH_UNDERSCORES
Constant STFU._decimals (#194) is not in UPPER_CASE_WITH_UNDERSCORES
Variable STFU._totalSupply (#196) is not in mixedCase
Variable STFU._maxTxAmount (#197) is not in mixedCase
Variable STFU._maxWalletSize (#198) is not in mixedCase
Variable STFU._balances (#200) is not in mixedCase
Variable STFU._allowances (#201) is not in mixedCase
Variable STFU._isBlacklisted (#205) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#144) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#145)
Prevent variables from having similar names.
Additional information: link
STFU.slitherConstructorVariables() (#185-472) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#189)
STFU.slitherConstructorVariables() (#185-472) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#190)
STFU.slitherConstructorVariables() (#185-472) uses literals with too many digits:
- _totalSupply = 1000000000 * (10 ** _decimals) (#196)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
STFU.DEAD (#189) should be constant
STFU.WBNB (#188) should be constant
STFU.ZERO (#190) should be constant
STFU._totalSupply (#196) 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) (#96-98)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#103-105)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#124-128)
blacklistAddress(address,bool) should be declared external:
- STFU.blacklistAddress(address,bool) (#438-440)
blacklistMultiple(address[],bool) should be declared external:
- STFU.blacklistMultiple(address[],bool) (#442-446)
checkBlacklist(address) should be declared external:
- STFU.checkBlacklist(address) (#448-450)
transferForeignToken(address) should be declared external:
- STFU.transferForeignToken(address) (#452-456)
isOverLiquified(uint256,uint256) should be declared external:
- STFU.isOverLiquified(uint256,uint256) (#466-468)
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