Hunt prep
Before you test Olympus RBS 2.0
What 33 disclosed reports say about Olympus RBS 2.0: 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 | 24 | 0 | – | – | $0 |
| DoS lesson | 4 | 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.
-
Incorrect ProtocolOwnedLiquidityOhm calculation due to inclusion of other user's reserves
The deposit function in BunniHub was restricted to only the owner, preventing arbitrary users from adding liquidity.
Disclosed
-
BunniPrice.getBunniTokenPrice doesn't include fees
The fix should include collected amounts and additionally earned fees in the position reserves.
Disclosed
-
getBunniTokenPrice wrongly returns the total price of all tokens
The function was fixed by dividing the total value by the total token supply to normalise the price per token.
Disclosed
-
Incorrect deviation calculation in isDeviatingWithBpsCheck function
The function should be revised to calculate deviation based on the mean value, as was done in the fix.
Disclosed
-
Balancer LP valuation methodologies use the incorrect supply metric
The code should use getActualSupply() instead of totalSupply() for Balancer pools, and the team may drop the Balancer submodules entirely.
Disclosed
-
getReservesByCategory() when useSubmodules =true and submoduleReservesSelector=bytes4(0) will revert
The lookup was fixed to only iterate submodules when the category uses submodules and has a non-empty reserves selector.
Disclosed
-
OlympusPrice.v2.sol#storePrice: The moving average prices are used recursively for the calculation of the moving average price
The fix was to exclude the moving average when storing price by adding a parameter to _getCurrentPrice and setting it to false in storePrice.
Disclosed
-
Incorrect StablePool BPT price calculation
For pools with rate providers, divide each token's price by its rate provider's rate before taking the minimum.
Disclosed
-
Possible incorrect price for tokens in Balancer stable pool due to amplification parameter update
The price feed should use the current amplification factor by calling getAmplificationParameter instead of relying on the cached value from getLastInvariant.
Disclosed
-
Price can be miscalculated
The guard was changed so that only fewer than two non-zero prices falls back to the first value, and the fix now falls back to the average-deviation path instead.
Disclosed
-
Inconsistency in BunniToken Price Calculation
The methodology was made consistent by including uncollected fees in both the deviation check and the final price calculation.
Disclosed
-
Users can abuse discrepancies between oracle and true asset price to mint more OHM than needed and profit from it
The vault should use the lesser of the pool price and the oracle price to determine how much OHM to mint, and/or add deposit/withdrawal fees to make such attacks unprofitable.
Disclosed
-
Adversary can stake LP directly for the vault then withdraw to break lp accounting in BLVaultManagerLido
The fix was implemented by making individual vaults track their own deposits and preventing withdrawals greater than deposited.
Disclosed
-
SetLimit does not take into account burned OHM
The setLimit function was fixed to properly account for circulatingOhmBurned, as confirmed by the judge.
Disclosed
-
minTokenAmounts_ is useless in new configuration and doesn't provide any real slippage protection
The fix added a secondary input allowing the user to specify a minimum wstETH amount to receive after the arb is skimmed.
Disclosed