Monster Grand Prix is an AI based NFT Racing Play to Earn Game where players acquire monsters and tamers to race in the Grand Prix where the higher the rankings, the higher the prize.
The game employs an offchain server where we do not require gas fees to play the game. In addition, we have onboarded inspex (Alpaca's Finance Auditor) to audit or smart contract.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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.
MGPX.updateWhaletax(uint256) (#1428-1430) should emit an event for:
- whaletax = _whaletax (#1429)
Emit an event for critical parameter changes.
Additional information: link
MGPX.setTaxAddress(address)._taxAddress (#1410) lacks a zero-check on :
- taxAddress = _taxAddress (#1411)
Check that the address is not zero.
Additional information: link
Reentrancy in MGPX.constructor() (#1384-1400):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1390)
State variables written after the call(s):
- super._approve(address(this),address(uniswapV2Router),~ uint256(0)) (#1393)
- _allowances[owner][spender] = amount (#1304)
- super._mint(_msgSender(),maxSupply) (#1394)
- _balances[account] += amount (#1249)
- super.transfer(marketingAddress,maxSupply.mul(20).div(100)) (#1396)
- _balances[sender] = senderBalance - amount (#1225)
- _balances[recipient] += amount (#1227)
- super.transfer(rewardAddress,maxSupply.mul(40).div(100)) (#1397)
- _balances[sender] = senderBalance - amount (#1225)
- _balances[recipient] += amount (#1227)
- super.transfer(devAddress,maxSupply.mul(10).div(100)) (#1398)
- _balances[sender] = senderBalance - amount (#1225)
- _balances[recipient] += amount (#1227)
- super.transfer(reserveAddress,maxSupply.mul(10).div(100)) (#1399)
- _balances[sender] = senderBalance - amount (#1225)
- _balances[recipient] += amount (#1227)
- super._mint(_msgSender(),maxSupply) (#1394)
- _totalSupply += amount (#1248)
- uniswapV2Router = _uniswapV2Router (#1392)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MGPX.constructor() (#1384-1400):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1390)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1305)
- super._approve(address(this),address(uniswapV2Router),~ uint256(0)) (#1393)
- Transfer(address(0),account,amount) (#1250)
- super._mint(_msgSender(),maxSupply) (#1394)
- Transfer(sender,recipient,amount) (#1229)
- super.transfer(marketingAddress,maxSupply.mul(20).div(100)) (#1396)
- Transfer(sender,recipient,amount) (#1229)
- super.transfer(rewardAddress,maxSupply.mul(40).div(100)) (#1397)
- Transfer(sender,recipient,amount) (#1229)
- super.transfer(reserveAddress,maxSupply.mul(10).div(100)) (#1399)
- Transfer(sender,recipient,amount) (#1229)
- super.transfer(devAddress,maxSupply.mul(10).div(100)) (#1398)
Apply the check-effects-interactions pattern.
Additional information: link
Address.verifyCallResult(bool,bytes,string) (#198-218) uses assembly
- INLINE ASM (#210-213)
Do not use evm assembly.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.5.0', '>=0.6.2', '^0.8.0']
- ^0.8.0 (#6)
- >=0.6.2 (#223)
- >=0.6.2 (#321)
- >=0.5.0 (#367)
- >=0.5.0 (#422)
- ^0.8.0 (#445)
- ^0.8.0 (#675)
- ^0.8.0 (#702)
- ^0.8.0 (#780)
- ^0.8.0 (#865)
- ^0.8.0 (#966)
- ^0.8.0 (#996)
- ^0.8.0 (#1352)
Use one Solidity version.
Additional information: link
SafeMath.trySub(uint256,uint256) (#476-481) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.0 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 Address.functionDelegateCall(address,bytes,string) (#181-190):
- (success,returndata) = target.delegatecall(data) (#188)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter MGPX.updateWhaletax(uint256)._whaletax (#1428) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable MGPX._transfer(address,address,uint256)._fee_scope_0 (#1468) is too similar to MGPX._transfer(address,address,uint256)._fee_scope_1 (#1472)
Prevent variables from having similar names.
Additional information: link
MGPX.rewardAddress (#1376) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#1188-1196)
Use the external attribute for functions never called from the contract.
Additional information: link
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
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.
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
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find token contract audit
Unable to verify that token and website are owned by the same team (no listings + unable to find contract on website)
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
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