@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.
- package/dist/commonjs/funcs/creditCreditBorrow.d.ts +1 -1
- package/dist/commonjs/funcs/creditCreditBorrow.js +1 -1
- package/dist/commonjs/funcs/creditCreditLoop.d.ts +8 -22
- package/dist/commonjs/funcs/creditCreditLoop.d.ts.map +1 -1
- package/dist/commonjs/funcs/creditCreditLoop.js +8 -22
- package/dist/commonjs/funcs/creditCreditLoop.js.map +1 -1
- package/dist/commonjs/funcs/creditCreditLoopedPositions.d.ts +8 -7
- package/dist/commonjs/funcs/creditCreditLoopedPositions.d.ts.map +1 -1
- package/dist/commonjs/funcs/creditCreditLoopedPositions.js +8 -7
- package/dist/commonjs/funcs/creditCreditLoopedPositions.js.map +1 -1
- package/dist/commonjs/funcs/creditCreditRebalance.d.ts +11 -34
- package/dist/commonjs/funcs/creditCreditRebalance.d.ts.map +1 -1
- package/dist/commonjs/funcs/creditCreditRebalance.js +11 -34
- package/dist/commonjs/funcs/creditCreditRebalance.js.map +1 -1
- package/dist/commonjs/funcs/creditCreditRepay.d.ts +1 -1
- package/dist/commonjs/funcs/creditCreditRepay.js +1 -1
- package/dist/commonjs/funcs/creditCreditUnloop.d.ts +7 -38
- package/dist/commonjs/funcs/creditCreditUnloop.d.ts.map +1 -1
- package/dist/commonjs/funcs/creditCreditUnloop.js +7 -38
- package/dist/commonjs/funcs/creditCreditUnloop.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/accountsummary.d.ts +18 -5
- package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/accountsummary.js.map +1 -1
- package/dist/commonjs/models/components/collateralposition.d.ts +18 -5
- package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/collateralposition.js.map +1 -1
- package/dist/commonjs/models/components/creditborrowparams.d.ts +18 -5
- package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
- package/dist/commonjs/models/components/creditborrowrequest.d.ts +18 -5
- package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +18 -5
- package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
- package/dist/commonjs/models/components/creditlooprequest.d.ts +27 -14
- package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditlooprequest.js +1 -1
- package/dist/commonjs/models/components/creditlooprequest.js.map +1 -1
- package/dist/commonjs/models/components/creditloopresponse.d.ts +5 -5
- package/dist/commonjs/models/components/creditloopresponse.js +1 -1
- package/dist/commonjs/models/components/creditprotocol.d.ts +36 -10
- package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditprotocol.js +18 -5
- package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.d.ts +18 -5
- package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayrequest.d.ts +18 -5
- package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditsupplyparams.d.ts +18 -5
- package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
- package/dist/commonjs/models/components/creditunlooprequest.d.ts +23 -10
- package/dist/commonjs/models/components/creditunlooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditunlooprequest.js +1 -1
- package/dist/commonjs/models/components/creditunlooprequest.js.map +1 -1
- package/dist/commonjs/models/components/creditunloopresponse.d.ts +5 -5
- package/dist/commonjs/models/components/creditunloopresponse.js +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts +18 -5
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
- package/dist/commonjs/models/components/debtposition.d.ts +18 -5
- package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/debtposition.js.map +1 -1
- package/dist/commonjs/models/components/loopedposition.d.ts +18 -5
- package/dist/commonjs/models/components/loopedposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/loopedposition.js.map +1 -1
- package/dist/commonjs/models/components/rebalancetarget.d.ts +18 -5
- package/dist/commonjs/models/components/rebalancetarget.d.ts.map +1 -1
- package/dist/commonjs/models/components/rebalancetarget.js.map +1 -1
- package/dist/commonjs/models/components/rebalancetargetpreview.d.ts +18 -5
- package/dist/commonjs/models/components/rebalancetargetpreview.d.ts.map +1 -1
- package/dist/commonjs/models/components/rebalancetargetpreview.js.map +1 -1
- package/dist/commonjs/models/components/swapinfo.d.ts +2 -2
- package/dist/commonjs/sdk/credit.d.ts +44 -111
- package/dist/commonjs/sdk/credit.d.ts.map +1 -1
- package/dist/commonjs/sdk/credit.js +44 -111
- package/dist/commonjs/sdk/credit.js.map +1 -1
- package/dist/esm/funcs/creditCreditBorrow.d.ts +1 -1
- package/dist/esm/funcs/creditCreditBorrow.js +1 -1
- package/dist/esm/funcs/creditCreditLoop.d.ts +8 -22
- package/dist/esm/funcs/creditCreditLoop.d.ts.map +1 -1
- package/dist/esm/funcs/creditCreditLoop.js +8 -22
- package/dist/esm/funcs/creditCreditLoop.js.map +1 -1
- package/dist/esm/funcs/creditCreditLoopedPositions.d.ts +8 -7
- package/dist/esm/funcs/creditCreditLoopedPositions.d.ts.map +1 -1
- package/dist/esm/funcs/creditCreditLoopedPositions.js +8 -7
- package/dist/esm/funcs/creditCreditLoopedPositions.js.map +1 -1
- package/dist/esm/funcs/creditCreditRebalance.d.ts +11 -34
- package/dist/esm/funcs/creditCreditRebalance.d.ts.map +1 -1
- package/dist/esm/funcs/creditCreditRebalance.js +11 -34
- package/dist/esm/funcs/creditCreditRebalance.js.map +1 -1
- package/dist/esm/funcs/creditCreditRepay.d.ts +1 -1
- package/dist/esm/funcs/creditCreditRepay.js +1 -1
- package/dist/esm/funcs/creditCreditUnloop.d.ts +7 -38
- package/dist/esm/funcs/creditCreditUnloop.d.ts.map +1 -1
- package/dist/esm/funcs/creditCreditUnloop.js +7 -38
- package/dist/esm/funcs/creditCreditUnloop.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/accountsummary.d.ts +18 -5
- package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
- package/dist/esm/models/components/accountsummary.js.map +1 -1
- package/dist/esm/models/components/collateralposition.d.ts +18 -5
- package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
- package/dist/esm/models/components/collateralposition.js.map +1 -1
- package/dist/esm/models/components/creditborrowparams.d.ts +18 -5
- package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditborrowparams.js.map +1 -1
- package/dist/esm/models/components/creditborrowrequest.d.ts +18 -5
- package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
- package/dist/esm/models/components/creditenablecollateralparams.d.ts +18 -5
- package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
- package/dist/esm/models/components/creditlooprequest.d.ts +27 -14
- package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditlooprequest.js +1 -1
- package/dist/esm/models/components/creditlooprequest.js.map +1 -1
- package/dist/esm/models/components/creditloopresponse.d.ts +5 -5
- package/dist/esm/models/components/creditloopresponse.js +1 -1
- package/dist/esm/models/components/creditprotocol.d.ts +36 -10
- package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/esm/models/components/creditprotocol.js +18 -5
- package/dist/esm/models/components/creditprotocol.js.map +1 -1
- package/dist/esm/models/components/creditrepayparams.d.ts +18 -5
- package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditrepayparams.js.map +1 -1
- package/dist/esm/models/components/creditrepayrequest.d.ts +18 -5
- package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
- package/dist/esm/models/components/creditsupplyparams.d.ts +18 -5
- package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
- package/dist/esm/models/components/creditunlooprequest.d.ts +23 -10
- package/dist/esm/models/components/creditunlooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditunlooprequest.js +1 -1
- package/dist/esm/models/components/creditunlooprequest.js.map +1 -1
- package/dist/esm/models/components/creditunloopresponse.d.ts +5 -5
- package/dist/esm/models/components/creditunloopresponse.js +1 -1
- package/dist/esm/models/components/creditwithdrawparams.d.ts +18 -5
- package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
- package/dist/esm/models/components/debtposition.d.ts +18 -5
- package/dist/esm/models/components/debtposition.d.ts.map +1 -1
- package/dist/esm/models/components/debtposition.js.map +1 -1
- package/dist/esm/models/components/loopedposition.d.ts +18 -5
- package/dist/esm/models/components/loopedposition.d.ts.map +1 -1
- package/dist/esm/models/components/loopedposition.js.map +1 -1
- package/dist/esm/models/components/rebalancetarget.d.ts +18 -5
- package/dist/esm/models/components/rebalancetarget.d.ts.map +1 -1
- package/dist/esm/models/components/rebalancetarget.js.map +1 -1
- package/dist/esm/models/components/rebalancetargetpreview.d.ts +18 -5
- package/dist/esm/models/components/rebalancetargetpreview.d.ts.map +1 -1
- package/dist/esm/models/components/rebalancetargetpreview.js.map +1 -1
- package/dist/esm/models/components/swapinfo.d.ts +2 -2
- package/dist/esm/sdk/credit.d.ts +44 -111
- package/dist/esm/sdk/credit.d.ts.map +1 -1
- package/dist/esm/sdk/credit.js +44 -111
- package/dist/esm/sdk/credit.js.map +1 -1
- package/docs/models/components/accountsummary.md +11 -11
- package/docs/models/components/collateralposition.md +17 -17
- package/docs/models/components/creditborrowparams.md +11 -11
- package/docs/models/components/creditborrowrequest.md +21 -21
- package/docs/models/components/creditenablecollateralparams.md +7 -7
- package/docs/models/components/creditlooprequest.md +19 -19
- package/docs/models/components/creditlooprequestchain.md +1 -1
- package/docs/models/components/creditlooprequestinitialcollateralamount.md +1 -1
- package/docs/models/components/creditlooprequestloantovalue.md +1 -1
- package/docs/models/components/creditloopresponse.md +8 -8
- package/docs/models/components/creditloopresponseswapprovider.md +1 -1
- package/docs/models/components/creditprotocol.md +18 -5
- package/docs/models/components/creditrepayparams.md +10 -10
- package/docs/models/components/creditrepayrequest.md +20 -20
- package/docs/models/components/creditsupplyparams.md +9 -9
- package/docs/models/components/creditunlooprequest.md +17 -17
- package/docs/models/components/creditunlooprequestchain.md +1 -1
- package/docs/models/components/creditunloopresponse.md +8 -8
- package/docs/models/components/creditunloopresponseswapprovider.md +1 -1
- package/docs/models/components/creditwithdrawparams.md +9 -9
- package/docs/models/components/debtposition.md +16 -16
- package/docs/models/components/loopedposition.md +14 -14
- package/docs/models/components/rebalancetarget.md +10 -10
- package/docs/models/components/rebalancetargetpreview.md +16 -16
- package/docs/models/components/swapinfo.md +10 -10
- package/docs/sdks/credit/README.md +40 -107
- package/openapi_prepped_for_speakeasy.json +26 -26
- package/package.json +1 -1
- package/src/funcs/creditCreditBorrow.ts +1 -1
- package/src/funcs/creditCreditLoop.ts +8 -22
- package/src/funcs/creditCreditLoopedPositions.ts +8 -7
- package/src/funcs/creditCreditRebalance.ts +11 -34
- package/src/funcs/creditCreditRepay.ts +1 -1
- package/src/funcs/creditCreditUnloop.ts +7 -38
- package/src/lib/config.ts +2 -2
- package/src/models/components/accountsummary.ts +18 -5
- package/src/models/components/collateralposition.ts +18 -5
- package/src/models/components/creditborrowparams.ts +18 -5
- package/src/models/components/creditborrowrequest.ts +18 -5
- package/src/models/components/creditenablecollateralparams.ts +18 -5
- package/src/models/components/creditlooprequest.ts +27 -14
- package/src/models/components/creditloopresponse.ts +5 -5
- package/src/models/components/creditprotocol.ts +36 -10
- package/src/models/components/creditrepayparams.ts +18 -5
- package/src/models/components/creditrepayrequest.ts +18 -5
- package/src/models/components/creditsupplyparams.ts +18 -5
- package/src/models/components/creditunlooprequest.ts +23 -10
- package/src/models/components/creditunloopresponse.ts +5 -5
- package/src/models/components/creditwithdrawparams.ts +18 -5
- package/src/models/components/debtposition.ts +18 -5
- package/src/models/components/loopedposition.ts +18 -5
- package/src/models/components/rebalancetarget.ts +18 -5
- package/src/models/components/rebalancetargetpreview.ts +18 -5
- package/src/models/components/swapinfo.ts +2 -2
- package/src/sdk/credit.ts +44 -111
package/dist/esm/sdk/credit.d.ts
CHANGED
|
@@ -26,14 +26,15 @@ export declare class Credit extends ClientSDK {
|
|
|
26
26
|
* List looped (leveraged) credit positions
|
|
27
27
|
*
|
|
28
28
|
* @remarks
|
|
29
|
-
* List
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
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
|
|
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
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
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
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
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
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
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
|
|
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,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,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;;;;;;;;;;OAcG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;;;;;;;;;OAaG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;;;;;;;;;;;;;;OAkBG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;;;;;;;;;;;OAeG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,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"}
|
package/dist/esm/sdk/credit.js
CHANGED
|
@@ -45,14 +45,15 @@ export class Credit extends ClientSDK {
|
|
|
45
45
|
* List looped (leveraged) credit positions
|
|
46
46
|
*
|
|
47
47
|
* @remarks
|
|
48
|
-
* List
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
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
|
|
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
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
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
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
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
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
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
|
|
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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