MetaGameSpace is a tech brand developing its own Gaming Metaverse. Heavy developments have been done in this field and our first game “Genesys”, an open world action RPG P2E (Play To Earn BNB) game is already developed and going live before the launch.We, at MetaGameSpace believe in constant and rapid developments and there are 5+ games in this segment each one going live inside our Metaverse after “Genesys”.
MetaGameSpace.contractSwap(uint256) (#625-667) sends eth to arbitrary user
Dangerous calls:
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
- _taxWallets.development.transfer((amountBNB * _ratios.development) / (_ratios.total - _ratios.liquidity)) (#664)
- _taxWallets.marketing.transfer(address(this).balance) (#665)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MetaGameSpace._transfer(address,address,uint256) (#577-613):
External calls:
- contractSwap(contractTokenBalance) (#607)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(toSwapForEth,0,path,address(this),block.timestamp) (#641-647)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
External calls sending eth:
- contractSwap(contractTokenBalance) (#607)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
- _taxWallets.development.transfer((amountBNB * _ratios.development) / (_ratios.total - _ratios.liquidity)) (#664)
- _taxWallets.marketing.transfer(address(this).balance) (#665)
State variables written after the call(s):
- _finalizeTransfer(from,to,amount,takeFee) (#612)
- _tOwned[from] -= amount (#730)
- _tOwned[to] += amountReceived (#732)
- _tOwned[address(this)] += feeAmount (#723)
- lastSwap = block.timestamp (#608)
Reentrancy in MetaGameSpace.transferOwner(address) (#350-363):
External calls:
- _transfer(_owner,newOwner,balanceOf(_owner)) (#357)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(toSwapForEth,0,path,address(this),block.timestamp) (#641-647)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
External calls sending eth:
- _transfer(_owner,newOwner,balanceOf(_owner)) (#357)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
- _taxWallets.development.transfer((amountBNB * _ratios.development) / (_ratios.total - _ratios.liquidity)) (#664)
- _taxWallets.marketing.transfer(address(this).balance) (#665)
State variables written after the call(s):
- _owner = newOwner (#360)
Apply the check-effects-interactions pattern.
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.
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.
Context._msgData() (#31-34) is never used and should be removed
MetaGameSpace._checkLiquidityAdd(address,address) (#669-680) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version>=0.6.0<0.9.0 (#2) is too complex
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
Reentrancy in MetaGameSpace.enableTrading() (#682-689):
External calls:
- antiSnipe.setLaunch(lpPair,uint32(block.number),uint64(block.timestamp),_decimals) (#687)
State variables written after the call(s):
- tradingEnabled = true (#688)
Apply the check-effects-interactions pattern.
Additional information: link
MetaGameSpace.contractSwap(uint256) (#625-667) ignores return value by dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
Ensure that all the return values of the function calls are used.
Additional information: link
MetaGameSpace.setMaxTxPercent(uint256) (#515-518) should emit an event for:
- _maxTxAmountPercent = percent (#517)
MetaGameSpace.setMaxWalletSize(uint256) (#520-523) should emit an event for:
- _maxWalletSizePercent = percent (#522)
MetaGameSpace.setSwapSettings(uint256,uint256,uint256,uint256,uint256) (#533-537) should emit an event for:
- swapThreshold = (_tTotal * thresholdPercent) / thresholdDivisor (#534)
- swapAmount = (_tTotal * amountPercent) / amountDivisor (#535)
- swapInterval = intervalInSeconds (#536)
Emit an event for critical parameter changes.
Additional information: link
MetaGameSpace.changeRouterContingency(address).router (#450) lacks a zero-check on :
- currentRouter = router (#452)
Check that the address is not zero.
Additional information: link
MetaGameSpace.contractSwap(uint256) (#625-667) has external calls inside a loop: path[1] = dexRouter.WETH() (#639)
MetaGameSpace.contractSwap(uint256) (#625-667) has external calls inside a loop: dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(toSwapForEth,0,path,address(this),block.timestamp) (#641-647)
MetaGameSpace.contractSwap(uint256) (#625-667) has external calls inside a loop: dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
MetaGameSpace.contractSwap(uint256) (#625-667) has external calls inside a loop: _taxWallets.development.transfer((amountBNB * _ratios.development) / (_ratios.total - _ratios.liquidity)) (#664)
MetaGameSpace.contractSwap(uint256) (#625-667) has external calls inside a loop: _taxWallets.marketing.transfer(address(this).balance) (#665)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in MetaGameSpace.constructor() (#305-337):
External calls:
- lpPair = IFactoryV2(dexRouter.factory()).createPair(dexRouter.WETH(),address(this)) (#323)
State variables written after the call(s):
- _approve(msg.sender,currentRouter,type()(uint256).max) (#326)
- _allowances[sender][spender] = amount (#396)
- _approve(address(this),currentRouter,type()(uint256).max) (#327)
- _allowances[sender][spender] = amount (#396)
- _isExcluded[lpPair] = true (#334)
- _isExcludedFromFees[owner()] = true (#329)
- _isExcludedFromFees[address(this)] = true (#330)
- _isExcludedFromFees[DEAD] = true (#331)
- _liquidityHolders[owner()] = true (#332)
- lpPairs[lpPair] = true (#324)
Reentrancy in MetaGameSpace.setNewRouter(address) (#423-434):
External calls:
- lpPair = IFactoryV2(_newRouter.factory()).createPair(address(this),_newRouter.WETH()) (#427)
State variables written after the call(s):
- _approve(address(this),address(dexRouter),type()(uint256).max) (#433)
- _allowances[sender][spender] = amount (#396)
- dexRouter = _newRouter (#432)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MetaGameSpace._transfer(address,address,uint256) (#577-613):
External calls:
- contractSwap(contractTokenBalance) (#607)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(toSwapForEth,0,path,address(this),block.timestamp) (#641-647)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
External calls sending eth:
- contractSwap(contractTokenBalance) (#607)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
- _taxWallets.development.transfer((amountBNB * _ratios.development) / (_ratios.total - _ratios.liquidity)) (#664)
- _taxWallets.marketing.transfer(address(this).balance) (#665)
Event emitted after the call(s):
- Transfer(from,to,amountReceived) (#734)
- _finalizeTransfer(from,to,amount,takeFee) (#612)
- Transfer(from,address(this),feeAmount) (#724)
- _finalizeTransfer(from,to,amount,takeFee) (#612)
Reentrancy in MetaGameSpace.constructor() (#305-337):
External calls:
- lpPair = IFactoryV2(dexRouter.factory()).createPair(dexRouter.WETH(),address(this)) (#323)
Event emitted after the call(s):
- Approval(sender,spender,amount) (#397)
- _approve(address(this),currentRouter,type()(uint256).max) (#327)
- Approval(sender,spender,amount) (#397)
- _approve(msg.sender,currentRouter,type()(uint256).max) (#326)
- Transfer(address(0),_msgSender(),_tTotal) (#336)
Reentrancy in MetaGameSpace.contractSwap(uint256) (#625-667):
External calls:
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(toSwapForEth,0,path,address(this),block.timestamp) (#641-647)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
External calls sending eth:
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
Event emitted after the call(s):
- SwapAndLiquify(toLiquify,liquidityBalance,toLiquify) (#660)
Reentrancy in MetaGameSpace.setNewRouter(address) (#423-434):
External calls:
- lpPair = IFactoryV2(_newRouter.factory()).createPair(address(this),_newRouter.WETH()) (#427)
Event emitted after the call(s):
- Approval(sender,spender,amount) (#397)
- _approve(address(this),address(dexRouter),type()(uint256).max) (#433)
Reentrancy in MetaGameSpace.transferOwner(address) (#350-363):
External calls:
- _transfer(_owner,newOwner,balanceOf(_owner)) (#357)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(toSwapForEth,0,path,address(this),block.timestamp) (#641-647)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
External calls sending eth:
- _transfer(_owner,newOwner,balanceOf(_owner)) (#357)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
- _taxWallets.development.transfer((amountBNB * _ratios.development) / (_ratios.total - _ratios.liquidity)) (#664)
- _taxWallets.marketing.transfer(address(this).balance) (#665)
Event emitted after the call(s):
- OwnershipTransferred(_owner,newOwner) (#361)
Apply the check-effects-interactions pattern.
Additional information: link
MetaGameSpace.setLpPair(address,bool) (#436-448) uses timestamp for comparisons
Dangerous comparisons:
- timeSinceLastPair != 0 (#441)
- require(bool,string)(block.timestamp - timeSinceLastPair > 259200,3 Day cooldown.!) (#442)
MetaGameSpace._transfer(address,address,uint256) (#577-613) uses timestamp for comparisons
Dangerous comparisons:
- contractTokenBalance >= swapThreshold && lastSwap + swapInterval < block.timestamp (#605)
Avoid relying on block.timestamp.
Additional information: link
MetaGameSpace.setLpPair(address,bool) (#436-448) compares to a boolean constant:
-enabled == false (#437)
Remove the equality to the boolean constant.
Additional information: link
MetaGameSpace.lockTheSwap() (#294-298) has costly operations inside a loop:
- inSwap = true (#295)
MetaGameSpace.lockTheSwap() (#294-298) has costly operations inside a loop:
- inSwap = false (#297)
MetaGameSpace._transfer(address,address,uint256) (#577-613) has costly operations inside a loop:
- lastSwap = block.timestamp (#608)
Use a local variable to hold the loop computation result.
Additional information: link
MetaGameSpace._tTotal (#211) is set pre-construction with a non-constant function or state variable:
- startingSupply * 10 ** _decimals
MetaGameSpace.swapThreshold (#277) is set pre-construction with a non-constant function or state variable:
- (_tTotal * 5) / 10000
MetaGameSpace.swapAmount (#278) is set pre-construction with a non-constant function or state variable:
- (_tTotal * 10) / 10000
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
Function IRouter01.WETH() (#141) is not in mixedCase
Parameter MetaGameSpace.setProtectionSettings(bool,bool,bool,bool)._antiSnipe (#489) is not in mixedCase
Parameter MetaGameSpace.setProtectionSettings(bool,bool,bool,bool)._antiGas (#489) is not in mixedCase
Parameter MetaGameSpace.setProtectionSettings(bool,bool,bool,bool)._antiBlock (#489) is not in mixedCase
Parameter MetaGameSpace.setProtectionSettings(bool,bool,bool,bool)._algo (#489) is not in mixedCase
Parameter MetaGameSpace.setContractSwapEnabled(bool)._enabled (#545) is not in mixedCase
Function MetaGameSpace.a_checkCBalance() (#619-623) is not in mixedCase
Constant MetaGameSpace._name (#207) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MetaGameSpace._symbol (#208) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MetaGameSpace._taxRates (#233-237) is not in mixedCase
Variable MetaGameSpace._ratios (#239-244) is not in mixedCase
Variable MetaGameSpace._taxWallets (#265-269) is not in mixedCase
Variable MetaGameSpace._hasLiqBeenAdded (#283) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#32)" inContext (#26-35)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in MetaGameSpace._transfer(address,address,uint256) (#577-613):
External calls:
- contractSwap(contractTokenBalance) (#607)
- _taxWallets.development.transfer((amountBNB * _ratios.development) / (_ratios.total - _ratios.liquidity)) (#664)
- _taxWallets.marketing.transfer(address(this).balance) (#665)
External calls sending eth:
- contractSwap(contractTokenBalance) (#607)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
- _taxWallets.development.transfer((amountBNB * _ratios.development) / (_ratios.total - _ratios.liquidity)) (#664)
- _taxWallets.marketing.transfer(address(this).balance) (#665)
State variables written after the call(s):
- _finalizeTransfer(from,to,amount,takeFee) (#612)
- _tOwned[from] -= amount (#730)
- _tOwned[to] += amountReceived (#732)
- _tOwned[address(this)] += feeAmount (#723)
- lastSwap = block.timestamp (#608)
Event emitted after the call(s):
- Transfer(from,to,amountReceived) (#734)
- _finalizeTransfer(from,to,amount,takeFee) (#612)
- Transfer(from,address(this),feeAmount) (#724)
- _finalizeTransfer(from,to,amount,takeFee) (#612)
Reentrancy in MetaGameSpace.transferOwner(address) (#350-363):
External calls:
- _transfer(_owner,newOwner,balanceOf(_owner)) (#357)
- _taxWallets.development.transfer((amountBNB * _ratios.development) / (_ratios.total - _ratios.liquidity)) (#664)
- _taxWallets.marketing.transfer(address(this).balance) (#665)
External calls sending eth:
- _transfer(_owner,newOwner,balanceOf(_owner)) (#357)
- dexRouter.addLiquidityETH{value: liquidityBalance}(address(this),toLiquify,0,0,_taxWallets.liquidity,block.timestamp) (#652-659)
- _taxWallets.development.transfer((amountBNB * _ratios.development) / (_ratios.total - _ratios.liquidity)) (#664)
- _taxWallets.marketing.transfer(address(this).balance) (#665)
State variables written after the call(s):
- _owner = newOwner (#360)
Event emitted after the call(s):
- OwnershipTransferred(_owner,newOwner) (#361)
Apply the check-effects-interactions pattern.
Additional information: link
MetaGameSpace.slitherConstructorConstantVariables() (#186-739) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#257)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
MetaGameSpace._excluded (#199) is never used in MetaGameSpace (#186-739)
Remove unused state variables.
Additional information: link
MetaGameSpace._decimals (#209) should be constant
MetaGameSpace.allowedPresaleExclusion (#202) should be constant
MetaGameSpace.startingSupply (#205) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- MetaGameSpace.renounceOwnership() (#365-369)
transfer(address,uint256) should be declared external:
- MetaGameSpace.transfer(address,uint256) (#382-385)
approve(address,uint256) should be declared external:
- MetaGameSpace.approve(address,uint256) (#387-390)
approveContractContingency() should be declared external:
- MetaGameSpace.approveContractContingency() (#400-403)
increaseAllowance(address,uint256) should be declared external:
- MetaGameSpace.increaseAllowance(address,uint256) (#413-416)
decreaseAllowance(address,uint256) should be declared external:
- MetaGameSpace.decreaseAllowance(address,uint256) (#418-421)
setNewRouter(address) should be declared external:
- MetaGameSpace.setNewRouter(address) (#423-434)
isExcludedFromFees(address) should be declared external:
- MetaGameSpace.isExcludedFromFees(address) (#459-461)
isBlacklisted(address) should be declared external:
- MetaGameSpace.isBlacklisted(address) (#477-479)
getSniperAmt() should be declared external:
- MetaGameSpace.getSniperAmt() (#481-483)
getMaxTX() should be declared external:
- MetaGameSpace.getMaxTX() (#525-527)
getMaxWallet() should be declared external:
- MetaGameSpace.getMaxWallet() (#529-531)
setContractSwapEnabled(bool) should be declared external:
- MetaGameSpace.setContractSwapEnabled(bool) (#545-548)
cTokens(address,uint256) should be declared external:
- MetaGameSpace.cTokens(address,uint256) (#614-618)
a_checkCBalance() should be declared external:
- MetaGameSpace.a_checkCBalance() (#619-623)
enableTrading() should be declared external:
- MetaGameSpace.enableTrading() (#682-689)
Use the external attribute for functions never called from the contract.
Additional information: link
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Alexa traffic rank is relatively low
Additional information: link
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid
Unable to find Discord account