Hunt prep
Before you test Exactly Protocol
What 18 disclosed reports say about Exactly 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 | 16 | 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.
-
Fixed interest rates can be manipulated by a whale borrower
The fixed utilisation rate should be calculated using an average of the floating debt, similar to how the average of total assets is used.
Disclosed
-
When bad debts are cleared, there will be some untracked funds
The clearBadDebt function should be updated to also add the unassignedEarnings to the earningsAccumulator and reset them when the fixed pool's borrowed amount equals the principal being cleared.
Disclosed
-
Expired maturities longer than `FixedLib.INTERVAL` with unaccrued earnings may be arbitraged and/or might lead to significant bad debt creation
Unaccrued earnings should be converted into the earningsAccumulator rather than directly into floating assets, and totalAssets() should stop previewing unaccrued earnings.
Disclosed
-
Liquidation does not prioritize lowest LTV tokens
The liquidate function should check that the health factor improves after liquidation, and a view function could help liquidators choose a suitable seize market.
Disclosed
-
Utilization rates are 0 when average assets are 0, which may be used to game maturity borrows / deposits / withdrawals
The interest rate should be set to maximum when assets are zero, and initialization should set the factor to a past time so the first depositor increases utilization correctly.
Disclosed
-
Unassigned pool earnings can be stolen when a maturity borrow is liquidated by depositing at maturity with 1 principal
The protocol team fixed this issue by converting unassigned earnings to the earnings accumulator during liquidations.
Disclosed
-
Bad debt isn't cleared when `earningsAccumulator` is lower than a fixed-pool bad debt
The recommendation is to clear the maximum amount of bad debt possible when the accumulated earnings are slightly lower than the bad debt; the team considers the current behaviour a design choice.
Disclosed
-
`Market::liquidate()` will not work when most of the liquidity is borrowed due to wrong liquidator `transferFrom()` order
The protocol team fixed this issue by reordering the transferFrom call to occur before transferring collateral to the liquidator.
Disclosed
-
Theft of unassigned earnings from a fixed pool
The issue was fixed by requiring that the calculated fee is greater than zero, preventing zero-fee borrows.
Disclosed
-
DoS on liquidations when utilization rate is high
The recommendation is to not call beforeWithdraw during liquidation and instead replicate its logic in internalSeize without the liquidity check.
Disclosed
-
Manipulation of the floating debt by updating `floatingBackupBorrowed`
The floating debt should be accrued before floatingBackupBorrowed is updated in depositAtMaturity, withdrawAtMaturity and noTransferRepayAtMaturity; the text states the protocol team fixed it and the fix was signed off.
Disclosed
-
borrow() maliciously let others to enter market
The protocol team fixed this issue by adding a check to revert when the borrowed amount is zero.
Disclosed
-
Rewards can disappear when new rewards are distributed in the RewardsController
The protocol acknowledged the issue; the text gives no explicit fix, but the calculation should settle or preserve shares earned under the previous start time before the start is moved.
Disclosed
-
The claimable rewards amount for borrowers decreases over time
The fixed borrow shares should be snapshotted when the fixed borrowing occurs, so that they do not change over time.
Disclosed
-
Profitable liquidations and accumulation of bad debt due to earnings accumulator not being triggered before liquidating
Accrue accumulated earnings at the start of liquidation so the collateral preview matches the state used for the seizure, though one commenter reported that this alone caused liquidity reverts.
Disclosed