Hunt prep
Before you test Opyn Crab Netting
What 8 disclosed reports say about Opyn Crab Netting: 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 | 3 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Access control 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.
-
Orders from other market makers can be invalidated
The checkOrder() and _checkOrder() functions should be view functions, _useNonce() should be removed from _checkOrder(), and _useNonce() and _checkOrder() should be used in withdrawAuction() and depositAuction().
Disclosed
-
Precision is lost in depositAuction and withdrawAuction user amount due calculations
The code should multiply before dividing so that precision is preserved; the report notes a fix was later linked in discussion.
Disclosed
-
Denial of Service - userDepositIndex and userWithdrawIndex growing indefinitely
The fix was to remove elements from the arrays using pop() when deleting deposits, which is easy since iteration starts from the last item.
Disclosed
-
User withdrawals are dependent on admin actions
The contract should set a meaningful expiry timestamp for deposits, after which users can withdraw their funds at any time without owner intervention.
Disclosed
-
Used orders or revoked token authorizations can cause `withdrawAuction` and `depositAuction` to fail
The auction functions should skip orders whose nonce is already used or whose balance or approval is insufficient, and should require the auction to be live before withdrawals can occur.
Disclosed
-
debtToMint incorrectly treats feeAdjustment decimals
The fix is to divide the feeAdjustment term by 1e18 to account for its decimals.
Disclosed
-
Adverary can DOS contract by making a large number of deposits/withdraws then removing them all
The fix allows the owner to set the withdrawsIndex and depositIndex to skip queue entries, and was accepted.
Disclosed
-
Netting and withdraw auction can be frozen permanently
The fix wraps each USDC transfer in a try/catch so a failing entry is skipped, and the blocked user can later claim or dequeue their withdrawal themselves; the report says the fix was accepted.
Disclosed