The drawTimeoutAt() function returns a shutdown timestamp one draw period too early, causing the prize pool to shut down before the intended number of missed draws. An attacker could not directly exploit this, but it breaks core functionality by preventing prize awards and causing loss of yield for depositors.
The prize pool holds WETH on Blast, which automatically generates yield that anyone can contribute to their own vault via contributePrizeTokens, inflating their vault's portion and unfairly increasing their winning chances while decreasing others'. This undermines the fairness of prize distribution.
The protocol's estimated prize count per draw is calculated by summing per-tier prize counts that are each rounded down, causing the total to be lower than the true expected value. This can cause the protocol to advance to a higher tier one claim earlier than intended, reducing rewards for the next draw.
A malicious winner could cause the claimPrizes function to revert by returning a huge data chunk, consuming gas and preventing legitimate claims. This allowed the attacker to replay the transaction and claim prizes without computing winners.
The RngWitnet contract's isRequestFailed function incorrectly reports a request as failed even when a later successful request provides a valid random number, allowing draw bots to call startDraw again after a draw has finished or when randomness is already available, causing loss of funds to other bots.
The liquidation function's available balance is capped by the vault's mint limit, so an attacker can deposit enough to reach that limit and cause all liquidation swaps to revert. This prevents bots from liquidating, allowing the attacker to later buy the liquidatable balance at a lower price.
A winner can set an afterClaimPrize hook that re-enters the claimer contract to claim prizes for other winners, stealing the reward fees that the original caller would have earned. The original caller only receives the fee for the first winner, while the attacker collects fees for the rest without paying gas.
The price formula in TpdaLiquidationPair._computePrice() decreases linearly over time and does not account for sudden increases in the vault's liquidatable balance, so the price can be much lower than the actual value. An attacker could exploit this by liquidating the vault's balance at an artificially low price, causing a loss of funds for the vault and its users.
The sum of the reward fractions for starting and finishing a draw can exceed 1.0, causing either overpayment of rewards or an InsufficientReserve error that prevents the draw from being awarded.
The Requestor contract uses `transfer` to send ETH, which may fail on zkSync due to the fixed 2300 gas stipend being insufficient, potentially making users' ETH irretrievable. An attacker could not directly exploit this, but users may lose funds.
The smart contracts were compiled with Solidity 0.8.24, which can include the PUSH0 opcode, but the Linea network does not support that opcode. Deploying the contracts on Linea could therefore fail or behave unexpectedly.
A user can set a prize hook that reverts when a canary tier prize is claimed, preventing the protocol from expanding the number of prize tiers. This gives the user control over the prize distribution, which they should not have.
The vault portion calculation in PrizePool::getVaultPortion() is incorrect because it uses a start draw ID that has been overwritten in the total accumulator but not in the vault and donation accumulators. This can give users higher than expected chances of winning prizes or cause claims to revert due to underflow.
The maxRedeem function in a PrizeVault contract could revert due to a division by zero when total assets are zero, violating the ERC-4626 requirement that maxRedeem must not revert. An attacker could not directly exploit this, but it represents a compliance failure that could disrupt integrations.
The PrizeVault's liquidatableBalanceOf function overestimates the maximum liquidatable amount when the token out is the vault's asset, because it does not account for the yield fee that is minted and the mint limit. This causes liquidations to revert when the minted fee would exceed the mint limit, potentially denying liquidation and causing losses.
The claimPrize function lacks a shutdown check, so winners can claim prizes after a shutdown if the draw is not finalised. This allows them to also withdraw their share of the shutdown balance, effectively taking funds from other users.
The maxDeposit function of a PrizeVault contract does not comply with ERC-4626 because it can return an amount that, when deposited, causes a revert due to a lossy deposit. An attacker could use this to cause a denial of service by making deposits revert when the yield buffer is depleted or absent.
The Claimer contract's claimPrizes function can revert when the prize for the tier (numberOfTiers - 3) is zero, because the fee calculation calls wadLn(0). This prevents claimers from claiming prizes for winners in that draw, so winners may not receive their prizes automatically.
The claimer contract calculates the fee per claim using the VRGDA algorithm based on the number of prizes in the claim array, but if some prizes are already claimed or revert, the actual number of successful claims is lower, so the fee per claim is undervalued. This means claimers receive less fee than they should according to the algorithm.
The finish draw reward calculation incorrectly includes the time taken for the Witnet randomness request to be fulfilled, causing the protocol to overpay rewards. An attacker could exploit this by repeatedly finishing draws to extract excess rewards.
The protocol relies on Witnet for randomness, but Witnet is not deployed on several target blockchains, so prize draws cannot start or complete on those chains. Vaults can still be deployed and accrue yield, but the prize pool will be unable to award prizes and will only refund users upon shutdown.
The canStartDraw function checks draw expiry using the draw close time, while startDraw uses the last RNG request's closedAt time, so after a retried RNG request the two disagree. Off-chain actors relying on canStartDraw may wrongly believe a new draw auction cannot be started, potentially preventing the current draw from being awarded.
PT
PoolTogether: The Prize Layer for DeFi
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.