Hunt prep
Before you test Unitas Protocol
What 7 disclosed reports say about Unitas Protocol: 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 |
| DoS 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.
-
Unitas swap function is vulnerable to Sandwich Attack at oracle price update
The protocol did not change code but plans to update the price via private transaction (Flashbot) to avoid mempool visibility.
Disclosed
-
Users may not be able to fully redeem USD1 into USDT even when reserve ratio is above 100%
The portfolio amount should be excluded from the reserve ratio calculation.
Disclosed
-
If any stable depegs, oracle will fail, disabling swaps
The protocol should use a secondary oracle as a fallback and wrap the price fetch in a try-catch, storing the last valid price, or otherwise handle out-of-bounds prices without halting swaps.
Disclosed
-
No clear threshold on when the oracle is updated will cause stale prices to be accepted
The issue was fixed by adding a configurable staleness threshold (defaulting to one day) that rejects prices older than the threshold.
Disclosed
-
No slippage or deadline control for swapping while stability burning
The swap function should be changed to accept a deadline and a minimum output amount, and check both at the start and end of execution.
Disclosed
-
In case the portfolio makes a loss, the total reserves and reserve ratio will be inflated
The recommendation is to add an admin function to write off the balance in case of investment loss; the protocol team acknowledged but chose not to fix it.
Disclosed
-
USD1 is priced as $1 instead of being pegged to USDT
The swap logic should enforce a 1:1 exchange rate between USD1 and USDT rather than deriving it from the oracle price, or the oracle should be configured to always return 1:1 for that pair.
Disclosed