MetaGreen Token Logo

MTG [MetaGreen] Token

About MTG

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 15 January 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

MetaGreen.swapBack() (#442-485) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#471)
- (DevSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountDevFee}() (#472)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in MetaGreen._transferFrom(address,address,uint256) (#320-355):
External calls:
- swapBack() (#335)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#456-462)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#471)
- (DevSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountDevFee}() (#472)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#476-483)
External calls sending eth:
- swapBack() (#335)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#471)
- (DevSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountDevFee}() (#472)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#476-483)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#338)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#342)
- amountReceived_scope_0 = takeFee(sender,recipient,amount) (#347)
- _balances[stakingWallet] = _balances[stakingWallet].add(stakingFeeAmount) (#405)
- _balances[address(this)] = _balances[address(this)].add(newFeeAmount) (#408)
- _balances[stakingWallet] = _balances[stakingWallet].add(stakingFeeAmount_scope_0) (#417)
- _balances[address(this)] = _balances[address(this)].add(newFeeAmount_scope_1) (#420)
- _balances[recipient] = _balances[recipient].add(amountReceived_scope_0) (#348)
Apply the check-effects-interactions pattern.

Additional information: link

MetaGreen.transferERC20(address,uint256) (#579-582) ignores return value by IBEP20(_token).transfer(marketingFeeReceiver,_amount) (#581)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link

MetaGreen.bl (#213) is never initialized. It is used in:
- MetaGreen._transferFrom(address,address,uint256) (#320-355)
- MetaGreen._basicTransfer(address,address,uint256) (#357-365)
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


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.

MetaGreen.takeFee(address,address,uint256) (#399-425) performs a multiplication on the result of a division:
-stakingFeeAmount = amount.mul(sellStakingFee).div(feeDenominator).mul(AntiDumpMultiplier()) (#402)
MetaGreen.slitherConstructorVariables() (#185-591) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 2 (#258)
Consider ordering multiplication before division.

Additional information: link

MetaGreen.swapBack() (#442-485) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#476-483)
Ensure that all the return values of the function calls are used.

Additional information: link

MetaGreen.updateTimeF(uint256) (#393-396) should emit an event for:
- timeF = _int (#395)
MetaGreen.setTxLimit(uint256) (#514-517) should emit an event for:
- _maxTxAmount = amount (#516)
MetaGreen.setMaxWallet(uint256) (#519-522) should emit an event for:
- _maxWalletSize = amount (#521)
MetaGreen.setBuyFees(uint256,uint256,uint256,uint256,uint256) (#540-548) should emit an event for:
- liquidityFee = _liquidityFee (#541)
- marketingFee = _marketingFee (#542)
- stakingFee = _stakingFee (#543)
- devFee = _devFee (#545)
- totalFee = _liquidityFee.add(_marketingFee).add(_stakingFee).add(_devFee) (#546)
- feeDenominator = _feeDenominator (#547)
MetaGreen.setSellFees(uint256,uint256,uint256,uint256,uint256) (#550-558) should emit an event for:
- liquidityFee = _liquidityFee (#551)
- marketingFee = _marketingFee (#552)
- sellStakingFee = _stakingFee (#553)
- sellDevFee = _devFee (#555)
- totalSellFee = _liquidityFee.add(_marketingFee).add(_stakingFee).add(_devFee) (#556)
- feeDenominator = _feeDenominator (#557)
Emit an event for critical parameter changes.

Additional information: link

Auth.transferOwnership(address).adr (#120) lacks a zero-check on :
- owner = adr (#121)
MetaGreen.setMarketingFeeReceiver(address)._marketingFeeReceiver (#560) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#561)
MetaGreen.setDevFeeReceiver(address)._devFeeReceiver (#564) lacks a zero-check on :
- devFeeReceiver = _devFeeReceiver (#565)
Check that the address is not zero.

Additional information: link

Reentrancy in MetaGreen.constructor() (#264-286):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#269)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#270)
- _balances[_owner] = _liqSupply (#284)
- isFeeExempt[_owner] = true (#273)
- isFeeExempt[ethBridgeAndExchange] = true (#276)
- isFeeExempt[stakingWallet] = true (#279)
- isMaxWalletExempt[_owner] = true (#275)
- isMaxWalletExempt[ethBridgeAndExchange] = true (#278)
- isMaxWalletExempt[stakingWallet] = true (#281)
- isTxLimitExempt[_owner] = true (#274)
- isTxLimitExempt[ethBridgeAndExchange] = true (#277)
- isTxLimitExempt[stakingWallet] = true (#280)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in MetaGreen._transferFrom(address,address,uint256) (#320-355):
External calls:
- swapBack() (#335)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#456-462)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#471)
- (DevSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountDevFee}() (#472)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#476-483)
External calls sending eth:
- swapBack() (#335)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#471)
- (DevSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountDevFee}() (#472)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#476-483)
Event emitted after the call(s):
- Transfer(sender,stakingWallet,stakingFeeAmount) (#406)
- amountReceived_scope_0 = takeFee(sender,recipient,amount) (#347)
- Transfer(sender,address(this),newFeeAmount) (#409)
- amountReceived_scope_0 = takeFee(sender,recipient,amount) (#347)
- Transfer(sender,stakingWallet,stakingFeeAmount_scope_0) (#418)
- amountReceived_scope_0 = takeFee(sender,recipient,amount) (#347)
- Transfer(sender,address(this),newFeeAmount_scope_1) (#421)
- amountReceived_scope_0 = takeFee(sender,recipient,amount) (#347)
- Transfer(sender,recipient,amountReceived) (#344)
- Transfer(sender,recipient,amountReceived_scope_0) (#350)
Reentrancy in MetaGreen.constructor() (#264-286):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#269)
Event emitted after the call(s):
- Transfer(address(0),_owner,_liqSupply) (#285)
Apply the check-effects-interactions pattern.

Additional information: link

MetaGreen.AntiDumpMultiplier() (#380-385) uses timestamp for comparisons
Dangerous comparisons:
- time_since_start > 1 * hour (#383)
MetaGreen.AntSni() (#387-391) uses timestamp for comparisons
Dangerous comparisons:
- time_since_start < timeF (#389)
Avoid relying on block.timestamp.

Additional information: link

MetaGreen._transferFrom(address,address,uint256) (#320-355) compares to a boolean constant:
-shouldTakeFee(sender) != true || shouldTakeFee(recipient) != true (#340)
MetaGreen._basicTransfer(address,address,uint256) (#357-365) compares to a boolean constant:
-require(bool,string)(isFeeExempt[sender] || tradingEnabled == true,Trading not enabled yet) (#360)
Remove the equality to the boolean constant.

Additional information: link

MetaGreen.launch() (#506-508) is never used and should be removed
MetaGreen.launched() (#502-504) is never used and should be removed
Remove unused functions.

Additional information: link

Low level call in MetaGreen.swapBack() (#442-485):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#471)
- (DevSuccess) = address(devFeeReceiver).call{gas: 30000,value: amountDevFee}() (#472)
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() (#135) is not in mixedCase
Function MetaGreen.AntiDumpMultiplier() (#380-385) is not in mixedCase
Function MetaGreen.AntSni() (#387-391) is not in mixedCase
Parameter MetaGreen.updateTimeF(uint256)._int (#393) is not in mixedCase
Parameter MetaGreen.excludeFromMaxWallet(address,bool)._wallet (#528) is not in mixedCase
Parameter MetaGreen.excludeFromMaxWallet(address,bool)._excludeFromMaxWallet (#528) is not in mixedCase
Parameter MetaGreen.setBl(address,bool)._wallet (#532) is not in mixedCase
Parameter MetaGreen.setBl(address,bool)._bl (#532) is not in mixedCase
Parameter MetaGreen.excludeFromMaxTX(address,bool)._wallet (#536) is not in mixedCase
Parameter MetaGreen.excludeFromMaxTX(address,bool)._excludeFromMaxTx (#536) is not in mixedCase
Parameter MetaGreen.setBuyFees(uint256,uint256,uint256,uint256,uint256)._liquidityFee (#540) is not in mixedCase
Parameter MetaGreen.setBuyFees(uint256,uint256,uint256,uint256,uint256)._marketingFee (#540) is not in mixedCase
Parameter MetaGreen.setBuyFees(uint256,uint256,uint256,uint256,uint256)._stakingFee (#540) is not in mixedCase
Parameter MetaGreen.setBuyFees(uint256,uint256,uint256,uint256,uint256)._devFee (#540) is not in mixedCase
Parameter MetaGreen.setBuyFees(uint256,uint256,uint256,uint256,uint256)._feeDenominator (#540) is not in mixedCase
Parameter MetaGreen.setSellFees(uint256,uint256,uint256,uint256,uint256)._liquidityFee (#550) is not in mixedCase
Parameter MetaGreen.setSellFees(uint256,uint256,uint256,uint256,uint256)._marketingFee (#550) is not in mixedCase
Parameter MetaGreen.setSellFees(uint256,uint256,uint256,uint256,uint256)._stakingFee (#550) is not in mixedCase
Parameter MetaGreen.setSellFees(uint256,uint256,uint256,uint256,uint256)._devFee (#550) is not in mixedCase
Parameter MetaGreen.setSellFees(uint256,uint256,uint256,uint256,uint256)._feeDenominator (#550) is not in mixedCase
Parameter MetaGreen.setMarketingFeeReceiver(address)._marketingFeeReceiver (#560) is not in mixedCase
Parameter MetaGreen.setDevFeeReceiver(address)._devFeeReceiver (#564) is not in mixedCase
Parameter MetaGreen.setSwapBackSettings(bool,uint256)._enabled (#568) is not in mixedCase
Parameter MetaGreen.setSwapBackSettings(bool,uint256)._amount (#568) is not in mixedCase
Parameter MetaGreen.transferERC20(address,uint256)._token (#579) is not in mixedCase
Parameter MetaGreen.transferERC20(address,uint256)._amount (#579) is not in mixedCase
Constant MetaGreen._name (#194) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MetaGreen._symbol (#195) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MetaGreen._decimals (#196) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MetaGreen._totalSupply (#200) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MetaGreen._liqSupply (#201) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MetaGreen._maxTxAmount (#204) is not in mixedCase
Variable MetaGreen._maxWalletSize (#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 (#140) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#141)
Prevent variables from having similar names.

Additional information: link

MetaGreen.slitherConstructorConstantVariables() (#185-591) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#191)
MetaGreen.slitherConstructorConstantVariables() (#185-591) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#192)
MetaGreen.slitherConstructorConstantVariables() (#185-591) uses literals with too many digits:
- _totalSupply = 100000000 * (10 ** _decimals) (#200)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

MetaGreen.tempLiqProviderFee (#235) is never used in MetaGreen (#185-591)
Remove unused state variables.

Additional information: link

MetaGreen.ethBridgeAndExchange (#247) should be constant
MetaGreen.sellLiquidityFee (#225) should be constant
MetaGreen.sellMarketingFee (#226) should be constant
MetaGreen.stakingWallet (#248) should be constant
MetaGreen.tempLiqProviderFee (#235) 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) (#92-94)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#99-101)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#120-124)
transferERC20(address,uint256) should be declared external:
- MetaGreen.transferERC20(address,uint256) (#579-582)
getCirculatingSupply() should be declared external:
- MetaGreen.getCirculatingSupply() (#584-586)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.


Number of Binance Smart Chain (BSC) token holders is low.


Token is deployed only at one blockchain


Token has only one trading pair


Unable to find PancakeSwap trading pair to compute liquidity.


Unable to find PancakeSwap trading pair to compute volume.


Unable to find PancakeSwap trading pair to compute number of swaps.


Unable to find Telegram and Twitter accounts


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

Price for MTG