Money Heist Token ($MHT). A token inspired by the Netflix TV Show, Money Heist, launching alongside the final season. The project features lotteries, an NFT Collection, a Play-To-Earn (P2E) Game, and an ETH Bridge. Launched on the Binance Smart Chain (BSC) Network.
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
MONEYHEIST.addLiquidity(uint256,uint256) (#663-676) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MONEYHEIST._transfer(address,address,uint256) (#532-605):
External calls:
- handle_fees(feeswap,currentTaxes) (#588)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
- (success) = recipient.call{value: amount}() (#351)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#659)
- address(marketingWallet).sendValue(marketingAmt) (#634)
- address(devWallet).sendValue(devAmt) (#639)
- address(buybackWallet).sendValue(buybackAmt) (#644)
External calls sending eth:
- handle_fees(feeswap,currentTaxes) (#588)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
- (success) = recipient.call{value: amount}() (#351)
State variables written after the call(s):
- super._transfer(sender,recipient,amount - fee) (#591)
- _balances[sender] = senderBalance - amount (#260)
- _balances[recipient] += amount (#261)
- super._transfer(sender,address(this),feeAmount) (#596)
- _balances[sender] = senderBalance - amount (#260)
- _balances[recipient] += amount (#261)
- super._transfer(sender,lotteryWallet,amount * currentTaxes.lottery / 100) (#600)
- _balances[sender] = senderBalance - amount (#260)
- _balances[recipient] += amount (#261)
Apply the check-effects-interactions pattern.
Additional information: link
MONEYHEIST.rescueBEP20(address,uint256) (#765-767) ignores return value by IERC20(tokenAdd).transfer(devWallet,amount) (#766)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
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.
Combination 2: Unchecked transfer + 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.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
MONEYHEIST._transfer(address,address,uint256).fee (#562) is written in both
fee = 0 (#570)
fee = amount * feesum / 100 (#584)
Fix or remove the writes.
Additional information: link
MONEYHEIST.handle_fees(uint256,MONEYHEIST.Taxes) (#607-647) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - swapTaxes.liquidity) (#624)
-bnbToAddLiquidityWith = unitBalance * swapTaxes.liquidity (#625)
MONEYHEIST.handle_fees(uint256,MONEYHEIST.Taxes) (#607-647) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - swapTaxes.liquidity) (#624)
-marketingAmt = unitBalance * 2 * swapTaxes.marketing (#632)
MONEYHEIST.handle_fees(uint256,MONEYHEIST.Taxes) (#607-647) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - swapTaxes.liquidity) (#624)
-devAmt = unitBalance * 2 * swapTaxes.dev (#637)
MONEYHEIST.handle_fees(uint256,MONEYHEIST.Taxes) (#607-647) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - swapTaxes.liquidity) (#624)
-buybackAmt = unitBalance * 2 * swapTaxes.buyback (#642)
Consider ordering multiplication before division.
Additional information: link
MONEYHEIST._transfer(address,address,uint256).feeswap (#560) is a local variable never initialized
MONEYHEIST._transfer(address,address,uint256).currentTaxes (#563) is a local variable never initialized
MONEYHEIST._transfer(address,address,uint256).feesum (#561) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
MONEYHEIST.addLiquidity(uint256,uint256) (#663-676) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
Ensure that all the return values of the function calls are used.
Additional information: link
MONEYHEIST.updateLiquidityTreshhold(uint256) (#683-686) should emit an event for:
- tokenLiquidityThreshold = new_amount (#685)
MONEYHEIST.updateCooldown(bool,uint256) (#722-725) should emit an event for:
- coolDownTime = time * 1 (#723)
MONEYHEIST.updateMaxTxLimit(uint256,uint256) (#752-755) should emit an event for:
- maxBuyLimit = maxBuy * 10 ** decimals() (#753)
- maxSellLimit = maxSell * 10 ** decimals() (#754)
MONEYHEIST.updateMaxWalletlimit(uint256) (#757-759) should emit an event for:
- maxWalletLimit = amount * 10 ** decimals() (#758)
Emit an event for critical parameter changes.
Additional information: link
MONEYHEIST.updateRouterAndPair(address,address).newPair (#696) lacks a zero-check on :
- pair = newPair (#698)
MONEYHEIST.updateMarketingWallet(address).newWallet (#706) lacks a zero-check on :
- marketingWallet = newWallet (#707)
MONEYHEIST.updateDevWallet(address).newWallet (#710) lacks a zero-check on :
- devWallet = newWallet (#711)
MONEYHEIST.updateLotteryWallet(address).newWallet (#714) lacks a zero-check on :
- lotteryWallet = newWallet (#715)
MONEYHEIST.updateBuybackWallet(address).newWallet (#718) lacks a zero-check on :
- buybackWallet = newWallet (#719)
Check that the address is not zero.
Additional information: link
Modifier MONEYHEIST.mutexLock() (#461-467) does not always execute _; or revert
All the paths in a modifier must execute _ or revert.
Additional information: link
Reentrancy in MONEYHEIST.constructor() (#469-496):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#475-476)
State variables written after the call(s):
- _approve(address(this),buybackWallet,totalSupply()) (#495)
- _allowances[owner][spender] = amount (#326)
- allowedTransfer[address(this)] = true (#487)
- allowedTransfer[owner()] = true (#488)
- allowedTransfer[pair] = true (#489)
- allowedTransfer[marketingWallet] = true (#490)
- allowedTransfer[devWallet] = true (#491)
- allowedTransfer[lotteryWallet] = true (#492)
- allowedTransfer[buybackWallet] = true (#493)
- exemptFee[address(this)] = true (#481)
- exemptFee[marketingWallet] = true (#482)
- exemptFee[devWallet] = true (#483)
- exemptFee[lotteryWallet] = true (#484)
- exemptFee[buybackWallet] = true (#485)
- lotteryWallet = address(this) (#480)
- pair = _pair (#479)
- router = _router (#478)
Reentrancy in MONEYHEIST.handle_fees(uint256,MONEYHEIST.Taxes) (#607-647):
External calls:
- swapTokensForBNB(toSwap) (#621)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#659)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#629)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#629)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#629)
- _allowances[owner][spender] = amount (#326)
Reentrancy in MONEYHEIST.transferFrom(address,address,uint256) (#503-511):
External calls:
- _transfer(sender,recipient,amount) (#504)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
- (success) = recipient.call{value: amount}() (#351)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#659)
- address(marketingWallet).sendValue(marketingAmt) (#634)
- address(devWallet).sendValue(devAmt) (#639)
- address(buybackWallet).sendValue(buybackAmt) (#644)
External calls sending eth:
- _transfer(sender,recipient,amount) (#504)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
- (success) = recipient.call{value: amount}() (#351)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#508)
- _allowances[owner][spender] = amount (#326)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MONEYHEIST._transfer(address,address,uint256) (#532-605):
External calls:
- handle_fees(feeswap,currentTaxes) (#588)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
- (success) = recipient.call{value: amount}() (#351)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#659)
- address(marketingWallet).sendValue(marketingAmt) (#634)
- address(devWallet).sendValue(devAmt) (#639)
- address(buybackWallet).sendValue(buybackAmt) (#644)
External calls sending eth:
- handle_fees(feeswap,currentTaxes) (#588)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
- (success) = recipient.call{value: amount}() (#351)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#263)
- super._transfer(sender,address(this),feeAmount) (#596)
- Transfer(sender,recipient,amount) (#263)
- super._transfer(sender,recipient,amount - fee) (#591)
- Transfer(sender,recipient,amount) (#263)
- super._transfer(sender,lotteryWallet,amount * currentTaxes.lottery / 100) (#600)
Reentrancy in MONEYHEIST.constructor() (#469-496):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#475-476)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#327)
- _approve(address(this),buybackWallet,totalSupply()) (#495)
Reentrancy in MONEYHEIST.handle_fees(uint256,MONEYHEIST.Taxes) (#607-647):
External calls:
- swapTokensForBNB(toSwap) (#621)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#659)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#629)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#629)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#327)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#629)
Reentrancy in MONEYHEIST.transferFrom(address,address,uint256) (#503-511):
External calls:
- _transfer(sender,recipient,amount) (#504)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
- (success) = recipient.call{value: amount}() (#351)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#659)
- address(marketingWallet).sendValue(marketingAmt) (#634)
- address(devWallet).sendValue(devAmt) (#639)
- address(buybackWallet).sendValue(buybackAmt) (#644)
External calls sending eth:
- _transfer(sender,recipient,amount) (#504)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#668-675)
- (success) = recipient.call{value: amount}() (#351)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#327)
- _approve(sender,_msgSender(),currentAllowance - amount) (#508)
Apply the check-effects-interactions pattern.
Additional information: link
MONEYHEIST._transfer(address,address,uint256) (#532-605) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(timePassed >= coolDownTime,Cooldown enabled) (#552)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (#28-31) is never used and should be removed
ERC20._burn(address,uint256) (#296-307) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#348-353):
- (success) = recipient.call{value: amount}() (#351)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable ERC20._balances (#75) is not in mixedCase
Variable ERC20._allowances (#77) is not in mixedCase
Function IRouter.WETH() (#396) is not in mixedCase
Function MONEYHEIST.handle_fees(uint256,MONEYHEIST.Taxes) (#607-647) is not in mixedCase
Parameter MONEYHEIST.updateLiquidityTreshhold(uint256).new_amount (#683) is not in mixedCase
Parameter MONEYHEIST.updateExemptFee(address,bool)._address (#742) is not in mixedCase
Variable MONEYHEIST.genesis_block (#429) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#29)" inContext (#23-32)
Remove redundant statements if they congest code but offer no value.
Additional information: link
name() should be declared external:
- ERC20.name() (#101-103)
symbol() should be declared external:
- ERC20.symbol() (#109-111)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#152-155)
- MONEYHEIST.transfer(address,uint256) (#526-530)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#160-162)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#171-174)
- MONEYHEIST.approve(address,uint256) (#498-501)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#189-197)
- MONEYHEIST.transferFrom(address,address,uint256) (#503-511)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#211-214)
- MONEYHEIST.increaseAllowance(address,uint256) (#513-516)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#230-236)
- MONEYHEIST.decreaseAllowance(address,uint256) (#518-524)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#374-376)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#378-381)
Use the external attribute for functions never called from the contract.
Additional information: link
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.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Token has only one trading pair
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token on CoinGecko
Additional information: link
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
Unable to find code repository for the project
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Telegram account link seems to be invalid
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account