@compass-labs/api-sdk 2.2.87 → 2.2.88
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/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/accountsummary.d.ts +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +20 -6
- package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditlooprequest.js +6 -0
- package/dist/commonjs/models/components/creditlooprequest.js.map +1 -1
- package/dist/commonjs/models/components/creditprotocol.d.ts +10 -12
- package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditprotocol.js +5 -6
- package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.d.ts +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +20 -6
- package/dist/commonjs/models/components/creditunlooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditunlooprequest.js +6 -0
- package/dist/commonjs/models/components/creditunlooprequest.js.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +5 -6
- package/dist/commonjs/models/components/rebalancetargetpreview.d.ts.map +1 -1
- package/dist/commonjs/models/components/rebalancetargetpreview.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 +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +20 -6
- package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditlooprequest.js +6 -0
- package/dist/esm/models/components/creditlooprequest.js.map +1 -1
- package/dist/esm/models/components/creditprotocol.d.ts +10 -12
- package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/esm/models/components/creditprotocol.js +5 -6
- package/dist/esm/models/components/creditprotocol.js.map +1 -1
- package/dist/esm/models/components/creditrepayparams.d.ts +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +20 -6
- package/dist/esm/models/components/creditunlooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditunlooprequest.js +6 -0
- package/dist/esm/models/components/creditunlooprequest.js.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.d.ts +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +5 -6
- 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 +5 -6
- package/dist/esm/models/components/rebalancetargetpreview.d.ts.map +1 -1
- package/dist/esm/models/components/rebalancetargetpreview.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 +17 -14
- package/docs/models/components/creditprotocol.md +5 -6
- 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 +15 -12
- 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/openapi_prepped_for_speakeasy.json +67 -3
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/accountsummary.ts +5 -6
- package/src/models/components/collateralposition.ts +5 -6
- package/src/models/components/creditborrowparams.ts +5 -6
- package/src/models/components/creditborrowrequest.ts +5 -6
- package/src/models/components/creditenablecollateralparams.ts +5 -6
- package/src/models/components/creditlooprequest.ts +26 -6
- package/src/models/components/creditprotocol.ts +10 -12
- package/src/models/components/creditrepayparams.ts +5 -6
- package/src/models/components/creditrepayrequest.ts +5 -6
- package/src/models/components/creditsupplyparams.ts +5 -6
- package/src/models/components/creditunlooprequest.ts +26 -6
- package/src/models/components/creditwithdrawparams.ts +5 -6
- package/src/models/components/debtposition.ts +5 -6
- package/src/models/components/loopedposition.ts +5 -6
- package/src/models/components/rebalancetarget.ts +5 -6
- package/src/models/components/rebalancetargetpreview.ts +5 -6
|
@@ -52,18 +52,29 @@ export type CreditLoopRequest = {
|
|
|
52
52
|
* @remarks
|
|
53
53
|
*
|
|
54
54
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
55
|
-
* field) keep hitting the unchanged Aave code path. ``
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* endpoints reject it with a 422.
|
|
55
|
+
* field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
|
|
56
|
+
* Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
|
|
57
|
+
* V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
|
|
58
|
+
* supports isolated per-sub-account positions (``sub_account_id``). All three
|
|
59
|
+
* support the loop/unloop leverage endpoints.
|
|
61
60
|
*/
|
|
62
61
|
protocol?: CreditProtocol | undefined;
|
|
63
62
|
/**
|
|
64
63
|
* Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO.
|
|
65
64
|
*/
|
|
66
65
|
marketId?: string | null | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Euler only: the EVK vault address collateral is supplied to (from /v2/credit/euler_markets). Required when protocol=EULER.
|
|
68
|
+
*/
|
|
69
|
+
collateralVault?: string | null | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Euler only: the EVK vault address borrowed from (the sub-account's controller). Required when protocol=EULER.
|
|
72
|
+
*/
|
|
73
|
+
borrowVault?: string | null | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Euler only: the EVC sub-account (0-255) holding this isolated looped position. 0 is the Credit Account itself.
|
|
76
|
+
*/
|
|
77
|
+
subAccountId?: number | undefined;
|
|
67
78
|
/**
|
|
68
79
|
* Token supplied as collateral each iteration. Must already be in the Credit Account for the initial amount. For MORPHO it must be the market's collateral token.
|
|
69
80
|
*/
|
|
@@ -185,6 +196,9 @@ export type CreditLoopRequest$Outbound = {
|
|
|
185
196
|
chain: string;
|
|
186
197
|
protocol?: string | undefined;
|
|
187
198
|
market_id?: string | null | undefined;
|
|
199
|
+
collateral_vault?: string | null | undefined;
|
|
200
|
+
borrow_vault?: string | null | undefined;
|
|
201
|
+
sub_account_id?: number | undefined;
|
|
188
202
|
collateral_token: string;
|
|
189
203
|
borrow_token: string;
|
|
190
204
|
initial_collateral_amount: number | string;
|
|
@@ -205,6 +219,9 @@ export const CreditLoopRequest$outboundSchema: z.ZodType<
|
|
|
205
219
|
chain: Chain$outboundSchema,
|
|
206
220
|
protocol: CreditProtocol$outboundSchema.optional(),
|
|
207
221
|
marketId: z.nullable(z.string()).optional(),
|
|
222
|
+
collateralVault: z.nullable(z.string()).optional(),
|
|
223
|
+
borrowVault: z.nullable(z.string()).optional(),
|
|
224
|
+
subAccountId: z.number().int().optional(),
|
|
208
225
|
collateralToken: z.string(),
|
|
209
226
|
borrowToken: z.string(),
|
|
210
227
|
initialCollateralAmount: z.union([z.number(), z.string()]),
|
|
@@ -216,6 +233,9 @@ export const CreditLoopRequest$outboundSchema: z.ZodType<
|
|
|
216
233
|
}).transform((v) => {
|
|
217
234
|
return remap$(v, {
|
|
218
235
|
marketId: "market_id",
|
|
236
|
+
collateralVault: "collateral_vault",
|
|
237
|
+
borrowVault: "borrow_vault",
|
|
238
|
+
subAccountId: "sub_account_id",
|
|
219
239
|
collateralToken: "collateral_token",
|
|
220
240
|
borrowToken: "borrow_token",
|
|
221
241
|
initialCollateralAmount: "initial_collateral_amount",
|
|
@@ -11,12 +11,11 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
11
11
|
* @remarks
|
|
12
12
|
*
|
|
13
13
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
14
|
-
* field) keep hitting the unchanged Aave code path. ``
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* endpoints reject it with a 422.
|
|
14
|
+
* field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
|
|
15
|
+
* Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
|
|
16
|
+
* V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
|
|
17
|
+
* supports isolated per-sub-account positions (``sub_account_id``). All three
|
|
18
|
+
* support the loop/unloop leverage endpoints.
|
|
20
19
|
*/
|
|
21
20
|
export const CreditProtocol = {
|
|
22
21
|
Aave: "AAVE",
|
|
@@ -29,12 +28,11 @@ export const CreditProtocol = {
|
|
|
29
28
|
* @remarks
|
|
30
29
|
*
|
|
31
30
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
32
|
-
* field) keep hitting the unchanged Aave code path. ``
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* endpoints reject it with a 422.
|
|
31
|
+
* field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
|
|
32
|
+
* Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
|
|
33
|
+
* V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
|
|
34
|
+
* supports isolated per-sub-account positions (``sub_account_id``). All three
|
|
35
|
+
* support the loop/unloop leverage endpoints.
|
|
38
36
|
*/
|
|
39
37
|
export type CreditProtocol = ClosedEnum<typeof CreditProtocol>;
|
|
40
38
|
|
|
@@ -45,12 +45,11 @@ export type CreditRepayParams = {
|
|
|
45
45
|
* @remarks
|
|
46
46
|
*
|
|
47
47
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
48
|
-
* field) keep hitting the unchanged Aave code path. ``
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* endpoints reject it with a 422.
|
|
48
|
+
* field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
|
|
49
|
+
* Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
|
|
50
|
+
* V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
|
|
51
|
+
* supports isolated per-sub-account positions (``sub_account_id``). All three
|
|
52
|
+
* support the loop/unloop leverage endpoints.
|
|
54
53
|
*/
|
|
55
54
|
protocol?: CreditProtocol | undefined;
|
|
56
55
|
/**
|
|
@@ -44,12 +44,11 @@ export type CreditRepayRequest = {
|
|
|
44
44
|
* @remarks
|
|
45
45
|
*
|
|
46
46
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
47
|
-
* field) keep hitting the unchanged Aave code path. ``
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* endpoints reject it with a 422.
|
|
47
|
+
* field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
|
|
48
|
+
* Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
|
|
49
|
+
* V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
|
|
50
|
+
* supports isolated per-sub-account positions (``sub_account_id``). All three
|
|
51
|
+
* support the loop/unloop leverage endpoints.
|
|
53
52
|
*/
|
|
54
53
|
protocol?: CreditProtocol | undefined;
|
|
55
54
|
/**
|
|
@@ -33,12 +33,11 @@ export type CreditSupplyParams = {
|
|
|
33
33
|
* @remarks
|
|
34
34
|
*
|
|
35
35
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
36
|
-
* field) keep hitting the unchanged Aave code path. ``
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* endpoints reject it with a 422.
|
|
36
|
+
* field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
|
|
37
|
+
* Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
|
|
38
|
+
* V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
|
|
39
|
+
* supports isolated per-sub-account positions (``sub_account_id``). All three
|
|
40
|
+
* support the loop/unloop leverage endpoints.
|
|
42
41
|
*/
|
|
43
42
|
protocol?: CreditProtocol | undefined;
|
|
44
43
|
/**
|
|
@@ -42,18 +42,29 @@ export type CreditUnloopRequest = {
|
|
|
42
42
|
* @remarks
|
|
43
43
|
*
|
|
44
44
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
45
|
-
* field) keep hitting the unchanged Aave code path. ``
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* endpoints reject it with a 422.
|
|
45
|
+
* field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
|
|
46
|
+
* Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
|
|
47
|
+
* V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
|
|
48
|
+
* supports isolated per-sub-account positions (``sub_account_id``). All three
|
|
49
|
+
* support the loop/unloop leverage endpoints.
|
|
51
50
|
*/
|
|
52
51
|
protocol?: CreditProtocol | undefined;
|
|
53
52
|
/**
|
|
54
53
|
* Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO.
|
|
55
54
|
*/
|
|
56
55
|
marketId?: string | null | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Euler only: the EVK vault the loop's collateral is in. Required when protocol=EULER.
|
|
58
|
+
*/
|
|
59
|
+
collateralVault?: string | null | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Euler only: the EVK vault the loop borrowed from (the sub-account's controller). Required when protocol=EULER.
|
|
62
|
+
*/
|
|
63
|
+
borrowVault?: string | null | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Euler only: the EVC sub-account (0-255) holding the looped position to unwind. 0 is the Credit Account itself.
|
|
66
|
+
*/
|
|
67
|
+
subAccountId?: number | undefined;
|
|
57
68
|
/**
|
|
58
69
|
* Token supplied as collateral in the loop being unwound. For MORPHO it must be the market's collateral token.
|
|
59
70
|
*/
|
|
@@ -126,6 +137,9 @@ export type CreditUnloopRequest$Outbound = {
|
|
|
126
137
|
chain: string;
|
|
127
138
|
protocol?: string | undefined;
|
|
128
139
|
market_id?: string | null | undefined;
|
|
140
|
+
collateral_vault?: string | null | undefined;
|
|
141
|
+
borrow_vault?: string | null | undefined;
|
|
142
|
+
sub_account_id?: number | undefined;
|
|
129
143
|
collateral_token: string;
|
|
130
144
|
borrow_token: string;
|
|
131
145
|
target_multiplier?: number | string | null | undefined;
|
|
@@ -144,6 +158,9 @@ export const CreditUnloopRequest$outboundSchema: z.ZodType<
|
|
|
144
158
|
chain: Chain$outboundSchema,
|
|
145
159
|
protocol: CreditProtocol$outboundSchema.optional(),
|
|
146
160
|
marketId: z.nullable(z.string()).optional(),
|
|
161
|
+
collateralVault: z.nullable(z.string()).optional(),
|
|
162
|
+
borrowVault: z.nullable(z.string()).optional(),
|
|
163
|
+
subAccountId: z.number().int().optional(),
|
|
147
164
|
collateralToken: z.string(),
|
|
148
165
|
borrowToken: z.string(),
|
|
149
166
|
targetMultiplier: z.nullable(z.union([z.number(), z.string()])).optional(),
|
|
@@ -153,6 +170,9 @@ export const CreditUnloopRequest$outboundSchema: z.ZodType<
|
|
|
153
170
|
}).transform((v) => {
|
|
154
171
|
return remap$(v, {
|
|
155
172
|
marketId: "market_id",
|
|
173
|
+
collateralVault: "collateral_vault",
|
|
174
|
+
borrowVault: "borrow_vault",
|
|
175
|
+
subAccountId: "sub_account_id",
|
|
156
176
|
collateralToken: "collateral_token",
|
|
157
177
|
borrowToken: "borrow_token",
|
|
158
178
|
targetMultiplier: "target_multiplier",
|
|
@@ -33,12 +33,11 @@ export type CreditWithdrawParams = {
|
|
|
33
33
|
* @remarks
|
|
34
34
|
*
|
|
35
35
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
36
|
-
* field) keep hitting the unchanged Aave code path. ``
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* endpoints reject it with a 422.
|
|
36
|
+
* field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
|
|
37
|
+
* Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
|
|
38
|
+
* V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
|
|
39
|
+
* supports isolated per-sub-account positions (``sub_account_id``). All three
|
|
40
|
+
* support the loop/unloop leverage endpoints.
|
|
42
41
|
*/
|
|
43
42
|
protocol?: CreditProtocol | undefined;
|
|
44
43
|
/**
|
|
@@ -31,12 +31,11 @@ export type DebtPosition = {
|
|
|
31
31
|
* @remarks
|
|
32
32
|
*
|
|
33
33
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
34
|
-
* field) keep hitting the unchanged Aave code path. ``
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* endpoints reject it with a 422.
|
|
34
|
+
* field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
|
|
35
|
+
* Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
|
|
36
|
+
* V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
|
|
37
|
+
* supports isolated per-sub-account positions (``sub_account_id``). All three
|
|
38
|
+
* support the loop/unloop leverage endpoints.
|
|
40
39
|
*/
|
|
41
40
|
protocol?: CreditProtocol | undefined;
|
|
42
41
|
/**
|
|
@@ -47,12 +47,11 @@ export type LoopedPosition = {
|
|
|
47
47
|
* @remarks
|
|
48
48
|
*
|
|
49
49
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
50
|
-
* field) keep hitting the unchanged Aave code path. ``
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* endpoints reject it with a 422.
|
|
50
|
+
* field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
|
|
51
|
+
* Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
|
|
52
|
+
* V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
|
|
53
|
+
* supports isolated per-sub-account positions (``sub_account_id``). All three
|
|
54
|
+
* support the loop/unloop leverage endpoints.
|
|
56
55
|
*/
|
|
57
56
|
protocol: CreditProtocol;
|
|
58
57
|
/**
|
|
@@ -40,12 +40,11 @@ export type RebalanceTarget = {
|
|
|
40
40
|
* @remarks
|
|
41
41
|
*
|
|
42
42
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
43
|
-
* field) keep hitting the unchanged Aave code path. ``
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* endpoints reject it with a 422.
|
|
43
|
+
* field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
|
|
44
|
+
* Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
|
|
45
|
+
* V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
|
|
46
|
+
* supports isolated per-sub-account positions (``sub_account_id``). All three
|
|
47
|
+
* support the loop/unloop leverage endpoints.
|
|
49
48
|
*/
|
|
50
49
|
protocol?: CreditProtocol | undefined;
|
|
51
50
|
/**
|
|
@@ -49,12 +49,11 @@ export type RebalanceTargetPreview = {
|
|
|
49
49
|
* @remarks
|
|
50
50
|
*
|
|
51
51
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
52
|
-
* field) keep hitting the unchanged Aave code path. ``
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* endpoints reject it with a 422.
|
|
52
|
+
* field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
|
|
53
|
+
* Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
|
|
54
|
+
* V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
|
|
55
|
+
* supports isolated per-sub-account positions (``sub_account_id``). All three
|
|
56
|
+
* support the loop/unloop leverage endpoints.
|
|
58
57
|
*/
|
|
59
58
|
protocol: CreditProtocol;
|
|
60
59
|
/**
|