Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
MetaPups.addLiquidity(uint256,uint256) (#584-597) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MetaPups._transfer(address,address,uint256) (#480-527):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#518)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#608-614)
- address(marketingWallet).sendValue(marketingAmt) (#576)
- address(devWallet).sendValue(devAmt) (#580)
- swapAndLiquify(swapTokensAtAmount,taxes) (#519)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#608-614)
- address(marketingWallet).sendValue(marketingAmt) (#576)
- address(devWallet).sendValue(devAmt) (#580)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#518)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
- swapAndLiquify(swapTokensAtAmount,taxes) (#519)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#526)
- _rOwned[address(this)] += rDev (#401)
- _rOwned[address(this)] += rMarketing (#391)
- _rOwned[address(this)] += rLiquidity (#381)
- _rOwned[sender] = _rOwned[sender] - s.rAmount (#542)
- _rOwned[recipient] = _rOwned[recipient] + s.rTransferAmount (#543)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#526)
- _rTotal -= rRfi (#370)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#526)
- _tOwned[address(this)] += tLiquidity (#379)
- _tOwned[sender] = _tOwned[sender] - tAmount (#536)
- _tOwned[address(this)] += tDev (#399)
- _tOwned[address(this)] += tMarketing (#389)
- _tOwned[recipient] = _tOwned[recipient] + s.tTransferAmount (#539)
Apply the check-effects-interactions pattern.
Additional information: link
MetaPups.rescueAnyBEP20Tokens(address,address,uint256) (#681-683) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#682)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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.
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.
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#67-69)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#71-74)
name() should be declared external:
- MetaPups.name() (#236-238)
symbol() should be declared external:
- MetaPups.symbol() (#239-241)
totalSupply() should be declared external:
- MetaPups.totalSupply() (#247-249)
allowance(address,address) should be declared external:
- MetaPups.allowance(address,address) (#256-258)
approve(address,uint256) should be declared external:
- MetaPups.approve(address,uint256) (#260-263)
transferFrom(address,address,uint256) should be declared external:
- MetaPups.transferFrom(address,address,uint256) (#265-273)
increaseAllowance(address,uint256) should be declared external:
- MetaPups.increaseAllowance(address,uint256) (#275-278)
decreaseAllowance(address,uint256) should be declared external:
- MetaPups.decreaseAllowance(address,uint256) (#280-286)
transfer(address,uint256) should be declared external:
- MetaPups.transfer(address,uint256) (#288-292)
isExcludedFromReward(address) should be declared external:
- MetaPups.isExcludedFromReward(address) (#294-296)
reflectionFromToken(uint256,bool) should be declared external:
- MetaPups.reflectionFromToken(uint256,bool) (#298-307)
excludeFromFee(address) should be declared external:
- MetaPups.excludeFromFee(address) (#346-348)
includeInFee(address) should be declared external:
- MetaPups.includeInFee(address) (#350-352)
isExcludedFromFee(address) should be declared external:
- MetaPups.isExcludedFromFee(address) (#355-357)
setTaxes(uint256,uint256,uint256,uint256) should be declared external:
- MetaPups.setTaxes(uint256,uint256,uint256,uint256) (#359-362)
setSellTaxes(uint256,uint256,uint256,uint256) should be declared external:
- MetaPups.setSellTaxes(uint256,uint256,uint256,uint256) (#364-367)
rescueAnyBEP20Tokens(address,address,uint256) should be declared external:
- MetaPups.rescueAnyBEP20Tokens(address,address,uint256) (#681-683)
Use the external attribute for functions never called from the contract.
Additional information: link
MetaPups.swapAndLiquify(uint256,MetaPups.Taxes) (#556-582) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#566)
-bnbToAddLiquidityWith = unitBalance * temp.liquidity (#567)
MetaPups.swapAndLiquify(uint256,MetaPups.Taxes) (#556-582) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#566)
-marketingAmt = unitBalance * 2 * temp.marketing (#574)
MetaPups.swapAndLiquify(uint256,MetaPups.Taxes) (#556-582) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#566)
-devAmt = unitBalance * 2 * temp.dev (#578)
Consider ordering multiplication before division.
Additional information: link
MetaPups.addLiquidity(uint256,uint256) (#584-597) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
Ensure that all the return values of the function calls are used.
Additional information: link
MetaPups.allowance(address,address).owner (#256) shadows:
- Ownable.owner() (#58-60) (function)
MetaPups._approve(address,address,uint256).owner (#473) shadows:
- Ownable.owner() (#58-60) (function)
Rename the local variables that shadow another component.
Additional information: link
MetaPups.updateCooldown(bool,uint256) (#632-635) should emit an event for:
- coolDownTime = time * 1 (#633)
MetaPups.updateSwapTokensAtAmount(uint256) (#637-639) should emit an event for:
- swapTokensAtAmount = amount * 10 ** _decimals (#638)
MetaPups.updateMaxTxLimit(uint256,uint256) (#660-663) should emit an event for:
- maxBuyLimit = maxBuy * 10 ** decimals() (#661)
- maxSellLimit = maxSell * 10 ** decimals() (#662)
MetaPups.updateMaxWalletlimit(uint256) (#665-667) should emit an event for:
- maxWalletLimit = amount * 10 ** decimals() (#666)
Emit an event for critical parameter changes.
Additional information: link
MetaPups.constructor(address)._pair (#212-213) lacks a zero-check on :
- pair = _pair (#216)
MetaPups.updateMarketingWallet(address).newWallet (#623) lacks a zero-check on :
- marketingWallet = newWallet (#624)
MetaPups.updateDevWallet(address).newWallet (#627) lacks a zero-check on :
- devWallet = newWallet (#628)
MetaPups.updateRouterAndPair(address,address).newPair (#669) lacks a zero-check on :
- pair = newPair (#671)
Check that the address is not zero.
Additional information: link
Reentrancy in MetaPups._transfer(address,address,uint256) (#480-527):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#518)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#608-614)
- address(marketingWallet).sendValue(marketingAmt) (#576)
- address(devWallet).sendValue(devAmt) (#580)
- swapAndLiquify(swapTokensAtAmount,taxes) (#519)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#608-614)
- address(marketingWallet).sendValue(marketingAmt) (#576)
- address(devWallet).sendValue(devAmt) (#580)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#518)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
- swapAndLiquify(swapTokensAtAmount,taxes) (#519)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#526)
- totFeesPaid.dev += tDev (#395)
- totFeesPaid.liquidity += tLiquidity (#375)
- totFeesPaid.marketing += tMarketing (#385)
- totFeesPaid.rfi += tRfi (#371)
Reentrancy in MetaPups.constructor(address) (#210-233):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#212-213)
State variables written after the call(s):
- excludeFromReward(pair) (#218)
- _excluded.push(account) (#329)
- excludeFromReward(pair) (#218)
- _isExcluded[account] = true (#328)
- _isExcludedFromFee[address(this)] = true (#221)
- _isExcludedFromFee[owner()] = true (#222)
- _isExcludedFromFee[marketingWallet] = true (#223)
- _isExcludedFromFee[devWallet] = true (#224)
- _rOwned[owner()] = _rTotal (#220)
- excludeFromReward(pair) (#218)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#326)
- allowedTransfer[address(this)] = true (#226)
- allowedTransfer[owner()] = true (#227)
- allowedTransfer[pair] = true (#228)
- allowedTransfer[marketingWallet] = true (#229)
- allowedTransfer[devWallet] = true (#230)
- pair = _pair (#216)
- router = _router (#215)
Reentrancy in MetaPups.swapAndLiquify(uint256,MetaPups.Taxes) (#556-582):
External calls:
- swapTokensForBNB(toSwap) (#563)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#608-614)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#571)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#571)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#571)
- _allowances[owner][spender] = amount (#476)
Reentrancy in MetaPups.transferFrom(address,address,uint256) (#265-273):
External calls:
- _transfer(sender,recipient,amount) (#266)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#608-614)
- address(marketingWallet).sendValue(marketingAmt) (#576)
- address(devWallet).sendValue(devAmt) (#580)
External calls sending eth:
- _transfer(sender,recipient,amount) (#266)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#270)
- _allowances[owner][spender] = amount (#476)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MetaPups._transfer(address,address,uint256) (#480-527):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#518)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#608-614)
- address(marketingWallet).sendValue(marketingAmt) (#576)
- address(devWallet).sendValue(devAmt) (#580)
- swapAndLiquify(swapTokensAtAmount,taxes) (#519)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#608-614)
- address(marketingWallet).sendValue(marketingAmt) (#576)
- address(devWallet).sendValue(devAmt) (#580)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#518)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
- swapAndLiquify(swapTokensAtAmount,taxes) (#519)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
Event emitted after the call(s):
- Transfer(sender,address(this),s.tLiquidity + s.tMarketing + s.tDev) (#548)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#526)
- Transfer(sender,recipient,s.tTransferAmount) (#552)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#526)
Reentrancy in MetaPups.constructor(address) (#210-233):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#212-213)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (#232)
Reentrancy in MetaPups.swapAndLiquify(uint256,MetaPups.Taxes) (#556-582):
External calls:
- swapTokensForBNB(toSwap) (#563)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#608-614)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#571)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#571)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#477)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#571)
Reentrancy in MetaPups.transferFrom(address,address,uint256) (#265-273):
External calls:
- _transfer(sender,recipient,amount) (#266)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#608-614)
- address(marketingWallet).sendValue(marketingAmt) (#576)
- address(devWallet).sendValue(devAmt) (#580)
External calls sending eth:
- _transfer(sender,recipient,amount) (#266)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#589-596)
- (success) = recipient.call{value: amount}() (#111)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#477)
- _approve(sender,_msgSender(),currentAllowance - amount) (#270)
Apply the check-effects-interactions pattern.
Additional information: link
MetaPups._transfer(address,address,uint256) (#480-527) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(timePassed >= coolDownTime,Cooldown enabled) (#507)
Avoid relying on block.timestamp.
Additional information: link
MetaPups.setTradingStatus(bool) (#310-314) compares to a boolean constant:
-state == true && genesis_block == 0 (#313)
Remove the equality to the boolean constant.
Additional information: link
MetaPups.includeInReward(address) (#332-343) has costly operations inside a loop:
- _excluded.pop() (#339)
Use a local variable to hold the loop computation result.
Additional information: link
Context._msgData() (#43-46) is never used and should be removed
Remove unused functions.
Additional information: link
MetaPups._rTotal (#153) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
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
Low level call in Address.sendValue(address,uint256) (#108-113):
- (success) = recipient.call{value: amount}() (#111)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IRouter.WETH() (#89) is not in mixedCase
Struct MetaPups.valuesFromGetValues (#187-199) is not in CapWords
Parameter MetaPups.setTaxes(uint256,uint256,uint256,uint256)._rfi (#359) is not in mixedCase
Parameter MetaPups.setTaxes(uint256,uint256,uint256,uint256)._marketing (#359) is not in mixedCase
Parameter MetaPups.setTaxes(uint256,uint256,uint256,uint256)._liquidity (#359) is not in mixedCase
Parameter MetaPups.setTaxes(uint256,uint256,uint256,uint256)._dev (#359) is not in mixedCase
Parameter MetaPups.setSellTaxes(uint256,uint256,uint256,uint256)._rfi (#364) is not in mixedCase
Parameter MetaPups.setSellTaxes(uint256,uint256,uint256,uint256)._marketing (#364) is not in mixedCase
Parameter MetaPups.setSellTaxes(uint256,uint256,uint256,uint256)._liquidity (#364) is not in mixedCase
Parameter MetaPups.setSellTaxes(uint256,uint256,uint256,uint256)._dev (#364) is not in mixedCase
Parameter MetaPups.updateSwapEnabled(bool)._enabled (#641) is not in mixedCase
Parameter MetaPups.rescueAnyBEP20Tokens(address,address,uint256)._tokenAddr (#681) is not in mixedCase
Parameter MetaPups.rescueAnyBEP20Tokens(address,address,uint256)._to (#681) is not in mixedCase
Parameter MetaPups.rescueAnyBEP20Tokens(address,address,uint256)._amount (#681) is not in mixedCase
Constant MetaPups._decimals (#149) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MetaPups.genesis_block (#160) is not in mixedCase
Constant MetaPups._name (#165) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MetaPups._symbol (#166) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#44)" inContext (#38-47)
Remove redundant statements if they congest code but offer no value.
Additional information: link
MetaPups._tTotal (#152) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
Attempt to swap token was unsuccessful. For some reason it is untradeable. If token is not in presale stage and is not traded outside PancakeSwap, then it's a scam
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume 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.
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find website, listings and other project-related information
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts