@compass-labs/api-sdk 2.2.109 → 2.2.110

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.
@@ -32,6 +32,10 @@ export type CreditLoopResponse = {
32
32
  * Projected end state, computed on guaranteed swap floors. Null only on pricing='firm' preview responses whose target the firm venue cannot serve: no leg was priced on any venue, and the response carries the coverage advisory (max_firm_multiplier) alone.
33
33
  */
34
34
  preview: CreditLoopPreview | null;
35
+ /**
36
+ * Maturity of the Pendle principal token supplied as collateral, ISO-8601 UTC. Present only for principal-token collateral, whose yield is fixed until this date; after it the position can be unwound (by redemption at par) but not increased.
37
+ */
38
+ ptMaturity?: string | null | undefined;
35
39
  /**
36
40
  * Identifies which route priced the swap leg(s): 'market' — a DEX aggregator (iterative loop across pool liquidity, slippage-bounded floors) — or 'firm' — zero-slippage quotes, one per swap leg, each partially filled at the leg's size (exact fills, zero dust). On preview=true responses 'firm' means the numbers are INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED (under 'auto' a firm build can fall back to market transparently), and `quote_expires_at` is absent on every preview — so neither substitutes for this field.
37
41
  */
@@ -1 +1 @@
1
- {"version":3,"file":"creditloopresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;CAGjC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,mCAAmC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChE;;OAEG;IACH,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC1D;;OAEG;IACH,cAAc,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,aAAa,CACxE,OAAO,8BAA8B,CACS,CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAkBP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
1
+ {"version":3,"file":"creditloopresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EA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undSchema = z.object({
59
59
  eip_712: z.nullable(batchedsafeoperationsresponseoutput_js_1.BatchedSafeOperationsResponseOutput$inboundSchema)
60
60
  .optional(),
61
61
  preview: z.nullable(creditlooppreview_js_1.CreditLoopPreview$inboundSchema),
62
+ pt_maturity: z.nullable(z.string()).optional(),
62
63
  swap_provider: exports.CreditLoopResponseSwapProvider$inboundSchema.optional(),
63
64
  quote_expires_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
64
65
  max_firm_multiplier: z.nullable(z.string()).optional(),
65
66
  }).transform((v) => {
66
67
  return (0, primitives_js_1.remap)(v, {
67
68
  "eip_712": "eip712",
69
+ "pt_maturity": "ptMaturity",
68
70
  "swap_provider": "swapProvider",
69
71
  "quote_expires_at": "quoteExpiresAt",
70
72
  "max_firm_multiplier": "maxFirmMultiplier",
@@ -1 +1 @@
1
- {"version":3,"file":"creditloopresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8FH,gEAQC;AApGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAIjD,qGAGkD;AAClD,iEAGgC;AAChC,qEAGkC;AAElC;;GAEG;AACU,QAAA,8BAA8B,GAAG;IAC5C,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACJ,CAAC;AAsCX,gBAAgB;AACH,QAAA,4CAA4C,GAErD,CAAC,CAAC,UAAU,CAAC,sCAA8B,CAAC,CAAC;AAEjD,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,0DAAiC,CAAC,CAAC,QAAQ,EAAE;IACrE,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,0FAAiD,CAAC;SACnE,QAAQ,EAAE;IACb,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,sDAA+B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D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -61,6 +61,22 @@ export type MorphoLendingMarket = {
61
61
  * What the LOAN token earns inside its own price, in percentage, trailing 7 days. Debt owed in such a token grows by this on top of borrow_apy — a borrower's true cost is their sum. Null means unmeasured, NOT zero.
62
62
  */
63
63
  loanIntrinsicApy?: string | null | undefined;
64
+ /**
65
+ * Set to 'fixed' when collateral_intrinsic_apy is locked in until a maturity date rather than measured over a trailing window, as it is for a principal token. Clients should label such a rate as fixed to maturity instead of a 7-day average. Absent for every other market.
66
+ */
67
+ collateralYieldKind?: "fixed" | null | undefined;
68
+ /**
69
+ * Maturity date of the principal-token collateral, ISO-8601 UTC. Present only on principal-token markets.
70
+ */
71
+ ptMaturity?: string | null | undefined;
72
+ /**
73
+ * Whether the principal-token collateral has passed its maturity. Matured markets stay listed so open positions can still be unwound, so clients should use this to disable opening rather than to hide the row. Present only on principal-token markets.
74
+ */
75
+ ptExpired?: boolean | null | undefined;
76
+ /**
77
+ * Whether a NEW loop may be opened on this principal-token market. False once the market is matured or too close to maturity to earn back a loop's entry cost. Computed server-side, so clients need no copy of the threshold. Present only on principal-token markets.
78
+ */
79
+ ptLoopable?: boolean | null | undefined;
64
80
  /**
65
81
  * Borrowed share of supplied assets, in percentage 0-100.
66
82
  */
@@ -1 +1 @@
1
- {"version":3,"file":"morpholendingmarket.d.ts","sourceRoot":"","sources":["../../../../src/models/components/morpholendingmarket.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,EAAE,MAA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"morpholendingmarket.d.ts","sourceRoot":"","sources":["../../../../src/models/components/morpholendingmarket.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAkDP,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
@@ -57,6 +57,10 @@ exports.MorphoLendingMarket$inboundSchema = z.object({
57
57
  borrow_apy: z.nullable(z.string()).optional(),
58
58
  collateral_intrinsic_apy: z.nullable(z.string()).optional(),
59
59
  loan_intrinsic_apy: z.nullable(z.string()).optional(),
60
+ collateral_yield_kind: z.nullable(z.literal("fixed")).optional(),
61
+ pt_maturity: z.nullable(z.string()).optional(),
62
+ pt_expired: z.nullable(z.boolean()).optional(),
63
+ pt_loopable: z.nullable(z.boolean()).optional(),
60
64
  utilization: z.string(),
61
65
  total_supply_assets: z.string(),
62
66
  total_borrow_assets: z.string(),
@@ -77,6 +81,10 @@ exports.MorphoLendingMarket$inboundSchema = z.object({
77
81
  "borrow_apy": "borrowApy",
78
82
  "collateral_intrinsic_apy": "collateralIntrinsicApy",
79
83
  "loan_intrinsic_apy": "loanIntrinsicApy",
84
+ "collateral_yield_kind": "collateralYieldKind",
85
+ "pt_maturity": "ptMaturity",
86
+ "pt_expired": "ptExpired",
87
+ "pt_loopable": "ptLoopable",
80
88
  "total_supply_assets": "totalSupplyAssets",
81
89
  "total_borrow_assets": "totalBorrowAssets",
82
90
  "available_liquidity": "availableLiquidity",
@@ -1 +1 @@
1
- {"version":3,"file":"morpholendingmarket.js","sourceRoot":"","sources":["../../../../src/models/components/morpholendingmarket.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkJH,kEAQC;AAxJD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AA8FjD,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7B,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACrC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE;IACnC,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,wBAAwB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3D,kBAAkB,EAAE,CAAC,CA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EAAE,mBAAmB;QAC1C,qBAAqB,EAAE,mBAAmB;QAC1C,qBAAqB,EAAE,oBAAoB;QAC3C,SAAS,EAAE,QAAQ;QACnB,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
@@ -32,6 +32,10 @@ export type CreditLoopResponse = {
32
32
  * Projected end state, computed on guaranteed swap floors. Null only on pricing='firm' preview responses whose target the firm venue cannot serve: no leg was priced on any venue, and the response carries the coverage advisory (max_firm_multiplier) alone.
33
33
  */
34
34
  preview: CreditLoopPreview | null;
35
+ /**
36
+ * Maturity of the Pendle principal token supplied as collateral, ISO-8601 UTC. Present only for principal-token collateral, whose yield is fixed until this date; after it the position can be unwound (by redemption at par) but not increased.
37
+ */
38
+ ptMaturity?: string | null | undefined;
35
39
  /**
36
40
  * Identifies which route priced the swap leg(s): 'market' — a DEX aggregator (iterative loop across pool liquidity, slippage-bounded floors) — or 'firm' — zero-slippage quotes, one per swap leg, each partially filled at the leg's size (exact fills, zero dust). On preview=true responses 'firm' means the numbers are INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED (under 'auto' a firm build can fall back to market transparently), and `quote_expires_at` is absent on every preview — so neither substitutes for this field.
37
41
  */
@@ -1 +1 @@
1
- {"version":3,"file":"creditloopresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAs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":3,"file":"creditloopresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;CAGjC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,mCAAmC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChE;;OAEG;IACH,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,YAAY,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC1D;;OAEG;IACH,cAAc,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,aAAa,CACxE,OAAO,8BAA8B,CACS,CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAoBP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -22,12 +22,14 @@ export const CreditLoopResponse$inboundSchema = z.object({
22
22
  eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema)
23
23
  .optional(),
24
24
  preview: z.nullable(CreditLoopPreview$inboundSchema),
25
+ pt_maturity: z.nullable(z.string()).optional(),
25
26
  swap_provider: CreditLoopResponseSwapProvider$inboundSchema.optional(),
26
27
  quote_expires_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
27
28
  max_firm_multiplier: z.nullable(z.string()).optional(),
28
29
  }).transform((v) => {
29
30
  return remap$(v, {
30
31
  "eip_712": "eip712",
32
+ "pt_maturity": "ptMaturity",
31
33
  "swap_provider": "swapProvider",
32
34
  "quote_expires_at": "quoteExpiresAt",
33
35
  "max_firm_multiplier": "maxFirmMultiplier",
@@ -1 +1 @@
1
- {"version":3,"file":"creditloopresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,iDAAiD,GAClD,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAEL,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,MAAM,EAAE,QAA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EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAClE,CAAC,QAAQ,EAAE;IACZ,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,SAAS,EAAE,QAAQ;QACnB,aAAa,EAAE,YAAY;QAC3B,eAAe,EAAE,cAAc;QAC/B,kBAAkB,EAAE,gBAAgB;QACpC,qBAAqB,EAAE,mBAAmB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -61,6 +61,22 @@ export type MorphoLendingMarket = {
61
61
  * What the LOAN token earns inside its own price, in percentage, trailing 7 days. Debt owed in such a token grows by this on top of borrow_apy — a borrower's true cost is their sum. Null means unmeasured, NOT zero.
62
62
  */
63
63
  loanIntrinsicApy?: string | null | undefined;
64
+ /**
65
+ * Set to 'fixed' when collateral_intrinsic_apy is locked in until a maturity date rather than measured over a trailing window, as it is for a principal token. Clients should label such a rate as fixed to maturity instead of a 7-day average. Absent for every other market.
66
+ */
67
+ collateralYieldKind?: "fixed" | null | undefined;
68
+ /**
69
+ * Maturity date of the principal-token collateral, ISO-8601 UTC. Present only on principal-token markets.
70
+ */
71
+ ptMaturity?: string | null | undefined;
72
+ /**
73
+ * Whether the principal-token collateral has passed its maturity. Matured markets stay listed so open positions can still be unwound, so clients should use this to disable opening rather than to hide the row. Present only on principal-token markets.
74
+ */
75
+ ptExpired?: boolean | null | undefined;
76
+ /**
77
+ * Whether a NEW loop may be opened on this principal-token market. False once the market is matured or too close to maturity to earn back a loop's entry cost. Computed server-side, so clients need no copy of the threshold. Present only on principal-token markets.
78
+ */
79
+ ptLoopable?: boolean | null | undefined;
64
80
  /**
65
81
  * Borrowed share of supplied assets, in percentage 0-100.
66
82
  */
@@ -1 +1 @@
1
- {"version":3,"file":"morpholendingmarket.d.ts","sourceRoot":"","sources":["../../../../src/models/components/morpholendingmarket.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CA0CP,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
1
+ {"version":3,"file":"morpholendingmarket.d.ts","sourceRoot":"","sources":["../../../../src/models/components/morpholendingmarket.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,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B,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
@@ -20,6 +20,10 @@ export const MorphoLendingMarket$inboundSchema = z.object({
20
20
  borrow_apy: z.nullable(z.string()).optional(),
21
21
  collateral_intrinsic_apy: z.nullable(z.string()).optional(),
22
22
  loan_intrinsic_apy: z.nullable(z.string()).optional(),
23
+ collateral_yield_kind: z.nullable(z.literal("fixed")).optional(),
24
+ pt_maturity: z.nullable(z.string()).optional(),
25
+ pt_expired: z.nullable(z.boolean()).optional(),
26
+ pt_loopable: z.nullable(z.boolean()).optional(),
23
27
  utilization: z.string(),
24
28
  total_supply_assets: z.string(),
25
29
  total_borrow_assets: z.string(),
@@ -40,6 +44,10 @@ export const MorphoLendingMarket$inboundSchema = z.object({
40
44
  "borrow_apy": "borrowApy",
41
45
  "collateral_intrinsic_apy": "collateralIntrinsicApy",
42
46
  "loan_intrinsic_apy": "loanIntrinsicApy",
47
+ "collateral_yield_kind": "collateralYieldKind",
48
+ "pt_maturity": "ptMaturity",
49
+ "pt_expired": "ptExpired",
50
+ "pt_loopable": "ptLoopable",
43
51
  "total_supply_assets": "totalSupplyAssets",
44
52
  "total_borrow_assets": "totalBorrowAssets",
45
53
  "available_liquidity": "availableLiquidity",
@@ -1 +1 @@
1
- {"version":3,"file":"morpholendingmarket.js","sourceRoot":"","sources":["../../../../src/models/components/morpholendingmarket.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AA8FjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,iBAAiB,EAAE,CAA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,EAAE;QACf,WAAW,EAAE,UAAU;QACvB,YAAY,EAAE,WAAW;QACzB,mBAAmB,EAAE,iBAAiB;QACtC,qBAAqB,EAAE,mBAAmB;QAC1C,kBAAkB,EAAE,iBAAiB;QACrC,yBAAyB,EAAE,uBAAuB;QAClD,2BAA2B,EAAE,yBAAyB;QACtD,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;QACzB,0BAA0B,EAAE,wBAAwB;QACpD,oBAAoB,EAAE,kBAAkB;QACxC,qBAAqB,EAAE,mBAAmB;QAC1C,qBAAqB,EAAE,mBAAmB;QAC1C,qBAAqB,EAAE,oBAAoB;QAC3C,SAAS,EAAE,QAAQ;QACnB,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,2BAA2B,CACzC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"morpholendingmarket.js","sourceRoot":"","sources":["../../../../src/models/components/morpholendingmarket.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AA8GjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7B,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;I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AAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,UAAU;QACvB,YAAY,EAAE,WAAW;QACzB,mBAAmB,EAAE,iBAAiB;QACtC,qBAAqB,EAAE,mBAAmB;QAC1C,kBAAkB,EAAE,iBAAiB;QACrC,yBAAyB,EAAE,uBAAuB;QAClD,2BAA2B,EAAE,yBAAyB;QACtD,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;QACzB,0BAA0B,EAAE,wBAAwB;QACpD,oBAAoB,EAAE,kBAAkB;QACxC,uBAAuB,EAAE,qBAAqB;QAC9C,aAAa,EAAE,YAAY;QAC3B,YAAY,EAAE,WAAW;QACzB,aAAa,EAAE,YAAY;QAC3B,qBAAqB,EAAE,mBAAmB;QAC1C,qBAAqB,EAAE,mBAAmB;QAC1C,qBAAqB,EAAE,oBAAoB;QAC3C,SAAS,EAAE,QAAQ;QACnB,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,2BAA2B,CACzC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
@@ -30,6 +30,7 @@ let value: CreditLoopResponse = {
30
30
  | `transaction` | [components.UnsignedTransaction](../../models/components/unsignedtransaction.md) | :heavy_minus_sign: | Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false — except firm-priced previews (preview=true on a firm-priced build), which carry numbers only: the firm quotes are fetched at execution time, so there is no payload to sign yet. | |
31
31
  | `eip712` | [components.BatchedSafeOperationsResponseOutput](../../models/components/batchedsafeoperationsresponseoutput.md) | :heavy_minus_sign: | EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship=true. | |
32
32
  | `preview` | [components.CreditLoopPreview](../../models/components/creditlooppreview.md) | :heavy_check_mark: | Projected end state, computed on guaranteed swap floors. Null only on pricing='firm' preview responses whose target the firm venue cannot serve: no leg was priced on any venue, and the response carries the coverage advisory (max_firm_multiplier) alone. | |
33
+ | `ptMaturity` | *string* | :heavy_minus_sign: | Maturity of the Pendle principal token supplied as collateral, ISO-8601 UTC. Present only for principal-token collateral, whose yield is fixed until this date; after it the position can be unwound (by redemption at par) but not increased. | |
33
34
  | `swapProvider` | [components.CreditLoopResponseSwapProvider](../../models/components/creditloopresponseswapprovider.md) | :heavy_minus_sign: | Identifies which route priced the swap leg(s): 'market' — a DEX aggregator (iterative loop across pool liquidity, slippage-bounded floors) — or 'firm' — zero-slippage quotes, one per swap leg, each partially filled at the leg's size (exact fills, zero dust). On preview=true responses 'firm' means the numbers are INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED (under 'auto' a firm build can fall back to market transparently), and `quote_expires_at` is absent on every preview — so neither substitutes for this field. | market |
34
35
  | `quoteExpiresAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Deadline of the firm swap quotes (the earliest across the loop's swap legs) — sign and broadcast before it or the transaction reverts on-chain; refresh by re-calling this endpoint (discard the previous payload). Present only on executable firm-priced builds; null on previews (no quote is spent for a preview). | |
35
36
  | `maxFirmMultiplier` | *string* | :heavy_minus_sign: | Multiplier bound firm zero-slippage quotes can fill for the requested position size, LTV and target (estimated without spending any quote). The requested multiplier is firm-servable iff it is <= this value; above it the loop executes at market rate with slippage-bounded floors instead. Present only on preview=true responses when a firm-quote venue covers the pair; null otherwise. Recompute per parameter change - minimum-size floors make reachability target-dependent. | |
@@ -44,6 +44,10 @@ let value: MorphoLendingMarket = {
44
44
  | `borrowApy` | *string* | :heavy_minus_sign: | Current borrow APY for the loan token, in percentage (e.g. 5.25 means 5.25%). Null if the rate is unavailable. |
45
45
  | `collateralIntrinsicApy` | *string* | :heavy_minus_sign: | What the COLLATERAL token earns inside its own price, in percentage: an ERC-4626 share's vault yield or a staking token's rewards, trailing 7 days. Morpho holds collateral without lending it out, so this is the collateral leg's ENTIRE yield. Null means unmeasured, NOT zero — a plain token (WETH, cbBTC) earns nothing and a yield-bearing one may simply not be indexed yet. |
46
46
  | `loanIntrinsicApy` | *string* | :heavy_minus_sign: | What the LOAN token earns inside its own price, in percentage, trailing 7 days. Debt owed in such a token grows by this on top of borrow_apy — a borrower's true cost is their sum. Null means unmeasured, NOT zero. |
47
+ | `collateralYieldKind` | *"fixed"* | :heavy_minus_sign: | Set to 'fixed' when collateral_intrinsic_apy is locked in until a maturity date rather than measured over a trailing window, as it is for a principal token. Clients should label such a rate as fixed to maturity instead of a 7-day average. Absent for every other market. |
48
+ | `ptMaturity` | *string* | :heavy_minus_sign: | Maturity date of the principal-token collateral, ISO-8601 UTC. Present only on principal-token markets. |
49
+ | `ptExpired` | *boolean* | :heavy_minus_sign: | Whether the principal-token collateral has passed its maturity. Matured markets stay listed so open positions can still be unwound, so clients should use this to disable opening rather than to hide the row. Present only on principal-token markets. |
50
+ | `ptLoopable` | *boolean* | :heavy_minus_sign: | Whether a NEW loop may be opened on this principal-token market. False once the market is matured or too close to maturity to earn back a loop's entry cost. Computed server-side, so clients need no copy of the threshold. Present only on principal-token markets. |
47
51
  | `utilization` | *string* | :heavy_check_mark: | Borrowed share of supplied assets, in percentage 0-100. |
48
52
  | `totalSupplyAssets` | *string* | :heavy_check_mark: | Total loan tokens supplied to the market, in token units. |
49
53
  | `totalBorrowAssets` | *string* | :heavy_check_mark: | Total loan tokens borrowed from the market, in token units. |
@@ -13198,6 +13198,18 @@
13198
13198
  ],
13199
13199
  "description": "Projected end state, computed on guaranteed swap floors. Null only on pricing='firm' preview responses whose target the firm venue cannot serve: no leg was priced on any venue, and the response carries the coverage advisory (max_firm_multiplier) alone."
13200
13200
  },
13201
+ "pt_maturity": {
13202
+ "anyOf": [
13203
+ {
13204
+ "type": "string"
13205
+ },
13206
+ {
13207
+ "type": "null"
13208
+ }
13209
+ ],
13210
+ "title": "Pt Maturity",
13211
+ "description": "Maturity of the Pendle principal token supplied as collateral, ISO-8601 UTC. Present only for principal-token collateral, whose yield is fixed until this date; after it the position can be unwound (by redemption at par) but not increased."
13212
+ },
13201
13213
  "swap_provider": {
13202
13214
  "type": "string",
13203
13215
  "enum": [
@@ -18679,6 +18691,55 @@
18679
18691
  "title": "Loan Intrinsic Apy",
18680
18692
  "description": "What the LOAN token earns inside its own price, in percentage, trailing 7 days. Debt owed in such a token grows by this on top of borrow_apy \u2014 a borrower's true cost is their sum. Null means unmeasured, NOT zero."
18681
18693
  },
18694
+ "collateral_yield_kind": {
18695
+ "anyOf": [
18696
+ {
18697
+ "type": "string",
18698
+ "const": "fixed"
18699
+ },
18700
+ {
18701
+ "type": "null"
18702
+ }
18703
+ ],
18704
+ "title": "Collateral Yield Kind",
18705
+ "description": "Set to 'fixed' when collateral_intrinsic_apy is locked in until a maturity date rather than measured over a trailing window, as it is for a principal token. Clients should label such a rate as fixed to maturity instead of a 7-day average. Absent for every other market."
18706
+ },
18707
+ "pt_maturity": {
18708
+ "anyOf": [
18709
+ {
18710
+ "type": "string"
18711
+ },
18712
+ {
18713
+ "type": "null"
18714
+ }
18715
+ ],
18716
+ "title": "Pt Maturity",
18717
+ "description": "Maturity date of the principal-token collateral, ISO-8601 UTC. Present only on principal-token markets."
18718
+ },
18719
+ "pt_expired": {
18720
+ "anyOf": [
18721
+ {
18722
+ "type": "boolean"
18723
+ },
18724
+ {
18725
+ "type": "null"
18726
+ }
18727
+ ],
18728
+ "title": "Pt Expired",
18729
+ "description": "Whether the principal-token collateral has passed its maturity. Matured markets stay listed so open positions can still be unwound, so clients should use this to disable opening rather than to hide the row. Present only on principal-token markets."
18730
+ },
18731
+ "pt_loopable": {
18732
+ "anyOf": [
18733
+ {
18734
+ "type": "boolean"
18735
+ },
18736
+ {
18737
+ "type": "null"
18738
+ }
18739
+ ],
18740
+ "title": "Pt Loopable",
18741
+ "description": "Whether a NEW loop may be opened on this principal-token market. False once the market is matured or too close to maturity to earn back a loop's entry cost. Computed server-side, so clients need no copy of the threshold. Present only on principal-token markets."
18742
+ },
18682
18743
  "utilization": {
18683
18744
  "type": "string",
18684
18745
  "title": "Utilization",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "2.2.109",
3
+ "version": "2.2.110",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -51,6 +51,10 @@ export type CreditLoopResponse = {
51
51
  * Projected end state, computed on guaranteed swap floors. Null only on pricing='firm' preview responses whose target the firm venue cannot serve: no leg was priced on any venue, and the response carries the coverage advisory (max_firm_multiplier) alone.
52
52
  */
53
53
  preview: CreditLoopPreview | null;
54
+ /**
55
+ * Maturity of the Pendle principal token supplied as collateral, ISO-8601 UTC. Present only for principal-token collateral, whose yield is fixed until this date; after it the position can be unwound (by redemption at par) but not increased.
56
+ */
57
+ ptMaturity?: string | null | undefined;
54
58
  /**
55
59
  * Identifies which route priced the swap leg(s): 'market' — a DEX aggregator (iterative loop across pool liquidity, slippage-bounded floors) — or 'firm' — zero-slippage quotes, one per swap leg, each partially filled at the leg's size (exact fills, zero dust). On preview=true responses 'firm' means the numbers are INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED (under 'auto' a firm build can fall back to market transparently), and `quote_expires_at` is absent on every preview — so neither substitutes for this field.
56
60
  */
@@ -80,6 +84,7 @@ export const CreditLoopResponse$inboundSchema: z.ZodType<
80
84
  eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema)
81
85
  .optional(),
82
86
  preview: z.nullable(CreditLoopPreview$inboundSchema),
87
+ pt_maturity: z.nullable(z.string()).optional(),
83
88
  swap_provider: CreditLoopResponseSwapProvider$inboundSchema.optional(),
84
89
  quote_expires_at: z.nullable(
85
90
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
@@ -88,6 +93,7 @@ export const CreditLoopResponse$inboundSchema: z.ZodType<
88
93
  }).transform((v) => {
89
94
  return remap$(v, {
90
95
  "eip_712": "eip712",
96
+ "pt_maturity": "ptMaturity",
91
97
  "swap_provider": "swapProvider",
92
98
  "quote_expires_at": "quoteExpiresAt",
93
99
  "max_firm_multiplier": "maxFirmMultiplier",
@@ -68,6 +68,22 @@ export type MorphoLendingMarket = {
68
68
  * What the LOAN token earns inside its own price, in percentage, trailing 7 days. Debt owed in such a token grows by this on top of borrow_apy — a borrower's true cost is their sum. Null means unmeasured, NOT zero.
69
69
  */
70
70
  loanIntrinsicApy?: string | null | undefined;
71
+ /**
72
+ * Set to 'fixed' when collateral_intrinsic_apy is locked in until a maturity date rather than measured over a trailing window, as it is for a principal token. Clients should label such a rate as fixed to maturity instead of a 7-day average. Absent for every other market.
73
+ */
74
+ collateralYieldKind?: "fixed" | null | undefined;
75
+ /**
76
+ * Maturity date of the principal-token collateral, ISO-8601 UTC. Present only on principal-token markets.
77
+ */
78
+ ptMaturity?: string | null | undefined;
79
+ /**
80
+ * Whether the principal-token collateral has passed its maturity. Matured markets stay listed so open positions can still be unwound, so clients should use this to disable opening rather than to hide the row. Present only on principal-token markets.
81
+ */
82
+ ptExpired?: boolean | null | undefined;
83
+ /**
84
+ * Whether a NEW loop may be opened on this principal-token market. False once the market is matured or too close to maturity to earn back a loop's entry cost. Computed server-side, so clients need no copy of the threshold. Present only on principal-token markets.
85
+ */
86
+ ptLoopable?: boolean | null | undefined;
71
87
  /**
72
88
  * Borrowed share of supplied assets, in percentage 0-100.
73
89
  */
@@ -118,6 +134,10 @@ export const MorphoLendingMarket$inboundSchema: z.ZodType<
118
134
  borrow_apy: z.nullable(z.string()).optional(),
119
135
  collateral_intrinsic_apy: z.nullable(z.string()).optional(),
120
136
  loan_intrinsic_apy: z.nullable(z.string()).optional(),
137
+ collateral_yield_kind: z.nullable(z.literal("fixed")).optional(),
138
+ pt_maturity: z.nullable(z.string()).optional(),
139
+ pt_expired: z.nullable(z.boolean()).optional(),
140
+ pt_loopable: z.nullable(z.boolean()).optional(),
121
141
  utilization: z.string(),
122
142
  total_supply_assets: z.string(),
123
143
  total_borrow_assets: z.string(),
@@ -138,6 +158,10 @@ export const MorphoLendingMarket$inboundSchema: z.ZodType<
138
158
  "borrow_apy": "borrowApy",
139
159
  "collateral_intrinsic_apy": "collateralIntrinsicApy",
140
160
  "loan_intrinsic_apy": "loanIntrinsicApy",
161
+ "collateral_yield_kind": "collateralYieldKind",
162
+ "pt_maturity": "ptMaturity",
163
+ "pt_expired": "ptExpired",
164
+ "pt_loopable": "ptLoopable",
141
165
  "total_supply_assets": "totalSupplyAssets",
142
166
  "total_borrow_assets": "totalBorrowAssets",
143
167
  "available_liquidity": "availableLiquidity",