Hunt prep
Before you test Illuminate Round 2
What 38 disclosed reports say about Illuminate Round 2: 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 | 35 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Race condition 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.
-
Illuminate's PT doesn't respect users' slippage specifications for underlyings
The contract should be updated to respect the user's slippage specification and not add extra slippage, as the team said they will address it in a PR.
Disclosed
-
ERC5095 has not approved MarketPlace to spend tokens in ERC5095
The ERC5095 contract should approve the MarketPlace to spend its tokens, for example in the setPool function.
Disclosed
-
The Notional version of `lend()` can be used to lock iPTs
The function should revert if p is not MarketPlace.Principals.Notional.
Disclosed
-
Protocol fees not taken on premium
Calculate the fee after the order, on the full balance change.
Disclosed
-
Illuminate PTs can be used to mint other Illuminate PTs
The mint function should reject Illuminate PTs as the input principal token, or alternatively burn the original Illuminate PT before minting a new one.
Disclosed
-
Incorrect parameters
Review all integrations and function invocations to ensure the appropriate parameters are passed.
Disclosed
-
User can accidentally burn their iPT tokens during redemption
The second redeem function (which redeems iPT tokens) should be disallowed from being called before the first redeem function (which redeems external PT tokens) is called.
Disclosed
-
Lender#lend for Sense has mismatched decimals
The contract should query the decimals of the Sense principal token and adjust the amount to match the vault's decimals before minting shares.
Disclosed
-
There are no Illuminate PT transfers from the owner in ERC5095's withdraw and redeem before maturity
The contract should transfer the principal tokens from the owner to itself before selling them via the marketplace.
Disclosed
-
External PT redeem functions can be reentered to double count the received underlying funds
Add reentrancy guard modifiers to both redeem() functions, and consider adding one to the Illuminate redeem as well.
Disclosed
-
Wrong Illuminate PT allowance checks lead to loss of principal
The allowance should be adjusted by the number of shares equivalent to the underlying amount, for example by using previewWithdraw.
Disclosed
-
Notional PT redemptions do not use flash-resistant prices
The code should use balanceOf() instead of maxRedeem() and ensure Illuminate PTs cannot be burned while Notional PTs remain unredeemed.
Disclosed
-
Users can loose their Illuminate tokens if amount to redeem is greater than holdings[u][m]
The contract should be redesigned so that holdings cannot be out of sync with user balances, or it should check that the redeemed amount is sufficient before burning tokens.
Disclosed
-
Lending on Swivel: protocol fees not taken when remainder of underlying is swapped in YieldPool
The protocol fee should be extracted from the premium in the if(e) block of Swivel's lend function.
Disclosed
-
APWine PT redemptions can be blocked forever
The Redeemer should check the actual number of FYTs received during the roll and only transfer that amount, then withdraw the minimum of the requested amount and the current FYT balance.
Disclosed