🤖 The story of Metal Friends began more than a year ago. Metal Friends is an independent brand that has a multi-project ecosystem with a limited NFT collection, token on BSC, staking and a P2E game.
🔹NFTs have 14 days ROI! 🔹Staking with 2400% APY!🔹 P2E Game beta is ready! 🔹Earn passive income! 🔹 Staking is live from launch🔹Low tax 0/6%🔹Based Dev with Solid marketing: ✅ CMC/CG/Avadex Fast Track ✅ Binance AMA ✅ Dextools/crypto.com trending ✅ CEX listing ✅ WeChat, Weibo, Qzone marketing
Reentrancy in MetalFriends._transfer(address,address,uint256) (#1014-1042):
External calls:
- swapAndLiquify() (#1037)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1084-1090)
External calls sending eth:
- swapAndLiquify() (#1037)
- recipient.transfer(amount) (#1235)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1041)
- _tOwned[address(this)] = _tOwned[address(this)] + tLiquidity (#1146)
- _tOwned[sender] = _tOwned[sender] - tAmount (#1127)
- _tOwned[recipient] = _tOwned[recipient] + tTransferAmount (#1129)
- _tokenTransfer(from,to,amount,takeFee) (#1041)
- marketingTokensCollected += (amount * _saleMarketingFee) / 100 (#1109)
- _tokenTransfer(from,to,amount,takeFee) (#1041)
- p2eTokensCollected += (amount * _saleP2EFee) / 100 (#1111)
- _tokenTransfer(from,to,amount,takeFee) (#1041)
- treasuryTokensCollected += (amount * _saleTreasuryFee) / 100 (#1110)
Apply the check-effects-interactions pattern.
Additional information: link
MetalFriends.recoverTokensFromContract(address,uint256) (#1279-1283) ignores return value by IERC20(_tokenAddress).transfer(marketingWallet,_amount) (#1281)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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 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.
MetalFriends.inSwapAndLiquify (#856) is written in both
inSwapAndLiquify = true (#1052)
inSwapAndLiquify = false (#1073)
Fix or remove the writes.
Additional information: link
MetalFriends.slitherConstructorConstantVariables() (#791-1287) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#805-806)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
MetalFriends._previousSaleP2EFee (#840) is never used in MetalFriends (#791-1287)
MetalFriends._previousSaleTreasuryFee (#838) is never used in MetalFriends (#791-1287)
MetalFriends._previousSaleMarketingFee (#836) is never used in MetalFriends (#791-1287)
MetalFriends._tFeeTotal (#829) is never used in MetalFriends (#791-1287)
Remove unused state variables.
Additional information: link
MetalFriends.allowance(address,address).owner (#940) shadows:
- Ownable.owner() (#404-406) (function)
MetalFriends._approve(address,address,uint256).owner (#1003) shadows:
- Ownable.owner() (#404-406) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in MetalFriends.swapAndLiquify() (#1045-1074):
External calls:
- swapTokensForEth(totalTokens) (#1049)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1084-1090)
State variables written after the call(s):
- inSwapAndLiquify = true (#1052)
Reentrancy in MetalFriends.transferFrom(address,address,uint256) (#958-970):
External calls:
- _transfer(sender,recipient,amount) (#963)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1084-1090)
External calls sending eth:
- _transfer(sender,recipient,amount) (#963)
- recipient.transfer(amount) (#1235)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#964-968)
- _allowances[owner][spender] = amount (#1010)
Reentrancy in MetalFriends.swapAndLiquify() (#1045-1074):
External calls:
- swapTokensForEth(totalTokens) (#1049)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1084-1090)
External calls sending eth:
- transferToAddressETH(marketingWallet,ethForMarketing) (#1065)
- recipient.transfer(amount) (#1235)
- transferToAddressETH(treasuryWallet,ethForTreasury) (#1066)
- recipient.transfer(amount) (#1235)
- transferToAddressETH(p2eWallet,ethForP2E) (#1067)
- recipient.transfer(amount) (#1235)
State variables written after the call(s):
- inSwapAndLiquify = false (#1073)
- marketingTokensCollected = 0 (#1069)
- p2eTokensCollected = 0 (#1071)
- treasuryTokensCollected = 0 (#1070)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MetalFriends._transfer(address,address,uint256) (#1014-1042):
External calls:
- swapAndLiquify() (#1037)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1084-1090)
External calls sending eth:
- swapAndLiquify() (#1037)
- recipient.transfer(amount) (#1235)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#1131)
- _tokenTransfer(from,to,amount,takeFee) (#1041)
Reentrancy in MetalFriends.recoverTokensFromContract(address,uint256) (#1279-1283):
External calls:
- IERC20(_tokenAddress).transfer(marketingWallet,_amount) (#1281)
Event emitted after the call(s):
- Log(We have recovered tokens from contract:,_amount) (#1282)
Reentrancy in MetalFriends.transferFrom(address,address,uint256) (#958-970):
External calls:
- _transfer(sender,recipient,amount) (#963)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1084-1090)
External calls sending eth:
- _transfer(sender,recipient,amount) (#963)
- recipient.transfer(amount) (#1235)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1011)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#964-968)
Reentrancy in MetalFriends.swapETHForTokens(uint256) (#1246-1261):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(swapOutput,path,deadWallet,block.timestamp + 300) (#1252-1259)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#1260)
Reentrancy in MetalFriends.swapTokensForEth(uint256) (#1076-1093):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1084-1090)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#1092)
Apply the check-effects-interactions pattern.
Additional information: link
Address._revert(bytes,string) (#348-363) uses assembly
- INLINE ASM (#356-359)
Do not use evm assembly.
Additional information: link
Address.verifyCallResult(bool,bytes,string) (#336-346) is never used and should be removed
MetalFriends.swapETHForTokens(uint256) (#1246-1261) is never used and should be removed
Address.sendValue(address,uint256) (#116-127) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#185-197) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#291-304) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#273-283) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#205-225) is never used and should be removed
Context._msgData() (#27-29) is never used and should be removed
Address.functionStaticCall(address,bytes) (#233-244) is never used and should be removed
Address._revert(bytes,string) (#348-363) is never used and should be removed
Address.isContract(address) (#92-98) is never used and should be removed
Address.functionCall(address,bytes,string) (#166-172) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#252-265) is never used and should be removed
Address.verifyCallResultFromTarget(address,bool,bytes,string) (#312-328) is never used and should be removed
Address.functionCall(address,bytes) (#147-158) is never used and should be removed
Remove unused functions.
Additional information: link
MetalFriends._previousSaleP2EFee (#840) is set pre-construction with a non-constant function or state variable:
- _saleP2EFee
MetalFriends._previousSaleMarketingFee (#836) is set pre-construction with a non-constant function or state variable:
- _saleMarketingFee
MetalFriends.totalSwapableSaleFee (#841) is set pre-construction with a non-constant function or state variable:
- _saleMarketingFee + _saleTreasuryFee + _saleP2EFee
MetalFriends._previousSaleTreasuryFee (#838) is set pre-construction with a non-constant function or state variable:
- _saleTreasuryFee
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
solc-0.8.17 is not recommended for deployment
Pragma version0.8.17 (#20) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
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.functionDelegateCall(address,bytes,string) (#291-304):
- (success,returndata) = target.delegatecall(data) (#296)
Low level call in Address.sendValue(address,uint256) (#116-127):
- (success) = recipient.call{value: amount}() (#122)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#205-225):
- (success,returndata) = target.call{value: value}(data) (#215-217)
Low level call in Address.functionStaticCall(address,bytes,string) (#252-265):
- (success,returndata) = target.staticcall(data) (#257)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter MetalFriends.setMarketingWallet(address)._marketingWallet (#1188) is not in mixedCase
Parameter MetalFriends.setSwapAndLiquifyEnabled(bool)._enabled (#1181) is not in mixedCase
Constant MetalFriends._decimals (#833) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MetalFriends._saleTreasuryFee (#837) is not in mixedCase
Constant MetalFriends._name (#831) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MetalFriends._symbol (#832) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MetalFriends._saleMarketingFee (#835) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#514) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#544) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#512) is not in mixedCase
Variable MetalFriends._saleP2EFee (#839) is not in mixedCase
Parameter MetalFriends.setTreasuryWallet(address)._treasuryWallet (#1203) is not in mixedCase
Parameter MetalFriends.recoverTokensFromContract(address,uint256)._tokenAddress (#1279) is not in mixedCase
Constant MetalFriends.developer (#795) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MetalFriends.version (#794) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter MetalFriends.setNumTokensSellToAddToLiquidity(uint256)._minimumTokensBeforeSwap (#1170) is not in mixedCase
Constant MetalFriends.edition (#796) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MetalFriends.deadWallet (#805-806) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Router01.WETH() (#588) is not in mixedCase
Parameter MetalFriends.recoverTokensFromContract(address,uint256)._amount (#1279) is not in mixedCase
Parameter MetalFriends.setP2EWallet(address)._p2eWallet (#1218) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in MetalFriends.swapAndLiquify() (#1045-1074):
External calls:
- transferToAddressETH(marketingWallet,ethForMarketing) (#1065)
- recipient.transfer(amount) (#1235)
- transferToAddressETH(treasuryWallet,ethForTreasury) (#1066)
- recipient.transfer(amount) (#1235)
- transferToAddressETH(p2eWallet,ethForP2E) (#1067)
- recipient.transfer(amount) (#1235)
State variables written after the call(s):
- inSwapAndLiquify = false (#1073)
- marketingTokensCollected = 0 (#1069)
- p2eTokensCollected = 0 (#1071)
- treasuryTokensCollected = 0 (#1070)
Reentrancy in MetalFriends._transfer(address,address,uint256) (#1014-1042):
External calls:
- swapAndLiquify() (#1037)
- recipient.transfer(amount) (#1235)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1041)
- _tOwned[address(this)] = _tOwned[address(this)] + tLiquidity (#1146)
- _tOwned[sender] = _tOwned[sender] - tAmount (#1127)
- _tOwned[recipient] = _tOwned[recipient] + tTransferAmount (#1129)
- _tokenTransfer(from,to,amount,takeFee) (#1041)
- marketingTokensCollected += (amount * _saleMarketingFee) / 100 (#1109)
- _tokenTransfer(from,to,amount,takeFee) (#1041)
- p2eTokensCollected += (amount * _saleP2EFee) / 100 (#1111)
- _tokenTransfer(from,to,amount,takeFee) (#1041)
- treasuryTokensCollected += (amount * _saleTreasuryFee) / 100 (#1110)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#1131)
- _tokenTransfer(from,to,amount,takeFee) (#1041)
Reentrancy in MetalFriends.transferFrom(address,address,uint256) (#958-970):
External calls:
- _transfer(sender,recipient,amount) (#963)
- recipient.transfer(amount) (#1235)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#964-968)
- _allowances[owner][spender] = amount (#1010)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1011)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#964-968)
Reentrancy in MetalFriends.recoverETHfromContract() (#1271-1277):
External calls:
- address(marketingWallet).transfer(address(this).balance) (#1272)
Event emitted after the call(s):
- AuditLog(We have recover the stock eth from contract.,marketingWallet) (#1273-1276)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#593) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#594)
Prevent variables from having similar names.
Additional information: link
MetalFriends._tFeeTotal (#829) should be constant
MetalFriends._tTotal (#828) should be constant
MetalFriends.swapOutput (#850) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
increaseAllowance(address,uint256) should be declared external:
- MetalFriends.increaseAllowance(address,uint256) (#972-983)
decreaseAllowance(address,uint256) should be declared external:
- MetalFriends.decreaseAllowance(address,uint256) (#985-996)
contractEdition() should be declared external:
- MetalFriends.contractEdition() (#908-910)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#422-424)
minimumTokensBeforeSwapAmount() should be declared external:
- MetalFriends.minimumTokensBeforeSwapAmount() (#998-1000)
symbol() should be declared external:
- MetalFriends.symbol() (#915-917)
transferFrom(address,address,uint256) should be declared external:
- MetalFriends.transferFrom(address,address,uint256) (#958-970)
name() should be declared external:
- MetalFriends.name() (#911-913)
contractDev() should be declared external:
- MetalFriends.contractDev() (#905-907)
allowance(address,address) should be declared external:
- MetalFriends.allowance(address,address) (#940-947)
totalSupply() should be declared external:
- MetalFriends.totalSupply() (#923-925)
contractVersion() should be declared external:
- MetalFriends.contractVersion() (#902-904)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#430-436)
decimals() should be declared external:
- MetalFriends.decimals() (#919-921)
approve(address,uint256) should be declared external:
- MetalFriends.approve(address,uint256) (#949-956)
transfer(address,uint256) should be declared external:
- MetalFriends.transfer(address,uint256) (#931-938)
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 token contract address on the website
Unable to find audit link on the website
Unable to find Telegram link on the website
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find whitepaper link on the website
Unable to find Twitter link on the website
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 scam / price dump / death
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
Unable to find Discord account