Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BengalCat.swapBack() (#372-413) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#397)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#399)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BengalCat._transferFrom(address,address,uint256) (#296-325):
External calls:
- swapBack() (#314)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#383-389)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#397)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#399)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#403-410)
External calls sending eth:
- swapBack() (#314)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#397)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#399)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#403-410)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#318)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#321)
- amountReceived = takeFee(sender,recipient,amount) (#320)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#351)
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.
BengalCat.DEAD (#196) should be constant
BengalCat.WBNB (#195) should be constant
BengalCat.ZERO (#197) should be constant
BengalCat._totalSupply (#204) should be constant
BengalCat.routerAddress (#198) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
BengalCat.slitherConstructorVariables() (#192-514) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#196)
BengalCat.slitherConstructorVariables() (#192-514) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#197)
BengalCat.slitherConstructorVariables() (#192-514) uses literals with too many digits:
- _totalSupply = 1000000000 * (10 ** _decimals) (#204)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BengalCat.slitherConstructorVariables() (#192-514) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 5 (#233)
Consider ordering multiplication before division.
Additional information: link
BengalCat.swapBack() (#372-413) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#403-410)
Ensure that all the return values of the function calls are used.
Additional information: link
BengalCat.setFees(uint256,uint256,uint256,uint256) (#442-449) should emit an event for:
- liquidityFee = _liquidityFee (#443)
- marketingFee = _marketingFee (#444)
- buybackFee = _buybackFee (#445)
- totalFee = _liquidityFee.add(_marketingFee).add(_buybackFee) (#446)
- feeDenominator = _feeDenominator (#447)
BengalCat.setSellMultiplier(uint256) (#464-466) should emit an event for:
- _sellMultiplier = multiplier (#465)
BengalCat.setTxLimit(uint256) (#472-475) should emit an event for:
- _maxTxAmount = amountBuy (#473)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#131) lacks a zero-check on :
- owner = adr (#132)
BengalCat.setFeeReceiver(address,address)._marketingFeeReceiver (#467) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#468)
BengalCat.setFeeReceiver(address,address)._buybackFeeReceiver (#467) lacks a zero-check on :
- buybackFeeReceiver = _buybackFeeReceiver (#469)
Check that the address is not zero.
Additional information: link
Reentrancy in BengalCat._transferFrom(address,address,uint256) (#296-325):
External calls:
- swapBack() (#314)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#383-389)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#397)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#399)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#403-410)
External calls sending eth:
- swapBack() (#314)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#397)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#399)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#403-410)
State variables written after the call(s):
- launch() (#316)
- launchedAt = block.number (#433)
Reentrancy in BengalCat.constructor() (#242-262):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#244)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#245)
- _balances[_owner] = _totalSupply (#260)
- isFeeExempt[msg.sender] = true (#248)
- isTimelockExempt[msg.sender] = true (#255)
- isTimelockExempt[DEAD] = true (#256)
- isTimelockExempt[address(this)] = true (#257)
- isTxLimitExempt[msg.sender] = true (#250)
- isTxLimitExempt[address(this)] = true (#251)
- isTxLimitExempt[routerAddress] = true (#252)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BengalCat._transferFrom(address,address,uint256) (#296-325):
External calls:
- swapBack() (#314)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#383-389)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#397)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#399)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#403-410)
External calls sending eth:
- swapBack() (#314)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#397)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#399)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#403-410)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#352)
- amountReceived = takeFee(sender,recipient,amount) (#320)
- Transfer(sender,recipient,amountReceived) (#323)
Reentrancy in BengalCat.constructor() (#242-262):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#244)
Event emitted after the call(s):
- Transfer(address(0),_owner,_totalSupply) (#261)
Reentrancy in BengalCat.swapBack() (#372-413):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#383-389)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#397)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#399)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#403-410)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#397)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#399)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#403-410)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#411)
Apply the check-effects-interactions pattern.
Additional information: link
BengalCat._transferFrom(address,address,uint256) (#296-325) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for 1min between two operations) (#311)
Avoid relying on block.timestamp.
Additional information: link
BengalCat.buyTokens(uint256,address) (#415-426) is never used and should be removed
Remove unused functions.
Additional information: link
BengalCat._maxTxAmount (#205) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 1) / 100
BengalCat._maxWalletSize (#206) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
BengalCat.swapThreshold (#233) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000 * 5
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.11 (#13) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.11 is not recommended for deployment
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
Low level call in BengalCat.swapBack() (#372-413):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#397)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#399)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable Auth._intAddr (#78) is not in mixedCase
Function IDEXRouter.WETH() (#146) is not in mixedCase
Parameter BengalCat.tradingStatus(bool)._status (#358) is not in mixedCase
Parameter BengalCat.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#442) is not in mixedCase
Parameter BengalCat.setFees(uint256,uint256,uint256,uint256)._marketingFee (#442) is not in mixedCase
Parameter BengalCat.setFees(uint256,uint256,uint256,uint256)._buybackFee (#442) is not in mixedCase
Parameter BengalCat.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#442) is not in mixedCase
Parameter BengalCat.cooldownEnabled(bool,uint8)._status (#451) is not in mixedCase
Parameter BengalCat.cooldownEnabled(bool,uint8)._interval (#451) is not in mixedCase
Parameter BengalCat.setFeeReceiver(address,address)._marketingFeeReceiver (#467) is not in mixedCase
Parameter BengalCat.setFeeReceiver(address,address)._buybackFeeReceiver (#467) is not in mixedCase
Parameter BengalCat.setSwapBackSettings(bool,uint256)._enabled (#476) is not in mixedCase
Parameter BengalCat.setSwapBackSettings(bool,uint256)._amount (#476) is not in mixedCase
Parameter BengalCat.blacklistAddress(address,bool)._address (#481) is not in mixedCase
Parameter BengalCat.blacklistAddress(address,bool)._value (#481) is not in mixedCase
Parameter BengalCat.transferForeignToken(address)._token (#489) is not in mixedCase
Variable BengalCat.WBNB (#195) is not in mixedCase
Variable BengalCat.DEAD (#196) is not in mixedCase
Variable BengalCat.ZERO (#197) is not in mixedCase
Constant BengalCat._name (#200) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BengalCat._symbol (#201) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BengalCat._decimals (#202) is not in UPPER_CASE_WITH_UNDERSCORES
Variable BengalCat._totalSupply (#204) is not in mixedCase
Variable BengalCat._maxTxAmount (#205) is not in mixedCase
Variable BengalCat._maxWalletSize (#206) is not in mixedCase
Variable BengalCat._balances (#208) is not in mixedCase
Variable BengalCat._allowances (#209) is not in mixedCase
Variable BengalCat._sellMultiplier (#221) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#151) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#152)
Prevent variables from having similar names.
Additional information: link
authorize(address) should be declared external:
- Auth.authorize(address) (#102-104)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#110-112)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#131-135)
tradingStatus(bool) should be declared external:
- BengalCat.tradingStatus(bool) (#358-363)
cooldownEnabled(bool,uint8) should be declared external:
- BengalCat.cooldownEnabled(bool,uint8) (#451-454)
blacklistAddress(address,bool) should be declared external:
- BengalCat.blacklistAddress(address,bool) (#481-483)
transferForeignToken(address) should be declared external:
- BengalCat.transferForeignToken(address) (#489-493)
isOverLiquified(uint256,uint256) should be declared external:
- BengalCat.isOverLiquified(uint256,uint256) (#508-510)
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