MetaLama is a play-to-earn BSC token with rewards for holders and automatic Liquidity Provision. We have a 10% buy and sell tax of which 2% are automatic Liquidity Provision, 3% go directly to holders, and 5% are for treasury. We recently launched and will be releasing a play to earn concept within a week and a full game within a couple of weeks. We also plan on doing additional projects such as more advanced games/metaverse applications in the future. Our smart contract was audited by Interfi and we completed KYC with PinkSale as well.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in Metalama._transfer(address,address,uint256) (#987-1038):
External calls:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1034)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
- (success) = recipient.call{value: amount}() (#402)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1107-1113)
- treasuryAddress.sendValue(treasuryFee) (#1093)
External calls sending eth:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1034)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
- (success) = recipient.call{value: amount}() (#402)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1037)
- _rOwned[address(this)] += rToSwap (#894)
- _rOwned[sender] -= s.rAmount (#1056)
- _rOwned[recipient] += s.rTransferAmount (#1057)
- _tokenTransfer(from,to,amount,takeFee) (#1037)
- _rTotal -= rRfi (#889)
- _tokenTransfer(from,to,amount,takeFee) (#1037)
- _tOwned[address(this)] += tToSwap (#895)
- _tOwned[sender] -= tAmount (#1050)
- _tOwned[recipient] += s.tTransferAmount (#1053)
Reentrancy in Metalama.transferFrom(address,address,uint256) (#742-759):
External calls:
- _transfer(sender,recipient,amount) (#747)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
- (success) = recipient.call{value: amount}() (#402)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1107-1113)
- treasuryAddress.sendValue(treasuryFee) (#1093)
External calls sending eth:
- _transfer(sender,recipient,amount) (#747)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
- (success) = recipient.call{value: amount}() (#402)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#755)
- _allowances[owner][spender] = amount (#983)
Apply the check-effects-interactions pattern.
Additional information: link
Metalama.addLiquidity(uint256,uint256) (#1116-1127) ignores return value by UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
Ensure that all the return values of the function calls are used.
Additional information: link
Metalama.allowance(address,address).owner (#724) shadows:
- Ownable.owner() (#57-59) (function)
Metalama._approve(address,address,uint256).owner (#977) shadows:
- Ownable.owner() (#57-59) (function)
Rename the local variables that shadow another component.
Additional information: link
Metalama.setMaxTransactionAmount(uint256,uint256) (#1167-1173) should emit an event for:
- maxTxAmountBuy = _maxTxAmountBuy * 10 ** _decimals (#1171)
- maxTxAmountSell = _maxTxAmountSell * 10 ** _decimals (#1172)
Metalama.setNumTokensSellToAddToLiq(uint256) (#1175-1180) should emit an event for:
- numTokensSellToAddToLiquidity = amountTokens * 10 ** _decimals (#1179)
Emit an event for critical parameter changes.
Additional information: link
Metalama.setTreasuryAddress(address)._treasuryAddress (#1182) lacks a zero-check on :
- treasuryAddress = _treasuryAddress (#1186)
Check that the address is not zero.
Additional information: link
Reentrancy in Metalama._transfer(address,address,uint256) (#987-1038):
External calls:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1034)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
- (success) = recipient.call{value: amount}() (#402)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1107-1113)
- treasuryAddress.sendValue(treasuryFee) (#1093)
External calls sending eth:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1034)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
- (success) = recipient.call{value: amount}() (#402)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1037)
- totFeesPaid.rfi += tRfi (#890)
- totFeesPaid.toSwap += tToSwap (#896)
Reentrancy in Metalama.constructor() (#669-690):
External calls:
- uniswapPair = IUniswapV2Factory(_UniswapV2Router.factory()).createPair(address(this),_UniswapV2Router.WETH()) (#673)
State variables written after the call(s):
- UniswapV2Router = _UniswapV2Router (#676)
- _isExcludedFromFee[owner()] = true (#679)
- _isExcludedFromFee[treasuryAddress] = true (#680)
- _isExcludedFromFee[address(this)] = true (#681)
- _isExcludedFromMaxWallet[owner()] = true (#683)
- _isExcludedFromMaxWallet[treasuryAddress] = true (#684)
- _isExcludedFromMaxWallet[address(this)] = true (#685)
- _isExcludedFromMaxWallet[uniswapPair] = true (#687)
- _rOwned[owner()] = _rTotal (#677)
- isAutomatedMarketMakerPair[uniswapPair] = true (#674)
- treasuryAddress = address(msg.sender) (#678)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Metalama._transfer(address,address,uint256) (#987-1038):
External calls:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1034)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
- (success) = recipient.call{value: amount}() (#402)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1107-1113)
- treasuryAddress.sendValue(treasuryFee) (#1093)
External calls sending eth:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1034)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
- (success) = recipient.call{value: amount}() (#402)
Event emitted after the call(s):
- Transfer(sender,address(this),s.tToSwap) (#1061)
- _tokenTransfer(from,to,amount,takeFee) (#1037)
- Transfer(sender,recipient,s.tTransferAmount) (#1068)
- _tokenTransfer(from,to,amount,takeFee) (#1037)
Reentrancy in Metalama.addLiquidity(uint256,uint256) (#1116-1127):
External calls:
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
Event emitted after the call(s):
- LiquidityAdded(tokenAmount,ETHAmount) (#1126)
Reentrancy in Metalama.constructor() (#669-690):
External calls:
- uniswapPair = IUniswapV2Factory(_UniswapV2Router.factory()).createPair(address(this),_UniswapV2Router.WETH()) (#673)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(uniswapPair,true) (#675)
- Transfer(address(0),owner(),_tTotal) (#689)
Reentrancy in Metalama.swapAndLiquify(uint256) (#1071-1094):
External calls:
- swapTokensForETH(toSwap) (#1080)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1107-1113)
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#1087)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#1087)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
Event emitted after the call(s):
- LiquidityAdded(tokenAmount,ETHAmount) (#1126)
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#1087)
Reentrancy in Metalama.transferFrom(address,address,uint256) (#742-759):
External calls:
- _transfer(sender,recipient,amount) (#747)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
- (success) = recipient.call{value: amount}() (#402)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1107-1113)
- treasuryAddress.sendValue(treasuryFee) (#1093)
External calls sending eth:
- _transfer(sender,recipient,amount) (#747)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1118-1125)
- (success) = recipient.call{value: amount}() (#402)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#984)
- _approve(sender,_msgSender(),currentAllowance - amount) (#755)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#371-381) uses assembly
- INLINE ASM (#377-379)
Address.verifyCallResult(bool,bytes,string) (#540-560) uses assembly
- INLINE ASM (#552-555)
Do not use evm assembly.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.5.0', '>=0.6.2', '^0.8.0']
- ^0.8.0 (#3)
- ^0.8.0 (#28)
- ^0.8.0 (#99)
- >=0.6.2 (#182)
- >=0.6.2 (#281)
- >=0.5.0 (#327)
- ^0.8.0 (#348)
- ^0.8.0 (#565)
Use one Solidity version.
Additional information: link
Metalama.includeInReward(address) (#833-844) has costly operations inside a loop:
- _excluded.pop() (#840)
Use a local variable to hold the loop computation result.
Additional information: link
Address.functionCall(address,bytes) (#424-426) is never used and should be removed
Address.functionCall(address,bytes,string) (#434-440) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#453-459) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#467-478) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#513-515) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#523-532) is never used and should be removed
Address.functionStaticCall(address,bytes) (#486-488) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#496-505) is never used and should be removed
Address.isContract(address) (#371-381) is never used and should be removed
Address.verifyCallResult(bool,bytes,string) (#540-560) is never used and should be removed
Context._msgData() (#20-22) is never used and should be removed
Remove unused functions.
Additional information: link
Metalama._rTotal (#585) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
Metalama.maxTxAmountBuy (#587) is set pre-construction with a non-constant function or state variable:
- _tTotal / 1000
Metalama.maxTxAmountSell (#588) is set pre-construction with a non-constant function or state variable:
- _tTotal / 1000
Metalama.maxWalletAmount (#589) is set pre-construction with a non-constant function or state variable:
- _tTotal / 500
Metalama.numTokensSellToAddToLiquidity (#607) is set pre-construction with a non-constant function or state variable:
- _tTotal / 500
Metalama.appliedRates (#632) is set pre-construction with a non-constant function or state variable:
- buyRates
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.0 (#3) allows old versions
Pragma version^0.8.0 (#28) allows old versions
Pragma version^0.8.0 (#99) allows old versions
Pragma version>=0.6.2 (#182) allows old versions
Pragma version>=0.6.2 (#281) allows old versions
Pragma version>=0.5.0 (#327) allows old versions
Pragma version^0.8.0 (#348) allows old versions
Pragma version^0.8.0 (#565) allows old versions
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
Low level call in Address.sendValue(address,uint256) (#399-404):
- (success) = recipient.call{value: amount}() (#402)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#467-478):
- (success,returndata) = target.call{value: value}(data) (#476)
Low level call in Address.functionStaticCall(address,bytes,string) (#496-505):
- (success,returndata) = target.staticcall(data) (#503)
Low level call in Address.functionDelegateCall(address,bytes,string) (#523-532):
- (success,returndata) = target.delegatecall(data) (#530)
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() (#186) is not in mixedCase
Struct Metalama.feeRatesStruct (#609-614) is not in CapWords
Struct Metalama.valuesFromGetValues (#640-648) is not in CapWords
Parameter Metalama.setSwapAndLiquifyEnabled(bool)._enabled (#880) is not in mixedCase
Parameter Metalama.addLiquidity(uint256,uint256).ETHAmount (#1116) is not in mixedCase
Parameter Metalama.setAutomatedMarketMakerPair(address,bool)._pair (#1129) is not in mixedCase
Parameter Metalama.setBuyFees(uint8,uint8,uint8)._rfi (#1146) is not in mixedCase
Parameter Metalama.setBuyFees(uint8,uint8,uint8)._treasury (#1147) is not in mixedCase
Parameter Metalama.setBuyFees(uint8,uint8,uint8)._lp (#1148) is not in mixedCase
Parameter Metalama.setSellFees(uint8,uint8,uint8)._rfi (#1157) is not in mixedCase
Parameter Metalama.setSellFees(uint8,uint8,uint8)._treasury (#1158) is not in mixedCase
Parameter Metalama.setSellFees(uint8,uint8,uint8)._lp (#1159) is not in mixedCase
Parameter Metalama.setMaxTransactionAmount(uint256,uint256)._maxTxAmountBuy (#1168) is not in mixedCase
Parameter Metalama.setMaxTransactionAmount(uint256,uint256)._maxTxAmountSell (#1169) is not in mixedCase
Parameter Metalama.setTreasuryAddress(address)._treasuryAddress (#1182) is not in mixedCase
Parameter Metalama.setMaxWalletAmount(uint256)._maxWalletAmount (#1203) is not in mixedCase
Constant Metalama._decimals (#581) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Metalama._name (#599) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Metalama._symbol (#600) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Metalama.UniswapV2Router (#604) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#191) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#192)
Prevent variables from having similar names.
Additional information: link
Metalama._tTotal (#584) should be constant
Metalama.blocksToWait (#593) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#76-78)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#84-87)
name() should be declared external:
- Metalama.name() (#693-695)
symbol() should be declared external:
- Metalama.symbol() (#697-699)
decimals() should be declared external:
- Metalama.decimals() (#701-703)
totalSupply() should be declared external:
- Metalama.totalSupply() (#706-708)
transfer(address,uint256) should be declared external:
- Metalama.transfer(address,uint256) (#715-722)
approve(address,uint256) should be declared external:
- Metalama.approve(address,uint256) (#733-740)
transferFrom(address,address,uint256) should be declared external:
- Metalama.transferFrom(address,address,uint256) (#742-759)
increaseAllowance(address,uint256) should be declared external:
- Metalama.increaseAllowance(address,uint256) (#761-772)
decreaseAllowance(address,uint256) should be declared external:
- Metalama.decreaseAllowance(address,uint256) (#774-789)
isExcludedFromReward(address) should be declared external:
- Metalama.isExcludedFromReward(address) (#791-793)
reflectionFromToken(uint256,bool) should be declared external:
- Metalama.reflectionFromToken(uint256,bool) (#795-808)
excludeMultipleAccountsFromMaxWallet(address[],bool) should be declared external:
- Metalama.excludeMultipleAccountsFromMaxWallet(address[],bool) (#850-862)
isExcludedFromFee(address) should be declared external:
- Metalama.isExcludedFromFee(address) (#868-870)
isExcludedFromMaxWallet(address) should be declared external:
- Metalama.isExcludedFromMaxWallet(address) (#872-878)
setSwapAndLiquifyEnabled(bool) should be declared external:
- Metalama.setSwapAndLiquifyEnabled(bool) (#880-883)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Number of Binance Smart Chain (BSC) token holders is low.
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
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find token contract audit
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
Unable to find code repository for the project
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
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Last post in Twitter was more than 30 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account