NFTMANIA IS AN NFT (non-fungible token) platform WITH A mission is to make people’s virtual assets real by helping digital creators to BENIFT FROM their works, by providing a trading platform powered by blockchain. NFTmania frees the full value of digital creation, turning them into real world asset.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
NFTMania.clearStuckBalance() (#337-340) sends eth to arbitrary user
Dangerous calls:
- (sent) = address(owner).call{value: (address(this).balance)}() (#338)
NFTMania.swapBack() (#385-429) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#412)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#413)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in NFTMania._transferFrom(address,address,uint256) (#297-328):
External calls:
- swapBack() (#318)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#396-402)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#412)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#413)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#419-426)
External calls sending eth:
- swapBack() (#318)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#412)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#413)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#419-426)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#321)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#324)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#323)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#363)
Apply the check-effects-interactions pattern.
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.
NFTMania.swapBack().tmpSuccess (#412) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#412)
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#413)
NFTMania.swapBack().tmpSuccess (#412) is written in both
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#413)
tmpSuccess = false (#416)
Fix or remove the writes.
Additional information: link
Contract ticker ($MANIA) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
NFTMania.slitherConstructorVariables() (#182-502) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#185)
NFTMania.slitherConstructorVariables() (#182-502) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#186)
NFTMania.slitherConstructorVariables() (#182-502) uses literals with too many digits:
- _totalSupply = 1000000000000 * (10 ** _decimals) (#195)
NFTMania.slitherConstructorVariables() (#182-502) uses literals with too many digits:
- _maxTxAmount = 10000000000 * (10 ** _decimals) (#196)
NFTMania.slitherConstructorVariables() (#182-502) uses literals with too many digits:
- _maxWalletToken = 30000000000 * (10 ** _decimals) (#197)
NFTMania.slitherConstructorVariables() (#182-502) uses literals with too many digits:
- distributorGas = 500000 (#227)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
NFTMania.isDividendExempt (#205) is never used in NFTMania (#182-502)
NFTMania.distributorGas (#227) is never used in NFTMania (#182-502)
Remove unused state variables.
Additional information: link
authorize(address) should be declared external:
- Auth.authorize(address) (#52-54)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#59-61)
clearStuckBalance() should be declared external:
- NFTMania.clearStuckBalance() (#337-340)
cooldownEnabled(bool,uint8) should be declared external:
- NFTMania.cooldownEnabled(bool,uint8) (#378-381)
Use the external attribute for functions never called from the contract.
Additional information: link
NFTMania.takeFee(address,uint256,bool) (#354-367) performs a multiplication on the result of a division:
-feeAmount = amount.div(feeDenominator * 100).mul(totalFee).mul(multiplier) (#361)
Consider ordering multiplication before division.
Additional information: link
NFTMania.swapBack() (#385-429) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#419-426)
Ensure that all the return values of the function calls are used.
Additional information: link
NFTMania.set_sell_multiplier(uint256) (#342-344) should emit an event for:
- sellMultiplier = Multiplier (#343)
NFTMania.setTxLimit(uint256) (#432-434) should emit an event for:
- _maxTxAmount = amount (#433)
NFTMania.setFees(uint256,uint256,uint256,uint256) (#448-455) should emit an event for:
- liquidityFee = _liquidityFee (#449)
- marketingFee = _marketingFee (#450)
- devFee = _devFee (#451)
- totalFee = _liquidityFee.add(_marketingFee).add(_devFee) (#452)
- feeDenominator = _feeDenominator (#453)
NFTMania.setSwapBackSettings(bool,uint256) (#463-466) should emit an event for:
- swapThreshold = _amount (#465)
NFTMania.setTargetLiquidity(uint256,uint256) (#468-471) should emit an event for:
- targetLiquidity = _target (#469)
- targetLiquidityDenominator = _denominator (#470)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#80) lacks a zero-check on :
- owner = adr (#81)
NFTMania.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#457) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#458)
NFTMania.setFeeReceivers(address,address,address)._marketingFeeReceiver (#457) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#459)
NFTMania.setFeeReceivers(address,address,address)._devFeeReceiver (#457) lacks a zero-check on :
- devFeeReceiver = _devFeeReceiver (#460)
Check that the address is not zero.
Additional information: link
Reentrancy in NFTMania.constructor() (#240-258):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#242)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#243)
- _balances[msg.sender] = _totalSupply (#256)
- autoLiquidityReceiver = address(this) (#252)
- devFeeReceiver = DevWallet (#254)
- isFeeExempt[msg.sender] = true (#245)
- isTimelockExempt[msg.sender] = true (#248)
- isTimelockExempt[DEAD] = true (#249)
- isTimelockExempt[address(this)] = true (#250)
- isTxLimitExempt[msg.sender] = true (#246)
- marketingFeeReceiver = MarketingWallet (#253)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in NFTMania._transferFrom(address,address,uint256) (#297-328):
External calls:
- swapBack() (#318)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#396-402)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#412)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#413)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#419-426)
External calls sending eth:
- swapBack() (#318)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#412)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#413)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#419-426)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#364)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#323)
- Transfer(sender,recipient,amountReceived) (#326)
Reentrancy in NFTMania.constructor() (#240-258):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#242)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#257)
Reentrancy in NFTMania.swapBack() (#385-429):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#396-402)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#412)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#413)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#419-426)
External calls sending eth:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#412)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#413)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#419-426)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#427)
Apply the check-effects-interactions pattern.
Additional information: link
NFTMania._transferFrom(address,address,uint256) (#297-328) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for cooldown between buys) (#312)
Avoid relying on block.timestamp.
Additional information: link
NFTMania.totalFee (#210) is set pre-construction with a non-constant function or state variable:
- marketingFee + liquidityFee + devFee
NFTMania.swapThreshold (#234) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 500
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
Pragma version^0.7.4 (#3) allows old versions
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 NFTMania.clearStuckBalance() (#337-340):
- (sent) = address(owner).call{value: (address(this).balance)}() (#338)
Low level call in NFTMania.swapBack() (#385-429):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#412)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#413)
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() (#95) is not in mixedCase
Function NFTMania.set_sell_multiplier(uint256) (#342-344) is not in mixedCase
Parameter NFTMania.set_sell_multiplier(uint256).Multiplier (#342) is not in mixedCase
Parameter NFTMania.cooldownEnabled(bool,uint8)._status (#378) is not in mixedCase
Parameter NFTMania.cooldownEnabled(bool,uint8)._interval (#378) is not in mixedCase
Parameter NFTMania.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#448) is not in mixedCase
Parameter NFTMania.setFees(uint256,uint256,uint256,uint256)._marketingFee (#448) is not in mixedCase
Parameter NFTMania.setFees(uint256,uint256,uint256,uint256)._devFee (#448) is not in mixedCase
Parameter NFTMania.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#448) is not in mixedCase
Parameter NFTMania.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#457) is not in mixedCase
Parameter NFTMania.setFeeReceivers(address,address,address)._marketingFeeReceiver (#457) is not in mixedCase
Parameter NFTMania.setFeeReceivers(address,address,address)._devFeeReceiver (#457) is not in mixedCase
Parameter NFTMania.setSwapBackSettings(bool,uint256)._enabled (#463) is not in mixedCase
Parameter NFTMania.setSwapBackSettings(bool,uint256)._amount (#463) is not in mixedCase
Parameter NFTMania.setTargetLiquidity(uint256,uint256)._target (#468) is not in mixedCase
Parameter NFTMania.setTargetLiquidity(uint256,uint256)._denominator (#468) is not in mixedCase
Variable NFTMania.WBNB (#184) is not in mixedCase
Variable NFTMania.DEAD (#185) is not in mixedCase
Variable NFTMania.ZERO (#186) is not in mixedCase
Variable NFTMania.MarketingWallet (#188) is not in mixedCase
Variable NFTMania.DevWallet (#189) is not in mixedCase
Constant NFTMania._name (#191) is not in UPPER_CASE_WITH_UNDERSCORES
Constant NFTMania._symbol (#192) is not in UPPER_CASE_WITH_UNDERSCORES
Constant NFTMania._decimals (#193) is not in UPPER_CASE_WITH_UNDERSCORES
Variable NFTMania._totalSupply (#195) is not in mixedCase
Variable NFTMania._maxTxAmount (#196) is not in mixedCase
Variable NFTMania._maxWalletToken (#197) is not in mixedCase
Variable NFTMania._balances (#199) is not in mixedCase
Variable NFTMania._allowances (#200) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#100) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#101)
Prevent variables from having similar names.
Additional information: link
NFTMania.DEAD (#185) should be constant
NFTMania.DevWallet (#189) should be constant
NFTMania.MarketingWallet (#188) should be constant
NFTMania.WBNB (#184) should be constant
NFTMania.ZERO (#186) should be constant
NFTMania._totalSupply (#195) should be constant
NFTMania.distributorGas (#227) should be constant
NFTMania.tradingOpen (#225) should be constant
Add the constant attributes to state variables that never change.
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 token on CoinHunt
Additional information: link
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Twitter account has relatively few followers
Last post in Twitter was more than 30 days ago
Twitter account has few posts