Hunt prep
Before you test Notional Update #5
What 18 disclosed reports say about Notional Update #5: 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 | 15 | 0 | – | – | $0 |
| DoS 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.
-
Lender transactions can be front-run, leading to lost funds
The protocol team fixed this issue in a pull request.
Disclosed
-
External lending can exceed the threshold
The issue was fixed by using a corrected formula that solves for the maximum deposit while keeping the threshold ratio constant.
Disclosed
-
Unexpected behavior when calling certain ERC4626 functions
The issue was fixed by making the affected functions revert while the settlement rate is not set.
Disclosed
-
Low precision is used when checking spot price deviation
The precision was increased from 100 to 1e8, and the protocol team fixed this issue.
Disclosed
-
Residual ETH will not be sent back to users during the minting of wfCash
The issue was fixed by measuring the native ETH balance before and after the deposit and forwarding any residual native ETH to the user.
Disclosed
-
Residual ETH not sent back when `batchBalanceAndTradeAction` executed
The issue was fixed by measuring the native ETH balance before and after the batchBalanceAndTradeAction and forwarding any residual native ETH to the users.
Disclosed
-
Wfcash deposit might give incorrect amount of shares (wfcash) in some cases
The issue was fixed by adding code to handle the case when there is not enough available fcash on the markets.
Disclosed
-
_isExternalLendingUnhealthy() using stale factors
The issue was fixed by changing the code to use the latest accrued factors via getPrimeCashRateView() instead of getPrimeCashFactors().
Disclosed
-
Malicious users could block liquidation or perform DOS
The issue was fixed by wrapping the reward transfer in a try/catch so a failed transfer only loses rewards for that account instead of reverting the whole operation.
Disclosed
-
The use of spot data when discounting is subjected to manipulation
The issue was fixed by adding a slippage check against the user-supplied maximum implied rate.
Disclosed
-
getOracleData() maxExternalDeposit not accurate
The issue was fixed by subtracting the accruedToTreasury amount from the supply cap calculation.
Disclosed
-
`wfCashERC4626`
The protocol team fixed this issue by not allowing tokens with a fee on transfer to perform lend at zero.
Disclosed
-
Rebalance might be skipped even if the external lending is unhealthy
The off-target percentage should be calculated as the absolute difference divided by the target amount.
Disclosed
-
`ExternalLending`
The withdrawal amount should be adjusted to account for the transfer fee, for example by dividing by (1 - fee percentage).
Disclosed
-
getTargetExternalLendingAmount() targetAmount may far less than the correct value
The fix should only apply the maxExternalDeposit limit when the target amount exceeds the current external lending amount, as shown in the recommendation.
Disclosed