@compass-labs/api-sdk 2.2.101 → 2.2.102

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.
Files changed (219) hide show
  1. package/dist/commonjs/funcs/creditCreditBorrow.d.ts +1 -1
  2. package/dist/commonjs/funcs/creditCreditBorrow.js +1 -1
  3. package/dist/commonjs/funcs/creditCreditLoop.d.ts +8 -22
  4. package/dist/commonjs/funcs/creditCreditLoop.d.ts.map +1 -1
  5. package/dist/commonjs/funcs/creditCreditLoop.js +8 -22
  6. package/dist/commonjs/funcs/creditCreditLoop.js.map +1 -1
  7. package/dist/commonjs/funcs/creditCreditLoopedPositions.d.ts +8 -7
  8. package/dist/commonjs/funcs/creditCreditLoopedPositions.d.ts.map +1 -1
  9. package/dist/commonjs/funcs/creditCreditLoopedPositions.js +8 -7
  10. package/dist/commonjs/funcs/creditCreditLoopedPositions.js.map +1 -1
  11. package/dist/commonjs/funcs/creditCreditRebalance.d.ts +11 -34
  12. package/dist/commonjs/funcs/creditCreditRebalance.d.ts.map +1 -1
  13. package/dist/commonjs/funcs/creditCreditRebalance.js +11 -34
  14. package/dist/commonjs/funcs/creditCreditRebalance.js.map +1 -1
  15. package/dist/commonjs/funcs/creditCreditRepay.d.ts +1 -1
  16. package/dist/commonjs/funcs/creditCreditRepay.js +1 -1
  17. package/dist/commonjs/funcs/creditCreditUnloop.d.ts +7 -38
  18. package/dist/commonjs/funcs/creditCreditUnloop.d.ts.map +1 -1
  19. package/dist/commonjs/funcs/creditCreditUnloop.js +7 -38
  20. package/dist/commonjs/funcs/creditCreditUnloop.js.map +1 -1
  21. package/dist/commonjs/lib/config.d.ts +2 -2
  22. package/dist/commonjs/lib/config.js +2 -2
  23. package/dist/commonjs/models/components/accountsummary.d.ts +18 -5
  24. package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/accountsummary.js.map +1 -1
  26. package/dist/commonjs/models/components/collateralposition.d.ts +18 -5
  27. package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/collateralposition.js.map +1 -1
  29. package/dist/commonjs/models/components/creditborrowparams.d.ts +18 -5
  30. package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
  32. package/dist/commonjs/models/components/creditborrowrequest.d.ts +18 -5
  33. package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
  35. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +18 -5
  36. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
  38. package/dist/commonjs/models/components/creditlooprequest.d.ts +27 -14
  39. package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/creditlooprequest.js +1 -1
  41. package/dist/commonjs/models/components/creditlooprequest.js.map +1 -1
  42. package/dist/commonjs/models/components/creditloopresponse.d.ts +5 -5
  43. package/dist/commonjs/models/components/creditloopresponse.js +1 -1
  44. package/dist/commonjs/models/components/creditprotocol.d.ts +36 -10
  45. package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
  46. package/dist/commonjs/models/components/creditprotocol.js +18 -5
  47. package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
  48. package/dist/commonjs/models/components/creditrepayparams.d.ts +18 -5
  49. package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
  51. package/dist/commonjs/models/components/creditrepayrequest.d.ts +18 -5
  52. package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
  54. package/dist/commonjs/models/components/creditsupplyparams.d.ts +18 -5
  55. package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
  56. package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
  57. package/dist/commonjs/models/components/creditunlooprequest.d.ts +23 -10
  58. package/dist/commonjs/models/components/creditunlooprequest.d.ts.map +1 -1
  59. package/dist/commonjs/models/components/creditunlooprequest.js +1 -1
  60. package/dist/commonjs/models/components/creditunlooprequest.js.map +1 -1
  61. package/dist/commonjs/models/components/creditunloopresponse.d.ts +5 -5
  62. package/dist/commonjs/models/components/creditunloopresponse.js +1 -1
  63. package/dist/commonjs/models/components/creditwithdrawparams.d.ts +18 -5
  64. package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
  65. package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
  66. package/dist/commonjs/models/components/debtposition.d.ts +18 -5
  67. package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
  68. package/dist/commonjs/models/components/debtposition.js.map +1 -1
  69. package/dist/commonjs/models/components/loopedposition.d.ts +18 -5
  70. package/dist/commonjs/models/components/loopedposition.d.ts.map +1 -1
  71. package/dist/commonjs/models/components/loopedposition.js.map +1 -1
  72. package/dist/commonjs/models/components/rebalancetarget.d.ts +18 -5
  73. package/dist/commonjs/models/components/rebalancetarget.d.ts.map +1 -1
  74. package/dist/commonjs/models/components/rebalancetarget.js.map +1 -1
  75. package/dist/commonjs/models/components/rebalancetargetpreview.d.ts +18 -5
  76. package/dist/commonjs/models/components/rebalancetargetpreview.d.ts.map +1 -1
  77. package/dist/commonjs/models/components/rebalancetargetpreview.js.map +1 -1
  78. package/dist/commonjs/models/components/swapinfo.d.ts +2 -2
  79. package/dist/commonjs/sdk/credit.d.ts +44 -111
  80. package/dist/commonjs/sdk/credit.d.ts.map +1 -1
  81. package/dist/commonjs/sdk/credit.js +44 -111
  82. package/dist/commonjs/sdk/credit.js.map +1 -1
  83. package/dist/esm/funcs/creditCreditBorrow.d.ts +1 -1
  84. package/dist/esm/funcs/creditCreditBorrow.js +1 -1
  85. package/dist/esm/funcs/creditCreditLoop.d.ts +8 -22
  86. package/dist/esm/funcs/creditCreditLoop.d.ts.map +1 -1
  87. package/dist/esm/funcs/creditCreditLoop.js +8 -22
  88. package/dist/esm/funcs/creditCreditLoop.js.map +1 -1
  89. package/dist/esm/funcs/creditCreditLoopedPositions.d.ts +8 -7
  90. package/dist/esm/funcs/creditCreditLoopedPositions.d.ts.map +1 -1
  91. package/dist/esm/funcs/creditCreditLoopedPositions.js +8 -7
  92. package/dist/esm/funcs/creditCreditLoopedPositions.js.map +1 -1
  93. package/dist/esm/funcs/creditCreditRebalance.d.ts +11 -34
  94. package/dist/esm/funcs/creditCreditRebalance.d.ts.map +1 -1
  95. package/dist/esm/funcs/creditCreditRebalance.js +11 -34
  96. package/dist/esm/funcs/creditCreditRebalance.js.map +1 -1
  97. package/dist/esm/funcs/creditCreditRepay.d.ts +1 -1
  98. package/dist/esm/funcs/creditCreditRepay.js +1 -1
  99. package/dist/esm/funcs/creditCreditUnloop.d.ts +7 -38
  100. package/dist/esm/funcs/creditCreditUnloop.d.ts.map +1 -1
  101. package/dist/esm/funcs/creditCreditUnloop.js +7 -38
  102. package/dist/esm/funcs/creditCreditUnloop.js.map +1 -1
  103. package/dist/esm/lib/config.d.ts +2 -2
  104. package/dist/esm/lib/config.js +2 -2
  105. package/dist/esm/models/components/accountsummary.d.ts +18 -5
  106. package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
  107. package/dist/esm/models/components/accountsummary.js.map +1 -1
  108. package/dist/esm/models/components/collateralposition.d.ts +18 -5
  109. package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
  110. package/dist/esm/models/components/collateralposition.js.map +1 -1
  111. package/dist/esm/models/components/creditborrowparams.d.ts +18 -5
  112. package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
  113. package/dist/esm/models/components/creditborrowparams.js.map +1 -1
  114. package/dist/esm/models/components/creditborrowrequest.d.ts +18 -5
  115. package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
  116. package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
  117. package/dist/esm/models/components/creditenablecollateralparams.d.ts +18 -5
  118. package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
  119. package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
  120. package/dist/esm/models/components/creditlooprequest.d.ts +27 -14
  121. package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
  122. package/dist/esm/models/components/creditlooprequest.js +1 -1
  123. package/dist/esm/models/components/creditlooprequest.js.map +1 -1
  124. package/dist/esm/models/components/creditloopresponse.d.ts +5 -5
  125. package/dist/esm/models/components/creditloopresponse.js +1 -1
  126. package/dist/esm/models/components/creditprotocol.d.ts +36 -10
  127. package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
  128. package/dist/esm/models/components/creditprotocol.js +18 -5
  129. package/dist/esm/models/components/creditprotocol.js.map +1 -1
  130. package/dist/esm/models/components/creditrepayparams.d.ts +18 -5
  131. package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
  132. package/dist/esm/models/components/creditrepayparams.js.map +1 -1
  133. package/dist/esm/models/components/creditrepayrequest.d.ts +18 -5
  134. package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
  135. package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
  136. package/dist/esm/models/components/creditsupplyparams.d.ts +18 -5
  137. package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
  138. package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
  139. package/dist/esm/models/components/creditunlooprequest.d.ts +23 -10
  140. package/dist/esm/models/components/creditunlooprequest.d.ts.map +1 -1
  141. package/dist/esm/models/components/creditunlooprequest.js +1 -1
  142. package/dist/esm/models/components/creditunlooprequest.js.map +1 -1
  143. package/dist/esm/models/components/creditunloopresponse.d.ts +5 -5
  144. package/dist/esm/models/components/creditunloopresponse.js +1 -1
  145. package/dist/esm/models/components/creditwithdrawparams.d.ts +18 -5
  146. package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
  147. package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
  148. package/dist/esm/models/components/debtposition.d.ts +18 -5
  149. package/dist/esm/models/components/debtposition.d.ts.map +1 -1
  150. package/dist/esm/models/components/debtposition.js.map +1 -1
  151. package/dist/esm/models/components/loopedposition.d.ts +18 -5
  152. package/dist/esm/models/components/loopedposition.d.ts.map +1 -1
  153. package/dist/esm/models/components/loopedposition.js.map +1 -1
  154. package/dist/esm/models/components/rebalancetarget.d.ts +18 -5
  155. package/dist/esm/models/components/rebalancetarget.d.ts.map +1 -1
  156. package/dist/esm/models/components/rebalancetarget.js.map +1 -1
  157. package/dist/esm/models/components/rebalancetargetpreview.d.ts +18 -5
  158. package/dist/esm/models/components/rebalancetargetpreview.d.ts.map +1 -1
  159. package/dist/esm/models/components/rebalancetargetpreview.js.map +1 -1
  160. package/dist/esm/models/components/swapinfo.d.ts +2 -2
  161. package/dist/esm/sdk/credit.d.ts +44 -111
  162. package/dist/esm/sdk/credit.d.ts.map +1 -1
  163. package/dist/esm/sdk/credit.js +44 -111
  164. package/dist/esm/sdk/credit.js.map +1 -1
  165. package/docs/models/components/accountsummary.md +11 -11
  166. package/docs/models/components/collateralposition.md +17 -17
  167. package/docs/models/components/creditborrowparams.md +11 -11
  168. package/docs/models/components/creditborrowrequest.md +21 -21
  169. package/docs/models/components/creditenablecollateralparams.md +7 -7
  170. package/docs/models/components/creditlooprequest.md +19 -19
  171. package/docs/models/components/creditlooprequestchain.md +1 -1
  172. package/docs/models/components/creditlooprequestinitialcollateralamount.md +1 -1
  173. package/docs/models/components/creditlooprequestloantovalue.md +1 -1
  174. package/docs/models/components/creditloopresponse.md +8 -8
  175. package/docs/models/components/creditloopresponseswapprovider.md +1 -1
  176. package/docs/models/components/creditprotocol.md +18 -5
  177. package/docs/models/components/creditrepayparams.md +10 -10
  178. package/docs/models/components/creditrepayrequest.md +20 -20
  179. package/docs/models/components/creditsupplyparams.md +9 -9
  180. package/docs/models/components/creditunlooprequest.md +17 -17
  181. package/docs/models/components/creditunlooprequestchain.md +1 -1
  182. package/docs/models/components/creditunloopresponse.md +8 -8
  183. package/docs/models/components/creditunloopresponseswapprovider.md +1 -1
  184. package/docs/models/components/creditwithdrawparams.md +9 -9
  185. package/docs/models/components/debtposition.md +16 -16
  186. package/docs/models/components/loopedposition.md +14 -14
  187. package/docs/models/components/rebalancetarget.md +10 -10
  188. package/docs/models/components/rebalancetargetpreview.md +16 -16
  189. package/docs/models/components/swapinfo.md +10 -10
  190. package/docs/sdks/credit/README.md +40 -107
  191. package/openapi_prepped_for_speakeasy.json +26 -26
  192. package/package.json +1 -1
  193. package/src/funcs/creditCreditBorrow.ts +1 -1
  194. package/src/funcs/creditCreditLoop.ts +8 -22
  195. package/src/funcs/creditCreditLoopedPositions.ts +8 -7
  196. package/src/funcs/creditCreditRebalance.ts +11 -34
  197. package/src/funcs/creditCreditRepay.ts +1 -1
  198. package/src/funcs/creditCreditUnloop.ts +7 -38
  199. package/src/lib/config.ts +2 -2
  200. package/src/models/components/accountsummary.ts +18 -5
  201. package/src/models/components/collateralposition.ts +18 -5
  202. package/src/models/components/creditborrowparams.ts +18 -5
  203. package/src/models/components/creditborrowrequest.ts +18 -5
  204. package/src/models/components/creditenablecollateralparams.ts +18 -5
  205. package/src/models/components/creditlooprequest.ts +27 -14
  206. package/src/models/components/creditloopresponse.ts +5 -5
  207. package/src/models/components/creditprotocol.ts +36 -10
  208. package/src/models/components/creditrepayparams.ts +18 -5
  209. package/src/models/components/creditrepayrequest.ts +18 -5
  210. package/src/models/components/creditsupplyparams.ts +18 -5
  211. package/src/models/components/creditunlooprequest.ts +23 -10
  212. package/src/models/components/creditunloopresponse.ts +5 -5
  213. package/src/models/components/creditwithdrawparams.ts +18 -5
  214. package/src/models/components/debtposition.ts +18 -5
  215. package/src/models/components/loopedposition.ts +18 -5
  216. package/src/models/components/rebalancetarget.ts +18 -5
  217. package/src/models/components/rebalancetargetpreview.ts +18 -5
  218. package/src/models/components/swapinfo.ts +2 -2
  219. package/src/sdk/credit.ts +44 -111
