Hunt prep
Before you test Angle Protocol - Invitational
What 10 disclosed reports say about Angle Protocol - Invitational: 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 |
| Smart contracts lesson | 3 | 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.
-
Possible reentrancy during redemption/swap
A reentrancy guard was added to several functions, including redeem and swap.
Disclosed
-
LibHelpers.piecewiseLinear will revert when the value is less than the first element of the array
The helper should return the first y-value when the input is below the first x-value, and the code was mitigated with a handler for this edge case.
Disclosed
-
uint128 changeAmount might overflow
The report recommends using uint256 for the variable or narrowing the allowed range of the normalizer.
Disclosed
-
estimatedAPR() might return the wrong APR
The function was fixed by returning zero when lockedProfit() is zero, as confirmed by the mitigation.
Disclosed
-
Read-only reentrancy is possible
A reentrancy guard was added to several functions, including getCollateralRatio() and redeem()/swap().
Disclosed
-
Unsafe cast in getCollateralRatio()
The issue was mitigated by adding a safe cast, but the mitigation was later found to be in error according to the report status.
Disclosed
-
Poor detection of disputed trees allows claiming tokens from a disputed tree
The fix was to also check that the disputer address is zero before returning the current Merkle root.
Disclosed
-
The first disputer might lose funds although his dispute is valid
The disputeTree function should not allow a new dispute when one is already active; this was fixed by applying the suggested change.
Disclosed
-
Interest is not accrued before parameters are updated in SavingsVest
The setParams function was changed to call accrue before updating the parameters.
Disclosed
-
User may get less tokens than expected when collateral list order changes
The project applied a mitigation that checks the length of minAmountsOut, but the report notes this does not fully solve the problem; a complete fix would pair token addresses with amounts.
Disclosed