Hunt prep
Before you test BadgerDAO ibBTC Wrapper contest
What 8 disclosed reports say about BadgerDAO ibBTC Wrapper contest: 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 | 2 | 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.
-
Approved spender can spend too many tokens
The allowances should track rebalanced amounts, and transferFrom should subtract the transferred amount rather than the share amount; the project confirmed and resolved this.
Disclosed
-
The design of wibBTC is not fully compatible with the current Curve StableSwap pool
The project should create a revised version of the Curve StableSwap contract that can handle dynamic balances properly, as the team confirmed they will do.
Disclosed
-
hard to clear balance
A new `transferShares` function should be added alongside the existing `transfer()` to improve user experience.
Disclosed
-
Unable to transfer WrappedIbbtc if Oracle go down
The two contracts should be made consistent, either by caching the price as WrappedIbbtcEth does or by changing the other contract, depending on the intended specification.
Disclosed
-
WrappedIbbtc and WrappedIbbtcEth contracts do not filter out price feed outliers
The contracts should be changed to separate user deposit/burn requests from the actual mint/burn execution, running the latter on a schedule and only when the new price is within a threshold of the median of recent prices.
Disclosed
-
WrappedIbbtcEth contract will use stalled price for mint/burn if updatePricePerShare wasn’t run properly
The contract should be modified to check the staleness of the price and either revert or trigger an update if the price is too old, as suggested in the report and confirmed by the project.
Disclosed
-
No sanity check on pricePerShare might lead to lost value
Add a sanity check so that pricePerShare never decreases; discard updates where the new value is smaller than the current one.
Disclosed