Queenu.swapBack() (#365-422) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#404)
- (developmentSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#406)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Queenu._transferFrom(address,address,uint256) (#293-320):
External calls:
- swapBack() (#310)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#389-395)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#404)
- (developmentSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#406)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#411-418)
External calls sending eth:
- swapBack() (#310)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#404)
- (developmentSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#406)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#411-418)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#312)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#316)
- amountReceived = takeFee(sender,recipient,amount) (#314)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#351)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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 ownership is not renounced (belongs to a wallet)
Queenu.calcFeePerc() (#424-432) performs a multiplication on the result of a division:
-root = feeDenominator.div(lpPerc.add(devPerc).add(marketingPerc)) (#426)
-liqFee = lpPerc.mul(root) (#427)
Queenu.calcFeePerc() (#424-432) performs a multiplication on the result of a division:
-root = feeDenominator.div(lpPerc.add(devPerc).add(marketingPerc)) (#426)
-marketingFee = marketingPerc.mul(root) (#428)
Queenu.calcFeePerc() (#424-432) performs a multiplication on the result of a division:
-root = feeDenominator.div(lpPerc.add(devPerc).add(marketingPerc)) (#426)
-devFee = devPerc.mul(root) (#429)
Consider ordering multiplication before division.
Additional information: link
Queenu.swapBack() (#365-422) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#411-418)
Queenu.liquify(uint256,uint256) (#434-444) ignores return value by router.addLiquidityETH{value: _lpBNB}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#435-442)
Ensure that all the return values of the function calls are used.
Additional information: link
Queenu.setTxLimit(uint256) (#474-477) should emit an event for:
- _maxTxAmount = amount (#476)
Queenu.setSwapBackSettings(bool,uint256) (#519-522) should emit an event for:
- swapThreshold = _amount (#521)
Queenu.setTargetLiquidity(uint256,uint256) (#524-527) should emit an event for:
- targetLiquidity = _target (#525)
- targetLiquidityDenominator = _denominator (#526)
Queenu.updateTax(uint256,uint256,uint256) (#544-549) should emit an event for:
- devPerc = devValue (#545)
- marketingPerc = markValue (#546)
- lpPerc = liqValue (#547)
- totalTax = devValue.add(markValue).add(liqValue) (#548)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#121) lacks a zero-check on :
- owner = adr (#122)
Queenu.TransferBNBsOutfromContract(uint256,address).receiver (#496) lacks a zero-check on :
- receiver.transfer(amount) (#499)
Queenu.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#513) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#514)
Queenu.setFeeReceivers(address,address,address)._marketingFeeReceiver (#513) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#515)
Queenu.setFeeReceivers(address,address,address)._devFeeReceiver (#513) lacks a zero-check on :
- devFeeReceiver = _devFeeReceiver (#516)
Check that the address is not zero.
Additional information: link
Reentrancy in Queenu.constructor(address) (#241-259):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#245)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = _totalSupply (#246)
- approve(_dexRouter,_totalSupply) (#255)
- _allowances[msg.sender][spender] = amount (#272)
- approve(address(pair),_totalSupply) (#256)
- _allowances[msg.sender][spender] = amount (#272)
- _balances[msg.sender] = _totalSupply (#257)
- autoLiquidityReceiver = msg.sender (#251)
- devFeeReceiver = msg.sender (#253)
- isFeeExempt[msg.sender] = true (#248)
- isTxLimitExempt[msg.sender] = true (#249)
- marketingFeeReceiver = msg.sender (#252)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Queenu._transferFrom(address,address,uint256) (#293-320):
External calls:
- swapBack() (#310)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#389-395)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#404)
- (developmentSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#406)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#411-418)
External calls sending eth:
- swapBack() (#310)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#404)
- (developmentSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#406)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#411-418)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#352)
- amountReceived = takeFee(sender,recipient,amount) (#314)
- Transfer(sender,recipient,amountReceived) (#318)
Reentrancy in Queenu.constructor(address) (#241-259):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#245)
Event emitted after the call(s):
- Approval(msg.sender,spender,amount) (#273)
- approve(_dexRouter,_totalSupply) (#255)
- Approval(msg.sender,spender,amount) (#273)
- approve(address(pair),_totalSupply) (#256)
- Transfer(address(0),msg.sender,_totalSupply) (#258)
Reentrancy in Queenu.liquify(uint256,uint256) (#434-444):
External calls:
- router.addLiquidityETH{value: _lpBNB}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#435-442)
Event emitted after the call(s):
- AutoLiquify(_lpBNB,amountToLiquify) (#443)
Reentrancy in Queenu.swapBack() (#365-422):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#389-395)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#404)
- (developmentSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#406)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#411-418)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#404)
- (developmentSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#406)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#411-418)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#419)
Apply the check-effects-interactions pattern.
Additional information: link
Queenu._transferFrom(address,address,uint256) (#293-320) compares to a boolean constant:
-require(bool,string)(blackListed[sender] == false && blackListed[recipient] == false,account) (#298)
Queenu._transferFrom(address,address,uint256) (#293-320) compares to a boolean constant:
-require(bool,string)(start == true,Trading not started yet) (#301)
Remove the equality to the boolean constant.
Additional information: link
Queenu.launched() (#464-466) is never used and should be removed
Queenu.liquify(uint256,uint256) (#434-444) is never used and should be removed
Remove unused functions.
Additional information: link
Queenu._maxTxAmount (#197) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 1) / 250
Queenu._maxWalletSize (#198) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 1) / 50
Queenu.swapThreshold (#237) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 500
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.7.4 (#3) allows old versions
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 Queenu.swapBack() (#365-422):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#404)
- (developmentSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#406)
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() (#136) is not in mixedCase
Parameter Queenu.liquify(uint256,uint256)._lpBNB (#434) is not in mixedCase
Function Queenu.TransferBNBsOutfromContract(uint256,address) (#496-502) is not in mixedCase
Parameter Queenu.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#513) is not in mixedCase
Parameter Queenu.setFeeReceivers(address,address,address)._marketingFeeReceiver (#513) is not in mixedCase
Parameter Queenu.setFeeReceivers(address,address,address)._devFeeReceiver (#513) is not in mixedCase
Parameter Queenu.setSwapBackSettings(bool,uint256)._enabled (#519) is not in mixedCase
Parameter Queenu.setSwapBackSettings(bool,uint256)._amount (#519) is not in mixedCase
Parameter Queenu.setTargetLiquidity(uint256,uint256)._target (#524) is not in mixedCase
Parameter Queenu.setTargetLiquidity(uint256,uint256)._denominator (#524) is not in mixedCase
Variable Queenu.WBNB (#187) is not in mixedCase
Variable Queenu.DEAD (#188) is not in mixedCase
Variable Queenu.ZERO (#189) is not in mixedCase
Variable Queenu.DEAD_NON_CHECKSUM (#190) is not in mixedCase
Constant Queenu._name (#192) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Queenu._symbol (#193) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Queenu._decimals (#194) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Queenu._totalSupply (#196) is not in mixedCase
Variable Queenu._maxTxAmount (#197) is not in mixedCase
Variable Queenu._maxWalletSize (#198) is not in mixedCase
Variable Queenu._balances (#200) is not in mixedCase
Variable Queenu._allowances (#201) is not in mixedCase
Variable Queenu._maxBuyBlock (#208) is not in mixedCase
Variable Queenu._refPercWallet (#211) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#141) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#142)
Prevent variables from having similar names.
Additional information: link
Queenu.slitherConstructorVariables() (#182-559) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#188)
Queenu.slitherConstructorVariables() (#182-559) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#189)
Queenu.slitherConstructorVariables() (#182-559) uses literals with too many digits:
- DEAD_NON_CHECKSUM = 0x000000000000000000000000000000000000dEaD (#190)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Queenu.DEAD_NON_CHECKSUM (#190) is never used in Queenu (#182-559)
Queenu.isDividendExempt (#205) is never used in Queenu (#182-559)
Queenu._maxBuyBlock (#208) is never used in Queenu (#182-559)
Queenu.totalRefAmount (#210) is never used in Queenu (#182-559)
Queenu._refPercWallet (#211) is never used in Queenu (#182-559)
Remove unused state variables.
Additional information: link
Queenu.DEAD (#188) should be constant
Queenu.DEAD_NON_CHECKSUM (#190) should be constant
Queenu.WBNB (#187) should be constant
Queenu.ZERO (#189) should be constant
Queenu._refPercWallet (#211) should be constant
Queenu._totalSupply (#196) should be constant
Queenu.feeDenominator (#213) should be constant
Queenu.totalRefAmount (#210) 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) (#93-95)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#100-102)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#121-125)
launch() should be declared external:
- Queenu.launch() (#468-472)
getFixedTaxes() should be declared external:
- Queenu.getFixedTaxes() (#551-553)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 9% buy tax and 11% 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.
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average 30d number of PancakeSwap swaps is low.
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