Underminegold is a popular gamefi project integrating NFT + Defi. In the game, participants buy interesting blind boxes to produce miner NFT and mining tool NFT, enter the unlocked mine hole, and conduct mining full of randomness and interest.
NFT + DeFi = GameFi
GameFi refers to presenting financial products in the form of games and gaming the rules of Defi, such as using NFT equipment to improve revenue and introducing battle mode. Compared with traditional mobile mining, gamefi project has stronger interaction with users and higher interest. In the UnderMineGold game, investors can buy interesting blind boxes to obtain miners and miners' props with rich attributes. These NFTs can be used as investors' collections, exchanged in the NFT market, and can also be used in the cave mining game. The better the properties of props will bring greater benefits to investors' mining.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Contract creator or owner is blacklisted for past scams
Contract locking ether found:
Contract UnderMineGold (UnderMineGold.sol#14-235) has payable functions:
- UnderMineGold.receive() (UnderMineGold.sol#234)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
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.
UnderMineGold.antiBot(uint256) (UnderMineGold.sol#132-139) should emit an event for:
- antiBotAmount = amount (UnderMineGold.sol#136)
Emit an event for critical parameter changes.
Additional information: link
UnderMineGold._transfer(address,address,uint256) (UnderMineGold.sol#201-231) performs a multiplication on the result of a division:
-_fee = amount.mul(transferFeeRate).div(100) (UnderMineGold.sol#224)
-super._transfer(address(this),addressForMarketing,_fee.mul(marketingDivisor).div(100)) (UnderMineGold.sol#226)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in UnderMineGold.swapTokensForEth(uint256) (UnderMineGold.sol#148-166):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,addressForMarketing,block.timestamp) (UnderMineGold.sol#157-163)
State variables written after the call(s):
- tokensForMarketing = tokensForMarketing.sub(tokenAmount) (UnderMineGold.sol#165)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in UnderMineGold.constructor() (UnderMineGold.sol#51-64):
External calls:
- uniswapV2Pair = _uniswapV2Factory.createPair(address(this),_uniswapV2Router.WETH()) (UnderMineGold.sol#60)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#312)
- _approve(address(this),address(uniswapV2Router),~ uint256(0)) (UnderMineGold.sol#63)
Apply the check-effects-interactions pattern.
Additional information: link
UnderMineGold._transfer(address,address,uint256) (UnderMineGold.sol#201-231) uses timestamp for comparisons
Dangerous comparisons:
- botAddresses[sender] && amount > antiBotAmount && antiBotTime > block.timestamp (UnderMineGold.sol#207-209)
Avoid relying on block.timestamp.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.5.0', '>=0.6.2', '^0.8.0', '^0.8.2']
- ^0.8.0 (Context.sol#3)
- ^0.8.0 (ERC20.sol#3)
- ^0.8.0 (ERC20Burnable.sol#3)
- ^0.8.0 (IERC20.sol#3)
- ^0.8.0 (IERC20Metadata.sol#3)
- >=0.5.0 (IUniswapV2Factory.sol#3)
- >=0.6.2 (IUniswapV2Router01.sol#3)
- >=0.6.2 (IUniswapV2Router02.sol#3)
- ^0.8.2 (ManagerInterface.sol#3)
- ^0.8.0 (Ownable.sol#3)
- ^0.8.0 (SafeMath.sol#3)
- ^0.8.2 (UnderMineGold.sol#3)
Use one Solidity version.
Additional information: link
SafeMath.trySub(uint256,uint256) (SafeMath.sol#34-39) is never used and should be removed
Remove unused functions.
Additional information: link
UnderMineGold.tokensForAirdrop (UnderMineGold.sol#34) is set pre-construction with a non-constant function or state variable:
- MAX_TOKENS_FOR_AIRDROP
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
solc-0.8.4 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
Variable UnderMineGold.MAX_TOKENS_FOR_AIRDROP (UnderMineGold.sol#20) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (IUniswapV2Router01.sol#12) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (IUniswapV2Router01.sol#13)
Prevent variables from having similar names.
Additional information: link
UnderMineGold.slitherConstructorVariables() (UnderMineGold.sol#14-235) uses literals with too many digits:
- MAX_TOKENS_FOR_AIRDROP = 20000000 * 10 ** 9 (UnderMineGold.sol#20)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
UnderMineGold.sellFeeRate (UnderMineGold.sol#43) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
includeInFee(address) should be declared external:
- UnderMineGold.includeInFee(address) (UnderMineGold.sol#188-190)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
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 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 Telegram link on the website
Unable to find Twitter link on the website
Unable to find token on CoinHunt
Additional information: link
Token is marked as scam (rug pull, honeypot, phishing, etc.)
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 price dump / death
Token has relatively low CoinGecko 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