Hunt prep
Before you test Olas
What 10 disclosed reports say about Olas: 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 | 5 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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.
-
Bonds created in year cross epoch’s can lead to lost payouts
The recommended mitigation is to separate bond amounts for the next year when epochs span multiple years.
Disclosed
-
Possible DOS when withdrawing liquidity from Solana Lockbox
The lockbox should be redesigned to hold liquidity in a single position that grows with deposits, rather than adding new positions.
Disclosed
-
LP rewards in liquidity_lockbox can be arbitraged
A lock-up period for deposited positions should be implemented, and rewards should not be distributed to the withdrawing user but collected for the protocol.
Disclosed
-
Permanent DOS in liquidity_lockbox for under $10
The contract should be redesigned to use an externally created account with a larger size limit, or to clear storage for withdrawn positions, or to be reimplemented using the Solana SDK directly.
Disclosed
-
Wrong invocation of Whirpools’s updateFeesAndRewards will cause it to always revert
The updateFeesAndRewards call should be removed because fees and rewards are already updated in the decreaseLiquidity call.
Disclosed
-
Withdrawals can be frozen by creating null deposits
The deposit function should reject zero liquidity by adding a check that the supplied liquidity is greater than zero.
Disclosed
-
Withdraw amount returned by getLiquidityAmountsAndPositions may be incorrect
The last position amount should be reduced by the remaining amount by changing the assignment to a subtraction.
Disclosed
-
Missing slippage protection in liquidity_lockbox::withdraw
The withdraw function should accept minimum token amounts as parameters and pass them to decreaseLiquidity instead of hard-coded zeros.
Disclosed