Hunt prep
Before you test BadgerDAO Zaps contest
What 7 disclosed reports say about BadgerDAO Zaps 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 | 4 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS 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.
-
Improper implementation of slippage check
The project said it would add a check that the received amount is at least the minimum before transferring to the user.
Disclosed
-
Missing _token.approve() to curvePool in setZapConfig
The setZapConfig function should be modified to call safeApprove for the new curvePool when it changes, as shown in the recommendation.
Disclosed
-
Zap contract’s redeem() function doesn’t check which token the user wants to receive
The function should be fixed by verifying that the passed token address is either wBTC or renBTC, and adding a slippage check.
Disclosed
-
Excessive require makes the transaction fail unexpectedly
The check should be moved inside the conditional block so it only runs when renBTC or wBTC amounts are positive; the report states the issue was mitigated by following this advice.
Disclosed
-
No slippage control on deposit of IbbtcVaultZap.sol
Add a `minOut` parameter to the deposit function and enforce it, similar to other contracts' mint functions.
Disclosed