The world of the DeFiMon is more than just a single land filled with mysterious creatures. The DeFiMon can be collected and cared for much like pets. As you continue through each island of the continent you will face harder enemies, more challenging dojos and greater rewards, testing your abilities. You will collect essences, buy land, trade resources, NFTs and more! Battle your DeFiMon NFTs, breed your DeFiMon and watch them grow! In the DeFiMon world the possibilities are endless!
DefiMon.swapAndDistribute(uint256) (#951-956) sends eth to arbitrary user
Dangerous calls:
- feeCollector.call{value: address(this).balance}() (#955)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in DefiMon._transfer(address,address,uint256) (#909-928):
External calls:
- swapAndDistribute(balanceOf(address(this))) (#925)
- feeCollector.call{value: address(this).balance}() (#955)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#963-969)
External calls sending eth:
- swapAndDistribute(balanceOf(address(this))) (#925)
- feeCollector.call{value: address(this).balance}() (#955)
State variables written after the call(s):
- super._transfer(from,to,amount) (#927)
- _balances[from] = fromBalance - amount (#679)
- _balances[to] += amount (#681)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
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.
DefiMon.swapBNBForTokens(uint256) (#930-937) ignores return value by feeCollector.call{value: fee}() (#933)
DefiMon.swapAndDistribute(uint256) (#951-956) ignores return value by feeCollector.call{value: address(this).balance}() (#955)
Ensure that the return value of a low-level call is checked or logged.
Additional information: link
DefiMon.setTransferFee(uint256) (#879-881) should emit an event for:
- transferFee = _transferFee (#880)
Emit an event for critical parameter changes.
Additional information: link
DefiMon.setFeeCollector(address)._feeCollector (#875) lacks a zero-check on :
- feeCollector = _feeCollector (#876)
Check that the address is not zero.
Additional information: link
Reentrancy in DefiMon.constructor() (#853-863):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#856)
State variables written after the call(s):
- _mint(owner(),200_000_000 * (10 ** 18)) (#862)
- _balances[account] += amount (#703)
- _mint(owner(),200_000_000 * (10 ** 18)) (#862)
- _totalSupply += amount (#702)
- ammPair[_uniswapV2Pair] = true (#860)
- excludedFromFee[owner()] = true (#859)
- uniswapV2Pair = _uniswapV2Pair (#858)
- uniswapV2Router = _uniswapV2Router (#857)
Reentrancy in DefiMon.swapAndDistribute(uint256) (#951-956):
External calls:
- swapTokensForBNB(tokenAmount) (#953)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#963-969)
State variables written after the call(s):
- removeFee = false (#954)
Reentrancy in DefiMon.swapBNBForTokens(uint256) (#930-937):
External calls:
- feeCollector.call{value: fee}() (#933)
State variables written after the call(s):
- removeFee = true (#934)
Reentrancy in DefiMon.swapBNBForTokens(uint256) (#930-937):
External calls:
- feeCollector.call{value: fee}() (#933)
- _swapBNBForTokens(remaining,minTokens,msg.sender) (#935)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(minTokens,path,_address,block.timestamp) (#943-948)
State variables written after the call(s):
- removeFee = false (#936)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in DefiMon._transfer(address,address,uint256) (#909-928):
External calls:
- swapAndDistribute(balanceOf(address(this))) (#925)
- feeCollector.call{value: address(this).balance}() (#955)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#963-969)
External calls sending eth:
- swapAndDistribute(balanceOf(address(this))) (#925)
- feeCollector.call{value: address(this).balance}() (#955)
Event emitted after the call(s):
- Transfer(from,to,amount) (#683)
- super._transfer(from,to,amount) (#927)
Reentrancy in DefiMon.constructor() (#853-863):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#856)
Event emitted after the call(s):
- Transfer(address(0),account,amount) (#704)
- _mint(owner(),200_000_000 * (10 ** 18)) (#862)
Apply the check-effects-interactions pattern.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.5.0', '>=0.6.2', '^0.8.0']
- >=0.6.2 (#3)
- >=0.6.2 (#101)
- >=0.5.0 (#147)
- >=0.5.0 (#167)
- ^0.8.0 (#225)
- ^0.8.0 (#252)
- ^0.8.0 (#330)
- ^0.8.0 (#415)
- ^0.8.0 (#445)
- ^0.8.0 (#828)
Use one Solidity version.
Additional information: link
Context._msgData() (#242-244) is never used and should be removed
ERC20._burn(address,uint256) (#720-735) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version>=0.6.2 (#3) allows old versions
Pragma version>=0.6.2 (#101) allows old versions
Pragma version>=0.5.0 (#147) allows old versions
Pragma version>=0.5.0 (#167) allows old versions
Pragma version^0.8.0 (#225) allows old versions
Pragma version^0.8.0 (#252) allows old versions
Pragma version^0.8.0 (#330) allows old versions
Pragma version^0.8.0 (#415) allows old versions
Pragma version^0.8.0 (#445) allows old versions
Pragma version^0.8.0 (#828) 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 DefiMon.swapBNBForTokens(uint256) (#930-937):
- feeCollector.call{value: fee}() (#933)
Low level call in DefiMon.swapAndDistribute(uint256) (#951-956):
- feeCollector.call{value: address(this).balance}() (#955)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Router01.WETH() (#7) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#184) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#185) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#202) is not in mixedCase
Parameter DefiMon.isBlacklisted(address)._address (#867) is not in mixedCase
Parameter DefiMon.isExcludedFromFee(address)._address (#871) is not in mixedCase
Parameter DefiMon.setFeeCollector(address)._feeCollector (#875) is not in mixedCase
Parameter DefiMon.setTransferFee(uint256)._transferFee (#879) is not in mixedCase
Parameter DefiMon.setDiscountedTransferFee(uint256)._discountedTransferFee (#883) is not in mixedCase
Parameter DefiMon.excludeFromFee(address,bool)._address (#887) is not in mixedCase
Parameter DefiMon.setAMMPair(address,bool)._address (#893) is not in mixedCase
Parameter DefiMon.setBlacklist(address,bool)._address (#899) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#12) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#13)
Prevent variables from having similar names.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#301-303)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#309-312)
name() should be declared external:
- ERC20.name() (#502-504)
symbol() should be declared external:
- ERC20.symbol() (#510-512)
decimals() should be declared external:
- ERC20.decimals() (#527-529)
totalSupply() should be declared external:
- ERC20.totalSupply() (#534-536)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#553-557)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#576-580)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#598-607)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#621-625)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#641-650)
isBlacklisted(address) should be declared external:
- DefiMon.isBlacklisted(address) (#867-869)
isExcludedFromFee(address) should be declared external:
- DefiMon.isExcludedFromFee(address) (#871-873)
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 verify that token and website are owned by the same team (no listings + unable to find contract on website)
Unable to find Telegram link on the website
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
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
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
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
Twitter account has relatively few followers