@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
|
@@ -21,11 +21,24 @@ export type CollateralPosition = {
|
|
|
21
21
|
* @remarks
|
|
22
22
|
*
|
|
23
23
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
24
|
-
* field) keep hitting the unchanged Aave code path
|
|
25
|
-
* Blue lending markets by their bytes32
|
|
26
|
-
* V2 markets by their EVK
|
|
27
|
-
*
|
|
28
|
-
*
|
|
24
|
+
* field) keep hitting the unchanged Aave code path; markets are named by token
|
|
25
|
+
* symbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32
|
|
26
|
+
* ``market_id``. ``EULER`` identifies Euler V2 markets by their EVK
|
|
27
|
+
* ``collateral_vault`` + ``borrow_vault`` addresses and supports isolated
|
|
28
|
+
* per-sub-account positions (``sub_account_id``).
|
|
29
|
+
*
|
|
30
|
+
* Deployment is per chain, so a valid protocol can still 422 on a given chain:
|
|
31
|
+
* AAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the
|
|
32
|
+
* chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
|
|
33
|
+
* (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
|
|
34
|
+
*
|
|
35
|
+
* All three support ``/v2/credit/loop`` and ``/v2/credit/unloop``. EULER does
|
|
36
|
+
* NOT: ``/v2/credit/rebalance`` rejects it with a 422, and
|
|
37
|
+
* ``/v2/credit/looped_positions`` covers only AAVE and MORPHO — an Euler loop is
|
|
38
|
+
* silently absent there rather than an error, so read it from
|
|
39
|
+
* ``/v2/credit/positions`` instead. (EULER still appears in the
|
|
40
|
+
* ``looped_positions`` response enum because this enum is shared; it is never
|
|
41
|
+
* emitted.)
|
|
29
42
|
*/
|
|
30
43
|
protocol?: CreditProtocol | undefined;
|
|
31
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collateralposition.d.ts","sourceRoot":"","sources":["../../../../src/models/components/collateralposition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,WAAW,EAA6B,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf
|
|
1
|
+
{"version":3,"file":"collateralposition.d.ts","sourceRoot":"","sources":["../../../../src/models/components/collateralposition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5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ACH,MAAM,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CA8BP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collateralposition.js","sourceRoot":"","sources":["../../../../src/models/components/collateralposition.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"collateralposition.js","sourceRoot":"","sources":["../../../../src/models/components/collateralposition.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyIH,gEAQC;AA/ID,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,qDAA0E;AAC1E,2DAG6B;AA0F7B,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,gDAA4B,CAAC,QAAQ,EAAE;IACjD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvD,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5C,cAAc,EAAE,CAAC,CAAC,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S,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -37,11 +37,24 @@ export type CreditBorrowParams = {
|
|
|
37
37
|
* @remarks
|
|
38
38
|
*
|
|
39
39
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
40
|
-
* field) keep hitting the unchanged Aave code path
|
|
41
|
-
* Blue lending markets by their bytes32
|
|
42
|
-
* V2 markets by their EVK
|
|
43
|
-
*
|
|
44
|
-
*
|
|
40
|
+
* field) keep hitting the unchanged Aave code path; markets are named by token
|
|
41
|
+
* symbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32
|
|
42
|
+
* ``market_id``. ``EULER`` identifies Euler V2 markets by their EVK
|
|
43
|
+
* ``collateral_vault`` + ``borrow_vault`` addresses and supports isolated
|
|
44
|
+
* per-sub-account positions (``sub_account_id``).
|
|
45
|
+
*
|
|
46
|
+
* Deployment is per chain, so a valid protocol can still 422 on a given chain:
|
|
47
|
+
* AAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the
|
|
48
|
+
* chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
|
|
49
|
+
* (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
|
|
50
|
+
*
|
|
51
|
+
* All three support ``/v2/credit/loop`` and ``/v2/credit/unloop``. EULER does
|
|
52
|
+
* NOT: ``/v2/credit/rebalance`` rejects it with a 422, and
|
|
53
|
+
* ``/v2/credit/looped_positions`` covers only AAVE and MORPHO — an Euler loop is
|
|
54
|
+
* silently absent there rather than an error, so read it from
|
|
55
|
+
* ``/v2/credit/positions`` instead. (EULER still appears in the
|
|
56
|
+
* ``looped_positions`` response enum because this enum is shared; it is never
|
|
57
|
+
* emitted.)
|
|
45
58
|
*/
|
|
46
59
|
protocol?: CreditProtocol | undefined;
|
|
47
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditborrowparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditborrowparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,SAAS,EACT,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,eAAe,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,GAAG,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC
|
|
1
|
+
{"version":3,"file":"creditborrowparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditborrowparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,SAAS,EACT,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,eAAe,CAAC;IAC5B;;OAEG;IACH,KAAK,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,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAmBlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditborrowparams.js","sourceRoot":"","sources":["../../../../src/models/components/creditborrowparams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"creditborrowparams.js","sourceRoot":"","sources":["../../../../src/models/components/creditborrowparams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGH,wEAMC;AAwCD,4DAMC;AApJD,0CAA4B;AAC5B,2DAA0D;AAC1D,iDAIwB;AACxB,2DAG6B;AAC7B,+DAG+B;AA2E/B,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAeD,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;IACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,gBAAgB,EAAE,qDAA+B,CAAC,QAAQ,EAAE;IAC5D,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,uCAAwB,CAAC,CAAC,QAAQ,EAAE;IACpD,QAAQ,EAAE,iDAA6B,CAAC,QAAQ,EAAE;IAClD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACzC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,gBAAgB,EAAE,oBAAoB;QACtC,WAAW,EAAE,cAAc;QAC3B,YAAY,EAAE,gBAAgB;QAC9B,QAAQ,EAAE,WAAW;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -45,11 +45,24 @@ export type CreditBorrowRequest = {
|
|
|
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
|
-
* Blue lending markets by their bytes32
|
|
50
|
-
* V2 markets by their EVK
|
|
51
|
-
*
|
|
52
|
-
*
|
|
48
|
+
* field) keep hitting the unchanged Aave code path; markets are named by token
|
|
49
|
+
* symbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32
|
|
50
|
+
* ``market_id``. ``EULER`` identifies Euler V2 markets by their EVK
|
|
51
|
+
* ``collateral_vault`` + ``borrow_vault`` addresses and supports isolated
|
|
52
|
+
* per-sub-account positions (``sub_account_id``).
|
|
53
|
+
*
|
|
54
|
+
* Deployment is per chain, so a valid protocol can still 422 on a given chain:
|
|
55
|
+
* AAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the
|
|
56
|
+
* chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
|
|
57
|
+
* (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
|
|
58
|
+
*
|
|
59
|
+
* All three support ``/v2/credit/loop`` and ``/v2/credit/unloop``. EULER does
|
|
60
|
+
* NOT: ``/v2/credit/rebalance`` rejects it with a 422, and
|
|
61
|
+
* ``/v2/credit/looped_positions`` covers only AAVE and MORPHO — an Euler loop is
|
|
62
|
+
* silently absent there rather than an error, so read it from
|
|
63
|
+
* ``/v2/credit/positions`` instead. (EULER still appears in the
|
|
64
|
+
* ``looped_positions`` response enum because this enum is shared; it is never
|
|
65
|
+
* emitted.)
|
|
53
66
|
*/
|
|
54
67
|
protocol?: CreditProtocol | undefined;
|
|
55
68
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditborrowrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditborrowrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,SAAS,EACT,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;CAO3B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC;IAChC
|
|
1
|
+
{"version":3,"file":"creditborrowrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditborrowrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,SAAS,EACT,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;CAO3B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC;IAChC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IAC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,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,GAAG,CAAC,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC9C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAsCnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditborrowrequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditborrowrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"creditborrowrequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditborrowrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4KH,8EAQC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ers (which never send a ``protocol``
|
|
23
|
-
* field) keep hitting the unchanged Aave code path
|
|
24
|
-
* Blue lending markets by their bytes32
|
|
25
|
-
* V2 markets by their EVK
|
|
26
|
-
*
|
|
27
|
-
*
|
|
23
|
+
* field) keep hitting the unchanged Aave code path; markets are named by token
|
|
24
|
+
* symbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32
|
|
25
|
+
* ``market_id``. ``EULER`` identifies Euler V2 markets by their EVK
|
|
26
|
+
* ``collateral_vault`` + ``borrow_vault`` addresses and supports isolated
|
|
27
|
+
* per-sub-account positions (``sub_account_id``).
|
|
28
|
+
*
|
|
29
|
+
* Deployment is per chain, so a valid protocol can still 422 on a given chain:
|
|
30
|
+
* AAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the
|
|
31
|
+
* chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
|
|
32
|
+
* (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
|
|
33
|
+
*
|
|
34
|
+
* All three support ``/v2/credit/loop`` and ``/v2/credit/unloop``. EULER does
|
|
35
|
+
* NOT: ``/v2/credit/rebalance`` rejects it with a 422, and
|
|
36
|
+
* ``/v2/credit/looped_positions`` covers only AAVE and MORPHO — an Euler loop is
|
|
37
|
+
* silently absent there rather than an error, so read it from
|
|
38
|
+
* ``/v2/credit/positions`` instead. (EULER still appears in the
|
|
39
|
+
* ``looped_positions`` response enum because this enum is shared; it is never
|
|
40
|
+
* emitted.)
|
|
28
41
|
*/
|
|
29
42
|
protocol?: CreditProtocol | undefined;
|
|
30
43
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditenablecollateralparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditenablecollateralparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,0BAA0B,CAAC;IACvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd
|
|
1
|
+
{"version":3,"file":"creditenablecollateralparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditenablecollateralparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,0BAA0B,CAAC;IACvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,WAAW,EAAE,0BAA0B,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAa5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditenablecollateralparams.js","sourceRoot":"","sources":["../../../../src/models/components/creditenablecollateralparams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"creditenablecollateralparams.js","sourceRoot":"","sources":["../../../../src/models/components/creditenablecollateralparams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuFH,gFAQC;AA7FD,0CAA4B;AAC5B,2DAA0D;AAC1D,2DAG6B;AA6D7B,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IACjD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,iDAA6B,CAAC,QAAQ,EAAE;IAClD,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,eAAe,EAAE,kBAAkB;QACnC,YAAY,EAAE,gBAAgB;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -2,7 +2,7 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
import { CreditProtocol } from "./creditprotocol.js";
|
|
4
4
|
/**
|
|
5
|
-
* Blockchain network.
|
|
5
|
+
* Blockchain network. Not every protocol is deployed on every chain — see the protocol field — and a chain with no credit venue at all returns a 422 naming the chains that do.
|
|
6
6
|
*/
|
|
7
7
|
export declare const CreditLoopRequestChain: {
|
|
8
8
|
readonly Arbitrum: "arbitrum";
|
|
@@ -13,11 +13,11 @@ export declare const CreditLoopRequestChain: {
|
|
|
13
13
|
readonly Tempo: "tempo";
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
-
* Blockchain network.
|
|
16
|
+
* Blockchain network. Not every protocol is deployed on every chain — see the protocol field — and a chain with no credit venue at all returns a 422 naming the chains that do.
|
|
17
17
|
*/
|
|
18
18
|
export type CreditLoopRequestChain = ClosedEnum<typeof CreditLoopRequestChain>;
|
|
19
19
|
/**
|
|
20
|
-
* Collateral (in token units)
|
|
20
|
+
* Collateral (in token units) that the Credit Account must ALREADY hold when this is called — the loop never pulls from the owner's wallet mid-transaction. Fund the account first via /v2/credit/transfer (action=DEPOSIT).
|
|
21
21
|
*/
|
|
22
22
|
export type CreditLoopRequestInitialCollateralAmount = number | string;
|
|
23
23
|
/**
|
|
@@ -25,7 +25,7 @@ export type CreditLoopRequestInitialCollateralAmount = number | string;
|
|
|
25
25
|
*/
|
|
26
26
|
export type CreditLoopRequestMultiplier = number | string;
|
|
27
27
|
/**
|
|
28
|
-
* Per-iteration borrow LTV in percent. Must not exceed the protocol's maximum for the market (Aave reserve/e-mode LTV; Morpho LLTV with a safety margin); borrows are sized slightly inside the requested value so no leg sits on the protocol's revert boundary.
|
|
28
|
+
* Per-iteration borrow LTV in percent. Must not exceed the protocol's maximum for the market (Aave reserve/e-mode LTV; Morpho LLTV with a safety margin; Euler's borrow LTV for the collateral vault); borrows are sized slightly inside the requested value so no leg sits on the protocol's revert boundary.
|
|
29
29
|
*/
|
|
30
30
|
export type CreditLoopRequestLoanToValue = number | string;
|
|
31
31
|
/**
|
|
@@ -57,7 +57,7 @@ export type CreditLoopRequest = {
|
|
|
57
57
|
*/
|
|
58
58
|
owner: string;
|
|
59
59
|
/**
|
|
60
|
-
* Blockchain network.
|
|
60
|
+
* Blockchain network. Not every protocol is deployed on every chain — see the protocol field — and a chain with no credit venue at all returns a 422 naming the chains that do.
|
|
61
61
|
*/
|
|
62
62
|
chain: CreditLoopRequestChain;
|
|
63
63
|
/**
|
|
@@ -66,11 +66,24 @@ export type CreditLoopRequest = {
|
|
|
66
66
|
* @remarks
|
|
67
67
|
*
|
|
68
68
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
69
|
-
* field) keep hitting the unchanged Aave code path
|
|
70
|
-
* Blue lending markets by their bytes32
|
|
71
|
-
* V2 markets by their EVK
|
|
72
|
-
*
|
|
73
|
-
*
|
|
69
|
+
* field) keep hitting the unchanged Aave code path; markets are named by token
|
|
70
|
+
* symbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32
|
|
71
|
+
* ``market_id``. ``EULER`` identifies Euler V2 markets by their EVK
|
|
72
|
+
* ``collateral_vault`` + ``borrow_vault`` addresses and supports isolated
|
|
73
|
+
* per-sub-account positions (``sub_account_id``).
|
|
74
|
+
*
|
|
75
|
+
* Deployment is per chain, so a valid protocol can still 422 on a given chain:
|
|
76
|
+
* AAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the
|
|
77
|
+
* chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
|
|
78
|
+
* (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
|
|
79
|
+
*
|
|
80
|
+
* All three support ``/v2/credit/loop`` and ``/v2/credit/unloop``. EULER does
|
|
81
|
+
* NOT: ``/v2/credit/rebalance`` rejects it with a 422, and
|
|
82
|
+
* ``/v2/credit/looped_positions`` covers only AAVE and MORPHO — an Euler loop is
|
|
83
|
+
* silently absent there rather than an error, so read it from
|
|
84
|
+
* ``/v2/credit/positions`` instead. (EULER still appears in the
|
|
85
|
+
* ``looped_positions`` response enum because this enum is shared; it is never
|
|
86
|
+
* emitted.)
|
|
74
87
|
*/
|
|
75
88
|
protocol?: CreditProtocol | undefined;
|
|
76
89
|
/**
|
|
@@ -98,7 +111,7 @@ export type CreditLoopRequest = {
|
|
|
98
111
|
*/
|
|
99
112
|
borrowToken: string;
|
|
100
113
|
/**
|
|
101
|
-
* Collateral (in token units)
|
|
114
|
+
* Collateral (in token units) that the Credit Account must ALREADY hold when this is called — the loop never pulls from the owner's wallet mid-transaction. Fund the account first via /v2/credit/transfer (action=DEPOSIT).
|
|
102
115
|
*/
|
|
103
116
|
initialCollateralAmount: number | string;
|
|
104
117
|
/**
|
|
@@ -106,7 +119,7 @@ export type CreditLoopRequest = {
|
|
|
106
119
|
*/
|
|
107
120
|
multiplier: number | string;
|
|
108
121
|
/**
|
|
109
|
-
* Per-iteration borrow LTV in percent. Must not exceed the protocol's maximum for the market (Aave reserve/e-mode LTV; Morpho LLTV with a safety margin); borrows are sized slightly inside the requested value so no leg sits on the protocol's revert boundary.
|
|
122
|
+
* Per-iteration borrow LTV in percent. Must not exceed the protocol's maximum for the market (Aave reserve/e-mode LTV; Morpho LLTV with a safety margin; Euler's borrow LTV for the collateral vault); borrows are sized slightly inside the requested value so no leg sits on the protocol's revert boundary.
|
|
110
123
|
*/
|
|
111
124
|
loanToValue: number | string;
|
|
112
125
|
/**
|
|
@@ -114,7 +127,7 @@ export type CreditLoopRequest = {
|
|
|
114
127
|
*/
|
|
115
128
|
maxSlippagePercent?: number | string | undefined;
|
|
116
129
|
/**
|
|
117
|
-
* Aave only: e-mode category to enable before looping (higher LTV for correlated pairs, e.g. ETH-correlated).
|
|
130
|
+
* Aave only: e-mode category to enable before looping (higher LTV for correlated pairs, e.g. ETH-correlated). Both tokens must belong to the category or the build returns a 422. On Hyperlend (chain=hyperevm) category 1 is the HYPE-correlated set covering wstHYPE and WHYPE.
|
|
118
131
|
*/
|
|
119
132
|
emodeCategory?: number | null | undefined;
|
|
120
133
|
/**
|
|
@@ -122,7 +135,7 @@ export type CreditLoopRequest = {
|
|
|
122
135
|
*/
|
|
123
136
|
gasSponsorship?: boolean | undefined;
|
|
124
137
|
/**
|
|
125
|
-
* If true, build a display ESTIMATE: no firm RFQ quote is ever requested (quote_expires_at stays null)
|
|
138
|
+
* If true, build a display ESTIMATE: no firm RFQ quote is ever requested (quote_expires_at stays null). NOTE that this guarantees only that no firm quote was spent — it does not guarantee an absent transaction: on a pair no firm provider covers, and under pricing=market, the call still falls through to the aggregator and returns a signable transaction. How the estimate is priced follows `pricing`: on a firm-covered pair under 'auto' or 'firm' it is computed from the firm provider's live price levels (indicative); otherwise swap legs are priced by the default aggregator. Set it on every call made while a user is exploring parameters, and leave it false only for the build they actually intend to sign — firm quotes are single-use maker commitments, and requesting them for displays that are never executed degrades the pricing this API is offered.
|
|
126
139
|
*/
|
|
127
140
|
preview?: boolean | undefined;
|
|
128
141
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditlooprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditlooprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;CAOzB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,MAAM,GAAG,MAAM,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,sBAAsB,CAAC;IAC9B
|
|
1
|
+
{"version":3,"file":"creditlooprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditlooprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;CAOzB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,MAAM,GAAG,MAAM,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,sBAAsB,CAAC;IAC9B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,EA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IAC7C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,yBAAyB,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3C,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnD,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAiCjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
|
|
@@ -46,7 +46,7 @@ const z = __importStar(require("zod/v3"));
|
|
|
46
46
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
47
47
|
const creditprotocol_js_1 = require("./creditprotocol.js");
|
|
48
48
|
/**
|
|
49
|
-
* Blockchain network.
|
|
49
|
+
* Blockchain network. Not every protocol is deployed on every chain — see the protocol field — and a chain with no credit venue at all returns a 422 naming the chains that do.
|
|
50
50
|
*/
|
|
51
51
|
exports.CreditLoopRequestChain = {
|
|
52
52
|
Arbitrum: "arbitrum",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditlooprequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditlooprequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"creditlooprequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditlooprequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgLH,wGASC;AAYD,8EAQC;AAYD,gFAQC;AAYD,8FAQC;AAmED,0DAMC;AA5TD,0CAA4B;AAC5B,2DAA0D;AAE1D,2DAG6B;AAE7B;;GAEG;AACU,QAAA,sBAAsB,GAAG;IACpC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AA0BX;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACtC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;AA4GX,gBAAgB;AACH,QAAA,qCAAqC,GAE9C,CAAC,CAAC,UAAU,CAAC,8BAAsB,CAAC,CAAC;AAKzC,gBAAgB;AACH,QAAA,uDAAuD,GAIhE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,SAAgB,8CAA8C,CAC5D,wCAC0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,+DAAuD,CAAC,KAAK,CAC3D,wCAAwC,CACzC,CACF,CAAC;AACJ,CAAC;AAKD,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kD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BAAgB;QAC/B,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -6,14 +6,14 @@ import { BatchedSafeOperationsResponseOutput } from "./batchedsafeoperationsresp
|
|
|
6
6
|
import { CreditLoopPreview } from "./creditlooppreview.js";
|
|
7
7
|
import { UnsignedTransaction } from "./unsignedtransaction.js";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Identifies which route priced the swap leg(s): a DEX AGGREGATOR (iterative loop across pool liquidity, slippage-bounded floors) or a FIRM provider (zero-slippage quotes, one per swap leg, each partially filled at the leg's size — exact fills, zero dust). On preview=true responses a firm value means the numbers are INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED (under 'auto' a firm build can fall back to market transparently), and `quote_expires_at` is absent on every preview — so neither substitutes for this field.
|
|
10
10
|
*/
|
|
11
11
|
export declare const CreditLoopResponseSwapProvider: {
|
|
12
12
|
readonly OneInch: "one_inch";
|
|
13
13
|
readonly Bebop: "bebop";
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Identifies which route priced the swap leg(s): a DEX AGGREGATOR (iterative loop across pool liquidity, slippage-bounded floors) or a FIRM provider (zero-slippage quotes, one per swap leg, each partially filled at the leg's size — exact fills, zero dust). On preview=true responses a firm value means the numbers are INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED (under 'auto' a firm build can fall back to market transparently), and `quote_expires_at` is absent on every preview — so neither substitutes for this field.
|
|
17
17
|
*/
|
|
18
18
|
export type CreditLoopResponseSwapProvider = ClosedEnum<typeof CreditLoopResponseSwapProvider>;
|
|
19
19
|
/**
|
|
@@ -21,7 +21,7 @@ export type CreditLoopResponseSwapProvider = ClosedEnum<typeof CreditLoopRespons
|
|
|
21
21
|
*/
|
|
22
22
|
export type CreditLoopResponse = {
|
|
23
23
|
/**
|
|
24
|
-
* Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false — except firm-priced previews (preview=true
|
|
24
|
+
* Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false — except firm-priced previews (preview=true on a firm-priced build), which carry numbers only: the firm quotes are fetched at execution time, so there is no payload to sign yet.
|
|
25
25
|
*/
|
|
26
26
|
transaction?: UnsignedTransaction | null | undefined;
|
|
27
27
|
/**
|
|
@@ -33,11 +33,11 @@ export type CreditLoopResponse = {
|
|
|
33
33
|
*/
|
|
34
34
|
preview: CreditLoopPreview | null;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Identifies which route priced the swap leg(s): a DEX AGGREGATOR (iterative loop across pool liquidity, slippage-bounded floors) or a FIRM provider (zero-slippage quotes, one per swap leg, each partially filled at the leg's size — exact fills, zero dust). On preview=true responses a firm value means the numbers are INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED (under 'auto' a firm build can fall back to market transparently), and `quote_expires_at` is absent on every preview — so neither substitutes for this field.
|
|
37
37
|
*/
|
|
38
38
|
swapProvider?: CreditLoopResponseSwapProvider | undefined;
|
|
39
39
|
/**
|
|
40
|
-
* Deadline of the firm swap quotes (the earliest across the loop's swap legs) — sign and broadcast before it or the transaction reverts on-chain; refresh by re-calling this endpoint (discard the previous payload). Present only on executable
|
|
40
|
+
* Deadline of the firm swap quotes (the earliest across the loop's swap legs) — sign and broadcast before it or the transaction reverts on-chain; refresh by re-calling this endpoint (discard the previous payload). Present only on executable firm-priced builds; null on previews (no quote is spent for a preview).
|
|
41
41
|
*/
|
|
42
42
|
quoteExpiresAt?: Date | null | undefined;
|
|
43
43
|
/**
|
|
@@ -45,7 +45,7 @@ const batchedsafeoperationsresponseoutput_js_1 = require("./batchedsafeoperation
|
|
|
45
45
|
const creditlooppreview_js_1 = require("./creditlooppreview.js");
|
|
46
46
|
const unsignedtransaction_js_1 = require("./unsignedtransaction.js");
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Identifies which route priced the swap leg(s): a DEX AGGREGATOR (iterative loop across pool liquidity, slippage-bounded floors) or a FIRM provider (zero-slippage quotes, one per swap leg, each partially filled at the leg's size — exact fills, zero dust). On preview=true responses a firm value means the numbers are INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED (under 'auto' a firm build can fall back to market transparently), and `quote_expires_at` is absent on every preview — so neither substitutes for this field.
|
|
49
49
|
*/
|
|
50
50
|
exports.CreditLoopResponseSwapProvider = {
|
|
51
51
|
OneInch: "one_inch",
|
|
@@ -6,11 +6,24 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
6
6
|
* @remarks
|
|
7
7
|
*
|
|
8
8
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
9
|
-
* field) keep hitting the unchanged Aave code path
|
|
10
|
-
* Blue lending markets by their bytes32
|
|
11
|
-
* V2 markets by their EVK
|
|
12
|
-
*
|
|
13
|
-
*
|
|
9
|
+
* field) keep hitting the unchanged Aave code path; markets are named by token
|
|
10
|
+
* symbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32
|
|
11
|
+
* ``market_id``. ``EULER`` identifies Euler V2 markets by their EVK
|
|
12
|
+
* ``collateral_vault`` + ``borrow_vault`` addresses and supports isolated
|
|
13
|
+
* per-sub-account positions (``sub_account_id``).
|
|
14
|
+
*
|
|
15
|
+
* Deployment is per chain, so a valid protocol can still 422 on a given chain:
|
|
16
|
+
* AAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the
|
|
17
|
+
* chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
|
|
18
|
+
* (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
|
|
19
|
+
*
|
|
20
|
+
* All three support ``/v2/credit/loop`` and ``/v2/credit/unloop``. EULER does
|
|
21
|
+
* NOT: ``/v2/credit/rebalance`` rejects it with a 422, and
|
|
22
|
+
* ``/v2/credit/looped_positions`` covers only AAVE and MORPHO — an Euler loop is
|
|
23
|
+
* silently absent there rather than an error, so read it from
|
|
24
|
+
* ``/v2/credit/positions`` instead. (EULER still appears in the
|
|
25
|
+
* ``looped_positions`` response enum because this enum is shared; it is never
|
|
26
|
+
* emitted.)
|
|
14
27
|
*/
|
|
15
28
|
export declare const CreditProtocol: {
|
|
16
29
|
readonly Aave: "AAVE";
|
|
@@ -23,11 +36,24 @@ export declare const CreditProtocol: {
|
|
|
23
36
|
* @remarks
|
|
24
37
|
*
|
|
25
38
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
26
|
-
* field) keep hitting the unchanged Aave code path
|
|
27
|
-
* Blue lending markets by their bytes32
|
|
28
|
-
* V2 markets by their EVK
|
|
29
|
-
*
|
|
30
|
-
*
|
|
39
|
+
* field) keep hitting the unchanged Aave code path; markets are named by token
|
|
40
|
+
* symbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32
|
|
41
|
+
* ``market_id``. ``EULER`` identifies Euler V2 markets by their EVK
|
|
42
|
+
* ``collateral_vault`` + ``borrow_vault`` addresses and supports isolated
|
|
43
|
+
* per-sub-account positions (``sub_account_id``).
|
|
44
|
+
*
|
|
45
|
+
* Deployment is per chain, so a valid protocol can still 422 on a given chain:
|
|
46
|
+
* AAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the
|
|
47
|
+
* chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
|
|
48
|
+
* (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
|
|
49
|
+
*
|
|
50
|
+
* All three support ``/v2/credit/loop`` and ``/v2/credit/unloop``. EULER does
|
|
51
|
+
* NOT: ``/v2/credit/rebalance`` rejects it with a 422, and
|
|
52
|
+
* ``/v2/credit/looped_positions`` covers only AAVE and MORPHO — an Euler loop is
|
|
53
|
+
* silently absent there rather than an error, so read it from
|
|
54
|
+
* ``/v2/credit/positions`` instead. (EULER still appears in the
|
|
55
|
+
* ``looped_positions`` response enum because this enum is shared; it is never
|
|
56
|
+
* emitted.)
|
|
31
57
|
*/
|
|
32
58
|
export type CreditProtocol = ClosedEnum<typeof CreditProtocol>;
|
|
33
59
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditprotocol.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditprotocol.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD
|
|
1
|
+
{"version":3,"file":"creditprotocol.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditprotocol.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AACX;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAE/D,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,aAAa,CACxD,OAAO,cAAc,CACS,CAAC;AACjC,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,aAAa,CACzD,OAAO,cAAc,CACS,CAAC"}
|
|
@@ -44,11 +44,24 @@ const z = __importStar(require("zod/v3"));
|
|
|
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
|
-
* Blue lending markets by their bytes32
|
|
49
|
-
* V2 markets by their EVK
|
|
50
|
-
*
|
|
51
|
-
*
|
|
47
|
+
* field) keep hitting the unchanged Aave code path; markets are named by token
|
|
48
|
+
* symbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32
|
|
49
|
+
* ``market_id``. ``EULER`` identifies Euler V2 markets by their EVK
|
|
50
|
+
* ``collateral_vault`` + ``borrow_vault`` addresses and supports isolated
|
|
51
|
+
* per-sub-account positions (``sub_account_id``).
|
|
52
|
+
*
|
|
53
|
+
* Deployment is per chain, so a valid protocol can still 422 on a given chain:
|
|
54
|
+
* AAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the
|
|
55
|
+
* chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
|
|
56
|
+
* (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
|
|
57
|
+
*
|
|
58
|
+
* All three support ``/v2/credit/loop`` and ``/v2/credit/unloop``. EULER does
|
|
59
|
+
* NOT: ``/v2/credit/rebalance`` rejects it with a 422, and
|
|
60
|
+
* ``/v2/credit/looped_positions`` covers only AAVE and MORPHO — an Euler loop is
|
|
61
|
+
* silently absent there rather than an error, so read it from
|
|
62
|
+
* ``/v2/credit/positions`` instead. (EULER still appears in the
|
|
63
|
+
* ``looped_positions`` response enum because this enum is shared; it is never
|
|
64
|
+
* emitted.)
|
|
52
65
|
*/
|
|
53
66
|
exports.CreditProtocol = {
|
|
54
67
|
Aave: "AAVE",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditprotocol.js","sourceRoot":"","sources":["../../../../src/models/components/creditprotocol.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B
|
|
1
|
+
{"version":3,"file":"creditprotocol.js","sourceRoot":"","sources":["../../../../src/models/components/creditprotocol.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACU,QAAA,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AA4BX,gBAAgB;AACH,QAAA,4BAA4B,GAErC,CAAC,CAAC,UAAU,CAAC,sBAAc,CAAC,CAAC;AACjC,gBAAgB;AACH,QAAA,6BAA6B,GAEtC,oCAA4B,CAAC"}
|
|
@@ -32,11 +32,24 @@ export type CreditRepayParams = {
|
|
|
32
32
|
* @remarks
|
|
33
33
|
*
|
|
34
34
|
* ``AAVE`` is the default so existing callers (which never send a ``protocol``
|
|
35
|
-
* field) keep hitting the unchanged Aave code path
|
|
36
|
-
* Blue lending markets by their bytes32
|
|
37
|
-
* V2 markets by their EVK
|
|
38
|
-
*
|
|
39
|
-
*
|
|
35
|
+
* field) keep hitting the unchanged Aave code path; markets are named by token
|
|
36
|
+
* symbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32
|
|
37
|
+
* ``market_id``. ``EULER`` identifies Euler V2 markets by their EVK
|
|
38
|
+
* ``collateral_vault`` + ``borrow_vault`` addresses and supports isolated
|
|
39
|
+
* per-sub-account positions (``sub_account_id``).
|
|
40
|
+
*
|
|
41
|
+
* Deployment is per chain, so a valid protocol can still 422 on a given chain:
|
|
42
|
+
* AAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the
|
|
43
|
+
* chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
|
|
44
|
+
* (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
|
|
45
|
+
*
|
|
46
|
+
* All three support ``/v2/credit/loop`` and ``/v2/credit/unloop``. EULER does
|
|
47
|
+
* NOT: ``/v2/credit/rebalance`` rejects it with a 422, and
|
|
48
|
+
* ``/v2/credit/looped_positions`` covers only AAVE and MORPHO — an Euler loop is
|
|
49
|
+
* silently absent there rather than an error, so read it from
|
|
50
|
+
* ``/v2/credit/positions`` instead. (EULER still appears in the
|
|
51
|
+
* ``looped_positions`` response enum because this enum is shared; it is never
|
|
52
|
+
* emitted.)
|
|
40
53
|
*/
|
|
41
54
|
protocol?: CreditProtocol | undefined;
|
|
42
55
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditrepayparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditrepayparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,cAAc,CAAC;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD
|
|
1
|
+
{"version":3,"file":"creditrepayparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditrepayparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAu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