Pug Inu is an unrivalled meme token deployed on the Binance Smart Chain and taking the bsc scene by storm!
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
PugInu.swapBack() (#406-454) sends eth to arbitrary user
Dangerous calls:
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#438)
- address(teamFeeReceiver).transfer(amountBNBteam) (#439)
- address(devFeeReceiver).transfer(amountBNBDev) (#440)
- address(rewardDistributor).transfer(amountBNBReward) (#441)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in PugInu._transferFrom(address,address,uint256) (#277-324):
External calls:
- swapBack() (#313)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#420-426)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#444-451)
External calls sending eth:
- swapBack() (#313)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#438)
- address(teamFeeReceiver).transfer(amountBNBteam) (#439)
- address(devFeeReceiver).transfer(amountBNBDev) (#440)
- address(rewardDistributor).transfer(amountBNBReward) (#441)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#444-451)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#315)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#319)
- amountReceived = takeFee(sender,amount,recipient) (#317)
- _balances[address(this)] = _balances[address(this)].add(contractTokens) (#349)
- _balances[stakingFeeReceiver] = _balances[stakingFeeReceiver].add(stakingTokens) (#354)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
PugInu._transferFrom(address,address,uint256) (#277-324) uses a dangerous strict equality:
- secondantibot && (firstbuy[recipient] == 0) (#286)
Don't use strict equality to determine if an account has enough Ether or tokens.
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.
PugInu.takeFee(address,uint256,address) (#333-359) performs a multiplication on the result of a division:
-feeAmount = amount.mul(totalFee).mul(multiplier).div(feeDenominator * 100) (#343)
-stakingTokens = feeAmount.mul(stakingFee).div(totalFee) (#345)
Consider ordering multiplication before division.
Additional information: link
PugInu.manage_TxLimitExempt(address[],bool).i (#499) is a local variable never initialized
PugInu.manage_DividendExempt(address[],bool).i (#513) is a local variable never initialized
PugInu.manage_blacklist(address[],bool).i (#478) is a local variable never initialized
PugInu.manage_WalletLimitExempt(address[],bool).i (#506) is a local variable never initialized
PugInu.manage_firstbuy(address[],uint256).i (#485) is a local variable never initialized
PugInu.manage_FeeExempt(address[],bool).i (#492) is a local variable never initialized
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
PugInu.swapBack() (#406-454) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#444-451)
Ensure that all the return values of the function calls are used.
Additional information: link
PugInu.setMultipliers(uint256,uint256,uint256) (#380-387) should emit an event for:
- sellMultiplier = _sell (#381)
- buyMultiplier = _buy (#382)
- transferMultiplier = _trans (#383)
PugInu.setFees(uint256,uint256,uint256,uint256,uint256,uint256) (#518-530) should emit an event for:
- liquidityFee = _liquidityFee (#519)
- marketingFee = _marketingFee (#520)
- teamFee = _teamFee (#521)
- devFee = _devFee (#522)
- stakingFee = _stakingFee (#523)
- rewardFee = _rewardFee (#524)
- totalFee = _liquidityFee + _marketingFee + _teamFee + _stakingFee + _devFee + _rewardFee (#525)
PugInu.setSwapBackSettings(bool,uint256) (#541-544) should emit an event for:
- swapThreshold = _amount (#543)
PugInu.setTargetLiquidity(uint256,uint256) (#546-549) should emit an event for:
- targetLiquidity = _target (#547)
- targetLiquidityDenominator = _denominator (#548)
Emit an event for critical parameter changes.
Additional information: link
PugInu.setFeeReceivers(address,address,address,address,address,address)._autoLiquidityReceiver (#532) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#533)
PugInu.setFeeReceivers(address,address,address,address,address,address)._marketingFeeReceiver (#532) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#534)
PugInu.setFeeReceivers(address,address,address,address,address,address)._teamFeeReceiver (#532) lacks a zero-check on :
- teamFeeReceiver = _teamFeeReceiver (#535)
PugInu.setFeeReceivers(address,address,address,address,address,address)._stakingFeeReceiver (#532) lacks a zero-check on :
- stakingFeeReceiver = _stakingFeeReceiver (#536)
PugInu.setFeeReceivers(address,address,address,address,address,address)._devFeeReceiver (#532) lacks a zero-check on :
- devFeeReceiver = _devFeeReceiver (#537)
PugInu.setFeeReceivers(address,address,address,address,address,address)._rewardDistributor (#532) lacks a zero-check on :
- rewardDistributor = _rewardDistributor (#538)
Check that the address is not zero.
Additional information: link
Reentrancy in PugInu.constructor() (#198-224):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#200)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#201)
- _balances[msg.sender] = _totalSupply (#222)
- autoLiquidityReceiver = msg.sender (#203)
- devFeeReceiver = 0x6Ae5471542Ad936a2be86a07F85B1aECD6fbDB73 (#206)
- isFeeExempt[msg.sender] = true (#210)
- isTxLimitExempt[msg.sender] = true (#212)
- isTxLimitExempt[DEAD] = true (#213)
- isTxLimitExempt[ZERO] = true (#214)
- isTxLimitExempt[marketingFeeReceiver] = true (#215)
- isWalletLimitExempt[msg.sender] = true (#217)
- isWalletLimitExempt[address(this)] = true (#218)
- isWalletLimitExempt[DEAD] = true (#219)
- isWalletLimitExempt[stakingFeeReceiver] = true (#220)
- marketingFeeReceiver = 0xA5ae0bC6e9C1Ad9cEd3B30E97511399cFAFc31d4 (#204)
- rewardDistributor = msg.sender (#208)
- stakingFeeReceiver = 0x6Ae5471542Ad936a2be86a07F85B1aECD6fbDB73 (#207)
- teamFeeReceiver = 0x1380D59b93422F4D9505696Bdc20BBA6e069C3F5 (#205)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in PugInu._transferFrom(address,address,uint256) (#277-324):
External calls:
- swapBack() (#313)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#420-426)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#444-451)
External calls sending eth:
- swapBack() (#313)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#438)
- address(teamFeeReceiver).transfer(amountBNBteam) (#439)
- address(devFeeReceiver).transfer(amountBNBDev) (#440)
- address(rewardDistributor).transfer(amountBNBReward) (#441)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#444-451)
Event emitted after the call(s):
- Transfer(sender,address(this),contractTokens) (#350)
- amountReceived = takeFee(sender,amount,recipient) (#317)
- Transfer(sender,stakingFeeReceiver,stakingTokens) (#355)
- amountReceived = takeFee(sender,amount,recipient) (#317)
- Transfer(sender,recipient,amountReceived) (#322)
Reentrancy in PugInu.constructor() (#198-224):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#200)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#223)
Reentrancy in PugInu.swapBack() (#406-454):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#420-426)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#444-451)
External calls sending eth:
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#438)
- address(teamFeeReceiver).transfer(amountBNBteam) (#439)
- address(devFeeReceiver).transfer(amountBNBDev) (#440)
- address(rewardDistributor).transfer(amountBNBReward) (#441)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#444-451)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#452)
Apply the check-effects-interactions pattern.
Additional information: link
PugInu._maxTxAmount (#141) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 200
PugInu._maxWalletToken (#143) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 100
PugInu.totalFee (#170) is set pre-construction with a non-constant function or state variable:
- marketingFee + liquidityFee + teamFee + stakingFee + devFee + rewardFee
PugInu.swapThreshold (#194) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 1000
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.12 (#3) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.12 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
Function IDEXRouter.WETH() (#108) is not in mixedCase
Function PugInu.setMaxWalletPercent_base1000(uint256) (#258-261) is not in mixedCase
Parameter PugInu.setMaxWalletPercent_base1000(uint256).maxWallPercent_base1000 (#258) is not in mixedCase
Function PugInu.setMaxTxPercent_base1000(uint256) (#262-265) is not in mixedCase
Parameter PugInu.setMaxTxPercent_base1000(uint256).maxTXPercentage_base1000 (#262) is not in mixedCase
Function PugInu.setTxLimit_max(uint256) (#267-270) is not in mixedCase
Function PugInu.setTxLimit_min(uint256) (#272-275) is not in mixedCase
Parameter PugInu.setMultipliers(uint256,uint256,uint256)._buy (#380) is not in mixedCase
Parameter PugInu.setMultipliers(uint256,uint256,uint256)._sell (#380) is not in mixedCase
Parameter PugInu.setMultipliers(uint256,uint256,uint256)._trans (#380) is not in mixedCase
Parameter PugInu.tradingStatus(bool,bool,bool)._status (#390) is not in mixedCase
Function PugInu.tradingStatus_launchmode(uint256) (#399-404) is not in mixedCase
Function PugInu.manage_blacklist_status(bool) (#457-462) is not in mixedCase
Parameter PugInu.manage_blacklist_status(bool)._status (#457) is not in mixedCase
Function PugInu.manage_timelock_status(bool) (#464-469) is not in mixedCase
Parameter PugInu.manage_timelock_status(bool)._status (#464) is not in mixedCase
Function PugInu.manage_blacklist(address[],bool) (#472-481) is not in mixedCase
Function PugInu.manage_firstbuy(address[],uint256) (#483-488) is not in mixedCase
Parameter PugInu.manage_firstbuy(address[],uint256)._buytime (#483) is not in mixedCase
Function PugInu.manage_FeeExempt(address[],bool) (#490-495) is not in mixedCase
Function PugInu.manage_TxLimitExempt(address[],bool) (#497-502) is not in mixedCase
Function PugInu.manage_WalletLimitExempt(address[],bool) (#504-509) is not in mixedCase
Function PugInu.manage_DividendExempt(address[],bool) (#511-516) is not in mixedCase
Parameter PugInu.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._liquidityFee (#518) is not in mixedCase
Parameter PugInu.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._marketingFee (#518) is not in mixedCase
Parameter PugInu.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._teamFee (#518) is not in mixedCase
Parameter PugInu.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._stakingFee (#518) is not in mixedCase
Parameter PugInu.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._devFee (#518) is not in mixedCase
Parameter PugInu.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._rewardFee (#518) is not in mixedCase
Parameter PugInu.setFeeReceivers(address,address,address,address,address,address)._autoLiquidityReceiver (#532) is not in mixedCase
Parameter PugInu.setFeeReceivers(address,address,address,address,address,address)._marketingFeeReceiver (#532) is not in mixedCase
Parameter PugInu.setFeeReceivers(address,address,address,address,address,address)._teamFeeReceiver (#532) is not in mixedCase
Parameter PugInu.setFeeReceivers(address,address,address,address,address,address)._stakingFeeReceiver (#532) is not in mixedCase
Parameter PugInu.setFeeReceivers(address,address,address,address,address,address)._devFeeReceiver (#532) is not in mixedCase
Parameter PugInu.setFeeReceivers(address,address,address,address,address,address)._rewardDistributor (#532) is not in mixedCase
Parameter PugInu.setSwapBackSettings(bool,uint256)._enabled (#541) is not in mixedCase
Parameter PugInu.setSwapBackSettings(bool,uint256)._amount (#541) is not in mixedCase
Parameter PugInu.setTargetLiquidity(uint256,uint256)._target (#546) is not in mixedCase
Parameter PugInu.setTargetLiquidity(uint256,uint256)._denominator (#546) is not in mixedCase
Variable PugInu.WBNB (#131) is not in mixedCase
Variable PugInu.DEAD (#132) is not in mixedCase
Variable PugInu.ZERO (#133) is not in mixedCase
Constant PugInu._name (#135) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PugInu._symbol (#136) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PugInu._decimals (#137) is not in UPPER_CASE_WITH_UNDERSCORES
Variable PugInu._totalSupply (#139) is not in mixedCase
Variable PugInu._maxTxAmount (#141) is not in mixedCase
Variable PugInu._minTxAmount (#142) is not in mixedCase
Variable PugInu._maxWalletToken (#143) is not in mixedCase
Variable PugInu._balances (#145) is not in mixedCase
Variable PugInu._allowances (#147) is not in mixedCase
Constant PugInu.feeDenominator (#171) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Reentrancy in PugInu._transferFrom(address,address,uint256) (#277-324):
External calls:
- swapBack() (#313)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#438)
- address(teamFeeReceiver).transfer(amountBNBteam) (#439)
- address(devFeeReceiver).transfer(amountBNBDev) (#440)
- address(rewardDistributor).transfer(amountBNBReward) (#441)
External calls sending eth:
- swapBack() (#313)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#438)
- address(teamFeeReceiver).transfer(amountBNBteam) (#439)
- address(devFeeReceiver).transfer(amountBNBDev) (#440)
- address(rewardDistributor).transfer(amountBNBReward) (#441)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#444-451)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#315)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#319)
- amountReceived = takeFee(sender,amount,recipient) (#317)
- _balances[address(this)] = _balances[address(this)].add(contractTokens) (#349)
- _balances[stakingFeeReceiver] = _balances[stakingFeeReceiver].add(stakingTokens) (#354)
Event emitted after the call(s):
- Transfer(sender,address(this),contractTokens) (#350)
- amountReceived = takeFee(sender,amount,recipient) (#317)
- Transfer(sender,stakingFeeReceiver,stakingTokens) (#355)
- amountReceived = takeFee(sender,amount,recipient) (#317)
- Transfer(sender,recipient,amountReceived) (#322)
Reentrancy in PugInu.swapBack() (#406-454):
External calls:
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#438)
- address(teamFeeReceiver).transfer(amountBNBteam) (#439)
- address(devFeeReceiver).transfer(amountBNBDev) (#440)
- address(rewardDistributor).transfer(amountBNBReward) (#441)
External calls sending eth:
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#438)
- address(teamFeeReceiver).transfer(amountBNBteam) (#439)
- address(devFeeReceiver).transfer(amountBNBDev) (#440)
- address(rewardDistributor).transfer(amountBNBReward) (#441)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#444-451)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#452)
Apply the check-effects-interactions pattern.
Additional information: link
PugInu.slitherConstructorVariables() (#128-580) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#132)
PugInu.slitherConstructorVariables() (#128-580) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#133)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
PugInu.DEAD (#132) should be constant
PugInu.WBNB (#131) should be constant
PugInu.ZERO (#133) should be constant
PugInu._totalSupply (#139) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
authorize(address) should be declared external:
- Auth.authorize(address) (#73-75)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#77-80)
transferOwnership(address,uint256) should be declared external:
- Auth.transferOwnership(address,uint256) (#90-97)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is low.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Contract has 10% buy tax and 10% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find token contract audit
Unable to verify that token and website are owned by the same team (no listings + unable to find contract on website)
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Unable to verify token contract address on the website
Unable to find audit link on the website
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
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Unable to find Twitter account
Telegram account has relatively few subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account