@compass-labs/api-sdk 2.2.101 → 2.2.103
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 +7 -7
- 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 +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 +7 -7
- 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 +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 +7 -7
- 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 +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 +7 -7
- 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 +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 +9 -9
- package/docs/models/components/creditloopresponseswapprovider.md +3 -3
- 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 +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 +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 +32 -32
- 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 +7 -7
- 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 +7 -7
- 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
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"rebalancetargetpreview.js","sourceRoot":"","sources":["../../../../src/models/components/rebalancetargetpreview.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;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BAAkB,EAAE,iBAAiB;QACrC,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,YAAY;QAC3B,WAAW,EAAE,UAAU;QACvB,sBAAsB,EAAE,qBAAqB;QAC7C,gBAAgB,EAAE,eAAe;QACjC,sBAAsB,EAAE,qBAAqB;QAC7C,yBAAyB,EAAE,uBAAuB;QAClD,qBAAqB,EAAE,mBAAmB;QAC1C,oBAAoB,EAAE,kBAAkB;KACzC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
8
8
|
*
|
|
9
9
|
* Evidence is token-filtered and executor-proof: the sold (debt) token left the
|
|
10
10
|
* account to a non-protocol counterparty and the bought (collateral) token
|
|
11
|
-
* arrived from a non-protocol counterparty.
|
|
11
|
+
* arrived from a non-protocol counterparty. Aggregator fills often settle from an
|
|
12
12
|
* executor contract, so the router is recorded only when it happens to be the
|
|
13
13
|
* outbound counterparty — it is never required for detection.
|
|
14
14
|
*/
|
|
@@ -38,7 +38,7 @@ export type SwapInfo = {
|
|
|
38
38
|
*/
|
|
39
39
|
boughtAmount: string;
|
|
40
40
|
/**
|
|
41
|
-
* The outbound counterparty when it is the
|
|
41
|
+
* The outbound counterparty when it is the swap router itself. Null when the swap settled from an executor contract (informational only — never required to detect the swap).
|
|
42
42
|
*/
|
|
43
43
|
router?: string | null | undefined;
|
|
44
44
|
};
|
|
@@ -26,14 +26,15 @@ export declare class Credit extends ClientSDK {
|
|
|
26
26
|
* List looped (leveraged) credit positions
|
|
27
27
|
*
|
|
28
28
|
* @remarks
|
|
29
|
-
* List
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
29
|
+
* List the leveraged positions held by an owner's Credit Account.
|
|
30
|
+
*
|
|
31
|
+
* Positions are reconstructed from on-chain history rather than from API calls,
|
|
32
|
+
* so a loop assembled by hand through /v2/credit/bundle is recognised the same
|
|
33
|
+
* way as one opened through /v2/credit/loop. Only activity inside the Credit
|
|
34
|
+
* Account is visible — leverage the owner holds directly in their wallet is not.
|
|
35
|
+
*
|
|
36
|
+
* See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
|
|
37
|
+
* for protocol coverage and how to read leverage, health factor and net APY.
|
|
37
38
|
*/
|
|
38
39
|
creditLoopedPositions(request: operations.V2CreditLoopedPositionsRequest, options?: RequestOptions): Promise<components.CreditLoopedPositionsResponse>;
|
|
39
40
|
/**
|
|
@@ -84,7 +85,7 @@ export declare class Credit extends ClientSDK {
|
|
|
84
85
|
* Bundles an optional swap, collateral supply, and borrow into a single atomic Safe transaction.
|
|
85
86
|
*
|
|
86
87
|
* - If `token_in` equals `collateral_token`, the tokens are supplied directly as collateral.
|
|
87
|
-
* - If `token_in` differs from `collateral_token`, a swap is performed first
|
|
88
|
+
* - If `token_in` differs from `collateral_token`, a market swap is performed first.
|
|
88
89
|
*
|
|
89
90
|
* The Credit Account must already be created via `/v2/credit/create_account` and funded with `token_in`.
|
|
90
91
|
*/
|
|
@@ -93,119 +94,51 @@ export declare class Credit extends ClientSDK {
|
|
|
93
94
|
* Open a leveraged loop
|
|
94
95
|
*
|
|
95
96
|
* @remarks
|
|
96
|
-
* Open a leveraged
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* the swap router's minimum routable size; when it does the loop simply ends
|
|
107
|
-
* early on that supply — the achieved multiplier is still guaranteed within
|
|
108
|
-
* 0.5% of the request or the call returns a clean 400.
|
|
109
|
-
*
|
|
110
|
-
* When the collateral token is itself an ERC-4626 vault share (e.g. a Morpho
|
|
111
|
-
* vault token like steakUSDC), each conversion swaps the borrow token to the
|
|
112
|
-
* vault's underlying asset and mints the shares via the vault's own deposit at
|
|
113
|
-
* net asset value instead of swapping the share token on a DEX — share tokens
|
|
114
|
-
* have no honest DEX route. A direct share-token route is only ever used when
|
|
115
|
-
* it prices within 1% of net asset value.
|
|
116
|
-
*
|
|
117
|
-
* The Credit Account must already hold initial_collateral_amount of
|
|
118
|
-
* collateral_token. For protocol=MORPHO pass a market_id from
|
|
119
|
-
* /v2/credit/morpho_markets.
|
|
97
|
+
* Open a leveraged position in ONE atomic transaction.
|
|
98
|
+
*
|
|
99
|
+
* Supply collateral, borrow against it, swap the borrowed token back to
|
|
100
|
+
* collateral, repeat — until total collateral reaches multiplier x
|
|
101
|
+
* initial_collateral_amount. If any step fails the whole transaction reverts,
|
|
102
|
+
* so a position is never left half-built.
|
|
103
|
+
*
|
|
104
|
+
* See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
|
|
105
|
+
* for chain coverage, market discovery, vault-share collateral, HyperEVM
|
|
106
|
+
* specifics and the full error list.
|
|
120
107
|
*/
|
|
121
108
|
creditLoop(request: components.CreditLoopRequest, options?: RequestOptions): Promise<components.CreditLoopResponse>;
|
|
122
109
|
/**
|
|
123
110
|
* Unwind a leveraged loop
|
|
124
111
|
*
|
|
125
112
|
* @remarks
|
|
126
|
-
* Unwind
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* vault token like steakUSDC), each conversion redeems the shares through the
|
|
136
|
-
* vault at net asset value and swaps the underlying asset to the borrow token
|
|
137
|
-
* instead of swapping the share token on a DEX; a direct share-token route is
|
|
138
|
-
* only ever used when it prices within 1% of net asset value.
|
|
139
|
-
*
|
|
140
|
-
* Omit target_multiplier for a full close: the debt is cleared exactly —
|
|
141
|
-
* accrued interest included — and the pair collateral is returned to the Credit
|
|
142
|
-
* Account. Pass 1 to clear the debt but keep the collateral supplied, or a value
|
|
143
|
-
* above 1 to delever to that multiplier (it must be below the position's current
|
|
144
|
-
* multiplier).
|
|
145
|
-
*
|
|
146
|
-
* Each withdrawal is sized to keep the position's health factor ≥ 1.02 at that
|
|
147
|
-
* step, so a position opened very close to the liquidation threshold may need
|
|
148
|
-
* more than one transaction to fully close — set allow_partial=true to return
|
|
149
|
-
* the maximum single-transaction progress (preview.fully_unwound=false), then
|
|
150
|
-
* call unloop again to finish. Very large unwinds relative to pool depth can
|
|
151
|
-
* still exceed the slippage tolerance through their own cumulative price impact.
|
|
152
|
-
*
|
|
153
|
-
* Positions are unwound as far as the swap router can route; on a router-minimum
|
|
154
|
-
* stop the engine still withdraws all collateral not needed to back the residual,
|
|
155
|
-
* and completes a true full close whenever the unwind's own guaranteed swap
|
|
156
|
-
* surpluses (or the Credit Account's idle balance) cover the remainder — a
|
|
157
|
-
* residual below the router's minimum routable size never fails the call, it is
|
|
158
|
-
* reported honestly in the preview (fully_unwound=false).
|
|
159
|
-
*
|
|
160
|
-
* When other open Aave loops share this position's collateral reserve, a full
|
|
161
|
-
* close withdraws only this position's attributed share of the pooled collateral
|
|
162
|
-
* (event-ledger bookkeeping), leaving the rest supplied for the other positions.
|
|
163
|
-
*
|
|
164
|
-
* For protocol=MORPHO pass a market_id from /v2/credit/morpho_markets; inspect
|
|
165
|
-
* open loops via /v2/credit/looped_positions.
|
|
113
|
+
* Unwind a leveraged position in ONE atomic transaction.
|
|
114
|
+
*
|
|
115
|
+
* Withdraw collateral, swap it back to the borrow token, repay, repeat — until
|
|
116
|
+
* the position reaches target_multiplier, or until the debt is cleared exactly
|
|
117
|
+
* if you omit it. If any step fails the whole transaction reverts.
|
|
118
|
+
*
|
|
119
|
+
* See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
|
|
120
|
+
* for chain coverage, vault-share collateral, shared Aave reserves and the full
|
|
121
|
+
* error list.
|
|
166
122
|
*/
|
|
167
123
|
creditUnloop(request: components.CreditUnloopRequest, options?: RequestOptions): Promise<components.CreditUnloopResponse>;
|
|
168
124
|
/**
|
|
169
125
|
* Rebalance the leveraged credit book
|
|
170
126
|
*
|
|
171
127
|
* @remarks
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
* Net book growth is funded from the Credit Account's existing idle balance —
|
|
188
|
-
* fund it first via /v2/credit/transfer; a net release stays in the Credit
|
|
189
|
-
* Account as idle balance. Any swap surplus above the guaranteed floors also
|
|
190
|
-
* stays in the Credit Account (preview.estimated_max_dust) — recoverable, never
|
|
191
|
-
* lost.
|
|
192
|
-
*
|
|
193
|
-
* A book already at its target returns transaction: null with the preview — the
|
|
194
|
-
* call is idempotent and safe to drive from a converge-to-target loop.
|
|
195
|
-
*
|
|
196
|
-
* A rebalance too large for one transaction is rejected with a 422 — split it
|
|
197
|
-
* into two calls. Every deleveraging step keeps the health factor ≥ 1.02 and
|
|
198
|
-
* every leveraging step respects the protocol's borrow limits; Aave targets share
|
|
199
|
-
* one account-level health factor, which the preview reports.
|
|
200
|
-
*
|
|
201
|
-
* Dust tails and routing swaps below the swap router's minimum routable size do
|
|
202
|
-
* not fail the call: a releasing target that cannot fully unwind returns its
|
|
203
|
-
* honest residual in the preview, and an unroutable routing swap is skipped
|
|
204
|
-
* (its uncovered amount only 422s the rebalance if it breaches the funding
|
|
205
|
-
* tolerance).
|
|
206
|
-
*
|
|
207
|
-
* For protocol=MORPHO pass a market_id from /v2/credit/morpho_markets; inspect the
|
|
208
|
-
* current book via /v2/credit/looped_positions.
|
|
128
|
+
* Move one or more leveraged positions to the state you want, in ONE atomic
|
|
129
|
+
* transaction.
|
|
130
|
+
*
|
|
131
|
+
* List the positions to change and the end state you want for each. The API
|
|
132
|
+
* works out whether that means opening, growing, shrinking, delevering or
|
|
133
|
+
* closing, and does them all together.
|
|
134
|
+
*
|
|
135
|
+
* Money freed by shrinking or closing one position pays for growing or opening
|
|
136
|
+
* another, so shifting funds between positions needs no new deposit. Any
|
|
137
|
+
* shortfall is taken from the Credit Account's idle balance, and the call
|
|
138
|
+
* returns 422 if that does not cover it either.
|
|
139
|
+
*
|
|
140
|
+
* See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
|
|
141
|
+
* for protocol and chain coverage, capital routing and the full error list.
|
|
209
142
|
*/
|
|
210
143
|
creditRebalance(request: components.CreditRebalanceRequest, options?: RequestOptions): Promise<components.CreditRebalanceResponse>;
|
|
211
144
|
/**
|
|
@@ -234,7 +167,7 @@ export declare class Credit extends ClientSDK {
|
|
|
234
167
|
* Bundles repayment, collateral withdrawal, and an optional swap into a single atomic Safe transaction.
|
|
235
168
|
*
|
|
236
169
|
* - If `token_out` is None or equals `withdraw_token`, the withdrawn collateral is kept as-is.
|
|
237
|
-
* - If `token_out` differs from `withdraw_token`, a swap is performed after withdrawal
|
|
170
|
+
* - If `token_out` differs from `withdraw_token`, a market swap is performed after withdrawal.
|
|
238
171
|
*
|
|
239
172
|
* The Credit Account must already have a borrow position created via `/v2/credit/borrow`.
|
|
240
173
|
* The repay_token must be available in the Credit Account (or pulled from EOA via Permit2).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit.d.ts","sourceRoot":"","sources":["../../../src/sdk/credit.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+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,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;;;;OAQG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAO5C"}
|
|
@@ -48,14 +48,15 @@ class Credit extends sdks_js_1.ClientSDK {
|
|
|
48
48
|
* List looped (leveraged) credit positions
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
|
-
* List
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
51
|
+
* List the leveraged positions held by an owner's Credit Account.
|
|
52
|
+
*
|
|
53
|
+
* Positions are reconstructed from on-chain history rather than from API calls,
|
|
54
|
+
* so a loop assembled by hand through /v2/credit/bundle is recognised the same
|
|
55
|
+
* way as one opened through /v2/credit/loop. Only activity inside the Credit
|
|
56
|
+
* Account is visible — leverage the owner holds directly in their wallet is not.
|
|
57
|
+
*
|
|
58
|
+
* See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
|
|
59
|
+
* for protocol coverage and how to read leverage, health factor and net APY.
|
|
59
60
|
*/
|
|
60
61
|
async creditLoopedPositions(request, options) {
|
|
61
62
|
return (0, fp_js_1.unwrapAsync)((0, creditCreditLoopedPositions_js_1.creditCreditLoopedPositions)(this, request, options));
|
|
@@ -114,7 +115,7 @@ class Credit extends sdks_js_1.ClientSDK {
|
|
|
114
115
|
* Bundles an optional swap, collateral supply, and borrow into a single atomic Safe transaction.
|
|
115
116
|
*
|
|
116
117
|
* - If `token_in` equals `collateral_token`, the tokens are supplied directly as collateral.
|
|
117
|
-
* - If `token_in` differs from `collateral_token`, a swap is performed first
|
|
118
|
+
* - If `token_in` differs from `collateral_token`, a market swap is performed first.
|
|
118
119
|
*
|
|
119
120
|
* The Credit Account must already be created via `/v2/credit/create_account` and funded with `token_in`.
|
|
120
121
|
*/
|
|
@@ -125,30 +126,16 @@ class Credit extends sdks_js_1.ClientSDK {
|
|
|
125
126
|
* Open a leveraged loop
|
|
126
127
|
*
|
|
127
128
|
* @remarks
|
|
128
|
-
* Open a leveraged
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* the swap router's minimum routable size; when it does the loop simply ends
|
|
139
|
-
* early on that supply — the achieved multiplier is still guaranteed within
|
|
140
|
-
* 0.5% of the request or the call returns a clean 400.
|
|
141
|
-
*
|
|
142
|
-
* When the collateral token is itself an ERC-4626 vault share (e.g. a Morpho
|
|
143
|
-
* vault token like steakUSDC), each conversion swaps the borrow token to the
|
|
144
|
-
* vault's underlying asset and mints the shares via the vault's own deposit at
|
|
145
|
-
* net asset value instead of swapping the share token on a DEX — share tokens
|
|
146
|
-
* have no honest DEX route. A direct share-token route is only ever used when
|
|
147
|
-
* it prices within 1% of net asset value.
|
|
148
|
-
*
|
|
149
|
-
* The Credit Account must already hold initial_collateral_amount of
|
|
150
|
-
* collateral_token. For protocol=MORPHO pass a market_id from
|
|
151
|
-
* /v2/credit/morpho_markets.
|
|
129
|
+
* Open a leveraged position in ONE atomic transaction.
|
|
130
|
+
*
|
|
131
|
+
* Supply collateral, borrow against it, swap the borrowed token back to
|
|
132
|
+
* collateral, repeat — until total collateral reaches multiplier x
|
|
133
|
+
* initial_collateral_amount. If any step fails the whole transaction reverts,
|
|
134
|
+
* so a position is never left half-built.
|
|
135
|
+
*
|
|
136
|
+
* See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
|
|
137
|
+
* for chain coverage, market discovery, vault-share collateral, HyperEVM
|
|
138
|
+
* specifics and the full error list.
|
|
152
139
|
*/
|
|
153
140
|
async creditLoop(request, options) {
|
|
154
141
|
return (0, fp_js_1.unwrapAsync)((0, creditCreditLoop_js_1.creditCreditLoop)(this, request, options));
|
|
@@ -157,46 +144,15 @@ class Credit extends sdks_js_1.ClientSDK {
|
|
|
157
144
|
* Unwind a leveraged loop
|
|
158
145
|
*
|
|
159
146
|
* @remarks
|
|
160
|
-
* Unwind
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* vault token like steakUSDC), each conversion redeems the shares through the
|
|
170
|
-
* vault at net asset value and swaps the underlying asset to the borrow token
|
|
171
|
-
* instead of swapping the share token on a DEX; a direct share-token route is
|
|
172
|
-
* only ever used when it prices within 1% of net asset value.
|
|
173
|
-
*
|
|
174
|
-
* Omit target_multiplier for a full close: the debt is cleared exactly —
|
|
175
|
-
* accrued interest included — and the pair collateral is returned to the Credit
|
|
176
|
-
* Account. Pass 1 to clear the debt but keep the collateral supplied, or a value
|
|
177
|
-
* above 1 to delever to that multiplier (it must be below the position's current
|
|
178
|
-
* multiplier).
|
|
179
|
-
*
|
|
180
|
-
* Each withdrawal is sized to keep the position's health factor ≥ 1.02 at that
|
|
181
|
-
* step, so a position opened very close to the liquidation threshold may need
|
|
182
|
-
* more than one transaction to fully close — set allow_partial=true to return
|
|
183
|
-
* the maximum single-transaction progress (preview.fully_unwound=false), then
|
|
184
|
-
* call unloop again to finish. Very large unwinds relative to pool depth can
|
|
185
|
-
* still exceed the slippage tolerance through their own cumulative price impact.
|
|
186
|
-
*
|
|
187
|
-
* Positions are unwound as far as the swap router can route; on a router-minimum
|
|
188
|
-
* stop the engine still withdraws all collateral not needed to back the residual,
|
|
189
|
-
* and completes a true full close whenever the unwind's own guaranteed swap
|
|
190
|
-
* surpluses (or the Credit Account's idle balance) cover the remainder — a
|
|
191
|
-
* residual below the router's minimum routable size never fails the call, it is
|
|
192
|
-
* reported honestly in the preview (fully_unwound=false).
|
|
193
|
-
*
|
|
194
|
-
* When other open Aave loops share this position's collateral reserve, a full
|
|
195
|
-
* close withdraws only this position's attributed share of the pooled collateral
|
|
196
|
-
* (event-ledger bookkeeping), leaving the rest supplied for the other positions.
|
|
197
|
-
*
|
|
198
|
-
* For protocol=MORPHO pass a market_id from /v2/credit/morpho_markets; inspect
|
|
199
|
-
* open loops via /v2/credit/looped_positions.
|
|
147
|
+
* Unwind a leveraged position in ONE atomic transaction.
|
|
148
|
+
*
|
|
149
|
+
* Withdraw collateral, swap it back to the borrow token, repay, repeat — until
|
|
150
|
+
* the position reaches target_multiplier, or until the debt is cleared exactly
|
|
151
|
+
* if you omit it. If any step fails the whole transaction reverts.
|
|
152
|
+
*
|
|
153
|
+
* See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
|
|
154
|
+
* for chain coverage, vault-share collateral, shared Aave reserves and the full
|
|
155
|
+
* error list.
|
|
200
156
|
*/
|
|
201
157
|
async creditUnloop(request, options) {
|
|
202
158
|
return (0, fp_js_1.unwrapAsync)((0, creditCreditUnloop_js_1.creditCreditUnloop)(this, request, options));
|
|
@@ -205,43 +161,20 @@ class Credit extends sdks_js_1.ClientSDK {
|
|
|
205
161
|
* Rebalance the leveraged credit book
|
|
206
162
|
*
|
|
207
163
|
* @remarks
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
* Net book growth is funded from the Credit Account's existing idle balance —
|
|
224
|
-
* fund it first via /v2/credit/transfer; a net release stays in the Credit
|
|
225
|
-
* Account as idle balance. Any swap surplus above the guaranteed floors also
|
|
226
|
-
* stays in the Credit Account (preview.estimated_max_dust) — recoverable, never
|
|
227
|
-
* lost.
|
|
228
|
-
*
|
|
229
|
-
* A book already at its target returns transaction: null with the preview — the
|
|
230
|
-
* call is idempotent and safe to drive from a converge-to-target loop.
|
|
231
|
-
*
|
|
232
|
-
* A rebalance too large for one transaction is rejected with a 422 — split it
|
|
233
|
-
* into two calls. Every deleveraging step keeps the health factor ≥ 1.02 and
|
|
234
|
-
* every leveraging step respects the protocol's borrow limits; Aave targets share
|
|
235
|
-
* one account-level health factor, which the preview reports.
|
|
236
|
-
*
|
|
237
|
-
* Dust tails and routing swaps below the swap router's minimum routable size do
|
|
238
|
-
* not fail the call: a releasing target that cannot fully unwind returns its
|
|
239
|
-
* honest residual in the preview, and an unroutable routing swap is skipped
|
|
240
|
-
* (its uncovered amount only 422s the rebalance if it breaches the funding
|
|
241
|
-
* tolerance).
|
|
242
|
-
*
|
|
243
|
-
* For protocol=MORPHO pass a market_id from /v2/credit/morpho_markets; inspect the
|
|
244
|
-
* current book via /v2/credit/looped_positions.
|
|
164
|
+
* Move one or more leveraged positions to the state you want, in ONE atomic
|
|
165
|
+
* transaction.
|
|
166
|
+
*
|
|
167
|
+
* List the positions to change and the end state you want for each. The API
|
|
168
|
+
* works out whether that means opening, growing, shrinking, delevering or
|
|
169
|
+
* closing, and does them all together.
|
|
170
|
+
*
|
|
171
|
+
* Money freed by shrinking or closing one position pays for growing or opening
|
|
172
|
+
* another, so shifting funds between positions needs no new deposit. Any
|
|
173
|
+
* shortfall is taken from the Credit Account's idle balance, and the call
|
|
174
|
+
* returns 422 if that does not cover it either.
|
|
175
|
+
*
|
|
176
|
+
* See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
|
|
177
|
+
* for protocol and chain coverage, capital routing and the full error list.
|
|
245
178
|
*/
|
|
246
179
|
async creditRebalance(request, options) {
|
|
247
180
|
return (0, fp_js_1.unwrapAsync)((0, creditCreditRebalance_js_1.creditCreditRebalance)(this, request, options));
|
|
@@ -274,7 +207,7 @@ class Credit extends sdks_js_1.ClientSDK {
|
|
|
274
207
|
* Bundles repayment, collateral withdrawal, and an optional swap into a single atomic Safe transaction.
|
|
275
208
|
*
|
|
276
209
|
* - If `token_out` is None or equals `withdraw_token`, the withdrawn collateral is kept as-is.
|
|
277
|
-
* - If `token_out` differs from `withdraw_token`, a swap is performed after withdrawal
|
|
210
|
+
* - If `token_out` differs from `withdraw_token`, a market swap is performed after withdrawal.
|
|
278
211
|
*
|
|
279
212
|
* The Credit Account must already have a borrow position created via `/v2/credit/borrow`.
|
|
280
213
|
* The repay_token must be available in the Credit Account (or pulled from EOA via Permit2).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit.js","sourceRoot":"","sources":["../../../src/sdk/credit.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8EAAwE;AACxE,0EAAoE;AACpE,0EAAoE;AACpE,wFAAkF;AAClF,sFAAgF;AAChF,sEAAgE;AAChE,4FAAsF;AACtF,wFAAkF;AAClF,gFAA0E;AAC1E,gFAA0E;AAC1E,wEAAkE;AAClE,8EAAwE;AACxE,0EAAoE;AACpE,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,MAAO,SAAQ,mBAAS;IACnC;;;;;;;;OAQG;IACH,KAAK,CAAC,eAAe,CACnB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,cAAc,CAClB,OAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"credit.js","sourceRoot":"","sources":["../../../src/sdk/credit.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8EAAwE;AACxE,0EAAoE;AACpE,0EAAoE;AACpE,wFAAkF;AAClF,sFAAgF;AAChF,sEAAgE;AAChE,4FAAsF;AACtF,wFAAkF;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AI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAvTD,wBAuTC"}
|
|
@@ -17,7 +17,7 @@ import { Result } from "../types/fp.js";
|
|
|
17
17
|
* Bundles an optional swap, collateral supply, and borrow into a single atomic Safe transaction.
|
|
18
18
|
*
|
|
19
19
|
* - If `token_in` equals `collateral_token`, the tokens are supplied directly as collateral.
|
|
20
|
-
* - If `token_in` differs from `collateral_token`, a swap is performed first
|
|
20
|
+
* - If `token_in` differs from `collateral_token`, a market swap is performed first.
|
|
21
21
|
*
|
|
22
22
|
* The Credit Account must already be created via `/v2/credit/create_account` and funded with `token_in`.
|
|
23
23
|
*/
|
|
@@ -20,7 +20,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
20
20
|
* Bundles an optional swap, collateral supply, and borrow into a single atomic Safe transaction.
|
|
21
21
|
*
|
|
22
22
|
* - If `token_in` equals `collateral_token`, the tokens are supplied directly as collateral.
|
|
23
|
-
* - If `token_in` differs from `collateral_token`, a swap is performed first
|
|
23
|
+
* - If `token_in` differs from `collateral_token`, a market swap is performed first.
|
|
24
24
|
*
|
|
25
25
|
* The Credit Account must already be created via `/v2/credit/create_account` and funded with `token_in`.
|
|
26
26
|
*/
|
|
@@ -12,30 +12,16 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Open a leveraged loop
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Open a leveraged
|
|
15
|
+
* Open a leveraged position in ONE atomic transaction.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* in the Credit Account (the preview reports the bound as estimated_max_dust).
|
|
22
|
-
* Very large loops relative to pool depth can still exceed the slippage
|
|
23
|
-
* tolerance through their own cumulative price impact — size accordingly or
|
|
24
|
-
* raise max_slippage_percent. Conversely, the geometric tail can shrink below
|
|
25
|
-
* the swap router's minimum routable size; when it does the loop simply ends
|
|
26
|
-
* early on that supply — the achieved multiplier is still guaranteed within
|
|
27
|
-
* 0.5% of the request or the call returns a clean 400.
|
|
17
|
+
* Supply collateral, borrow against it, swap the borrowed token back to
|
|
18
|
+
* collateral, repeat — until total collateral reaches multiplier x
|
|
19
|
+
* initial_collateral_amount. If any step fails the whole transaction reverts,
|
|
20
|
+
* so a position is never left half-built.
|
|
28
21
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* net asset value instead of swapping the share token on a DEX — share tokens
|
|
33
|
-
* have no honest DEX route. A direct share-token route is only ever used when
|
|
34
|
-
* it prices within 1% of net asset value.
|
|
35
|
-
*
|
|
36
|
-
* The Credit Account must already hold initial_collateral_amount of
|
|
37
|
-
* collateral_token. For protocol=MORPHO pass a market_id from
|
|
38
|
-
* /v2/credit/morpho_markets.
|
|
22
|
+
* See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
|
|
23
|
+
* for chain coverage, market discovery, vault-share collateral, HyperEVM
|
|
24
|
+
* specifics and the full error list.
|
|
39
25
|
*/
|
|
40
26
|
export declare function creditCreditLoop(client: CompassApiSDKCore, request: components.CreditLoopRequest, options?: RequestOptions): APIPromise<Result<components.CreditLoopResponse, errors.HTTPValidationError | CompassAPISDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
41
27
|
//# sourceMappingURL=creditCreditLoop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditCreditLoop.d.ts","sourceRoot":"","sources":["../../../src/funcs/creditCreditLoop.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAM/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,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,mBAAmB,GAC1B,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -15,30 +15,16 @@ import { APIPromise } from "../types/async.js";
|
|
|
15
15
|
* Open a leveraged loop
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
* Open a leveraged
|
|
18
|
+
* Open a leveraged position in ONE atomic transaction.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* in the Credit Account (the preview reports the bound as estimated_max_dust).
|
|
25
|
-
* Very large loops relative to pool depth can still exceed the slippage
|
|
26
|
-
* tolerance through their own cumulative price impact — size accordingly or
|
|
27
|
-
* raise max_slippage_percent. Conversely, the geometric tail can shrink below
|
|
28
|
-
* the swap router's minimum routable size; when it does the loop simply ends
|
|
29
|
-
* early on that supply — the achieved multiplier is still guaranteed within
|
|
30
|
-
* 0.5% of the request or the call returns a clean 400.
|
|
20
|
+
* Supply collateral, borrow against it, swap the borrowed token back to
|
|
21
|
+
* collateral, repeat — until total collateral reaches multiplier x
|
|
22
|
+
* initial_collateral_amount. If any step fails the whole transaction reverts,
|
|
23
|
+
* so a position is never left half-built.
|
|
31
24
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* net asset value instead of swapping the share token on a DEX — share tokens
|
|
36
|
-
* have no honest DEX route. A direct share-token route is only ever used when
|
|
37
|
-
* it prices within 1% of net asset value.
|
|
38
|
-
*
|
|
39
|
-
* The Credit Account must already hold initial_collateral_amount of
|
|
40
|
-
* collateral_token. For protocol=MORPHO pass a market_id from
|
|
41
|
-
* /v2/credit/morpho_markets.
|
|
25
|
+
* See the [Leveraged Looping guide](https://docs.compasslabs.ai/v2/Products/Looping)
|
|
26
|
+
* for chain coverage, market discovery, vault-share collateral, HyperEVM
|
|
27
|
+
* specifics and the full error list.
|
|
42
28
|
*/
|
|
43
29
|
export function creditCreditLoop(client, request, options) {
|
|
44
30
|
return new APIPromise($do(client, request, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditCreditLoop.js","sourceRoot":"","sources":["../../../src/funcs/creditCreditLoop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAS5D,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD
|
|
1
|
+
{"version":3,"file":"creditCreditLoop.js","sourceRoot":"","sources":["../../../src/funcs/creditCreditLoop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,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