@@ -26,14 +26,15 @@ export declare class Credit extends ClientSDK {
26
26
  * List looped (leveraged) credit positions
27
27
  *
28
28
  * @remarks
29
- * List looped (leveraged) positions for a credit account owner.
30
- *
31
- * Detects loops from the account's on-chain history: a transaction containing
32
- * lending + borrowing + swap legs is a loop transaction. Returns one position
33
- * per Morpho market / Aave collateral+debt reserve pair, each with its complete
34
- * per-transaction history, lifetime totals, and live on-chain state (health
35
- * factor, USD values, leverage) for open positions. Covers Aave V3 and Morpho
36
- * Blue.
29
+ * List the leveraged positions held by an owner's Credit Account.
30
+ *
31
+ * Positions are reconstructed from on-chain history rather than from API calls,
32
+ * so a loop assembled by hand through /v2/credit/bundle is recognised the same
33
+ * way as one opened through /v2/credit/loop. Only activity inside the Credit
34
+ * Account is visible leverage the owner holds directly in their wallet is not.
35
+ *
36
+ * See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
37
+ * for protocol coverage and how to read leverage, health factor and net APY.
37
38
  */
38
39
  creditLoopedPositions(request: operations.V2CreditLoopedPositionsRequest, options?: RequestOptions): Promise<components.CreditLoopedPositionsResponse>;
39
40
  /**
@@ -84,7 +85,7 @@ export declare class Credit extends ClientSDK {
84
85
  * Bundles an optional swap, collateral supply, and borrow into a single atomic Safe transaction.
85
86
  *
86
87
  * - If `token_in` equals `collateral_token`, the tokens are supplied directly as collateral.
87
- * - If `token_in` differs from `collateral_token`, a swap is performed first via 1inch.
88
+ * - If `token_in` differs from `collateral_token`, a market swap is performed first.
88
89
  *
89
90
  * The Credit Account must already be created via `/v2/credit/create_account` and funded with `token_in`.
90
91
  */
@@ -93,119 +94,51 @@ export declare class Credit extends ClientSDK {
93
94
  * Open a leveraged loop
94
95
  *
95
96
  * @remarks
96
- * Open a leveraged loop into an Aave or Morpho market in ONE atomic transaction.
97
- *
98
- * Repeatedly supplies collateral, borrows at the requested loan-to-value, and
99
- * swaps the borrow back to collateral. Each iteration's supply uses the swap's
100
- * GUARANTEED minimum output (enforced on-chain), so a fill anywhere within the
101
- * slippage tolerance can never break a later step; any positive surplus stays
102
- * in the Credit Account (the preview reports the bound as estimated_max_dust).
103
- * Very large loops relative to pool depth can still exceed the slippage
104
- * tolerance through their own cumulative price impact — size accordingly or
105
- * raise max_slippage_percent. Conversely, the geometric tail can shrink below
106
- * the swap router's minimum routable size; when it does the loop simply ends
107
- * early on that supply — the achieved multiplier is still guaranteed within
108
- * 0.5% of the request or the call returns a clean 400.
109
- *
110
- * When the collateral token is itself an ERC-4626 vault share (e.g. a Morpho
111
- * vault token like steakUSDC), each conversion swaps the borrow token to the
112
- * vault's underlying asset and mints the shares via the vault's own deposit at
113
- * net asset value instead of swapping the share token on a DEX — share tokens
114
- * have no honest DEX route. A direct share-token route is only ever used when
115
- * it prices within 1% of net asset value.
116
- *
117
- * The Credit Account must already hold initial_collateral_amount of
118
- * collateral_token. For protocol=MORPHO pass a market_id from
119
- * /v2/credit/morpho_markets.
97
+ * Open a leveraged position in ONE atomic transaction.
98
+ *
99
+ * Supply collateral, borrow against it, swap the borrowed token back to
100
+ * collateral, repeat until total collateral reaches multiplier x
101
+ * initial_collateral_amount. If any step fails the whole transaction reverts,
102
+ * so a position is never left half-built.
103
+ *
104
+ * See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
105
+ * for chain coverage, market discovery, vault-share collateral, HyperEVM
106
+ * specifics and the full error list.
120
107
  */
121
108
  creditLoop(request: components.CreditLoopRequest, options?: RequestOptions): Promise<components.CreditLoopResponse>;
122
109
  /**
123
110
  * Unwind a leveraged loop
124
111
  *
125
112
  * @remarks
126
- * Unwind an Aave or Morpho loop in ONE atomic transaction.
127
- *
128
- * Repeatedly withdraws collateral, swaps it to the borrow token at a GUARANTEED
129
- * minimum output (enforced on-chain), and repays. The floor discipline means a
130
- * swap filling anywhere within the slippage tolerance can never break a later
131
- * step; any positive surplus stays in the Credit Account as borrow-token dust
132
- * (the preview reports the bound as estimated_max_dust).
133
- *
134
- * When the collateral token is itself an ERC-4626 vault share (e.g. a Morpho
135
- * vault token like steakUSDC), each conversion redeems the shares through the
136
- * vault at net asset value and swaps the underlying asset to the borrow token
137
- * instead of swapping the share token on a DEX; a direct share-token route is
138
- * only ever used when it prices within 1% of net asset value.
139
- *
140
- * Omit target_multiplier for a full close: the debt is cleared exactly —
141
- * accrued interest included — and the pair collateral is returned to the Credit
142
- * Account. Pass 1 to clear the debt but keep the collateral supplied, or a value
143
- * above 1 to delever to that multiplier (it must be below the position's current
144
- * multiplier).
145
- *
146
- * Each withdrawal is sized to keep the position's health factor ≥ 1.02 at that
147
- * step, so a position opened very close to the liquidation threshold may need
148
- * more than one transaction to fully close — set allow_partial=true to return
149
- * the maximum single-transaction progress (preview.fully_unwound=false), then
150
- * call unloop again to finish. Very large unwinds relative to pool depth can
151
- * still exceed the slippage tolerance through their own cumulative price impact.
152
- *
153
- * Positions are unwound as far as the swap router can route; on a router-minimum
154
- * stop the engine still withdraws all collateral not needed to back the residual,
155
- * and completes a true full close whenever the unwind's own guaranteed swap
156
- * surpluses (or the Credit Account's idle balance) cover the remainder — a
157
- * residual below the router's minimum routable size never fails the call, it is
158
- * reported honestly in the preview (fully_unwound=false).
159
- *
160
- * When other open Aave loops share this position's collateral reserve, a full
161
- * close withdraws only this position's attributed share of the pooled collateral
162
- * (event-ledger bookkeeping), leaving the rest supplied for the other positions.
163
- *
164
- * For protocol=MORPHO pass a market_id from /v2/credit/morpho_markets; inspect
165
- * open loops via /v2/credit/looped_positions.
113
+ * Unwind a leveraged position in ONE atomic transaction.
114
+ *
115
+ * Withdraw collateral, swap it back to the borrow token, repay, repeat — until
116
+ * the position reaches target_multiplier, or until the debt is cleared exactly
117
+ * if you omit it. If any step fails the whole transaction reverts.
118
+ *
119
+ * See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
120
+ * for chain coverage, vault-share collateral, shared Aave reserves and the full
121
+ * error list.
166
122
  */
167
123
  creditUnloop(request: components.CreditUnloopRequest, options?: RequestOptions): Promise<components.CreditUnloopResponse>;
168
124
  /**
169
125
  * Rebalance the leveraged credit book
170
126
  *
171
127
  * @remarks
172
- * Rebalance the leveraged credit book in ONE atomic transaction.
173
- *
174
- * List only the positions to change — anything not named is left untouched;
175
- * remove a position with close=true. Each target states an end state:
176
- * target_equity_usd (net USD committed) × target_multiplier.
177
- *
178
- * Releasing targets run first (each unwind/delever frees tokens into the Credit
179
- * Account), the freed tokens are then routed by swaps at a GUARANTEED minimum
180
- * output (enforced on-chain), and consuming targets run last so moving a
181
- * levered position between markets, token pairs, or protocols (Aave Morpho) is
182
- * simply a close plus an open in the same transaction. Conversions involving an
183
- * ERC-4626 vault-share token (e.g. a Morpho vault token like steakUSDC) go
184
- * through the vault's own deposit/redeem at net asset value rather than a DEX
185
- * swap of the share token.
186
- *
187
- * Net book growth is funded from the Credit Account's existing idle balance —
188
- * fund it first via /v2/credit/transfer; a net release stays in the Credit
189
- * Account as idle balance. Any swap surplus above the guaranteed floors also
190
- * stays in the Credit Account (preview.estimated_max_dust) — recoverable, never
191
- * lost.
192
- *
193
- * A book already at its target returns transaction: null with the preview — the
194
- * call is idempotent and safe to drive from a converge-to-target loop.
195
- *
196
- * A rebalance too large for one transaction is rejected with a 422 — split it
197
- * into two calls. Every deleveraging step keeps the health factor ≥ 1.02 and
198
- * every leveraging step respects the protocol's borrow limits; Aave targets share
199
- * one account-level health factor, which the preview reports.
200
- *
201
- * Dust tails and routing swaps below the swap router's minimum routable size do
202
- * not fail the call: a releasing target that cannot fully unwind returns its
203
- * honest residual in the preview, and an unroutable routing swap is skipped
204
- * (its uncovered amount only 422s the rebalance if it breaches the funding
205
- * tolerance).
206
- *
207
- * For protocol=MORPHO pass a market_id from /v2/credit/morpho_markets; inspect the
208
- * current book via /v2/credit/looped_positions.
128
+ * Move one or more leveraged positions to the state you want, in ONE atomic
129
+ * transaction.
130
+ *
131
+ * List the positions to change and the end state you want for each. The API
132
+ * works out whether that means opening, growing, shrinking, delevering or
133
+ * closing, and does them all together.
134
+ *
135
+ * Money freed by shrinking or closing one position pays for growing or opening
136
+ * another, so shifting funds between positions needs no new deposit. Any
137
+ * shortfall is taken from the Credit Account's idle balance, and the call
138
+ * returns 422 if that does not cover it either.
139
+ *
140
+ * See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
141
+ * for protocol and chain coverage, capital routing and the full error list.
209
142
  */
210
143
  creditRebalance(request: components.CreditRebalanceRequest, options?: RequestOptions): Promise<components.CreditRebalanceResponse>;
211
144
  /**
@@ -234,7 +167,7 @@ export declare class Credit extends ClientSDK {
234
167
  * Bundles repayment, collateral withdrawal, and an optional swap into a single atomic Safe transaction.
235
168
  *
236
169
  * - If `token_out` is None or equals `withdraw_token`, the withdrawn collateral is kept as-is.
237
- * - If `token_out` differs from `withdraw_token`, a swap is performed after withdrawal via 1inch.
170
+ * - If `token_out` differs from `withdraw_token`, a market swap is performed after withdrawal.
238
171
  *
239
172
  * The Credit Account must already have a borrow position created via `/v2/credit/borrow`.
240
173
  * The repay_token must be available in the Credit Account (or pulled from EOA via Permit2).
@@ -1 +1 @@
1
- {"version":3,"file":"credit.d.ts","sourceRoot":"","sources":["../../../src/sdk/credit.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,MAAO,SAAQ,SAAS;IACnC;;;;;;;;OAQG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;;;;OAQG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB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AAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;;;;;;;;;OAaG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;;;;OAQG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAO5C"}
@@ -45,14 +45,15 @@ export class Credit extends ClientSDK {
45
45
  * List looped (leveraged) credit positions
46
46
  *
47
47
  * @remarks
48
- * List looped (leveraged) positions for a credit account owner.
49
- *
50
- * Detects loops from the account's on-chain history: a transaction containing
51
- * lending + borrowing + swap legs is a loop transaction. Returns one position
52
- * per Morpho market / Aave collateral+debt reserve pair, each with its complete
53
- * per-transaction history, lifetime totals, and live on-chain state (health
54
- * factor, USD values, leverage) for open positions. Covers Aave V3 and Morpho
55
- * Blue.
48
+ * List the leveraged positions held by an owner's Credit Account.
49
+ *
50
+ * Positions are reconstructed from on-chain history rather than from API calls,
51
+ * so a loop assembled by hand through /v2/credit/bundle is recognised the same
52
+ * way as one opened through /v2/credit/loop. Only activity inside the Credit
53
+ * Account is visible leverage the owner holds directly in their wallet is not.
54
+ *
55
+ * See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
56
+ * for protocol coverage and how to read leverage, health factor and net APY.
56
57
  */
57
58
  async creditLoopedPositions(request, options) {
58
59
  return unwrapAsync(creditCreditLoopedPositions(this, request, options));
@@ -111,7 +112,7 @@ export class Credit extends ClientSDK {
111
112
  * Bundles an optional swap, collateral supply, and borrow into a single atomic Safe transaction.
112
113
  *
113
114
  * - If `token_in` equals `collateral_token`, the tokens are supplied directly as collateral.
114
- * - If `token_in` differs from `collateral_token`, a swap is performed first via 1inch.
115
+ * - If `token_in` differs from `collateral_token`, a market swap is performed first.
115
116
  *
116
117
  * The Credit Account must already be created via `/v2/credit/create_account` and funded with `token_in`.
117
118
  */
@@ -122,30 +123,16 @@ export class Credit extends ClientSDK {
122
123
  * Open a leveraged loop
123
124
  *
124
125
  * @remarks
125
- * Open a leveraged loop into an Aave or Morpho market in ONE atomic transaction.
126
- *
127
- * Repeatedly supplies collateral, borrows at the requested loan-to-value, and
128
- * swaps the borrow back to collateral. Each iteration's supply uses the swap's
129
- * GUARANTEED minimum output (enforced on-chain), so a fill anywhere within the
130
- * slippage tolerance can never break a later step; any positive surplus stays
131
- * in the Credit Account (the preview reports the bound as estimated_max_dust).
132
- * Very large loops relative to pool depth can still exceed the slippage
133
- * tolerance through their own cumulative price impact — size accordingly or
134
- * raise max_slippage_percent. Conversely, the geometric tail can shrink below
135
- * the swap router's minimum routable size; when it does the loop simply ends
136
- * early on that supply — the achieved multiplier is still guaranteed within
137
- * 0.5% of the request or the call returns a clean 400.
138
- *
139
- * When the collateral token is itself an ERC-4626 vault share (e.g. a Morpho
140
- * vault token like steakUSDC), each conversion swaps the borrow token to the
141
- * vault's underlying asset and mints the shares via the vault's own deposit at
142
- * net asset value instead of swapping the share token on a DEX — share tokens
143
- * have no honest DEX route. A direct share-token route is only ever used when
144
- * it prices within 1% of net asset value.
145
- *
146
- * The Credit Account must already hold initial_collateral_amount of
147
- * collateral_token. For protocol=MORPHO pass a market_id from
148
- * /v2/credit/morpho_markets.
126
+ * Open a leveraged position in ONE atomic transaction.
127
+ *
128
+ * Supply collateral, borrow against it, swap the borrowed token back to
129
+ * collateral, repeat until total collateral reaches multiplier x
130
+ * initial_collateral_amount. If any step fails the whole transaction reverts,
131
+ * so a position is never left half-built.
132
+ *
133
+ * See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
134
+ * for chain coverage, market discovery, vault-share collateral, HyperEVM
135
+ * specifics and the full error list.
149
136
  */
150
137
  async creditLoop(request, options) {
151
138
  return unwrapAsync(creditCreditLoop(this, request, options));
@@ -154,46 +141,15 @@ export class Credit extends ClientSDK {
154
141
  * Unwind a leveraged loop
155
142
  *
156
143
  * @remarks
157
- * Unwind an Aave or Morpho loop in ONE atomic transaction.
158
- *
159
- * Repeatedly withdraws collateral, swaps it to the borrow token at a GUARANTEED
160
- * minimum output (enforced on-chain), and repays. The floor discipline means a
161
- * swap filling anywhere within the slippage tolerance can never break a later
162
- * step; any positive surplus stays in the Credit Account as borrow-token dust
163
- * (the preview reports the bound as estimated_max_dust).
164
- *
165
- * When the collateral token is itself an ERC-4626 vault share (e.g. a Morpho
166
- * vault token like steakUSDC), each conversion redeems the shares through the
167
- * vault at net asset value and swaps the underlying asset to the borrow token
168
- * instead of swapping the share token on a DEX; a direct share-token route is
169
- * only ever used when it prices within 1% of net asset value.
170
- *
171
- * Omit target_multiplier for a full close: the debt is cleared exactly —
172
- * accrued interest included — and the pair collateral is returned to the Credit
173
- * Account. Pass 1 to clear the debt but keep the collateral supplied, or a value
174
- * above 1 to delever to that multiplier (it must be below the position's current
175
- * multiplier).
176
- *
177
- * Each withdrawal is sized to keep the position's health factor ≥ 1.02 at that
178
- * step, so a position opened very close to the liquidation threshold may need
179
- * more than one transaction to fully close — set allow_partial=true to return
180
- * the maximum single-transaction progress (preview.fully_unwound=false), then
181
- * call unloop again to finish. Very large unwinds relative to pool depth can
182
- * still exceed the slippage tolerance through their own cumulative price impact.
183
- *
184
- * Positions are unwound as far as the swap router can route; on a router-minimum
185
- * stop the engine still withdraws all collateral not needed to back the residual,
186
- * and completes a true full close whenever the unwind's own guaranteed swap
187
- * surpluses (or the Credit Account's idle balance) cover the remainder — a
188
- * residual below the router's minimum routable size never fails the call, it is
189
- * reported honestly in the preview (fully_unwound=false).
190
- *
191
- * When other open Aave loops share this position's collateral reserve, a full
192
- * close withdraws only this position's attributed share of the pooled collateral
193
- * (event-ledger bookkeeping), leaving the rest supplied for the other positions.
194
- *
195
- * For protocol=MORPHO pass a market_id from /v2/credit/morpho_markets; inspect
196
- * open loops via /v2/credit/looped_positions.
144
+ * Unwind a leveraged position in ONE atomic transaction.
145
+ *
146
+ * Withdraw collateral, swap it back to the borrow token, repay, repeat — until
147
+ * the position reaches target_multiplier, or until the debt is cleared exactly
148
+ * if you omit it. If any step fails the whole transaction reverts.
149
+ *
150
+ * See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
151
+ * for chain coverage, vault-share collateral, shared Aave reserves and the full
152
+ * error list.
197
153
  */
198
154
  async creditUnloop(request, options) {
199
155
  return unwrapAsync(creditCreditUnloop(this, request, options));
@@ -202,43 +158,20 @@ export class Credit extends ClientSDK {
202
158
  * Rebalance the leveraged credit book
203
159
  *
204
160
  * @remarks
205
- * Rebalance the leveraged credit book in ONE atomic transaction.
206
- *
207
- * List only the positions to change — anything not named is left untouched;
208
- * remove a position with close=true. Each target states an end state:
209
- * target_equity_usd (net USD committed) × target_multiplier.
210
- *
211
- * Releasing targets run first (each unwind/delever frees tokens into the Credit
212
- * Account), the freed tokens are then routed by swaps at a GUARANTEED minimum
213
- * output (enforced on-chain), and consuming targets run last so moving a
214
- * levered position between markets, token pairs, or protocols (Aave Morpho) is
215
- * simply a close plus an open in the same transaction. Conversions involving an
216
- * ERC-4626 vault-share token (e.g. a Morpho vault token like steakUSDC) go
217
- * through the vault's own deposit/redeem at net asset value rather than a DEX
218
- * swap of the share token.
219
- *
220
- * Net book growth is funded from the Credit Account's existing idle balance —
221
- * fund it first via /v2/credit/transfer; a net release stays in the Credit
222
- * Account as idle balance. Any swap surplus above the guaranteed floors also
223
- * stays in the Credit Account (preview.estimated_max_dust) — recoverable, never
224
- * lost.
225
- *
226
- * A book already at its target returns transaction: null with the preview — the
227
- * call is idempotent and safe to drive from a converge-to-target loop.
228
- *
229
- * A rebalance too large for one transaction is rejected with a 422 — split it
230
- * into two calls. Every deleveraging step keeps the health factor ≥ 1.02 and
231
- * every leveraging step respects the protocol's borrow limits; Aave targets share
232
- * one account-level health factor, which the preview reports.
233
- *
234
- * Dust tails and routing swaps below the swap router's minimum routable size do
235
- * not fail the call: a releasing target that cannot fully unwind returns its
236
- * honest residual in the preview, and an unroutable routing swap is skipped
237
- * (its uncovered amount only 422s the rebalance if it breaches the funding
238
- * tolerance).
239
- *
240
- * For protocol=MORPHO pass a market_id from /v2/credit/morpho_markets; inspect the
241
- * current book via /v2/credit/looped_positions.
161
+ * Move one or more leveraged positions to the state you want, in ONE atomic
162
+ * transaction.
163
+ *
164
+ * List the positions to change and the end state you want for each. The API
165
+ * works out whether that means opening, growing, shrinking, delevering or
166
+ * closing, and does them all together.
167
+ *
168
+ * Money freed by shrinking or closing one position pays for growing or opening
169
+ * another, so shifting funds between positions needs no new deposit. Any
170
+ * shortfall is taken from the Credit Account's idle balance, and the call
171
+ * returns 422 if that does not cover it either.
172
+ *
173
+ * See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
174
+ * for protocol and chain coverage, capital routing and the full error list.
242
175
  */
243
176
  async creditRebalance(request, options) {
244
177
  return unwrapAsync(creditCreditRebalance(this, request, options));
@@ -271,7 +204,7 @@ export class Credit extends ClientSDK {
271
204
  * Bundles repayment, collateral withdrawal, and an optional swap into a single atomic Safe transaction.
272
205
  *
273
206
  * - If `token_out` is None or equals `withdraw_token`, the withdrawn collateral is kept as-is.
274
- * - If `token_out` differs from `withdraw_token`, a swap is performed after withdrawal via 1inch.
207
+ * - If `token_out` differs from `withdraw_token`, a market swap is performed after withdrawal.
275
208
  *
276
209
  * The Credit Account must already have a borrow position created via `/v2/credit/borrow`.
277
210
  * The repay_token must be available in the Credit Account (or pulled from EOA via Permit2).
@@ -1 +1 @@
1
- {"version":3,"file":"credit.js","sourceRoot":"","sources":["../../../src/sdk/credit.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAC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