@1delta/margin-fetcher 0.0.323 → 0.0.324
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.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/lending/public-data/lista/getMarketsFromChain.d.ts.map +1 -1
- package/dist/lending/public-data/midnight/convertPublic.d.ts.map +1 -1
- package/dist/types/lenderTypes.d.ts +16 -0
- package/dist/types/lenderTypes.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -13457,7 +13457,11 @@ function getListaMarketDataConverter(lender, chainId, prices, additionalYields =
|
|
|
13457
13457
|
model: "lista",
|
|
13458
13458
|
maturity: void 0,
|
|
13459
13459
|
fees: {},
|
|
13460
|
-
earlyRepay: { kind: "penalty" }
|
|
13460
|
+
earlyRepay: { kind: "penalty" },
|
|
13461
|
+
// A Lista fixed term is fronted by a single LendingBroker proxy —
|
|
13462
|
+
// the concrete counterparty offering the rate. Expose it as the
|
|
13463
|
+
// term provider (omit when this isn't a brokered market).
|
|
13464
|
+
provider: broker && broker !== zeroAddress ? { kind: "broker", address: broker } : void 0
|
|
13461
13465
|
}
|
|
13462
13466
|
}
|
|
13463
13467
|
};
|
|
@@ -21226,7 +21230,11 @@ function convertMidnightMarketsToResponse(raw, chainId, prices = {}, _additional
|
|
|
21226
21230
|
continuousFeeApr: continuousFeeAprPct,
|
|
21227
21231
|
settlementFee
|
|
21228
21232
|
},
|
|
21229
|
-
earlyRepay: { kind: "none" }
|
|
21233
|
+
earlyRepay: { kind: "none" },
|
|
21234
|
+
// Midnight terms are an aggregate of many signed maker offers — there
|
|
21235
|
+
// is no single provider at the market level (the concrete maker(s) are
|
|
21236
|
+
// per-offer, surfaced at quote time), so mark it an order book.
|
|
21237
|
+
provider: { kind: "orderbook" }
|
|
21230
21238
|
},
|
|
21231
21239
|
enterGate: config.enterGate,
|
|
21232
21240
|
liquidatorGate: config.liquidatorGate,
|