Hunt prep
Before you test PoolTogether: The Prize Layer for DeFi
What 22 disclosed reports say about PoolTogether: The Prize Layer for DeFi: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 13 | 0 | – | – | $0 |
| DoS lesson | 7 | 0 | – | – | $0 |
| Misconfiguration lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
`drawTimeoutAt()` causes the prize pool to shutdown one draw earlier
The protocol team fixed this issue by updating the documentation and enforcing a minimum value of 2 draws for drawTimeout.
Disclosed
-
Unfair Manipulation of Winning Chances Due to Stolen Yield on `Blast`
The protocol team fixed this issue by configuring WETH as claimable and donating the yield.
Disclosed
-
Estimated prize draws in TieredLiquidityDistributor are off due to rounding down when calculating the sum, leading to incorrect prizes
The calculation should be performed with higher precision by multiplying each tier's prize count by a constant (e.g., 1e5) before summing, then dividing the final sum by that constant.
Disclosed
-
Gas Manipulation by Malicious Winners in claimPrizes Function
The issue was fixed by using ExcessivelySafeCall to restrict return data copying to 128 bytes.
Disclosed
-
Draws can be retried even if a random number is available or the current draw has finished
The protocol team fixed this issue by changing the check to require the exact request to be solved for completion, preventing a request from being both failed and complete.
Disclosed
-
`TpdaLiquidationPair.swapExactAmountOut()` can be DOSed by a vault's mint limit
The protocol should be fixed by changing liquidatableBalanceOf() and/or _availableBalance() so they are not restricted by the vault's mint limit, for example by allowing callers to specify the output token.
Disclosed
-
The claimer's fee will be stolen by the winner
The issue was fixed by adding a re-entrancy guard to the Claimer contract that disallows claiming prizes by re-entering through the same claimer contract.
Disclosed
-
Price formula in `TpdaLiquidationPair._computePrice()` does not account for a jump in liquidatable balance
The recommendation is to use an alternative auction formula that takes into account the current liquidatable balance in the vault.
Disclosed
-
Draw auction rewards likely exceed the available rewards, resulting in overpaying rewards or running into an `InsufficientReserve` error
The issue was fixed by limiting the maximum reward to the remaining fraction after other rewards are considered.
Disclosed
-
Potential ETH Loss Due to transfer Usage in Requestor Contract on `zkSync`
The issue was fixed by replacing `.transfer` with `.call`.
Disclosed
-
`PUSH0` opcode Is Not Supported on Linea yet
The report recommends compiling with Solidity version 0.8.19 for Linea to avoid the PUSH0 opcode.
Disclosed
-
Vault portion calculation in `PrizePool::getVaultPortion()` is incorrect as `_startDrawIdInclusive` has been erased
The range size in computeRangeStartDrawIdInclusive() should be capped to 365 (or grandPrizePeriodDraws) to avoid fetching an erased draw ID; the protocol team fixed this issue.
Disclosed
-
`maxRedeem` doesn't comply with ERC-4626
The issue was fixed by making maxRedeem return 0 instead of reverting when total assets are zero.
Disclosed
-
DoSed liquidations as `PrizeVault::liquidatableBalanceOf()` does not take into account the `mintLimit` when the token out is the asset
The issue was fixed by capping the liquidatable balance so that the corresponding fee minted falls within the mint limit.
Disclosed
-
User's might be able to claim their prizes even after shutdown
The issue was fixed by moving the shutdown time to the start of the corresponding draw.
Disclosed