When you join the PetSneakers "universe", you will not only have chances to work out daily but also participate in training your pets. The PetSneakers's blockchain system will record your training results, convert them to PSC token. With these tokens, you can buy or stake to get more profit. Besides, users can also use it to buy more NFT sneakers. The more you practice, the more tokens you get, which also motivates you to gain both health benefits, valuable rewards and interact with your pets.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in PetSneaker._transferFrom(address,address,uint256) (#532-580):
External calls:
- swapBack() (#566)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#688-694)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#701-708)
External calls sending eth:
- swapBack() (#566)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#701-708)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(rAmount,Insufficient Balance) (#570)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#576)
- amountReceived = takeFee(sender,rAmount,(recipient == pair)) (#572-574)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#615)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
PetSneaker.beforeRebase (#295) is written in both
beforeRebase = false (#422)
beforeRebase = false (#423)
Fix or remove the writes.
Additional information: link
PetSneaker.swapBack() (#675-711) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#701-708)
PetSneaker.rebase1000(uint256,int256,uint256) (#376-425) ignores return value by router.addLiquidityETH{value: msg.value}(address(this),coinAmount,0,0,address(this),block.timestamp + 300) (#414-421)
Ensure that all the return values of the function calls are used.
Additional information: link
Pragma version^0.7.4 (#3) allows old versions
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
rebase_percentage(uint256) should be declared external:
- PetSneaker.rebase_percentage(uint256) (#307-316)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#138-140)
rescueToken(address,uint256) should be declared external:
- PetSneaker.rescueToken(address,uint256) (#781-787)
enable_blacklist(bool) should be declared external:
- PetSneaker.enable_blacklist(bool) (#657-659)
setBeforeRebase(bool) should be declared external:
- PetSneaker.setBeforeRebase(bool) (#528-530)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#150-154)
manage_blacklist(address[],bool) should be declared external:
- PetSneaker.manage_blacklist(address[],bool) (#661-668)
rescueBNB(address) should be declared external:
- PetSneaker.rescueBNB(address) (#789-791)
setLPStatus(bool) should be declared external:
- PetSneaker.setLPStatus(bool) (#334-337)
launchStatus(uint256) should be declared external:
- PetSneaker.launchStatus(uint256) (#653-655)
authorize(address) should be declared external:
- Auth.authorize(address) (#134-136)
isOverLiquified(uint256,uint256) should be declared external:
- PetSneaker.isOverLiquified(uint256,uint256) (#803-809)
cooldownEnabled(bool,uint8) should be declared external:
- PetSneaker.cooldownEnabled(bool,uint8) (#670-673)
setRebaseStatus(bool) should be declared external:
- PetSneaker.setRebaseStatus(bool) (#329-332)
tradingStatus(bool,uint256) should be declared external:
- PetSneaker.tradingStatus(bool,uint256) (#645-651)
Use the external attribute for functions never called from the contract.
Additional information: link
PetSneaker.rebase_percentage(uint256) (#307-316) performs a multiplication on the result of a division:
-newSupply = rebase(0,int256(_totalSupply.div(1000).mul(_percentage_base1000)).mul(- 1)) (#312-315)
PetSneaker.takeFee(address,uint256,bool) (#599-619) performs a multiplication on the result of a division:
-feeAmount = rAmount.div(feeDenominator * 100).mul(totalFee).mul(multiplier) (#609)
PetSneaker.swapBack() (#675-711) performs a multiplication on the result of a division:
-amountToLiquify = tokensToSell.div(totalFee).mul(dynamicLiquidityFee).div(2) (#679)
PetSneaker.takeFee(address,uint256,bool) (#599-619) performs a multiplication on the result of a division:
-feeAmount = rAmount.div(100).mul(99) (#612)
PetSneaker.setSwapBackSettings(bool,uint256) (#744-750) performs a multiplication on the result of a division:
-swapThreshold = rSupply.div(10000).mul(_percentage_base10000) (#749)
Consider ordering multiplication before division.
Additional information: link
PetSneaker.manage_blacklist(address[],bool).i (#665) 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
PetSneaker.setMaster(address) (#769-771) should emit an event for:
- master = _master (#770)
Emit an event for critical parameter changes.
Additional information: link
PetSneaker.set_swap_Multiplier(uint256) (#641-643) should emit an event for:
- swapMultiplier = Multiplier (#642)
PetSneaker.tradingStatus(bool,uint256) (#645-651) should emit an event for:
- deadBlocks = _deadBlocks (#649)
PetSneaker.setFees(uint256,uint256) (#728-736) should emit an event for:
- totalFee = _liquidityFee (#732)
- liquidityFee = _liquidityFee (#733)
- feeDenominator = _feeDenominator (#734)
PetSneaker.setSwapBackSettings(bool,uint256) (#744-750) should emit an event for:
- swapThreshold = rSupply.div(10000).mul(_percentage_base10000) (#749)
PetSneaker.launchStatus(uint256) (#653-655) should emit an event for:
- launchedAt = _launchblock (#654)
PetSneaker.set_sell_multiplier(uint256) (#637-639) should emit an event for:
- sellMultiplier = Multiplier (#638)
Emit an event for critical parameter changes.
Additional information: link
PetSneaker.setMaster(address)._master (#769) lacks a zero-check on :
- master = _master (#770)
PetSneaker.setFeeReceivers(address)._autoLiquidityReceiver (#739) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#741)
PetSneaker.rescueBNB(address)._recipient (#789) lacks a zero-check on :
- _recipient.transfer(address(this).balance) (#790)
Auth.transferOwnership(address).adr (#150) lacks a zero-check on :
- owner = adr (#151)
Check that the address is not zero.
Additional information: link
Reentrancy in PetSneaker.rebase1000(uint256,int256,uint256) (#376-425):
External calls:
- router.addLiquidityETH{value: msg.value}(address(this),coinAmount,0,0,address(this),block.timestamp + 300) (#414-421)
State variables written after the call(s):
- beforeRebase = false (#422)
- beforeRebase = false (#423)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in PetSneaker._transferFrom(address,address,uint256) (#532-580):
External calls:
- swapBack() (#566)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#688-694)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#701-708)
External calls sending eth:
- swapBack() (#566)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#701-708)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount.div(rate)) (#616)
- amountReceived = takeFee(sender,rAmount,(recipient == pair)) (#572-574)
- Transfer(sender,recipient,amountReceived.div(rate)) (#578)
Reentrancy in PetSneaker.rebase(uint256,int256) (#340-374):
External calls:
- pairContract.sync() (#369)
Event emitted after the call(s):
- LogRebase(epoch,_totalSupply) (#371)
Reentrancy in PetSneaker.swapBack() (#675-711):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#688-694)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#701-708)
External calls sending eth:
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#701-708)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify.div(rate)) (#709)
Apply the check-effects-interactions pattern.
Additional information: link
PetSneaker._transferFrom(address,address,uint256) (#532-580) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,buy Cooldown exists) (#558-561)
Avoid relying on block.timestamp.
Additional information: link
SafeMathInt.div(int256,int256) (#66-70) is never used and should be removed
SafeMathInt.abs(int256) (#84-87) is never used and should be removed
SafeMathInt.sub(int256,int256) (#72-76) is never used and should be removed
SafeMathInt.add(int256,int256) (#78-82) is never used and should be removed
Remove unused functions.
Additional information: link
PetSneaker.totalFee (#252) is set pre-construction with a non-constant function or state variable:
- liquidityFee
PetSneaker.swapThreshold (#299) is set pre-construction with a non-constant function or state variable:
- rSupply.div(swapMultiplier)
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
Variable PetSneaker.ZERO (#237) is not in mixedCase
Variable PetSneaker._allowances (#244) is not in mixedCase
Parameter PetSneaker.setFeeReceivers(address)._autoLiquidityReceiver (#739) is not in mixedCase
Function IDEXRouter.WETH() (#172) is not in mixedCase
Parameter PetSneaker.setLP(address)._address (#764) is not in mixedCase
Parameter PetSneaker.tradingStatus(bool,uint256)._deadBlocks (#645) is not in mixedCase
Variable PetSneaker.rebase_count (#300) is not in mixedCase
Variable PetSneaker.WBNB (#235) is not in mixedCase
Parameter PetSneaker.setBeforeRebase(bool)._beforeRebase (#528) is not in mixedCase
Constant PetSneaker._name (#239) is not in UPPER_CASE_WITH_UNDERSCORES
Function PetSneaker.rebase_percentage(uint256) (#307-316) is not in mixedCase
Variable PetSneaker.LPStatus (#275) is not in mixedCase
Variable PetSneaker._balances (#243) is not in mixedCase
Constant PetSneaker._symbol (#240) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter PetSneaker.tradingStatus(bool,uint256)._status (#645) is not in mixedCase
Parameter PetSneaker.rescueBNB(address)._recipient (#789) is not in mixedCase
Function PetSneaker.manage_blacklist(address[],bool) (#661-668) is not in mixedCase
Parameter PetSneaker.setLPStatus(bool)._LPStatus (#334) is not in mixedCase
Function PetSneaker.set_swap_Multiplier(uint256) (#641-643) is not in mixedCase
Parameter PetSneaker.launchStatus(uint256)._launchblock (#653) is not in mixedCase
Function PetSneaker.set_sell_multiplier(uint256) (#637-639) is not in mixedCase
Parameter PetSneaker.cooldownEnabled(bool,uint8)._interval (#670) is not in mixedCase
Parameter PetSneaker.set_swap_Multiplier(uint256).Multiplier (#641) is not in mixedCase
Function PetSneaker.clearStuckBalance_sender(uint256) (#629-635) is not in mixedCase
Parameter PetSneaker.setFees(uint256,uint256)._feeDenominator (#730) is not in mixedCase
Parameter PetSneaker.setSwapBackSettings(bool,uint256)._enabled (#744) is not in mixedCase
Variable PetSneaker.DEAD (#236) is not in mixedCase
Parameter PetSneaker.setTargetLiquidity(uint256,uint256)._denominator (#752) is not in mixedCase
Parameter PetSneaker.cooldownEnabled(bool,uint8)._status (#670) is not in mixedCase
Constant PetSneaker._decimals (#241) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter PetSneaker.set_sell_multiplier(uint256).Multiplier (#637) is not in mixedCase
Parameter PetSneaker.setTargetLiquidity(uint256,uint256)._target (#752) is not in mixedCase
Parameter PetSneaker.setFees(uint256,uint256)._liquidityFee (#729) is not in mixedCase
Constant PetSneaker.rSupply (#305) is not in UPPER_CASE_WITH_UNDERSCORES
Function PetSneaker.enable_blacklist(bool) (#657-659) is not in mixedCase
Parameter PetSneaker.setSwapBackSettings(bool,uint256)._percentage_base10000 (#744) is not in mixedCase
Parameter PetSneaker.setRebaseStatus(bool)._rebaseStatus (#329) is not in mixedCase
Parameter PetSneaker.rebase_percentage(uint256)._percentage_base1000 (#307) is not in mixedCase
Parameter PetSneaker.enable_blacklist(bool)._status (#657) is not in mixedCase
Variable PetSneaker._isBot (#245) is not in mixedCase
Variable PetSneaker._totalSupply (#302) is not in mixedCase
Parameter PetSneaker.setMaster(address)._master (#769) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#177) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#178)
Prevent variables from having similar names.
Additional information: link
PetSneaker.slitherConstructorConstantVariables() (#231-813) uses literals with too many digits:
- INITIAL_FRAGMENTS_SUPPLY = 500000000000000000000000000 (#298)
PetSneaker.slitherConstructorVariables() (#231-813) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#236)
PetSneaker.slitherConstructorVariables() (#231-813) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#237)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#56) is never used in SafeMathInt (#54-88)
Remove unused state variables.
Additional information: link
PetSneaker.ZERO (#237) should be constant
PetSneaker.DEAD (#236) should be constant
PetSneaker.WBNB (#235) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Last post in Twitter was more than 30 days ago
Unable to find Youtube account
Unable to find Discord account