The biggest difference between "Super Minesweeper" and Microsoft Minesweeper is that it empowers the game map to make a perfectly replicated decentralized + NFT + P2E + DeFi game for the vast number of cryptocurrency lovers and Minesweeper lovers. The game map that users play is not generated by the system, but a unique game map created by users, uploading the map parameters to the block chain to obtain NFT credentials, Minesweeper starts by referring to the NFT parameters on the chain to obtain the game map. At the same time, the user creates and generates the game map NFT can be stored and traded.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
SweepNFT.rand(uint256) (SweepNFT.sol#200-203) uses a weak PRNG: "random % (uint256(4123456).add(len)) (SweepNFT.sol#202)"
Do not use block.timestamp, now or blockhash as a source of randomness
Additional information: link
SweepNFT.createNft(uint256,uint256,uint256,uint256[],address,uint256) (SweepNFT.sol#120-193) ignores return value by _Token.transferFrom(msg.sender,idea_address,fee_) (SweepNFT.sol#182)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
SweepNFT.createNft(uint256,uint256,uint256,uint256[],address,uint256) (SweepNFT.sol#120-193) uses a dangerous strict equality:
- lucky == 0 (SweepNFT.sol#175)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
SweepNFT.createNft(uint256,uint256,uint256,uint256[],address,uint256) (SweepNFT.sol#120-193) contains a tautology or contradiction:
- points_[i] >= w_h || points_[i] < 0 (SweepNFT.sol#153)
Fix the incorrect comparison by changing the value type or the comparison.
Additional information: link
Reentrancy in SweepCoinEcologyPool.withdraw() (SweepCoinEcologyPool.sol#231-241):
External calls:
- _Token.transfer(msg.sender,value) (SweepCoinEcologyPool.sol#236)
State variables written after the call(s):
- unwithdrawList[msg.sender] = 0 (SweepCoinEcologyPool.sol#238)
Apply the check-effects-interactions pattern.
Additional information: link
SweepCoinMiningPool.canWithdrawalAmount(uint256) (SweepCoinMiningPool.sol#270-287) performs a multiplication on the result of a division:
-_accTokenPerShare = total.div(lpSupply) (SweepCoinMiningPool.sol#280)
-amount = mining.lp.mul(_accTokenPerShare).div(1000).sub(mining.rewardDebt) (SweepCoinMiningPool.sol#283)
Consider ordering multiplication before division.
Additional information: link
SweepNFT.createNft(uint256,uint256,uint256,uint256[],address,uint256) (SweepNFT.sol#120-193) ignores return value by _Token.burnToZero(msg.sender,coin) (SweepNFT.sol#185)
Ensure that all the return values of the function calls are used.
Additional information: link
SweepNFT.constructor(string,string,address)._symbol (SweepNFT.sol#56) shadows:
- ERC721._symbol (ERC721.sol#60) (state variable)
Rename the local variables that shadow another component.
Additional information: link
SweepNFT.setMineRatio(uint256,uint256) (SweepNFT.sol#79-82) should emit an event for:
- min_mine = min_mine_ (SweepNFT.sol#80)
- max_mine = max_mine_ (SweepNFT.sol#81)
Emit an event for critical parameter changes.
Additional information: link
SweepNFT.setCoinEcologyPool(address).pool_address (SweepNFT.sol#63) lacks a zero-check on :
- ecologyPoolAddress = pool_address (SweepNFT.sol#65)
Check that the address is not zero.
Additional information: link
Variable 'ERC721._checkOnERC721Received(address,address,uint256,bytes).reason (ERC721.sol#460)' in ERC721._checkOnERC721Received(address,address,uint256,bytes) (ERC721.sol#451-472) potentially used before declaration: revert(uint256,uint256)(32 + reason,mload(uint256)(reason)) (ERC721.sol#465)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in SweepCoinEcologyPool.withdraw() (SweepCoinEcologyPool.sol#231-241):
External calls:
- _Token.transfer(msg.sender,value) (SweepCoinEcologyPool.sol#236)
State variables written after the call(s):
- totalUnWithdraw = totalUnWithdraw.sub(value) (SweepCoinEcologyPool.sol#240)
- totalWithdraw = totalWithdraw.add(value) (SweepCoinEcologyPool.sol#239)
- withdrawList[msg.sender] = withdrawList[msg.sender].add(value) (SweepCoinEcologyPool.sol#237)
Apply the check-effects-interactions pattern.
Additional information: link
SweepNFT.createNft(uint256,uint256,uint256,uint256[],address,uint256) (SweepNFT.sol#120-193) uses timestamp for comparisons
Dangerous comparisons:
- lucky == 0 (SweepNFT.sol#175)
- lucky > 5 (SweepNFT.sol#176)
Avoid relying on block.timestamp.
Additional information: link
ERC721._checkOnERC721Received(address,address,uint256,bytes) (ERC721.sol#451-472) uses assembly
- INLINE ASM (ERC721.sol#464-466)
Do not use evm assembly.
Additional information: link
SweepCoinMiningPool.increasePledge(uint256,uint256) (SweepCoinMiningPool.sol#104-169) compares to a boolean constant:
-require(bool,string)(isStart == true,The ore pool is not opened) (SweepCoinMiningPool.sol#106)
Remove the equality to the boolean constant.
Additional information: link
Different versions of Solidity is used:
- Version used: ['^0.8.0', '^0.8.1']
- ^0.8.1 (Address.sol#2)
- ^0.8.1 (Context.sol#3)
- ^0.8.0 (ERC165.sol#3)
- ^0.8.0 (ERC721.sol#3)
- ^0.8.1 (ERC721Enumerable.sol#2)
- ^0.8.0 (IERC165.sol#2)
- ^0.8.0 (IERC721.sol#3)
- ^0.8.1 (IERC721Enumerable.sol#3)
- ^0.8.1 (Ownable.sol#3)
- ^0.8.1 (SafeMath.sol#2)
- ^0.8.0 (Strings.sol#3)
- ^0.8.1 (SweepCoin.sol#2)
- ^0.8.1 (SweepCoinAirdrop.sol#2)
- ^0.8.1 (SweepCoinEcologyPool.sol#2)
- ^0.8.1 (SweepCoinMiningPool.sol#2)
- ^0.8.1 (SweepNFT.sol#3)
Use one Solidity version.
Additional information: link
SweepNFT._setTokenURI(uint256,string) (SweepNFT.sol#92-95) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.9 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.sendValue(address,uint256) (Address.sol#12-16):
- (success) = recipient.call{value: amount}() (Address.sol#14)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable SweepNFT.max_mine (SweepNFT.sol#49) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (Context.sol#11)" inContext (Context.sol#5-14)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable SweepCoin._totalSupply (SweepCoin.sol#30) is too similar to SweepCoin.constructor(uint256,string,uint256,string).totalSupply_ (SweepCoin.sol#40)
Prevent variables from having similar names.
Additional information: link
getTokenData(uint256) should be declared external:
- SweepNFT.getTokenData(uint256) (SweepNFT.sol#196-198)
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
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
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
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
Young tokens have high risks of scam / price dump / death
Token has no active CoinMarketCap listing / rank
Token has relatively low CoinGecko rank
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