MetFX is the first watch -to- earn global platform that harnesses the power and the value of content. Full of all forms of content where audiences are allowed to earn profits with the watch-to-earn technology.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
MetFx.swapBack() (#412-455) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(treasuryFeeReceiver).call{gas: 30000,value: amountBNBTreasury}() (#439)
- (tmpSuccess,None) = address(developmentFeeReceiver).call{gas: 30000,value: amountBNBDevelopment}() (#440)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#445-452)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MetFx._transferFrom(address,address,uint256) (#303-334):
External calls:
- swapBack() (#324)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#423-429)
- (tmpSuccess) = address(treasuryFeeReceiver).call{gas: 30000,value: amountBNBTreasury}() (#439)
- (tmpSuccess,None) = address(developmentFeeReceiver).call{gas: 30000,value: amountBNBDevelopment}() (#440)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#445-452)
External calls sending eth:
- swapBack() (#324)
- (tmpSuccess) = address(treasuryFeeReceiver).call{gas: 30000,value: amountBNBTreasury}() (#439)
- (tmpSuccess,None) = address(developmentFeeReceiver).call{gas: 30000,value: amountBNBDevelopment}() (#440)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#445-452)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#327)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#330)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#329)
- _balances[address(this)] = _balances[address(this)].add(contractTokens) (#359)
- _balances[burnFeeReceiver] = _balances[burnFeeReceiver].add(burnTokens) (#360)
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.
Contract ownership is not renounced (belongs to a wallet)
MetFx.cooldownEnabled(bool,uint8) (#406-410) contains a tautology or contradiction:
- require(bool,string)(_interval < 601,Can't set cooldown interval to more than 10 minutes) (#407)
Fix the incorrect comparison by changing the value type or the comparison.
Additional information: link
MetFx.swapBack().tmpSuccess (#439) is written in both
(tmpSuccess) = address(treasuryFeeReceiver).call{gas: 30000,value: amountBNBTreasury}() (#439)
(tmpSuccess,None) = address(developmentFeeReceiver).call{gas: 30000,value: amountBNBDevelopment}() (#440)
MetFx.swapBack().tmpSuccess (#439) is written in both
(tmpSuccess,None) = address(developmentFeeReceiver).call{gas: 30000,value: amountBNBDevelopment}() (#440)
tmpSuccess = false (#442)
Fix or remove the writes.
Additional information: link
Contract name (METFX Watch-To-Earn) 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.
MetFx.setFees(uint256,uint256,uint256,uint256,uint256) (#469-477) should emit an event for:
- liquidityFee = _liquidityFee (#470)
- developmentFee = _developmentFee (#471)
- treasuryFee = _treasuryFee (#472)
- burnFee = _burnFee (#473)
- totalFee = _liquidityFee.add(_developmentFee).add(_treasuryFee).add(_burnFee) (#474)
- feeDenominator = _feeDenominator (#475)
MetFx.set_sell_multiplier(uint256) (#394-397) should emit an event for:
- sellMultiplier = Multiplier (#396)
MetFx.setSwapBackSettings(bool,uint256) (#486-489) should emit an event for:
- swapThreshold = _amount (#488)
MetFx.setTargetLiquidity(uint256,uint256) (#491-494) should emit an event for:
- targetLiquidity = _target (#492)
- targetLiquidityDenominator = _denominator (#493)
MetFx.setMaxTxPercent_base1000(uint256) (#293-296) should emit an event for:
- _maxTxAmount = (_totalSupply * maxTXPercentage_base1000) / 1000 (#295)
MetFx.setTxLimit(uint256) (#298-301) should emit an event for:
- _maxTxAmount = amount * 10 ** _decimals (#300)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#110) lacks a zero-check on :
- owner = adr (#111)
Check that the address is not zero.
Additional information: link
MetFx.setTxLimit(uint256) (#298-301) uses literals with too many digits:
- require(bool,string)(amount >= 10000000 * 10 ** _decimals,Can't set tx limit below 10M tokens) (#299)
MetFx.slitherConstructorVariables() (#175-530) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#180)
MetFx.slitherConstructorVariables() (#175-530) uses literals with too many digits:
- swapThreshold = _totalSupply * 5 / 1000000 (#227)
MetFx.slitherConstructorVariables() (#175-530) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#179)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
MetFx._totalSupply (#186) should be constant
MetFx.ZERO (#180) should be constant
MetFx.DEAD (#179) should be constant
MetFx.WBNB (#178) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#98-100)
_openTrading() should be declared external:
- MetFx._openTrading() (#400-403)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#110-114)
authorize(address) should be declared external:
- Auth.authorize(address) (#94-96)
cooldownEnabled(bool,uint8) should be declared external:
- MetFx.cooldownEnabled(bool,uint8) (#406-410)
Use the external attribute for functions never called from the contract.
Additional information: link
Function MetFx.set_sell_multiplier(uint256) (#394-397) is not in mixedCase
Parameter MetFx.setTargetLiquidity(uint256,uint256)._target (#491) is not in mixedCase
Function IDEXRouter.WETH() (#125) is not in mixedCase
Parameter MetFx.cooldownEnabled(bool,uint8)._status (#406) is not in mixedCase
Variable MetFx.WBNB (#178) is not in mixedCase
Parameter MetFx.setFees(uint256,uint256,uint256,uint256,uint256)._liquidityFee (#469) is not in mixedCase
Variable MetFx.ZERO (#180) is not in mixedCase
Variable MetFx._maxTxAmount (#188) is not in mixedCase
Parameter MetFx.setMaxTxPercent_base1000(uint256).maxTXPercentage_base1000 (#293) is not in mixedCase
Parameter MetFx.setSwapBackSettings(bool,uint256)._enabled (#486) is not in mixedCase
Parameter MetFx.setFeeReceivers(address,address)._developmentFeeReceiver (#479) is not in mixedCase
Variable MetFx.DEAD (#179) is not in mixedCase
Constant MetFx._symbol (#183) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MetFx._balances (#191) is not in mixedCase
Parameter MetFx.setFees(uint256,uint256,uint256,uint256,uint256)._feeDenominator (#469) is not in mixedCase
Constant MetFx._decimals (#184) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter MetFx.setFees(uint256,uint256,uint256,uint256,uint256)._treasuryFee (#469) is not in mixedCase
Parameter MetFx.setFeeReceivers(address,address)._treasuryFeeReceiver (#479) is not in mixedCase
Variable MetFx._maxWalletToken (#189) is not in mixedCase
Parameter MetFx.set_sell_multiplier(uint256).Multiplier (#394) is not in mixedCase
Parameter MetFx.setMaxWalletPercent_base1000(uint256).maxWallPercent_base1000 (#289) is not in mixedCase
Function MetFx.setMaxWalletPercent_base1000(uint256) (#289-292) is not in mixedCase
Constant MetFx._name (#182) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter MetFx.cooldownEnabled(bool,uint8)._interval (#406) is not in mixedCase
Parameter MetFx.setTargetLiquidity(uint256,uint256)._denominator (#491) is not in mixedCase
Parameter MetFx.setSwapBackSettings(bool,uint256)._amount (#486) is not in mixedCase
Variable MetFx._totalSupply (#186) is not in mixedCase
Variable MetFx._allowances (#192) is not in mixedCase
Parameter MetFx.setFees(uint256,uint256,uint256,uint256,uint256)._burnFee (#469) is not in mixedCase
Function MetFx._openTrading() (#400-403) is not in mixedCase
Parameter MetFx.updateRouter(address)._router (#389) is not in mixedCase
Parameter MetFx.setFees(uint256,uint256,uint256,uint256,uint256)._developmentFee (#469) is not in mixedCase
Function MetFx.setMaxTxPercent_base1000(uint256) (#293-296) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in MetFx._transferFrom(address,address,uint256) (#303-334):
External calls:
- swapBack() (#324)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#423-429)
- (tmpSuccess) = address(treasuryFeeReceiver).call{gas: 30000,value: amountBNBTreasury}() (#439)
- (tmpSuccess,None) = address(developmentFeeReceiver).call{gas: 30000,value: amountBNBDevelopment}() (#440)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#445-452)
External calls sending eth:
- swapBack() (#324)
- (tmpSuccess) = address(treasuryFeeReceiver).call{gas: 30000,value: amountBNBTreasury}() (#439)
- (tmpSuccess,None) = address(developmentFeeReceiver).call{gas: 30000,value: amountBNBDevelopment}() (#440)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#445-452)
Event emitted after the call(s):
- Transfer(sender,address(this),contractTokens) (#361)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#329)
- Transfer(sender,burnFeeReceiver,burnTokens) (#364)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#329)
- Transfer(sender,recipient,amountReceived) (#332)
Reentrancy in MetFx.swapBack() (#412-455):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#423-429)
- (tmpSuccess) = address(treasuryFeeReceiver).call{gas: 30000,value: amountBNBTreasury}() (#439)
- (tmpSuccess,None) = address(developmentFeeReceiver).call{gas: 30000,value: amountBNBDevelopment}() (#440)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#445-452)
External calls sending eth:
- (tmpSuccess) = address(treasuryFeeReceiver).call{gas: 30000,value: amountBNBTreasury}() (#439)
- (tmpSuccess,None) = address(developmentFeeReceiver).call{gas: 30000,value: amountBNBDevelopment}() (#440)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#445-452)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#453)
Apply the check-effects-interactions pattern.
Additional information: link
MetFx._transferFrom(address,address,uint256) (#303-334) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for 1min between two buys) (#317)
Avoid relying on block.timestamp.
Additional information: link
MetFx.totalFee (#202) is set pre-construction with a non-constant function or state variable:
- developmentFee + liquidityFee + treasuryFee + burnFee
MetFx.swapThreshold (#227) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 5 / 1000000
MetFx._maxTxAmount (#188) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 100
MetFx._maxWalletToken (#189) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 100
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.8.15 (#24) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.15 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 MetFx.swapBack() (#412-455):
- (tmpSuccess) = address(treasuryFeeReceiver).call{gas: 30000,value: amountBNBTreasury}() (#439)
- (tmpSuccess,None) = address(developmentFeeReceiver).call{gas: 30000,value: amountBNBDevelopment}() (#440)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#130) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#131)
Prevent variables from having similar names.
Additional information: link
MetFx.takeFee(address,uint256,bool) (#351-368) performs a multiplication on the result of a division:
-feeAmount = amount.mul(totalFee).mul(multiplier).div(feeDenominator * 100) (#354)
-burnTokens = feeAmount.mul(burnFee).div(totalFee) (#356)
Consider ordering multiplication before division.
Additional information: link
MetFx.swapBack() (#412-455) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#445-452)
Ensure that all the return values of the function calls are used.
Additional information: link
Contract has 24% buy tax and 48% sell tax.
Taxes are extremely high (over 30%)
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.
Token is deployed only at one blockchain
Average 30d PancakeSwap volume is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
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 price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Twitter account has few posts