Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
GucciBearInu.swapBack() (#367-401) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#393)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#395)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in GucciBearInu._transferFrom(address,address,uint256) (#301-321):
External calls:
- swapBack() (#310)
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#405-412)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#378-384)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#393)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#395)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#397)
External calls sending eth:
- swapBack() (#310)
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#405-412)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#393)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#395)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#397)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#314)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#317)
- amountReceived = takeFee(sender,recipient,amount) (#316)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#354)
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.
Contract ticker (Gucci 420) 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.
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
GucciBearInu.slitherConstructorVariables() (#214-500) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 3 (#252)
Consider ordering multiplication before division.
Additional information: link
GucciBearInu.addLiquidity(uint256,uint256) (#403-415) ignores return value by router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#405-412)
Ensure that all the return values of the function calls are used.
Additional information: link
GucciBearInu.setTxLimit(uint256) (#438-441) should emit an event for:
- _maxTxAmount = amount (#440)
GucciBearInu.setFees(uint256,uint256,uint256,uint256,uint256) (#456-463) should emit an event for:
- liquidityFee = _liquidityFee (#457)
- buybackFee = _buybackFee (#459)
- marketingFee = _marketingFee (#460)
- totalFee = _liquidityFee.add(_buybackFee).add(_marketingFee) (#461)
- feeDenominator = _feeDenominator (#462)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#153) lacks a zero-check on :
- owner = adr (#154)
GucciBearInu.setFeeReceiver(address,address)._marketingFeeReceiver (#465) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#466)
GucciBearInu.setFeeReceiver(address,address)._buybackFeeReceiver (#465) lacks a zero-check on :
- buybackFeeReceiver = _buybackFeeReceiver (#467)
Check that the address is not zero.
Additional information: link
Reentrancy in GucciBearInu._transferFrom(address,address,uint256) (#301-321):
External calls:
- swapBack() (#310)
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#405-412)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#378-384)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#393)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#395)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#397)
External calls sending eth:
- swapBack() (#310)
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#405-412)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#393)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#395)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#397)
State variables written after the call(s):
- launch() (#312)
- launchedAt = block.number (#435)
Reentrancy in GucciBearInu.constructor() (#256-267):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#258)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#259)
- _balances[_owner] = _totalSupply (#265)
- isFeeExempt[_owner] = true (#262)
- isTxLimitExempt[_owner] = true (#263)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in GucciBearInu._transferFrom(address,address,uint256) (#301-321):
External calls:
- swapBack() (#310)
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#405-412)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#378-384)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#393)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#395)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#397)
External calls sending eth:
- swapBack() (#310)
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#405-412)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#393)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#395)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#397)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#355)
- amountReceived = takeFee(sender,recipient,amount) (#316)
- Transfer(sender,recipient,amountReceived) (#319)
Reentrancy in GucciBearInu.addLiquidity(uint256,uint256) (#403-415):
External calls:
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#405-412)
Event emitted after the call(s):
- AutoLiquify(BNBAmount,tokenAmount) (#413)
Reentrancy in GucciBearInu.constructor() (#256-267):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#258)
Event emitted after the call(s):
- Transfer(address(0),_owner,_totalSupply) (#266)
Reentrancy in GucciBearInu.swapBack() (#367-401):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#378-384)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#393)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#395)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#397)
- addLiquidity(amountToLiquify,amountBNBLiquidity) (#400)
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#405-412)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#393)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#395)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#397)
- addLiquidity(amountToLiquify,amountBNBLiquidity) (#400)
- router.addLiquidityETH{value: BNBAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#405-412)
Event emitted after the call(s):
- AutoLiquify(BNBAmount,tokenAmount) (#413)
- addLiquidity(amountToLiquify,amountBNBLiquidity) (#400)
Apply the check-effects-interactions pattern.
Additional information: link
GucciBearInu.AntiDumpMultiplier() (#344-349) uses timestamp for comparisons
Dangerous comparisons:
- time_since_start > 1 * hour (#347)
Avoid relying on block.timestamp.
Additional information: link
GucciBearInu.buyTokens(uint256,address) (#417-428) is never used and should be removed
Remove unused functions.
Additional information: link
GucciBearInu._maxTxAmount (#226) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
GucciBearInu._maxWalletSize (#227) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
GucciBearInu.swapThreshold (#252) 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 GucciBearInu.swapBack() (#367-401):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#393)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#395)
- (DevSuccess) = address(DevFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#397)
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() (#168) is not in mixedCase
Function GucciBearInu.AntiDumpMultiplier() (#344-349) is not in mixedCase
Parameter GucciBearInu.addLiquidity(uint256,uint256).BNBAmount (#403) is not in mixedCase
Parameter GucciBearInu.setFees(uint256,uint256,uint256,uint256,uint256)._liquidityFee (#456) is not in mixedCase
Parameter GucciBearInu.setFees(uint256,uint256,uint256,uint256,uint256)._buybackFee (#456) is not in mixedCase
Parameter GucciBearInu.setFees(uint256,uint256,uint256,uint256,uint256)._devFee (#456) is not in mixedCase
Parameter GucciBearInu.setFees(uint256,uint256,uint256,uint256,uint256)._marketingFee (#456) is not in mixedCase
Parameter GucciBearInu.setFees(uint256,uint256,uint256,uint256,uint256)._feeDenominator (#456) is not in mixedCase
Parameter GucciBearInu.setFeeReceiver(address,address)._marketingFeeReceiver (#465) is not in mixedCase
Parameter GucciBearInu.setFeeReceiver(address,address)._buybackFeeReceiver (#465) is not in mixedCase
Parameter GucciBearInu.setSwapBackSettings(bool,uint256)._enabled (#470) is not in mixedCase
Parameter GucciBearInu.setSwapBackSettings(bool,uint256)._amount (#470) is not in mixedCase
Parameter GucciBearInu.transferForeignToken(address)._token (#480) is not in mixedCase
Variable GucciBearInu.WBNB (#217) is not in mixedCase
Variable GucciBearInu.DEAD (#218) is not in mixedCase
Variable GucciBearInu.ZERO (#219) is not in mixedCase
Constant GucciBearInu._name (#221) is not in UPPER_CASE_WITH_UNDERSCORES
Constant GucciBearInu._symbol (#222) is not in UPPER_CASE_WITH_UNDERSCORES
Constant GucciBearInu._decimals (#223) is not in UPPER_CASE_WITH_UNDERSCORES
Variable GucciBearInu._totalSupply (#225) is not in mixedCase
Variable GucciBearInu._maxTxAmount (#226) is not in mixedCase
Variable GucciBearInu._maxWalletSize (#227) is not in mixedCase
Variable GucciBearInu._balances (#229) is not in mixedCase
Variable GucciBearInu._allowances (#230) is not in mixedCase
Variable GucciBearInu.DevFeeReceiver (#244) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#173) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#174)
Prevent variables from having similar names.
Additional information: link
GucciBearInu.slitherConstructorVariables() (#214-500) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#218)
GucciBearInu.slitherConstructorVariables() (#214-500) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#219)
GucciBearInu.slitherConstructorVariables() (#214-500) uses literals with too many digits:
- _totalSupply = 100000000000 * (10 ** _decimals) (#225)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
GucciBearInu.DEAD (#218) should be constant
GucciBearInu.DevFeeReceiver (#244) should be constant
GucciBearInu.WBNB (#217) should be constant
GucciBearInu.ZERO (#219) should be constant
GucciBearInu._totalSupply (#225) 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) (#125-127)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#132-134)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#153-157)
transferForeignToken(address) should be declared external:
- GucciBearInu.transferForeignToken(address) (#480-484)
isOverLiquified(uint256,uint256) should be declared external:
- GucciBearInu.isOverLiquified(uint256,uint256) (#494-496)
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