PikachuPunkz.swapBack() (#330-371) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#355)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#357)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in PikachuPunkz._transferFrom(address,address,uint256) (#271-291):
External calls:
- swapBack() (#280)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#341-347)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#355)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#357)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#361-368)
External calls sending eth:
- swapBack() (#280)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#355)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#357)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#361-368)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#284)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#287)
- amountReceived = takeFee(sender,recipient,amount) (#286)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#317)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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)
PikachuPunkz.slitherConstructorVariables() (#186-455) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 1 (#222)
Consider ordering multiplication before division.
Additional information: link
PikachuPunkz.swapBack() (#330-371) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#361-368)
Ensure that all the return values of the function calls are used.
Additional information: link
PikachuPunkz.setTxLimit(uint256) (#394-397) should emit an event for:
- _maxTxAmount = amount (#396)
PikachuPunkz.setFees(uint256,uint256,uint256,uint256) (#412-418) should emit an event for:
- liquidityFee = _liquidityFee (#413)
- teamFee = _teamFee (#414)
- marketingFee = _marketingFee (#415)
- totalFee = _liquidityFee.add(_teamFee).add(_marketingFee) (#416)
- feeDenominator = _feeDenominator (#417)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#125) lacks a zero-check on :
- owner = adr (#126)
PikachuPunkz.setFeeReceiver(address,address)._marketingFeeReceiver (#420) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#421)
PikachuPunkz.setFeeReceiver(address,address)._teamFeeReceiver (#420) lacks a zero-check on :
- teamFeeReceiver = _teamFeeReceiver (#422)
Check that the address is not zero.
Additional information: link
Reentrancy in PikachuPunkz._transferFrom(address,address,uint256) (#271-291):
External calls:
- swapBack() (#280)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#341-347)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#355)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#357)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#361-368)
External calls sending eth:
- swapBack() (#280)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#355)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#357)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#361-368)
State variables written after the call(s):
- launch() (#282)
- launchedAt = block.number (#391)
Reentrancy in PikachuPunkz.constructor() (#226-237):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#228)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#229)
- _balances[_owner] = _totalSupply (#235)
- isFeeExempt[_owner] = true (#232)
- isTxLimitExempt[_owner] = true (#233)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in PikachuPunkz._transferFrom(address,address,uint256) (#271-291):
External calls:
- swapBack() (#280)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#341-347)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#355)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#357)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#361-368)
External calls sending eth:
- swapBack() (#280)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#355)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#357)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#361-368)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#318)
- amountReceived = takeFee(sender,recipient,amount) (#286)
- Transfer(sender,recipient,amountReceived) (#289)
Reentrancy in PikachuPunkz.constructor() (#226-237):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#228)
Event emitted after the call(s):
- Transfer(address(0),_owner,_totalSupply) (#236)
Reentrancy in PikachuPunkz.swapBack() (#330-371):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#341-347)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#355)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#357)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#361-368)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#355)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#357)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#361-368)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#369)
Apply the check-effects-interactions pattern.
Additional information: link
PikachuPunkz.buyTokens(uint256,address) (#373-384) is never used and should be removed
Remove unused functions.
Additional information: link
PikachuPunkz._maxTxAmount (#198) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
PikachuPunkz._maxWalletSize (#199) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
PikachuPunkz.swapThreshold (#222) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000 * 1
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 PikachuPunkz.swapBack() (#330-371):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#355)
- (developmentSuccess) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#357)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IDEXRouter.WETH() (#140) is not in mixedCase
Parameter PikachuPunkz.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#412) is not in mixedCase
Parameter PikachuPunkz.setFees(uint256,uint256,uint256,uint256)._teamFee (#412) is not in mixedCase
Parameter PikachuPunkz.setFees(uint256,uint256,uint256,uint256)._marketingFee (#412) is not in mixedCase
Parameter PikachuPunkz.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#412) is not in mixedCase
Parameter PikachuPunkz.setFeeReceiver(address,address)._marketingFeeReceiver (#420) is not in mixedCase
Parameter PikachuPunkz.setFeeReceiver(address,address)._teamFeeReceiver (#420) is not in mixedCase
Parameter PikachuPunkz.setSwapBackSettings(bool,uint256)._enabled (#425) is not in mixedCase
Parameter PikachuPunkz.setSwapBackSettings(bool,uint256)._amount (#425) is not in mixedCase
Parameter PikachuPunkz.transferForeignToken(address)._token (#435) is not in mixedCase
Variable PikachuPunkz.WBNB (#189) is not in mixedCase
Variable PikachuPunkz.DEAD (#190) is not in mixedCase
Variable PikachuPunkz.ZERO (#191) is not in mixedCase
Constant PikachuPunkz._name (#193) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PikachuPunkz._symbol (#194) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PikachuPunkz._decimals (#195) is not in UPPER_CASE_WITH_UNDERSCORES
Variable PikachuPunkz._totalSupply (#197) is not in mixedCase
Variable PikachuPunkz._maxTxAmount (#198) is not in mixedCase
Variable PikachuPunkz._maxWalletSize (#199) is not in mixedCase
Variable PikachuPunkz._balances (#201) is not in mixedCase
Variable PikachuPunkz._allowances (#202) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#145) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#146)
Prevent variables from having similar names.
Additional information: link
PikachuPunkz.slitherConstructorVariables() (#186-455) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#190)
PikachuPunkz.slitherConstructorVariables() (#186-455) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#191)
PikachuPunkz.slitherConstructorVariables() (#186-455) uses literals with too many digits:
- _totalSupply = 100000000 * (10 ** _decimals) (#197)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
PikachuPunkz.DEAD (#190) should be constant
PikachuPunkz.WBNB (#189) should be constant
PikachuPunkz.ZERO (#191) should be constant
PikachuPunkz._totalSupply (#197) 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) (#99-101)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#104-106)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#125-129)
transferForeignToken(address) should be declared external:
- PikachuPunkz.transferForeignToken(address) (#435-439)
isOverLiquified(uint256,uint256) should be declared external:
- PikachuPunkz.isOverLiquified(uint256,uint256) (#449-451)
Use the external attribute for functions never called from the contract.
Additional information: link
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