@compass-labs/api-sdk 2.2.102 → 2.2.104
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/lib/encodings.d.ts +10 -9
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +29 -13
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/models/components/accountsummary.d.ts +3 -7
- 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/builder.d.ts +1 -1
- package/dist/commonjs/models/components/collateralposition.d.ts +3 -7
- 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 +3 -7
- 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 +3 -7
- 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 +3 -7
- 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/creditloopedpositionsresponse.d.ts +3 -3
- package/dist/commonjs/models/components/creditlooprequest.d.ts +3 -7
- package/dist/commonjs/models/components/creditlooprequest.d.ts.map +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 +3 -3
- package/dist/commonjs/models/components/creditloopresponse.js.map +1 -1
- package/dist/commonjs/models/components/creditprotocol.d.ts +6 -14
- package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditprotocol.js +3 -7
- package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.d.ts +3 -7
- 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 +3 -7
- 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 +3 -7
- 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 +3 -7
- package/dist/commonjs/models/components/creditunlooprequest.d.ts.map +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 +3 -3
- package/dist/commonjs/models/components/creditunloopresponse.js.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts +3 -7
- 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 +3 -7
- 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 +15 -7
- package/dist/commonjs/models/components/loopedposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/loopedposition.js +6 -0
- package/dist/commonjs/models/components/loopedposition.js.map +1 -1
- package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts +3 -3
- package/dist/commonjs/models/components/loopedpositioncurrentstate.js +1 -1
- package/dist/commonjs/models/components/rebalancetarget.d.ts +3 -7
- 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 +3 -7
- 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/lib/encodings.d.ts +10 -9
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +29 -13
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/models/components/accountsummary.d.ts +3 -7
- 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/builder.d.ts +1 -1
- package/dist/esm/models/components/collateralposition.d.ts +3 -7
- 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 +3 -7
- 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 +3 -7
- 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 +3 -7
- 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/creditloopedpositionsresponse.d.ts +3 -3
- package/dist/esm/models/components/creditlooprequest.d.ts +3 -7
- package/dist/esm/models/components/creditlooprequest.d.ts.map +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 +3 -3
- package/dist/esm/models/components/creditloopresponse.js.map +1 -1
- package/dist/esm/models/components/creditprotocol.d.ts +6 -14
- package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/esm/models/components/creditprotocol.js +3 -7
- package/dist/esm/models/components/creditprotocol.js.map +1 -1
- package/dist/esm/models/components/creditrepayparams.d.ts +3 -7
- 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 +3 -7
- 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 +3 -7
- 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 +3 -7
- package/dist/esm/models/components/creditunlooprequest.d.ts.map +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 +3 -3
- package/dist/esm/models/components/creditunloopresponse.js.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.d.ts +3 -7
- 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 +3 -7
- 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 +15 -7
- package/dist/esm/models/components/loopedposition.d.ts.map +1 -1
- package/dist/esm/models/components/loopedposition.js +6 -0
- package/dist/esm/models/components/loopedposition.js.map +1 -1
- package/dist/esm/models/components/loopedpositioncurrentstate.d.ts +3 -3
- package/dist/esm/models/components/loopedpositioncurrentstate.js +1 -1
- package/dist/esm/models/components/rebalancetarget.d.ts +3 -7
- 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 +3 -7
- 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/builder.md +4 -4
- 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/creditloopedpositionsresponse.md +6 -6
- package/docs/models/components/creditlooprequest.md +19 -19
- package/docs/models/components/creditloopresponse.md +9 -9
- package/docs/models/components/creditloopresponseswapprovider.md +3 -3
- package/docs/models/components/creditprotocol.md +3 -7
- 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/creditunloopresponse.md +9 -9
- package/docs/models/components/creditunloopresponseswapprovider.md +3 -3
- package/docs/models/components/creditwithdrawparams.md +9 -9
- package/docs/models/components/debtposition.md +16 -16
- package/docs/models/components/loopedposition.md +17 -14
- package/docs/models/components/loopedpositioncurrentstate.md +1 -1
- package/docs/models/components/loopedpositioncurrentstatehealthfactorscope.md +1 -1
- package/docs/models/components/rebalancetarget.md +10 -10
- package/docs/models/components/rebalancetargetpreview.md +16 -16
- package/examples/node_modules/tsx/dist/cjs/api/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/cli.cjs +1 -1
- package/examples/node_modules/tsx/dist/cli.mjs +1 -1
- package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/esm/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/esm/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/index-D1vYaNWZ.cjs +14 -0
- package/examples/node_modules/tsx/dist/index-DCefr8NP.mjs +14 -0
- package/examples/node_modules/tsx/dist/loader.cjs +1 -1
- package/examples/node_modules/tsx/dist/loader.mjs +1 -1
- package/examples/node_modules/tsx/dist/package-B1lIY_Tn.cjs +1 -0
- package/examples/node_modules/tsx/dist/package-BL7Whz21.mjs +1 -0
- package/examples/node_modules/tsx/dist/{register-C9AniqUt.mjs → register-DHgpdRjs.mjs} +1 -1
- package/examples/node_modules/tsx/dist/{register-Ciecs-Zx.cjs → register-DjPW2kSr.cjs} +2 -2
- package/examples/node_modules/tsx/dist/{register-C557imBs.cjs → register-OY9cqBEN.cjs} +1 -1
- package/examples/node_modules/tsx/dist/{register-C4vWVmug.mjs → register-SoqaU4rg.mjs} +1 -1
- package/examples/node_modules/tsx/dist/repl.cjs +1 -1
- package/examples/node_modules/tsx/dist/repl.mjs +1 -1
- package/examples/node_modules/tsx/dist/{require-DDxgG93A.cjs → require-Blr_8TcJ.cjs} +1 -1
- package/examples/node_modules/tsx/dist/{require-CywAB2e6.mjs → require-Cuv-0BLU.mjs} +1 -1
- package/examples/node_modules/tsx/package.json +1 -1
- package/examples/package-lock.json +3 -3
- package/openapi_prepped_for_speakeasy.json +51 -15
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/lib/encodings.ts +58 -23
- package/src/models/components/accountsummary.ts +3 -7
- package/src/models/components/builder.ts +1 -1
- package/src/models/components/collateralposition.ts +3 -7
- package/src/models/components/creditborrowparams.ts +3 -7
- package/src/models/components/creditborrowrequest.ts +3 -7
- package/src/models/components/creditenablecollateralparams.ts +3 -7
- package/src/models/components/creditloopedpositionsresponse.ts +3 -3
- package/src/models/components/creditlooprequest.ts +3 -7
- package/src/models/components/creditloopresponse.ts +5 -5
- package/src/models/components/creditprotocol.ts +6 -14
- package/src/models/components/creditrepayparams.ts +3 -7
- package/src/models/components/creditrepayrequest.ts +3 -7
- package/src/models/components/creditsupplyparams.ts +3 -7
- package/src/models/components/creditunlooprequest.ts +3 -7
- package/src/models/components/creditunloopresponse.ts +5 -5
- package/src/models/components/creditwithdrawparams.ts +3 -7
- package/src/models/components/debtposition.ts +3 -7
- package/src/models/components/loopedposition.ts +21 -7
- package/src/models/components/loopedpositioncurrentstate.ts +3 -3
- package/src/models/components/rebalancetarget.ts +3 -7
- package/src/models/components/rebalancetargetpreview.ts +3 -7
- package/examples/node_modules/tsx/dist/index-6kqi0x0U.cjs +0 -14
- package/examples/node_modules/tsx/dist/index-DQtFPMc2.mjs +0 -14
- package/examples/node_modules/tsx/dist/package-B13bX4zz.mjs +0 -1
- package/examples/node_modules/tsx/dist/package-sd2gMcZx.cjs +0 -1
|
@@ -38,19 +38,27 @@ export type LoopedPosition = {
|
|
|
38
38
|
* chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
|
|
39
39
|
* (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
|
|
40
40
|
*
|
|
41
|
-
* All three support ``/v2/credit/loop
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* silently absent there rather than an error, so read it from
|
|
45
|
-
* ``/v2/credit/positions`` instead. (EULER still appears in the
|
|
46
|
-
* ``looped_positions`` response enum because this enum is shared; it is never
|
|
47
|
-
* emitted.)
|
|
41
|
+
* All three support ``/v2/credit/loop``, ``/v2/credit/unloop`` and
|
|
42
|
+
* ``/v2/credit/looped_positions``. The one gap is ``/v2/credit/rebalance``,
|
|
43
|
+
* which rejects EULER with a 422.
|
|
48
44
|
*/
|
|
49
45
|
protocol: CreditProtocol;
|
|
50
46
|
/**
|
|
51
47
|
* Morpho only: the bytes32 id of the isolated market.
|
|
52
48
|
*/
|
|
53
49
|
marketId?: string | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Euler only: the EVC sub-account (0-255) holding this position. Euler isolates each loop in its own sub-account, so this is part of the position's identity — two loops on the same vault pair in different sub-accounts are two separate positions.
|
|
52
|
+
*/
|
|
53
|
+
subAccountId?: number | null | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Euler only: the EVK vault holding the collateral. Euler markets are identified by their vault pair rather than by a market id, and the same underlying token can back several different vaults.
|
|
56
|
+
*/
|
|
57
|
+
collateralVault?: string | null | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Euler only: the EVK controller vault the debt is owed to.
|
|
60
|
+
*/
|
|
61
|
+
borrowVault?: string | null | undefined;
|
|
54
62
|
/**
|
|
55
63
|
* Address of the collateral token.
|
|
56
64
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loopedposition.d.ts","sourceRoot":"","sources":["../../../../src/models/components/loopedposition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,0BAA0B,EAE3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,0BAA0B,EAE3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B
|
|
1
|
+
{"version":3,"file":"loopedposition.d.ts","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B;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,0BAA0B,GAAG,IAAI,GAAG,SAAS,CAAC;IACxD;;OAEG;IACH,MAAM,EAAE,oBAAoB,CAAC;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,aAAa,CAC9D,OAAO,oBAAoB,CACS,CAAC;AAEvC,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAgCP,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -21,6 +21,9 @@ export const LoopedPositionStatus$inboundSchema = z.nativeEnum(LoopedPositionSta
|
|
|
21
21
|
export const LoopedPosition$inboundSchema = z.object({
|
|
22
22
|
protocol: CreditProtocol$inboundSchema,
|
|
23
23
|
market_id: z.nullable(z.string()).optional(),
|
|
24
|
+
sub_account_id: z.nullable(z.number().int()).optional(),
|
|
25
|
+
collateral_vault: z.nullable(z.string()).optional(),
|
|
26
|
+
borrow_vault: z.nullable(z.string()).optional(),
|
|
24
27
|
collateral_token: z.string(),
|
|
25
28
|
collateral_symbol: z.string(),
|
|
26
29
|
debt_token: z.string(),
|
|
@@ -34,6 +37,9 @@ export const LoopedPosition$inboundSchema = z.object({
|
|
|
34
37
|
}).transform((v) => {
|
|
35
38
|
return remap$(v, {
|
|
36
39
|
"market_id": "marketId",
|
|
40
|
+
"sub_account_id": "subAccountId",
|
|
41
|
+
"collateral_vault": "collateralVault",
|
|
42
|
+
"borrow_vault": "borrowVault",
|
|
37
43
|
"collateral_token": "collateralToken",
|
|
38
44
|
"collateral_symbol": "collateralSymbol",
|
|
39
45
|
"debt_token": "debtToken",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loopedposition.js","sourceRoot":"","sources":["../../../../src/models/components/loopedposition.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,wCAAwC,GACzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,wCAAwC,GACzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,kCAAkC,GACnC,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;
|
|
1
|
+
{"version":3,"file":"loopedposition.js","sourceRoot":"","sources":["../../../../src/models/components/loopedposition.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,wCAAwC,GACzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,wCAAwC,GACzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,kCAAkC,GACnC,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MA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I,CAAC,CAAC,CAAC,CAAC,CAClE,CAAC,QAAQ,EAAE;IACZ,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,wCAAwC,CAAC,CAAC,QAAQ,EAAE;IACxE,MAAM,EAAE,kCAAkC;IAC1C,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC,QAAQ,EAAE;CACtE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,UAAU;QACvB,gBAAgB,EAAE,cAAc;QAChC,kBAAkB,EAAE,iBAAiB;QACrC,cAAc,EAAE,aAAa;QAC7B,kBAAkB,EAAE,iBAAiB;QACrC,mBAAmB,EAAE,kBAAkB;QACvC,YAAY,EAAE,WAAW;QACzB,aAAa,EAAE,YAAY;QAC3B,WAAW,EAAE,UAAU;QACvB,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,sBAAsB,CACpC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -3,14 +3,14 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
/**
|
|
6
|
-
* 'market'
|
|
6
|
+
* How widely this health factor applies. 'market' means it is isolated rather than account-wide: a Morpho market's collateral backs only that market's debt, and an Euler sub-account's collateral backs only its own controller's debt. Note that an Euler figure is scoped to the SUB-ACCOUNT, so if several positions share one sub-account they all report the same health factor and are liquidated together — it is not each position's independent health. 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account — see aave_account_summary for the account-level figures.
|
|
7
7
|
*/
|
|
8
8
|
export declare const LoopedPositionCurrentStateHealthFactorScope: {
|
|
9
9
|
readonly Market: "market";
|
|
10
10
|
readonly Account: "account";
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
* 'market'
|
|
13
|
+
* How widely this health factor applies. 'market' means it is isolated rather than account-wide: a Morpho market's collateral backs only that market's debt, and an Euler sub-account's collateral backs only its own controller's debt. Note that an Euler figure is scoped to the SUB-ACCOUNT, so if several positions share one sub-account they all report the same health factor and are liquidated together — it is not each position's independent health. 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account — see aave_account_summary for the account-level figures.
|
|
14
14
|
*/
|
|
15
15
|
export type LoopedPositionCurrentStateHealthFactorScope = ClosedEnum<typeof LoopedPositionCurrentStateHealthFactorScope>;
|
|
16
16
|
/**
|
|
@@ -46,7 +46,7 @@ export type LoopedPositionCurrentState = {
|
|
|
46
46
|
*/
|
|
47
47
|
healthFactor?: string | null | undefined;
|
|
48
48
|
/**
|
|
49
|
-
* 'market'
|
|
49
|
+
* How widely this health factor applies. 'market' means it is isolated rather than account-wide: a Morpho market's collateral backs only that market's debt, and an Euler sub-account's collateral backs only its own controller's debt. Note that an Euler figure is scoped to the SUB-ACCOUNT, so if several positions share one sub-account they all report the same health factor and are liquidated together — it is not each position's independent health. 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account — see aave_account_summary for the account-level figures.
|
|
50
50
|
*/
|
|
51
51
|
healthFactorScope: LoopedPositionCurrentStateHealthFactorScope;
|
|
52
52
|
/**
|
|
@@ -5,7 +5,7 @@ import * as z from "zod/v3";
|
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
/**
|
|
8
|
-
* 'market'
|
|
8
|
+
* How widely this health factor applies. 'market' means it is isolated rather than account-wide: a Morpho market's collateral backs only that market's debt, and an Euler sub-account's collateral backs only its own controller's debt. Note that an Euler figure is scoped to the SUB-ACCOUNT, so if several positions share one sub-account they all report the same health factor and are liquidated together — it is not each position's independent health. 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account — see aave_account_summary for the account-level figures.
|
|
9
9
|
*/
|
|
10
10
|
export const LoopedPositionCurrentStateHealthFactorScope = {
|
|
11
11
|
Market: "market",
|
|
@@ -39,13 +39,9 @@ export type RebalanceTarget = {
|
|
|
39
39
|
* chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
|
|
40
40
|
* (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
|
|
41
41
|
*
|
|
42
|
-
* All three support ``/v2/credit/loop
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* silently absent there rather than an error, so read it from
|
|
46
|
-
* ``/v2/credit/positions`` instead. (EULER still appears in the
|
|
47
|
-
* ``looped_positions`` response enum because this enum is shared; it is never
|
|
48
|
-
* emitted.)
|
|
42
|
+
* All three support ``/v2/credit/loop``, ``/v2/credit/unloop`` and
|
|
43
|
+
* ``/v2/credit/looped_positions``. The one gap is ``/v2/credit/rebalance``,
|
|
44
|
+
* which rejects EULER with a 422.
|
|
49
45
|
*/
|
|
50
46
|
protocol?: CreditProtocol | undefined;
|
|
51
47
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rebalancetarget.d.ts","sourceRoot":"","sources":["../../../../src/models/components/rebalancetarget.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,iCAAiC,G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AAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAmBf,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rebalancetarget.js","sourceRoot":"","sources":["../../../../src/models/components/rebalancetarget.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAEL,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"rebalancetarget.js","sourceRoot":"","sources":["../../../../src/models/components/rebalancetarget.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAEL,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAkF7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAIvC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,MAAM,UAAU,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAKD,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAIvD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,MAAM,UAAU,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CA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,QAAQ,EAAE;CAC7E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,eAAe,EAAE,kBAAkB;QACnC,WAAW,EAAE,cAAc;QAC3B,eAAe,EAAE,mBAAmB;QACpC,gBAAgB,EAAE,mBAAmB;QACrC,kBAAkB,EAAE,sBAAsB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -38,13 +38,9 @@ export type RebalanceTargetPreview = {
|
|
|
38
38
|
* chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
|
|
39
39
|
* (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
|
|
40
40
|
*
|
|
41
|
-
* All three support ``/v2/credit/loop
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* silently absent there rather than an error, so read it from
|
|
45
|
-
* ``/v2/credit/positions`` instead. (EULER still appears in the
|
|
46
|
-
* ``looped_positions`` response enum because this enum is shared; it is never
|
|
47
|
-
* emitted.)
|
|
41
|
+
* All three support ``/v2/credit/loop``, ``/v2/credit/unloop`` and
|
|
42
|
+
* ``/v2/credit/looped_positions``. The one gap is ``/v2/credit/rebalance``,
|
|
43
|
+
* which rejects EULER with a 422.
|
|
48
44
|
*/
|
|
49
45
|
protocol: CreditProtocol;
|
|
50
46
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rebalancetargetpreview.d.ts","sourceRoot":"","sources":["../../../../src/models/components/rebalancetargetpreview.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;CAG1C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAC9D,OAAO,uCAAuC,CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC
|
|
1
|
+
{"version":3,"file":"rebalancetargetpreview.d.ts","sourceRoot":"","sources":["../../../../src/models/components/rebalancetargetpreview.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;CAG1C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAC9D,OAAO,uCAAuC,CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,QAAQ,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,kBAAkB,CAAC;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,iBAAiB,EAAE,uCAAuC,CAAC;IAC3D;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAChE,CAAC,CAAC,aAAa,CAAC,OAAO,uCAAuC,CACR,CAAC;AAEzD,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CA8BP,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rebalancetargetpreview.js","sourceRoot":"","sources":["../../../../src/models/components/rebalancetargetpreview.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO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ACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -23,14 +23,14 @@ let value: AccountSummary = {
|
|
|
23
23
|
|
|
24
24
|
## Fields
|
|
25
25
|
|
|
26
|
-
| Field
|
|
27
|
-
|
|
|
28
|
-
| `protocol`
|
|
29
|
-
| `subAccountId`
|
|
30
|
-
| `healthFactor`
|
|
31
|
-
| `totalCollateralUsd`
|
|
32
|
-
| `totalDebtUsd`
|
|
33
|
-
| `availableBorrowsUsd`
|
|
34
|
-
| `ltv`
|
|
35
|
-
| `emodeCategoryId`
|
|
36
|
-
| `emodeLabel`
|
|
26
|
+
| Field | Type | Required | Description | Example |
|
|
27
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
28
|
+
| `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path; markets are named by token<br/>symbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32<br/>``market_id``. ``EULER`` identifies Euler V2 markets by their EVK<br/>``collateral_vault`` + ``borrow_vault`` addresses and supports isolated<br/>per-sub-account positions (``sub_account_id``).<br/><br/>Deployment is per chain, so a valid protocol can still 422 on a given chain:<br/>AAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the<br/>chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM<br/>(where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.<br/><br/>All three support ``/v2/credit/loop``, ``/v2/credit/unloop`` and<br/>``/v2/credit/looped_positions``. The one gap is ``/v2/credit/rebalance``,<br/>which rejects EULER with a 422. | |
|
|
29
|
+
| `subAccountId` | *number* | :heavy_minus_sign: | Euler only: the EVC sub-account (0–255) this summary describes. Euler health is per-sub-account. Null for Aave/Morpho. | |
|
|
30
|
+
| `healthFactor` | *string* | :heavy_check_mark: | Health factor. Above 1 is safe; below 1 risks liquidation. | |
|
|
31
|
+
| `totalCollateralUsd` | *string* | :heavy_check_mark: | Total collateral value in USD. | |
|
|
32
|
+
| `totalDebtUsd` | *string* | :heavy_check_mark: | Total debt value in USD. | |
|
|
33
|
+
| `availableBorrowsUsd` | *string* | :heavy_check_mark: | Available borrow capacity in USD. | |
|
|
34
|
+
| `ltv` | *string* | :heavy_check_mark: | Current loan-to-value ratio. | |
|
|
35
|
+
| `emodeCategoryId` | *number* | :heavy_minus_sign: | E-Mode category ID. 0 = disabled. E-Mode gives higher LTV when collateral and debt are price-correlated (e.g. stablecoin-to-stablecoin or ETH-to-ETH-derivative). | 0 |
|
|
36
|
+
| `emodeLabel` | *string* | :heavy_minus_sign: | Human-readable E-Mode category name (e.g. 'Stablecoins', 'ETH correlated'). Null when E-Mode is disabled (category 0). | |
|
|
@@ -15,7 +15,7 @@ let value: Builder = {
|
|
|
15
15
|
|
|
16
16
|
## Fields
|
|
17
17
|
|
|
18
|
-
| Field
|
|
19
|
-
|
|
|
20
|
-
| `address`
|
|
21
|
-
| `maxFeeRate`
|
|
18
|
+
| Field | Type | Required | Description |
|
|
19
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
20
|
+
| `address` | *string* | :heavy_check_mark: | Builder address that receives the fee. The address must hold ≥100 USDC on Hyperliquid perps and must not be the zero address. |
|
|
21
|
+
| `maxFeeRate` | *string* | :heavy_check_mark: | Maximum fee rate the end-user authorizes for this builder, in Hyperliquid grammar (e.g. '0.01%'). Must end with '%', use at most 0.001% precision (one tenth of a basis point) and be at most 0.1%, Hyperliquid's cap on perps builder fees. The fee is charged on top of Hyperliquid's own trading fee. |
|