@1delta/margin-fetcher 5.0.61 → 5.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +19 -2
- package/dist/index.js +307 -110
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -7648,8 +7648,14 @@ interface LiquidationTerms {
|
|
|
7648
7648
|
* - `default-seizure` The whole escrow is forfeit on a missed payment
|
|
7649
7649
|
* (Teller).
|
|
7650
7650
|
* - `delivery` Unpaid collateral is delivered to lenders (TermMax).
|
|
7651
|
-
|
|
7652
|
-
|
|
7651
|
+
* - `repay-to-target-hf`
|
|
7652
|
+
* There is no close factor at all: the liquidator repays
|
|
7653
|
+
* however much it takes to restore the position to
|
|
7654
|
+
* {@link targetHealthFactor}, and the bonus SCALES with
|
|
7655
|
+
* how far under water it is (Aave V4). See
|
|
7656
|
+
* {@link healthFactorForMaxBonus}.
|
|
7657
|
+
*/
|
|
7658
|
+
model?: Open<'repay-seize' | 'soft-band' | 'stability-pool' | 'auction' | 'default-seizure' | 'delivery' | 'repay-to-target-hf' | 'none'>;
|
|
7653
7659
|
/** Who ends up holding the seized collateral. */
|
|
7654
7660
|
absorber?: Open<'liquidator' | 'stability-pool' | 'other-borrowers' | 'lenders' | 'amm'>;
|
|
7655
7661
|
/**
|
|
@@ -7712,6 +7718,17 @@ interface LiquidationTerms {
|
|
|
7712
7718
|
* this. Without it, `closeFactor: 0.5` understates the worst case.
|
|
7713
7719
|
*/
|
|
7714
7720
|
fullCloseBelowHealthFactor?: number;
|
|
7721
|
+
/**
|
|
7722
|
+
* `repay-to-target-hf` only: the health factor at or below which the
|
|
7723
|
+
* liquidator's bonus reaches its maximum — i.e. the value {@link penalty}
|
|
7724
|
+
* actually describes.
|
|
7725
|
+
*
|
|
7726
|
+
* Load-bearing next to a scaling bonus, because the two fields say different
|
|
7727
|
+
* things: Aave V4's bonus grows from ~0 at HF 1 to `maxLiquidationBonus`
|
|
7728
|
+
* here, so publishing the max alone reads as a flat penalty every liquidation
|
|
7729
|
+
* charges, and publishing nothing reads as a market with no penalty at all.
|
|
7730
|
+
*/
|
|
7731
|
+
healthFactorForMaxBonus?: number;
|
|
7715
7732
|
trigger: Open<'price' | 'time' | 'price-and-time' | 'redemption' | 'none'>;
|
|
7716
7733
|
/** Max LTV at open. */
|
|
7717
7734
|
ltv?: number;
|