NFT Game with mafagafos, for PC, android and ios, already in beta
Contract creator or owner is blacklisted for past scams
MafaCoin._addLiquidity(uint256,uint256) (contracts/Mafacoin.sol#176-187) sends eth to arbitrary user
Dangerous calls:
- dexRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#179-186)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MafaCoin._transfer(address,address,uint256) (contracts/Mafacoin.sol#189-263):
External calls:
- _swapAndLiquify(tokensToLiquidity) (contracts/Mafacoin.sol#249)
- dexRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#179-186)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#167-173)
External calls sending eth:
- _swapAndLiquify(tokensToLiquidity) (contracts/Mafacoin.sol#249)
- dexRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#179-186)
State variables written after the call(s):
- super._transfer(from,to,taxedAmount) (contracts/Mafacoin.sol#258)
- _balances[sender] = senderBalance - amount (@openzeppelin/contracts/token/ERC20/ERC20.sol#233)
- _balances[recipient] += amount (@openzeppelin/contracts/token/ERC20/ERC20.sol#235)
- swapping = false (contracts/Mafacoin.sol#261)
Apply the check-effects-interactions pattern.
Additional information: link
TimeLockedWallet.withdraw() (contracts/TimeLockedWallet.sol#35-41) ignores return value by token.transfer(toWallet,tokenBalance) (contracts/TimeLockedWallet.sol#39)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
MafaCoin.isBlacklisted (contracts/Mafacoin.sol#38) is never initialized. It is used in:
- MafaCoin._transfer(address,address,uint256) (contracts/Mafacoin.sol#189-263)
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
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.
Combination 2: Unchecked transfer + 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.
Contract locking ether found:
Contract TimeLockedWallet (contracts/TimeLockedWallet.sol#8-61) has payable functions:
- TimeLockedWallet.fallback() (contracts/TimeLockedWallet.sol#27-29)
- TimeLockedWallet.receive() (contracts/TimeLockedWallet.sol#31-33)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Context._msgData() (@openzeppelin/contracts/utils/Context.sol#20-22) is never used and should be removed
ERC20._burn(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#274-289) is never used and should be removed
Pausable._pause() (@openzeppelin/contracts/security/Pausable.sol#74-77) is never used and should be removed
Pausable._unpause() (@openzeppelin/contracts/security/Pausable.sol#86-89) is never used and should be removed
SafeMath.div(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#190-199) is never used and should be removed
SafeMath.mod(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#150-152) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#216-225) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#167-176) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#21-27) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#63-68) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#75-80) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#46-56) is never used and should be removed
SafeMath.trySub(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#34-39) is never used and should be removed
Remove unused functions.
Additional information: link
Function IUniswapV2Router01.WETH() (@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol#5) is not in mixedCase
Parameter MafaCoin.setTeamWallet(address)._newWallet (contracts/Mafacoin.sol#84) is not in mixedCase
Parameter MafaCoin.setLotteryWallet(address)._newWallet (contracts/Mafacoin.sol#89) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
MafaCoin.deadAddress (contracts/Mafacoin.sol#20) should be constant
MafaCoin.tSupply (contracts/Mafacoin.sol#34) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
MafaCoin._addLiquidity(uint256,uint256) (contracts/Mafacoin.sol#176-187) ignores return value by dexRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#179-186)
Ensure that all the return values of the function calls are used.
Additional information: link
MafaCoin.setLiquidyFee(uint256) (contracts/Mafacoin.sol#94-98) should emit an event for:
- liquidityFee = newFee (contracts/Mafacoin.sol#95)
MafaCoin.setBurnFee(uint256) (contracts/Mafacoin.sol#100-104) should emit an event for:
- burnFee = newFee (contracts/Mafacoin.sol#101)
MafaCoin.setTeamBuyFee(uint256) (contracts/Mafacoin.sol#106-109) should emit an event for:
- teamBuyFee = newFee (contracts/Mafacoin.sol#107)
MafaCoin.setTeamSellFee(uint256) (contracts/Mafacoin.sol#111-114) should emit an event for:
- teamSellFee = newFee (contracts/Mafacoin.sol#112)
MafaCoin.setLotteryFee(uint256) (contracts/Mafacoin.sol#116-119) should emit an event for:
- lotteryFee = newFee (contracts/Mafacoin.sol#117)
Emit an event for critical parameter changes.
Additional information: link
MafaCoin.setTeamWallet(address)._newWallet (contracts/Mafacoin.sol#84) lacks a zero-check on :
- teamWallet = _newWallet (contracts/Mafacoin.sol#86)
MafaCoin.setLotteryWallet(address)._newWallet (contracts/Mafacoin.sol#89) lacks a zero-check on :
- lotteryWallet = _newWallet (contracts/Mafacoin.sol#91)
MafaCoin.startLiquidity(address)._dexPair (contracts/Mafacoin.sol#134-137) lacks a zero-check on :
- dexPair = _dexPair (contracts/Mafacoin.sol#140)
TimeLockedWallet.constructor(address,address,uint256)._toWallet (contracts/TimeLockedWallet.sol#16) lacks a zero-check on :
- toWallet = _toWallet (contracts/TimeLockedWallet.sol#21)
TimeLockedWallet.constructor(address,address,uint256)._mafacoin (contracts/TimeLockedWallet.sol#17) lacks a zero-check on :
- mafacoin = _mafacoin (contracts/TimeLockedWallet.sol#22)
Check that the address is not zero.
Additional information: link
Reentrancy in MafaCoin._swapAndLiquify(uint256) (contracts/Mafacoin.sol#145-158):
External calls:
- _swapTokensForBNB(half) (contracts/Mafacoin.sol#151)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#167-173)
- _addLiquidity(otherHalf,newAmount) (contracts/Mafacoin.sol#155)
- dexRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#179-186)
External calls sending eth:
- _addLiquidity(otherHalf,newAmount) (contracts/Mafacoin.sol#155)
- dexRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#179-186)
State variables written after the call(s):
- _addLiquidity(otherHalf,newAmount) (contracts/Mafacoin.sol#155)
- _allowances[owner][spender] = amount (@openzeppelin/contracts/token/ERC20/ERC20.sol#312)
Reentrancy in MafaCoin.startLiquidity(address) (contracts/Mafacoin.sol#131-143):
External calls:
- _dexPair = IUniswapV2Factory(_dexRouter.factory()).createPair(address(this),_dexRouter.WETH()) (contracts/Mafacoin.sol#134-137)
State variables written after the call(s):
- _setAutomatedMarketMakerPair(_dexPair,true) (contracts/Mafacoin.sol#142)
- automatedMarketMakerPairs[pair] = value (contracts/Mafacoin.sol#70)
- dexPair = _dexPair (contracts/Mafacoin.sol#140)
- dexRouter = _dexRouter (contracts/Mafacoin.sol#139)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MafaCoin._swapAndLiquify(uint256) (contracts/Mafacoin.sol#145-158):
External calls:
- _swapTokensForBNB(half) (contracts/Mafacoin.sol#151)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#167-173)
- _addLiquidity(otherHalf,newAmount) (contracts/Mafacoin.sol#155)
- dexRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#179-186)
External calls sending eth:
- _addLiquidity(otherHalf,newAmount) (contracts/Mafacoin.sol#155)
- dexRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#179-186)
Event emitted after the call(s):
- Approval(owner,spender,amount) (@openzeppelin/contracts/token/ERC20/ERC20.sol#313)
- _addLiquidity(otherHalf,newAmount) (contracts/Mafacoin.sol#155)
- SwapAndLiquify(half,newAmount,otherHalf) (contracts/Mafacoin.sol#157)
Reentrancy in MafaCoin._transfer(address,address,uint256) (contracts/Mafacoin.sol#189-263):
External calls:
- _swapAndLiquify(tokensToLiquidity) (contracts/Mafacoin.sol#249)
- dexRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#179-186)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#167-173)
External calls sending eth:
- _swapAndLiquify(tokensToLiquidity) (contracts/Mafacoin.sol#249)
- dexRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (contracts/Mafacoin.sol#179-186)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (@openzeppelin/contracts/token/ERC20/ERC20.sol#237)
- super._transfer(from,to,taxedAmount) (contracts/Mafacoin.sol#258)
Reentrancy in MafaCoin.startLiquidity(address) (contracts/Mafacoin.sol#131-143):
External calls:
- _dexPair = IUniswapV2Factory(_dexRouter.factory()).createPair(address(this),_dexRouter.WETH()) (contracts/Mafacoin.sol#134-137)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (contracts/Mafacoin.sol#72)
- _setAutomatedMarketMakerPair(_dexPair,true) (contracts/Mafacoin.sol#142)
Reentrancy in TimeLockedWallet.withdraw() (contracts/TimeLockedWallet.sol#35-41):
External calls:
- token.transfer(toWallet,tokenBalance) (contracts/TimeLockedWallet.sol#39)
Event emitted after the call(s):
- Withdrew(mafacoin,msg.sender,tokenBalance) (contracts/TimeLockedWallet.sol#40)
Apply the check-effects-interactions pattern.
Additional information: link
TimeLockedWallet.withdraw() (contracts/TimeLockedWallet.sol#35-41) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp >= unlockDate,Cannot unlock tokens yet!) (contracts/TimeLockedWallet.sol#36)
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.9']
- ^0.8.0 (@openzeppelin/contracts/access/Ownable.sol#3)
- ^0.8.0 (@openzeppelin/contracts/security/Pausable.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/ERC20.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/Context.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/math/SafeMath.sol#3)
- >=0.5.0 (@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol#1)
- >=0.6.2 (@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol#1)
- >=0.6.2 (@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol#1)
- ^0.8.9 (contracts/Mafacoin.sol#3)
- ^0.8.9 (contracts/TimeLockedWallet.sol#3)
Use one Solidity version.
Additional information: link
Pragma version^0.8.0 (@openzeppelin/contracts/access/Ownable.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/security/Pausable.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/ERC20.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/Context.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/math/SafeMath.sol#3) allows old versions
Pragma version>=0.5.0 (@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol#1) allows old versions
Pragma version>=0.6.2 (@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol#1) allows old versions
Pragma version>=0.6.2 (@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol#1) allows old versions
Pragma version^0.8.9 (contracts/Mafacoin.sol#3) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version^0.8.9 (contracts/TimeLockedWallet.sol#3) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
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
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol#10) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol#11)
Prevent variables from having similar names.
Additional information: link
MafaCoin.slitherConstructorVariables() (contracts/Mafacoin.sol#11-273) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (contracts/Mafacoin.sol#20)
MafaCoin.slitherConstructorVariables() (contracts/Mafacoin.sol#11-273) uses literals with too many digits:
- tSupply = 1000000000 * (10 ** 18) (contracts/Mafacoin.sol#34)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (@openzeppelin/contracts/access/Ownable.sol#53-55)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (@openzeppelin/contracts/access/Ownable.sol#61-64)
name() should be declared external:
- ERC20.name() (@openzeppelin/contracts/token/ERC20/ERC20.sol#61-63)
symbol() should be declared external:
- ERC20.symbol() (@openzeppelin/contracts/token/ERC20/ERC20.sol#69-71)
decimals() should be declared external:
- ERC20.decimals() (@openzeppelin/contracts/token/ERC20/ERC20.sol#86-88)
totalSupply() should be declared external:
- ERC20.totalSupply() (@openzeppelin/contracts/token/ERC20/ERC20.sol#93-95)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#112-115)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (@openzeppelin/contracts/token/ERC20/ERC20.sol#120-122)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#131-134)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#149-163)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#177-180)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#196-204)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- MafaCoin.setAutomatedMarketMakerPair(address,bool) (contracts/Mafacoin.sol#57-64)
withdraw() should be declared external:
- TimeLockedWallet.withdraw() (contracts/TimeLockedWallet.sol#35-41)
info() should be declared external:
- TimeLockedWallet.info() (contracts/TimeLockedWallet.sol#43-57)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Contract has 1% buy tax and 21% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.
Token is deployed only at one blockchain
Unable to find whitepaper 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 price dump / death
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
Last post in Twitter was more than 30 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account