Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in PartyPutin._swapContractTokens(uint8,bool) (PartyPutin.sol#136-160):
External calls:
- _swapTokensForBNB(toSwap) (PartyPutin.sol#149)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (PartyPutin.sol#171-177)
- _distributeRewards(rewardBNB) (PartyPutin.sol#158)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- _addLiquidity(LPTokens,LPBNB) (PartyPutin.sol#159)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
External calls sending eth:
- _distributeRewards(rewardBNB) (PartyPutin.sol#158)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- _addLiquidity(LPTokens,LPBNB) (PartyPutin.sol#159)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
State variables written after the call(s):
- _addLiquidity(LPTokens,LPBNB) (PartyPutin.sol#159)
- _tracker.totalLPBNB += amountBNB (PartyPutin.sol#180)
Reentrancy in PartyPutin._transfer(address,address,uint256) (PartyPutin.sol#89-106):
External calls:
- _swapContractTokens(swapThreshold,false) (PartyPutin.sol#99)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (PartyPutin.sol#171-177)
- _sellTokens(sender,recipient,amount) (PartyPutin.sol#100)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
- distributor.process(distributorGas) (PartyPutin.sol#124)
External calls sending eth:
- _swapContractTokens(swapThreshold,false) (PartyPutin.sol#99)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
State variables written after the call(s):
- _sellTokens(sender,recipient,amount) (PartyPutin.sol#100)
- _balances[account] = newBalance (PartyPutin.sol#133)
Reentrancy in PartyPutin.ownerWithdrawCharityBNB(uint256) (PartyPutin.sol#249-254):
External calls:
- (sent) = msg.sender.call{value: (amountWei)}() (PartyPutin.sol#251)
State variables written after the call(s):
- _tracker.totalCharityBNB -= amountWei (PartyPutin.sol#253)
Reentrancy in PartyPutin.ownerWithdrawMarketingBNB(uint256) (PartyPutin.sol#243-248):
External calls:
- (sent) = msg.sender.call{value: (amountWei)}() (PartyPutin.sol#245)
State variables written after the call(s):
- _tracker.totalMarketingBNB -= amountWei (PartyPutin.sol#247)
Reentrancy in PartyPutin.transferFrom(address,address,uint256) (PartyPutin.sol#302-309):
External calls:
- _transfer(sender,recipient,amount) (PartyPutin.sol#304)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (PartyPutin.sol#171-177)
- distributor.process(distributorGas) (PartyPutin.sol#124)
External calls sending eth:
- _transfer(sender,recipient,amount) (PartyPutin.sol#304)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
State variables written after the call(s):
- _approve(sender,msg.sender,allowance_ - amount) (PartyPutin.sol#306)
- _allowances[owner][spender] = amount (PartyPutin.sol#295)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (Libraries.sol#693-704) ignores return value by BUSD.transfer(shareholder,amount) (Libraries.sol#699)
PartyPutin.ownerWithdrawStrandedToken(address) (PartyPutin.sol#255-259) ignores return value by token.transfer(owner(),token.balanceOf(address(this))) (PartyPutin.sol#258)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
PartyPutin._removingLP (PartyPutin.sol#26) is never initialized. It is used in:
- PartyPutin._transfer(address,address,uint256) (PartyPutin.sol#89-106)
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
PartyPutin._swapContractTokens(uint8,bool).toSwap (PartyPutin.sol#138) is written in both
toSwap = contractTokens (PartyPutin.sol#141)
toSwap = tokensLeft + LPBNBTokens (PartyPutin.sol#147)
Fix or remove the writes.
Additional information: link
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.
PartyPutin._swapContractTokens(uint8,bool) (PartyPutin.sol#136-160) performs a multiplication on the result of a division:
-toSwap = _swapThreshold * _balances[pancakePairAddress] / 1000 (PartyPutin.sol#138)
-totalLPTokens = toSwap * _taxes.liquidityTax / 100 (PartyPutin.sol#143)
PartyPutin.slitherConstructorVariables() (PartyPutin.sol#6-339) performs a multiplication on the result of a division:
-_maxWalletSize = (_totalSupply / _balanceLimitDivider) * 3 (PartyPutin.sol#20)
PartyPutin.slitherConstructorVariables() (PartyPutin.sol#6-339) performs a multiplication on the result of a division:
-_maxSellSize = (_totalSupply / _balanceLimitDivider) * 3 (PartyPutin.sol#21)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in PartyPutin._transferExcluded(address,address,uint256) (PartyPutin.sol#127-131):
External calls:
- _updateBalance(sender,_balances[sender] - amount) (PartyPutin.sol#128)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
- _updateBalance(recipient,_balances[recipient] + amount) (PartyPutin.sol#129)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
State variables written after the call(s):
- _updateBalance(recipient,_balances[recipient] + amount) (PartyPutin.sol#129)
- _balances[account] = newBalance (PartyPutin.sol#133)
Reentrancy in PartyPutin._transferIncluded(address,address,uint256,uint256) (PartyPutin.sol#120-126):
External calls:
- _updateBalance(sender,_balances[sender] - amount) (PartyPutin.sol#121)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
- _updateBalance(address(this),_balances[address(this)] + taxedTokens) (PartyPutin.sol#122)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
State variables written after the call(s):
- _updateBalance(address(this),_balances[address(this)] + taxedTokens) (PartyPutin.sol#122)
- _balances[account] = newBalance (PartyPutin.sol#133)
Reentrancy in PartyPutin._transferIncluded(address,address,uint256,uint256) (PartyPutin.sol#120-126):
External calls:
- _updateBalance(sender,_balances[sender] - amount) (PartyPutin.sol#121)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
- _updateBalance(address(this),_balances[address(this)] + taxedTokens) (PartyPutin.sol#122)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
- _updateBalance(recipient,_balances[recipient] + (amount - taxedTokens)) (PartyPutin.sol#123)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
State variables written after the call(s):
- _updateBalance(recipient,_balances[recipient] + (amount - taxedTokens)) (PartyPutin.sol#123)
- _balances[account] = newBalance (PartyPutin.sol#133)
Reentrancy in DividendDistributor.distributeDividend(address) (Libraries.sol#693-704):
External calls:
- BUSD.transfer(shareholder,amount) (Libraries.sol#699)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (Libraries.sol#701)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (Libraries.sol#702)
Reentrancy in DividendDistributor.process(uint256) (Libraries.sol#662-686):
External calls:
- distributeDividend(shareholders[currentIndex]) (Libraries.sol#678)
- BUSD.transfer(shareholder,amount) (Libraries.sol#699)
State variables written after the call(s):
- currentIndex ++ (Libraries.sol#683)
Reentrancy in DividendDistributor.setShare(address,uint256) (Libraries.sol#626-640):
External calls:
- distributeDividend(shareholder) (Libraries.sol#628)
- BUSD.transfer(shareholder,amount) (Libraries.sol#699)
State variables written after the call(s):
- shares[shareholder].amount = amount (Libraries.sol#638)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (Libraries.sol#639)
Apply the check-effects-interactions pattern.
Additional information: link
PartyPutin._addLiquidity(uint256,uint256) (PartyPutin.sol#179-191) ignores return value by _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
Ensure that all the return values of the function calls are used.
Additional information: link
PartyPutin._approve(address,address,uint256).owner (PartyPutin.sol#293) shadows:
- Ownable.owner() (Libraries.sol#479-481) (function)
Rename the local variables that shadow another component.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (Libraries.sol#621-624) should emit an event for:
- minPeriod = _minPeriod (Libraries.sol#622)
- minDistribution = _minDistribution (Libraries.sol#623)
Emit an event for critical parameter changes.
Additional information: link
DividendDistributor.distributeDividend(address) (Libraries.sol#693-704) has external calls inside a loop: BUSD.transfer(shareholder,amount) (Libraries.sol#699)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in PartyPutin._addLiquidity(uint256,uint256) (PartyPutin.sol#179-191):
External calls:
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
State variables written after the call(s):
- _addingLP = false (PartyPutin.sol#190)
Reentrancy in PartyPutin._distributeRewards(uint256) (PartyPutin.sol#161-164):
External calls:
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
State variables written after the call(s):
- _tracker.totalRewardPayout += amountWei (PartyPutin.sol#163)
Reentrancy in PartyPutin._swapContractTokens(uint8,bool) (PartyPutin.sol#136-160):
External calls:
- _swapTokensForBNB(toSwap) (PartyPutin.sol#149)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (PartyPutin.sol#171-177)
State variables written after the call(s):
- _tracker.totalCharityBNB += charityBNB (PartyPutin.sol#156)
- _tracker.totalMarketingBNB += marketingBNB (PartyPutin.sol#157)
Reentrancy in PartyPutin._swapContractTokens(uint8,bool) (PartyPutin.sol#136-160):
External calls:
- _swapTokensForBNB(toSwap) (PartyPutin.sol#149)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (PartyPutin.sol#171-177)
- _distributeRewards(rewardBNB) (PartyPutin.sol#158)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- _addLiquidity(LPTokens,LPBNB) (PartyPutin.sol#159)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
External calls sending eth:
- _distributeRewards(rewardBNB) (PartyPutin.sol#158)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- _addLiquidity(LPTokens,LPBNB) (PartyPutin.sol#159)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
State variables written after the call(s):
- _addLiquidity(LPTokens,LPBNB) (PartyPutin.sol#159)
- _addingLP = true (PartyPutin.sol#181)
- _addingLP = false (PartyPutin.sol#190)
Reentrancy in PartyPutin.constructor() (PartyPutin.sol#68-88):
External calls:
- pancakePairAddress = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this),_pancakeRouter.WETH()) (PartyPutin.sol#70)
State variables written after the call(s):
- _approve(address(this),address(_pancakeRouter),type()(uint256).max) (PartyPutin.sol#71)
- _allowances[owner][spender] = amount (PartyPutin.sol#295)
- _excludeFromFees[msg.sender] = _excludeFromFees[address(this)] = true (PartyPutin.sol#75)
- _excludeFromRewards[address(this)] = true (PartyPutin.sol#76)
- _excludeFromRewards[pancakePairAddress] = _excludeFromRewards[burnWallet] = true (PartyPutin.sol#77)
- _marketMakers[pancakePairAddress] = true (PartyPutin.sol#72)
- distributor = new DividendDistributor(pancakeRouterAddress) (PartyPutin.sol#73)
- distributorAddress = address(distributor) (PartyPutin.sol#74)
Reentrancy in PartyPutin.constructor() (PartyPutin.sol#68-88):
External calls:
- pancakePairAddress = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this),_pancakeRouter.WETH()) (PartyPutin.sol#70)
- _updateBalance(msg.sender,_totalSupply) (PartyPutin.sol#78)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
State variables written after the call(s):
- _taxes.maxBuyTax = _taxes.maxSellTax = 20 (PartyPutin.sol#80)
- _taxes.buyTax = _buyTax (PartyPutin.sol#82)
- _taxes.sellTax = _sellTax (PartyPutin.sol#83)
- _taxes.liquidityTax = 10 (PartyPutin.sol#84)
- _taxes.marketingTax = 25 (PartyPutin.sol#85)
- _taxes.charityTax = 25 (PartyPutin.sol#86)
- _taxes.rewardsTax = 40 (PartyPutin.sol#87)
Reentrancy in DividendDistributor.deposit() (Libraries.sol#642-660):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (Libraries.sol#649-654)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (Libraries.sol#659)
- totalDividends = totalDividends.add(amount) (Libraries.sol#658)
Reentrancy in DividendDistributor.distributeDividend(address) (Libraries.sol#693-704):
External calls:
- BUSD.transfer(shareholder,amount) (Libraries.sol#699)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (Libraries.sol#700)
Reentrancy in PartyPutin.ownerSetDistributorSettings(uint256,uint256,uint256) (PartyPutin.sol#227-232):
External calls:
- distributor.setDistributionCriteria(_minPeriod,_minDistribution) (PartyPutin.sol#229)
State variables written after the call(s):
- distributorGas = gas (PartyPutin.sol#230)
Reentrancy in DividendDistributor.setShare(address,uint256) (Libraries.sol#626-640):
External calls:
- distributeDividend(shareholder) (Libraries.sol#628)
- BUSD.transfer(shareholder,amount) (Libraries.sol#699)
State variables written after the call(s):
- addShareholder(shareholder) (Libraries.sol#632)
- shareholderIndexes[shareholder] = shareholders.length (Libraries.sol#726)
- removeShareholder(shareholder) (Libraries.sol#634)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (Libraries.sol#732)
- addShareholder(shareholder) (Libraries.sol#632)
- shareholders.push(shareholder) (Libraries.sol#727)
- removeShareholder(shareholder) (Libraries.sol#634)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (Libraries.sol#731)
- shareholders.pop() (Libraries.sol#733)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (Libraries.sol#637)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in PartyPutin._transfer(address,address,uint256) (PartyPutin.sol#89-106):
External calls:
- _swapContractTokens(swapThreshold,false) (PartyPutin.sol#99)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (PartyPutin.sol#171-177)
- _sellTokens(sender,recipient,amount) (PartyPutin.sol#100)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
- distributor.process(distributorGas) (PartyPutin.sol#124)
External calls sending eth:
- _swapContractTokens(swapThreshold,false) (PartyPutin.sol#99)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
Event emitted after the call(s):
- Transfer(sender,recipient,amount - taxedTokens) (PartyPutin.sol#125)
- _sellTokens(sender,recipient,amount) (PartyPutin.sol#100)
Reentrancy in PartyPutin._transferExcluded(address,address,uint256) (PartyPutin.sol#127-131):
External calls:
- _updateBalance(sender,_balances[sender] - amount) (PartyPutin.sol#128)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
- _updateBalance(recipient,_balances[recipient] + amount) (PartyPutin.sol#129)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (PartyPutin.sol#130)
Reentrancy in PartyPutin._transferIncluded(address,address,uint256,uint256) (PartyPutin.sol#120-126):
External calls:
- _updateBalance(sender,_balances[sender] - amount) (PartyPutin.sol#121)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
- _updateBalance(address(this),_balances[address(this)] + taxedTokens) (PartyPutin.sol#122)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
- _updateBalance(recipient,_balances[recipient] + (amount - taxedTokens)) (PartyPutin.sol#123)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
- distributor.process(distributorGas) (PartyPutin.sol#124)
Event emitted after the call(s):
- Transfer(sender,recipient,amount - taxedTokens) (PartyPutin.sol#125)
Reentrancy in PartyPutin.constructor() (PartyPutin.sol#68-88):
External calls:
- pancakePairAddress = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this),_pancakeRouter.WETH()) (PartyPutin.sol#70)
Event emitted after the call(s):
- Approval(owner,spender,amount) (PartyPutin.sol#296)
- _approve(address(this),address(_pancakeRouter),type()(uint256).max) (PartyPutin.sol#71)
Reentrancy in PartyPutin.constructor() (PartyPutin.sol#68-88):
External calls:
- pancakePairAddress = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this),_pancakeRouter.WETH()) (PartyPutin.sol#70)
- _updateBalance(msg.sender,_totalSupply) (PartyPutin.sol#78)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (PartyPutin.sol#79)
Reentrancy in PartyPutin.ownerSetDistributorSettings(uint256,uint256,uint256) (PartyPutin.sol#227-232):
External calls:
- distributor.setDistributionCriteria(_minPeriod,_minDistribution) (PartyPutin.sol#229)
Event emitted after the call(s):
- OwnerSetDistributorSettings(_minPeriod,_minDistribution,gas) (PartyPutin.sol#231)
Reentrancy in PartyPutin.ownerTriggerSwap(uint8,bool) (PartyPutin.sol#217-221):
External calls:
- _swapContractTokens(_swapThreshold,ignoreLimits) (PartyPutin.sol#219)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (PartyPutin.sol#171-177)
External calls sending eth:
- _swapContractTokens(_swapThreshold,ignoreLimits) (PartyPutin.sol#219)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
Event emitted after the call(s):
- OwnerTriggerSwap(_swapThreshold,ignoreLimits) (PartyPutin.sol#220)
Reentrancy in PartyPutin.transferFrom(address,address,uint256) (PartyPutin.sol#302-309):
External calls:
- _transfer(sender,recipient,amount) (PartyPutin.sol#304)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- distributor.setShare(account,_balances[account]) (PartyPutin.sol#134)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (PartyPutin.sol#171-177)
- distributor.process(distributorGas) (PartyPutin.sol#124)
External calls sending eth:
- _transfer(sender,recipient,amount) (PartyPutin.sol#304)
- distributor.deposit{value: amountWei}() (PartyPutin.sol#162)
- _pancakeRouter.addLiquidityETH{value: amountBNB}(address(this),amountTokens,0,0,msg.sender,block.timestamp) (PartyPutin.sol#182-189)
Event emitted after the call(s):
- Approval(owner,spender,amount) (PartyPutin.sol#296)
- _approve(sender,msg.sender,allowance_ - amount) (PartyPutin.sol#306)
- Transfer(sender,recipient,amount) (PartyPutin.sol#307)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (Libraries.sol#688-691) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (Libraries.sol#689-690)
PartyPutin._buyTokens(address,address,uint256) (PartyPutin.sol#107-114) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp < _antiBotTimer (PartyPutin.sol#108)
PartyPutin.antiBotTimeLeft() (PartyPutin.sol#335-337) uses timestamp for comparisons
Dangerous comparisons:
- _antiBotTimer > block.timestamp (PartyPutin.sol#336)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (Libraries.sol#187-196) uses assembly
- INLINE ASM (Libraries.sol#194)
Address._verifyCallResult(bool,bytes,string) (Libraries.sol#332-349) uses assembly
- INLINE ASM (Libraries.sol#341-344)
Do not use evm assembly.
Additional information: link
DividendDistributor.process(uint256) (Libraries.sol#662-686) has costly operations inside a loop:
- currentIndex = 0 (Libraries.sol#674)
DividendDistributor.distributeDividend(address) (Libraries.sol#693-704) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (Libraries.sol#698)
DividendDistributor.process(uint256) (Libraries.sol#662-686) has costly operations inside a loop:
- currentIndex ++ (Libraries.sol#683)
Use a local variable to hold the loop computation result.
Additional information: link
Address._verifyCallResult(bool,bytes,string) (Libraries.sol#332-349) is never used and should be removed
Address.functionCall(address,bytes) (Libraries.sol#240-242) is never used and should be removed
Address.functionCall(address,bytes,string) (Libraries.sol#250-252) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (Libraries.sol#265-267) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (Libraries.sol#275-282) is never used and should be removed
Address.functionDelegateCall(address,bytes) (Libraries.sol#314-316) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (Libraries.sol#324-330) is never used and should be removed
Address.functionStaticCall(address,bytes) (Libraries.sol#290-292) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (Libraries.sol#300-306) is never used and should be removed
Address.isContract(address) (Libraries.sol#187-196) is never used and should be removed
Address.sendValue(address,uint256) (Libraries.sol#214-220) is never used and should be removed
Context._msgData() (Libraries.sol#457-460) is never used and should be removed
SafeMath.div(uint256,uint256,string) (Libraries.sol#424-429) is never used and should be removed
SafeMath.mod(uint256,uint256) (Libraries.sol#413-415) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (Libraries.sol#431-436) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (Libraries.sol#417-422) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (Libraries.sol#356-362) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (Libraries.sol#383-388) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (Libraries.sol#390-395) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (Libraries.sol#371-381) is never used and should be removed
SafeMath.trySub(uint256,uint256) (Libraries.sol#364-369) is never used and should be removed
Remove unused functions.
Additional information: link
PartyPutin._maxWalletSize (PartyPutin.sol#20) is set pre-construction with a non-constant function or state variable:
- (_totalSupply / _balanceLimitDivider) * 3
PartyPutin._maxSellSize (PartyPutin.sol#21) is set pre-construction with a non-constant function or state variable:
- (_totalSupply / _balanceLimitDivider) * 3
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) (Libraries.sol#214-220):
- (success) = recipient.call{value: amount}() (Libraries.sol#218)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (Libraries.sol#275-282):
- (success,returndata) = target.call{value: value}(data) (Libraries.sol#280)
Low level call in Address.functionStaticCall(address,bytes,string) (Libraries.sol#300-306):
- (success,returndata) = target.staticcall(data) (Libraries.sol#304)
Low level call in Address.functionDelegateCall(address,bytes,string) (Libraries.sol#324-330):
- (success,returndata) = target.delegatecall(data) (Libraries.sol#328)
Low level call in PartyPutin.ownerWithdrawMarketingBNB(uint256) (PartyPutin.sol#243-248):
- (sent) = msg.sender.call{value: (amountWei)}() (PartyPutin.sol#245)
Low level call in PartyPutin.ownerWithdrawCharityBNB(uint256) (PartyPutin.sol#249-254):
- (sent) = msg.sender.call{value: (amountWei)}() (PartyPutin.sol#251)
Low level call in PartyPutin.ownerWithdrawBNB() (PartyPutin.sol#260-263):
- (success) = msg.sender.call{value: (address(this).balance)}() (PartyPutin.sol#261)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IPancakeERC20.DOMAIN_SEPARATOR() (Libraries.sol#17) is not in mixedCase
Function IPancakeERC20.PERMIT_TYPEHASH() (Libraries.sol#18) is not in mixedCase
Function IPancakeRouter01.WETH() (Libraries.sol#121) is not in mixedCase
Function IDEXRouter.WETH() (Libraries.sol#518) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (Libraries.sol#621) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (Libraries.sol#621) is not in mixedCase
Variable DividendDistributor._token (Libraries.sol#574) is not in mixedCase
Variable DividendDistributor.BUSD (Libraries.sol#582) is not in mixedCase
Variable DividendDistributor.WBNB (Libraries.sol#583) is not in mixedCase
Parameter PartyPutin.ownerTriggerSwap(uint8,bool)._swapThreshold (PartyPutin.sol#217) is not in mixedCase
Parameter PartyPutin.ownerUpdateSwapThreshold(uint8)._swapThreshold (PartyPutin.sol#222) is not in mixedCase
Parameter PartyPutin.ownerSetDistributorSettings(uint256,uint256,uint256)._minPeriod (PartyPutin.sol#227) is not in mixedCase
Parameter PartyPutin.ownerSetDistributorSettings(uint256,uint256,uint256)._minDistribution (PartyPutin.sol#227) is not in mixedCase
Constant PartyPutin._totalSupply (PartyPutin.sol#8) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PartyPutin._decimals (PartyPutin.sol#9) is not in UPPER_CASE_WITH_UNDERSCORES
Variable PartyPutin.AVAX (PartyPutin.sol#34) is not in mixedCase
Variable PartyPutin.WBNB (PartyPutin.sol#35) is not in mixedCase
Modifier PartyPutin.LockTheSwap() (PartyPutin.sol#60) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (Libraries.sol#458)" inContext (Libraries.sol#452-461)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (Libraries.sol#40) is too similar to IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (Libraries.sol#41)
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (Libraries.sol#523) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (Libraries.sol#524)
Prevent variables from having similar names.
Additional information: link
PartyPutin.ownerSetDistributorSettings(uint256,uint256,uint256) (PartyPutin.sol#227-232) uses literals with too many digits:
- require(bool)(gas <= 1000000) (PartyPutin.sol#228)
PartyPutin.slitherConstructorVariables() (PartyPutin.sol#6-339) uses literals with too many digits:
- burnWallet = 0x000000000000000000000000000000000000dEaD (PartyPutin.sol#33)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.WBNB (Libraries.sol#583) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (Libraries.sol#596) should be constant
PartyPutin.AVAX (PartyPutin.sol#34) should be constant
PartyPutin.WBNB (PartyPutin.sol#35) should be constant
PartyPutin._balanceLimitDivider (PartyPutin.sol#19) should be constant
PartyPutin._buyTax (PartyPutin.sol#13) should be constant
PartyPutin._removingLP (PartyPutin.sol#26) should be constant
PartyPutin._sellTax (PartyPutin.sol#14) should be constant
PartyPutin._tokenName (PartyPutin.sol#11) should be constant
PartyPutin._tokenSymbol (PartyPutin.sol#12) should be constant
PartyPutin.burnWallet (PartyPutin.sol#33) should be constant
PartyPutin.pancakeRouterAddress (PartyPutin.sol#31) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Libraries.sol#498-501)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Libraries.sol#507-511)
ownerUpdatePrimaryTaxes(uint8,uint8) should be declared external:
- PartyPutin.ownerUpdatePrimaryTaxes(uint8,uint8) (PartyPutin.sol#193-198)
ownerUpdateSecondaryTaxes(uint8,uint8,uint8,uint8,uint8) should be declared external:
- PartyPutin.ownerUpdateSecondaryTaxes(uint8,uint8,uint8,uint8,uint8) (PartyPutin.sol#199-206)
ownerEnableTrading() should be declared external:
- PartyPutin.ownerEnableTrading() (PartyPutin.sol#207-212)
ownerSetSwapEnabled(bool) should be declared external:
- PartyPutin.ownerSetSwapEnabled(bool) (PartyPutin.sol#213-216)
ownerTriggerSwap(uint8,bool) should be declared external:
- PartyPutin.ownerTriggerSwap(uint8,bool) (PartyPutin.sol#217-221)
ownerUpdateSwapThreshold(uint8) should be declared external:
- PartyPutin.ownerUpdateSwapThreshold(uint8) (PartyPutin.sol#222-226)
ownerSetDistributorSettings(uint256,uint256,uint256) should be declared external:
- PartyPutin.ownerSetDistributorSettings(uint256,uint256,uint256) (PartyPutin.sol#227-232)
ownerExcludeFromFees(address,bool) should be declared external:
- PartyPutin.ownerExcludeFromFees(address,bool) (PartyPutin.sol#233-235)
ownerExcludeFromRewards(address,bool) should be declared external:
- PartyPutin.ownerExcludeFromRewards(address,bool) (PartyPutin.sol#236-238)
ownerWithdrawMarketingBNB(uint256) should be declared external:
- PartyPutin.ownerWithdrawMarketingBNB(uint256) (PartyPutin.sol#243-248)
ownerWithdrawCharityBNB(uint256) should be declared external:
- PartyPutin.ownerWithdrawCharityBNB(uint256) (PartyPutin.sol#249-254)
ownerWithdrawStrandedToken(address) should be declared external:
- PartyPutin.ownerWithdrawStrandedToken(address) (PartyPutin.sol#255-259)
ownerWithdrawBNB() should be declared external:
- PartyPutin.ownerWithdrawBNB() (PartyPutin.sol#260-263)
Use the external attribute for functions never called from the contract.
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.
Swap operations require suspiciously high gas. Contract logic is complex and may disguise some form of scam.
Token is deployed only at one blockchain
Token has only one trading pair
Contract has 10% buy tax and 9% sell tax.
Taxes are low and contract ownership is renounced.
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