@compass-labs/api-sdk 2.2.76 → 2.2.77-rc.0

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.
Files changed (320) hide show
  1. package/README.md +7 -3
  2. package/codeSamples_typescript.yaml +12 -0
  3. package/dist/commonjs/funcs/creditCreditLoop.d.ts +31 -0
  4. package/dist/commonjs/funcs/creditCreditLoop.d.ts.map +1 -0
  5. package/dist/commonjs/funcs/creditCreditLoop.js +132 -0
  6. package/dist/commonjs/funcs/creditCreditLoop.js.map +1 -0
  7. package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts +24 -0
  8. package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts.map +1 -0
  9. package/dist/commonjs/funcs/creditCreditMorphoMarkets.js +128 -0
  10. package/dist/commonjs/funcs/creditCreditMorphoMarkets.js.map +1 -0
  11. package/dist/commonjs/lib/config.d.ts +2 -2
  12. package/dist/commonjs/lib/config.js +2 -2
  13. package/dist/commonjs/models/components/aavelooprequest.d.ts +16 -16
  14. package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -1
  15. package/dist/commonjs/models/components/aavelooprequest.js +17 -17
  16. package/dist/commonjs/models/components/aavelooprequest.js.map +1 -1
  17. package/dist/commonjs/models/components/accountsummary.d.ts +4 -0
  18. package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
  19. package/dist/commonjs/models/components/accountsummary.js.map +1 -1
  20. package/dist/commonjs/models/components/collateralposition.d.ts +12 -0
  21. package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
  22. package/dist/commonjs/models/components/collateralposition.js +4 -0
  23. package/dist/commonjs/models/components/collateralposition.js.map +1 -1
  24. package/dist/commonjs/models/components/createaccountrequest.d.ts +1 -0
  25. package/dist/commonjs/models/components/createaccountrequest.d.ts.map +1 -1
  26. package/dist/commonjs/models/components/createaccountrequest.js +1 -0
  27. package/dist/commonjs/models/components/createaccountrequest.js.map +1 -1
  28. package/dist/commonjs/models/components/createcreditaccountrequest.d.ts +1 -0
  29. package/dist/commonjs/models/components/createcreditaccountrequest.d.ts.map +1 -1
  30. package/dist/commonjs/models/components/createcreditaccountrequest.js +1 -0
  31. package/dist/commonjs/models/components/createcreditaccountrequest.js.map +1 -1
  32. package/dist/commonjs/models/components/creditborrowparams.d.ts +9 -0
  33. package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/creditborrowparams.js +2 -0
  35. package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
  36. package/dist/commonjs/models/components/creditborrowrequest.d.ts +9 -0
  37. package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/creditborrowrequest.js +2 -0
  39. package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
  40. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +4 -0
  41. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
  42. package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
  43. package/dist/commonjs/models/components/creditlooppreview.d.ts +45 -0
  44. package/dist/commonjs/models/components/creditlooppreview.d.ts.map +1 -0
  45. package/dist/commonjs/models/components/creditlooppreview.js +68 -0
  46. package/dist/commonjs/models/components/creditlooppreview.js.map +1 -0
  47. package/dist/commonjs/models/components/creditlooprequest.d.ts +125 -0
  48. package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -0
  49. package/dist/commonjs/models/components/creditlooprequest.js +98 -0
  50. package/dist/commonjs/models/components/creditlooprequest.js.map +1 -0
  51. package/dist/commonjs/models/components/creditloopresponse.d.ts +27 -0
  52. package/dist/commonjs/models/components/creditloopresponse.d.ts.map +1 -0
  53. package/dist/commonjs/models/components/creditloopresponse.js +61 -0
  54. package/dist/commonjs/models/components/creditloopresponse.js.map +1 -0
  55. package/dist/commonjs/models/components/creditprotocol.d.ts +9 -0
  56. package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
  57. package/dist/commonjs/models/components/creditprotocol.js +5 -0
  58. package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
  59. package/dist/commonjs/models/components/creditrepayparams.d.ts +9 -0
  60. package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
  61. package/dist/commonjs/models/components/creditrepayparams.js +2 -0
  62. package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
  63. package/dist/commonjs/models/components/creditrepayrequest.d.ts +9 -0
  64. package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
  65. package/dist/commonjs/models/components/creditrepayrequest.js +2 -0
  66. package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
  67. package/dist/commonjs/models/components/creditsupplyparams.d.ts +9 -0
  68. package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
  69. package/dist/commonjs/models/components/creditsupplyparams.js +2 -0
  70. package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
  71. package/dist/commonjs/models/components/creditwithdrawparams.d.ts +9 -0
  72. package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
  73. package/dist/commonjs/models/components/creditwithdrawparams.js +2 -0
  74. package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
  75. package/dist/commonjs/models/components/debtposition.d.ts +12 -0
  76. package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
  77. package/dist/commonjs/models/components/debtposition.js +4 -0
  78. package/dist/commonjs/models/components/debtposition.js.map +1 -1
  79. package/dist/commonjs/models/components/index.d.ts +6 -0
  80. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  81. package/dist/commonjs/models/components/index.js +6 -0
  82. package/dist/commonjs/models/components/index.js.map +1 -1
  83. package/dist/commonjs/models/components/looplegpreview.d.ts +24 -0
  84. package/dist/commonjs/models/components/looplegpreview.d.ts.map +1 -0
  85. package/dist/commonjs/models/components/looplegpreview.js +59 -0
  86. package/dist/commonjs/models/components/looplegpreview.js.map +1 -0
  87. package/dist/commonjs/models/components/morpholendingmarket.d.ts +80 -0
  88. package/dist/commonjs/models/components/morpholendingmarket.d.ts.map +1 -0
  89. package/dist/commonjs/models/components/morpholendingmarket.js +82 -0
  90. package/dist/commonjs/models/components/morpholendingmarket.js.map +1 -0
  91. package/dist/commonjs/models/components/morphomarketsresponse.d.ts +21 -0
  92. package/dist/commonjs/models/components/morphomarketsresponse.d.ts.map +1 -0
  93. package/dist/commonjs/models/components/morphomarketsresponse.js +52 -0
  94. package/dist/commonjs/models/components/morphomarketsresponse.js.map +1 -0
  95. package/dist/commonjs/models/operations/index.d.ts +1 -0
  96. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  97. package/dist/commonjs/models/operations/index.js +1 -0
  98. package/dist/commonjs/models/operations/index.js.map +1 -1
  99. package/dist/commonjs/models/operations/v2creditbalances.d.ts +1 -0
  100. package/dist/commonjs/models/operations/v2creditbalances.d.ts.map +1 -1
  101. package/dist/commonjs/models/operations/v2creditbalances.js +1 -0
  102. package/dist/commonjs/models/operations/v2creditbalances.js.map +1 -1
  103. package/dist/commonjs/models/operations/v2crediteulermarkets.d.ts +1 -0
  104. package/dist/commonjs/models/operations/v2crediteulermarkets.d.ts.map +1 -1
  105. package/dist/commonjs/models/operations/v2crediteulermarkets.js +1 -0
  106. package/dist/commonjs/models/operations/v2crediteulermarkets.js.map +1 -1
  107. package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts +23 -0
  108. package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts.map +1 -0
  109. package/dist/commonjs/models/operations/v2creditmorphomarkets.js +58 -0
  110. package/dist/commonjs/models/operations/v2creditmorphomarkets.js.map +1 -0
  111. package/dist/commonjs/models/operations/v2creditpositions.d.ts +1 -0
  112. package/dist/commonjs/models/operations/v2creditpositions.d.ts.map +1 -1
  113. package/dist/commonjs/models/operations/v2creditpositions.js +1 -0
  114. package/dist/commonjs/models/operations/v2creditpositions.js.map +1 -1
  115. package/dist/commonjs/models/operations/v2earnbalances.d.ts +1 -0
  116. package/dist/commonjs/models/operations/v2earnbalances.d.ts.map +1 -1
  117. package/dist/commonjs/models/operations/v2earnbalances.js +1 -0
  118. package/dist/commonjs/models/operations/v2earnbalances.js.map +1 -1
  119. package/dist/commonjs/models/operations/v2earnpositions.d.ts +1 -0
  120. package/dist/commonjs/models/operations/v2earnpositions.d.ts.map +1 -1
  121. package/dist/commonjs/models/operations/v2earnpositions.js +1 -0
  122. package/dist/commonjs/models/operations/v2earnpositions.js.map +1 -1
  123. package/dist/commonjs/sdk/credit.d.ts +32 -0
  124. package/dist/commonjs/sdk/credit.d.ts.map +1 -1
  125. package/dist/commonjs/sdk/credit.js +38 -0
  126. package/dist/commonjs/sdk/credit.js.map +1 -1
  127. package/dist/esm/funcs/creditCreditLoop.d.ts +31 -0
  128. package/dist/esm/funcs/creditCreditLoop.d.ts.map +1 -0
  129. package/dist/esm/funcs/creditCreditLoop.js +96 -0
  130. package/dist/esm/funcs/creditCreditLoop.js.map +1 -0
  131. package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts +24 -0
  132. package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts.map +1 -0
  133. package/dist/esm/funcs/creditCreditMorphoMarkets.js +92 -0
  134. package/dist/esm/funcs/creditCreditMorphoMarkets.js.map +1 -0
  135. package/dist/esm/lib/config.d.ts +2 -2
  136. package/dist/esm/lib/config.js +2 -2
  137. package/dist/esm/models/components/aavelooprequest.d.ts +16 -16
  138. package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -1
  139. package/dist/esm/models/components/aavelooprequest.js +12 -12
  140. package/dist/esm/models/components/aavelooprequest.js.map +1 -1
  141. package/dist/esm/models/components/accountsummary.d.ts +4 -0
  142. package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
  143. package/dist/esm/models/components/accountsummary.js.map +1 -1
  144. package/dist/esm/models/components/collateralposition.d.ts +12 -0
  145. package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
  146. package/dist/esm/models/components/collateralposition.js +4 -0
  147. package/dist/esm/models/components/collateralposition.js.map +1 -1
  148. package/dist/esm/models/components/createaccountrequest.d.ts +1 -0
  149. package/dist/esm/models/components/createaccountrequest.d.ts.map +1 -1
  150. package/dist/esm/models/components/createaccountrequest.js +1 -0
  151. package/dist/esm/models/components/createaccountrequest.js.map +1 -1
  152. package/dist/esm/models/components/createcreditaccountrequest.d.ts +1 -0
  153. package/dist/esm/models/components/createcreditaccountrequest.d.ts.map +1 -1
  154. package/dist/esm/models/components/createcreditaccountrequest.js +1 -0
  155. package/dist/esm/models/components/createcreditaccountrequest.js.map +1 -1
  156. package/dist/esm/models/components/creditborrowparams.d.ts +9 -0
  157. package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
  158. package/dist/esm/models/components/creditborrowparams.js +2 -0
  159. package/dist/esm/models/components/creditborrowparams.js.map +1 -1
  160. package/dist/esm/models/components/creditborrowrequest.d.ts +9 -0
  161. package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
  162. package/dist/esm/models/components/creditborrowrequest.js +2 -0
  163. package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
  164. package/dist/esm/models/components/creditenablecollateralparams.d.ts +4 -0
  165. package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
  166. package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
  167. package/dist/esm/models/components/creditlooppreview.d.ts +45 -0
  168. package/dist/esm/models/components/creditlooppreview.d.ts.map +1 -0
  169. package/dist/esm/models/components/creditlooppreview.js +31 -0
  170. package/dist/esm/models/components/creditlooppreview.js.map +1 -0
  171. package/dist/esm/models/components/creditlooprequest.d.ts +125 -0
  172. package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -0
  173. package/dist/esm/models/components/creditlooprequest.js +57 -0
  174. package/dist/esm/models/components/creditlooprequest.js.map +1 -0
  175. package/dist/esm/models/components/creditloopresponse.d.ts +27 -0
  176. package/dist/esm/models/components/creditloopresponse.d.ts.map +1 -0
  177. package/dist/esm/models/components/creditloopresponse.js +24 -0
  178. package/dist/esm/models/components/creditloopresponse.js.map +1 -0
  179. package/dist/esm/models/components/creditprotocol.d.ts +9 -0
  180. package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
  181. package/dist/esm/models/components/creditprotocol.js +5 -0
  182. package/dist/esm/models/components/creditprotocol.js.map +1 -1
  183. package/dist/esm/models/components/creditrepayparams.d.ts +9 -0
  184. package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
  185. package/dist/esm/models/components/creditrepayparams.js +2 -0
  186. package/dist/esm/models/components/creditrepayparams.js.map +1 -1
  187. package/dist/esm/models/components/creditrepayrequest.d.ts +9 -0
  188. package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
  189. package/dist/esm/models/components/creditrepayrequest.js +2 -0
  190. package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
  191. package/dist/esm/models/components/creditsupplyparams.d.ts +9 -0
  192. package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
  193. package/dist/esm/models/components/creditsupplyparams.js +2 -0
  194. package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
  195. package/dist/esm/models/components/creditwithdrawparams.d.ts +9 -0
  196. package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
  197. package/dist/esm/models/components/creditwithdrawparams.js +2 -0
  198. package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
  199. package/dist/esm/models/components/debtposition.d.ts +12 -0
  200. package/dist/esm/models/components/debtposition.d.ts.map +1 -1
  201. package/dist/esm/models/components/debtposition.js +4 -0
  202. package/dist/esm/models/components/debtposition.js.map +1 -1
  203. package/dist/esm/models/components/index.d.ts +6 -0
  204. package/dist/esm/models/components/index.d.ts.map +1 -1
  205. package/dist/esm/models/components/index.js +6 -0
  206. package/dist/esm/models/components/index.js.map +1 -1
  207. package/dist/esm/models/components/looplegpreview.d.ts +24 -0
  208. package/dist/esm/models/components/looplegpreview.d.ts.map +1 -0
  209. package/dist/esm/models/components/looplegpreview.js +22 -0
  210. package/dist/esm/models/components/looplegpreview.js.map +1 -0
  211. package/dist/esm/models/components/morpholendingmarket.d.ts +80 -0
  212. package/dist/esm/models/components/morpholendingmarket.d.ts.map +1 -0
  213. package/dist/esm/models/components/morpholendingmarket.js +45 -0
  214. package/dist/esm/models/components/morpholendingmarket.js.map +1 -0
  215. package/dist/esm/models/components/morphomarketsresponse.d.ts +21 -0
  216. package/dist/esm/models/components/morphomarketsresponse.d.ts.map +1 -0
  217. package/dist/esm/models/components/morphomarketsresponse.js +15 -0
  218. package/dist/esm/models/components/morphomarketsresponse.js.map +1 -0
  219. package/dist/esm/models/operations/index.d.ts +1 -0
  220. package/dist/esm/models/operations/index.d.ts.map +1 -1
  221. package/dist/esm/models/operations/index.js +1 -0
  222. package/dist/esm/models/operations/index.js.map +1 -1
  223. package/dist/esm/models/operations/v2creditbalances.d.ts +1 -0
  224. package/dist/esm/models/operations/v2creditbalances.d.ts.map +1 -1
  225. package/dist/esm/models/operations/v2creditbalances.js +1 -0
  226. package/dist/esm/models/operations/v2creditbalances.js.map +1 -1
  227. package/dist/esm/models/operations/v2crediteulermarkets.d.ts +1 -0
  228. package/dist/esm/models/operations/v2crediteulermarkets.d.ts.map +1 -1
  229. package/dist/esm/models/operations/v2crediteulermarkets.js +1 -0
  230. package/dist/esm/models/operations/v2crediteulermarkets.js.map +1 -1
  231. package/dist/esm/models/operations/v2creditmorphomarkets.d.ts +23 -0
  232. package/dist/esm/models/operations/v2creditmorphomarkets.d.ts.map +1 -0
  233. package/dist/esm/models/operations/v2creditmorphomarkets.js +21 -0
  234. package/dist/esm/models/operations/v2creditmorphomarkets.js.map +1 -0
  235. package/dist/esm/models/operations/v2creditpositions.d.ts +1 -0
  236. package/dist/esm/models/operations/v2creditpositions.d.ts.map +1 -1
  237. package/dist/esm/models/operations/v2creditpositions.js +1 -0
  238. package/dist/esm/models/operations/v2creditpositions.js.map +1 -1
  239. package/dist/esm/models/operations/v2earnbalances.d.ts +1 -0
  240. package/dist/esm/models/operations/v2earnbalances.d.ts.map +1 -1
  241. package/dist/esm/models/operations/v2earnbalances.js +1 -0
  242. package/dist/esm/models/operations/v2earnbalances.js.map +1 -1
  243. package/dist/esm/models/operations/v2earnpositions.d.ts +1 -0
  244. package/dist/esm/models/operations/v2earnpositions.d.ts.map +1 -1
  245. package/dist/esm/models/operations/v2earnpositions.js +1 -0
  246. package/dist/esm/models/operations/v2earnpositions.js.map +1 -1
  247. package/dist/esm/sdk/credit.d.ts +32 -0
  248. package/dist/esm/sdk/credit.d.ts.map +1 -1
  249. package/dist/esm/sdk/credit.js +38 -0
  250. package/dist/esm/sdk/credit.js.map +1 -1
  251. package/docs/models/components/aavelooprequest.md +4 -4
  252. package/docs/models/components/{initialcollateralamount.md → aavelooprequestinitialcollateralamount.md} +1 -1
  253. package/docs/models/components/{loantovalue.md → aavelooprequestloantovalue.md} +1 -1
  254. package/docs/models/components/{maxslippagepercent.md → aavelooprequestmaxslippagepercent.md} +1 -1
  255. package/docs/models/components/{multiplier.md → aavelooprequestmultiplier.md} +1 -1
  256. package/docs/models/components/accountsummary.md +10 -10
  257. package/docs/models/components/collateralposition.md +16 -14
  258. package/docs/models/components/createaccountrequestchain.md +1 -1
  259. package/docs/models/components/createcreditaccountrequestchain.md +1 -1
  260. package/docs/models/components/creditborrowparams.md +10 -9
  261. package/docs/models/components/creditborrowrequest.md +20 -19
  262. package/docs/models/components/creditenablecollateralparams.md +6 -6
  263. package/docs/models/components/creditlooppreview.md +33 -0
  264. package/docs/models/components/creditlooprequest.md +41 -0
  265. package/docs/models/components/creditlooprequestinitialcollateralamount.md +19 -0
  266. package/docs/models/components/creditlooprequestloantovalue.md +19 -0
  267. package/docs/models/components/creditlooprequestmaxslippagepercent.md +19 -0
  268. package/docs/models/components/creditlooprequestmultiplier.md +19 -0
  269. package/docs/models/components/creditloopresponse.md +30 -0
  270. package/docs/models/components/creditprotocol.md +5 -1
  271. package/docs/models/components/creditrepayparams.md +9 -8
  272. package/docs/models/components/creditrepayrequest.md +19 -18
  273. package/docs/models/components/creditsupplyparams.md +8 -7
  274. package/docs/models/components/creditwithdrawparams.md +8 -7
  275. package/docs/models/components/debtposition.md +15 -13
  276. package/docs/models/components/looplegpreview.md +21 -0
  277. package/docs/models/components/morpholendingmarket.md +49 -0
  278. package/docs/models/components/morphomarketsresponse.md +21 -0
  279. package/docs/models/operations/v2creditbalanceschain.md +1 -1
  280. package/docs/models/operations/v2crediteulermarketschain.md +1 -1
  281. package/docs/models/operations/v2creditmorphomarketschain.md +15 -0
  282. package/docs/models/operations/v2creditmorphomarketsrequest.md +17 -0
  283. package/docs/models/operations/v2creditpositionschain.md +1 -1
  284. package/docs/models/operations/v2earnbalanceschain.md +1 -1
  285. package/docs/models/operations/v2earnpositionschain.md +1 -1
  286. package/docs/sdks/credit/README.md +186 -0
  287. package/openapi_prepped_for_speakeasy.json +666 -2
  288. package/package.json +1 -1
  289. package/src/funcs/creditCreditLoop.ts +184 -0
  290. package/src/funcs/creditCreditMorphoMarkets.ts +182 -0
  291. package/src/lib/config.ts +2 -2
  292. package/src/models/components/aavelooprequest.ts +43 -30
  293. package/src/models/components/accountsummary.ts +4 -0
  294. package/src/models/components/collateralposition.ts +16 -0
  295. package/src/models/components/createaccountrequest.ts +1 -0
  296. package/src/models/components/createcreditaccountrequest.ts +1 -0
  297. package/src/models/components/creditborrowparams.ts +11 -0
  298. package/src/models/components/creditborrowrequest.ts +11 -0
  299. package/src/models/components/creditenablecollateralparams.ts +4 -0
  300. package/src/models/components/creditlooppreview.ts +86 -0
  301. package/src/models/components/creditlooprequest.ts +235 -0
  302. package/src/models/components/creditloopresponse.ts +65 -0
  303. package/src/models/components/creditprotocol.ts +9 -0
  304. package/src/models/components/creditrepayparams.ts +11 -0
  305. package/src/models/components/creditrepayrequest.ts +11 -0
  306. package/src/models/components/creditsupplyparams.ts +11 -0
  307. package/src/models/components/creditwithdrawparams.ts +11 -0
  308. package/src/models/components/debtposition.ts +16 -0
  309. package/src/models/components/index.ts +6 -0
  310. package/src/models/components/looplegpreview.ts +54 -0
  311. package/src/models/components/morpholendingmarket.ts +133 -0
  312. package/src/models/components/morphomarketsresponse.ts +46 -0
  313. package/src/models/operations/index.ts +1 -0
  314. package/src/models/operations/v2creditbalances.ts +1 -0
  315. package/src/models/operations/v2crediteulermarkets.ts +1 -0
  316. package/src/models/operations/v2creditmorphomarkets.ts +50 -0
  317. package/src/models/operations/v2creditpositions.ts +1 -0
  318. package/src/models/operations/v2earnbalances.ts +1 -0
  319. package/src/models/operations/v2earnpositions.ts +1 -0
  320. package/src/sdk/credit.ts +54 -0
@@ -4871,6 +4871,7 @@
4871
4871
  "enum": [
4872
4872
  "arbitrum",
4873
4873
  "base",
4874
+ "bsc",
4874
4875
  "ethereum",
4875
4876
  "tempo"
4876
4877
  ],
@@ -5503,6 +5504,7 @@
5503
5504
  "enum": [
5504
5505
  "arbitrum",
5505
5506
  "base",
5507
+ "bsc",
5506
5508
  "ethereum",
5507
5509
  "tempo"
5508
5510
  ],
@@ -5901,6 +5903,7 @@
5901
5903
  "enum": [
5902
5904
  "arbitrum",
5903
5905
  "base",
5906
+ "bsc",
5904
5907
  "ethereum",
5905
5908
  "tempo"
5906
5909
  ],
@@ -5963,6 +5966,7 @@
5963
5966
  "enum": [
5964
5967
  "arbitrum",
5965
5968
  "base",
5969
+ "bsc",
5966
5970
  "ethereum",
5967
5971
  "tempo"
5968
5972
  ],
@@ -6025,6 +6029,7 @@
6025
6029
  "enum": [
6026
6030
  "arbitrum",
6027
6031
  "base",
6032
+ "bsc",
6028
6033
  "ethereum",
6029
6034
  "tempo"
6030
6035
  ],
@@ -6058,6 +6063,58 @@
6058
6063
  "x-speakeasy-name-override": "credit_euler_markets"
6059
6064
  }
6060
6065
  },
6066
+ "/v2/credit/morpho_markets": {
6067
+ "get": {
6068
+ "tags": [
6069
+ "Credit"
6070
+ ],
6071
+ "summary": "List curated Morpho markets",
6072
+ "description": "List curated Morpho Blue lending markets for a chain.\n\nMorpho Blue is permissionless, so credit actions identify a market by its\nbytes32 market id. This returns the curated market set with live LLTV,\nsupply/borrow APY, utilization, and available liquidity -- read on-chain per\nrequest -- so callers know which market_id to use and what it currently costs.",
6073
+ "operationId": "v2_credit_morpho_markets",
6074
+ "parameters": [
6075
+ {
6076
+ "name": "chain",
6077
+ "in": "query",
6078
+ "required": true,
6079
+ "schema": {
6080
+ "type": "string",
6081
+ "enum": [
6082
+ "arbitrum",
6083
+ "base",
6084
+ "bsc",
6085
+ "ethereum",
6086
+ "tempo"
6087
+ ],
6088
+ "title": "Chain",
6089
+ "example": "ethereum"
6090
+ }
6091
+ }
6092
+ ],
6093
+ "responses": {
6094
+ "200": {
6095
+ "description": "Successful Response",
6096
+ "content": {
6097
+ "application/json": {
6098
+ "schema": {
6099
+ "$ref": "#/components/schemas/MorphoMarketsResponse"
6100
+ }
6101
+ }
6102
+ }
6103
+ },
6104
+ "422": {
6105
+ "description": "Validation Error",
6106
+ "content": {
6107
+ "application/json": {
6108
+ "schema": {
6109
+ "$ref": "#/components/schemas/HTTPValidationError"
6110
+ }
6111
+ }
6112
+ }
6113
+ }
6114
+ },
6115
+ "x-speakeasy-name-override": "credit_morpho_markets"
6116
+ }
6117
+ },
6061
6118
  "/v2/credit/create_account": {
6062
6119
  "post": {
6063
6120
  "tags": [
@@ -6144,6 +6201,49 @@
6144
6201
  "x-speakeasy-name-override": "credit_borrow"
6145
6202
  }
6146
6203
  },
6204
+ "/v2/credit/loop": {
6205
+ "post": {
6206
+ "tags": [
6207
+ "Credit"
6208
+ ],
6209
+ "summary": "Open a leveraged loop",
6210
+ "description": "Open a leveraged loop into an Aave or Morpho market in ONE atomic transaction.\n\nRepeatedly supplies collateral, borrows at the requested loan-to-value, and\nswaps the borrow back to collateral. Each iteration's supply uses the swap's\nGUARANTEED minimum output (enforced on-chain), so a fill anywhere within the\nslippage tolerance can never break a later step; any positive surplus stays\nin the Credit Account (the preview reports the bound as estimated_max_dust).\nVery large loops relative to pool depth can still exceed the slippage\ntolerance through their own cumulative price impact \u2014 size accordingly or\nraise max_slippage_percent.\n\nThe Credit Account must already hold initial_collateral_amount of\ncollateral_token. For protocol=MORPHO pass a market_id from\n/v2/credit/morpho_markets.",
6211
+ "operationId": "v2_credit_loop",
6212
+ "requestBody": {
6213
+ "content": {
6214
+ "application/json": {
6215
+ "schema": {
6216
+ "$ref": "#/components/schemas/CreditLoopRequest"
6217
+ }
6218
+ }
6219
+ },
6220
+ "required": true
6221
+ },
6222
+ "responses": {
6223
+ "200": {
6224
+ "description": "Successful Response",
6225
+ "content": {
6226
+ "application/json": {
6227
+ "schema": {
6228
+ "$ref": "#/components/schemas/CreditLoopResponse"
6229
+ }
6230
+ }
6231
+ }
6232
+ },
6233
+ "422": {
6234
+ "description": "Validation Error",
6235
+ "content": {
6236
+ "application/json": {
6237
+ "schema": {
6238
+ "$ref": "#/components/schemas/HTTPValidationError"
6239
+ }
6240
+ }
6241
+ }
6242
+ }
6243
+ },
6244
+ "x-speakeasy-name-override": "credit_loop"
6245
+ }
6246
+ },
6147
6247
  "/v2/credit/transfer": {
6148
6248
  "post": {
6149
6249
  "tags": [
@@ -11670,6 +11770,30 @@
11670
11770
  "title": "Vault",
11671
11771
  "description": "Euler only: the EVK collateral vault holding this position."
11672
11772
  },
11773
+ "market_id": {
11774
+ "anyOf": [
11775
+ {
11776
+ "type": "string"
11777
+ },
11778
+ {
11779
+ "type": "null"
11780
+ }
11781
+ ],
11782
+ "title": "Market Id",
11783
+ "description": "Morpho only: the bytes32 id of the isolated market holding this position."
11784
+ },
11785
+ "is_pure_supply": {
11786
+ "anyOf": [
11787
+ {
11788
+ "type": "boolean"
11789
+ },
11790
+ {
11791
+ "type": "null"
11792
+ }
11793
+ ],
11794
+ "title": "Is Pure Supply",
11795
+ "description": "Morpho only: true when this is a loan-asset supply position (earning supply APY) rather than collateral backing borrows."
11796
+ },
11673
11797
  "amount_supplied": {
11674
11798
  "anyOf": [
11675
11799
  {
@@ -11817,6 +11941,7 @@
11817
11941
  "enum": [
11818
11942
  "arbitrum",
11819
11943
  "base",
11944
+ "bsc",
11820
11945
  "ethereum",
11821
11946
  "tempo"
11822
11947
  ],
@@ -11890,6 +12015,7 @@
11890
12015
  "enum": [
11891
12016
  "arbitrum",
11892
12017
  "base",
12018
+ "bsc",
11893
12019
  "ethereum",
11894
12020
  "tempo"
11895
12021
  ],
@@ -12115,6 +12241,18 @@
12115
12241
  ],
12116
12242
  "title": "Borrow Vault",
12117
12243
  "description": "Euler only: the EVK vault to borrow from. Required when protocol=EULER."
12244
+ },
12245
+ "market_id": {
12246
+ "anyOf": [
12247
+ {
12248
+ "type": "string"
12249
+ },
12250
+ {
12251
+ "type": "null"
12252
+ }
12253
+ ],
12254
+ "title": "Market Id",
12255
+ "description": "Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO."
12118
12256
  }
12119
12257
  },
12120
12258
  "type": "object",
@@ -12167,6 +12305,18 @@
12167
12305
  "title": "Borrow Vault",
12168
12306
  "description": "Euler only: the EVK vault to borrow from. Required when protocol=EULER."
12169
12307
  },
12308
+ "market_id": {
12309
+ "anyOf": [
12310
+ {
12311
+ "type": "string"
12312
+ },
12313
+ {
12314
+ "type": "null"
12315
+ }
12316
+ ],
12317
+ "title": "Market Id",
12318
+ "description": "Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO."
12319
+ },
12170
12320
  "token_in": {
12171
12321
  "anyOf": [
12172
12322
  {
@@ -12595,6 +12745,252 @@
12595
12745
  "title": "CreditFee",
12596
12746
  "description": "Fee configuration for credit-product actions.\n\nSame shape as `Fee`, but narrows `denomination` to the values supported by\ncredit borrows. PERFORMANCE is not supported because realized-profit fees\nare not meaningful for debt positions."
12597
12747
  },
12748
+ "CreditLoopPreview": {
12749
+ "properties": {
12750
+ "iterations": {
12751
+ "type": "integer",
12752
+ "title": "Iterations",
12753
+ "description": "Number of loop iterations bundled."
12754
+ },
12755
+ "total_collateral_supplied": {
12756
+ "type": "string",
12757
+ "title": "Total Collateral Supplied",
12758
+ "description": "Guaranteed minimum total collateral supplied (token units); actual can only be higher (swap fills above the floor become dust)."
12759
+ },
12760
+ "total_borrowed": {
12761
+ "type": "string",
12762
+ "title": "Total Borrowed",
12763
+ "description": "Total loan tokens borrowed across iterations."
12764
+ },
12765
+ "achieved_multiplier": {
12766
+ "type": "string",
12767
+ "title": "Achieved Multiplier",
12768
+ "description": "Guaranteed leverage floor: total_collateral_supplied / initial_collateral_amount."
12769
+ },
12770
+ "projected_ltv": {
12771
+ "type": "string",
12772
+ "title": "Projected Ltv",
12773
+ "description": "Projected end loan-to-value in percent, at the sizing oracle prices."
12774
+ },
12775
+ "projected_health_factor": {
12776
+ "type": "string",
12777
+ "title": "Projected Health Factor",
12778
+ "description": "Projected health factor (liquidation threshold / projected LTV). Below 1 would be liquidatable \u2014 the request is rejected long before that."
12779
+ },
12780
+ "estimated_max_dust": {
12781
+ "type": "string",
12782
+ "title": "Estimated Max Dust",
12783
+ "description": "Upper bound of collateral-token surplus the swaps can leave in the Credit Account (sum of quote \u2212 guaranteed floor per swap). It is bounded by max_slippage_percent per iteration, stays in the account, and is never lost."
12784
+ },
12785
+ "legs": {
12786
+ "items": {
12787
+ "$ref": "#/components/schemas/LoopLegPreview"
12788
+ },
12789
+ "type": "array",
12790
+ "title": "Legs",
12791
+ "description": "Per-iteration breakdown.",
12792
+ "example": []
12793
+ }
12794
+ },
12795
+ "additionalProperties": false,
12796
+ "type": "object",
12797
+ "required": [
12798
+ "iterations",
12799
+ "total_collateral_supplied",
12800
+ "total_borrowed",
12801
+ "achieved_multiplier",
12802
+ "projected_ltv",
12803
+ "projected_health_factor",
12804
+ "estimated_max_dust"
12805
+ ],
12806
+ "title": "CreditLoopPreview",
12807
+ "description": "Projected end state of the loop, computed on GUARANTEED swap floors."
12808
+ },
12809
+ "CreditLoopRequest": {
12810
+ "properties": {
12811
+ "owner": {
12812
+ "type": "string",
12813
+ "title": "Owner",
12814
+ "description": "The address that owns the Credit Account.",
12815
+ "example": "0x5e5b00ed886A6879C2B934612D2312975427fcAf"
12816
+ },
12817
+ "chain": {
12818
+ "$ref": "#/components/schemas/Chain",
12819
+ "description": "Blockchain network.",
12820
+ "example": "ethereum"
12821
+ },
12822
+ "protocol": {
12823
+ "$ref": "#/components/schemas/CreditProtocol",
12824
+ "description": "Lending protocol to loop into: AAVE or MORPHO. EULER looping is not available yet.",
12825
+ "example": "AAVE"
12826
+ },
12827
+ "market_id": {
12828
+ "anyOf": [
12829
+ {
12830
+ "type": "string"
12831
+ },
12832
+ {
12833
+ "type": "null"
12834
+ }
12835
+ ],
12836
+ "title": "Market Id",
12837
+ "description": "Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO."
12838
+ },
12839
+ "collateral_token": {
12840
+ "type": "string",
12841
+ "title": "Token",
12842
+ "description": "Token supplied as collateral each iteration. Must already be in the Credit Account for the initial amount. For MORPHO it must be the market's collateral token.",
12843
+ "example": "WETH"
12844
+ },
12845
+ "borrow_token": {
12846
+ "type": "string",
12847
+ "title": "Token",
12848
+ "description": "Token borrowed each iteration and swapped back to the collateral token. For MORPHO it must be the market's loan token.",
12849
+ "example": "USDC"
12850
+ },
12851
+ "initial_collateral_amount": {
12852
+ "anyOf": [
12853
+ {
12854
+ "type": "number",
12855
+ "exclusiveMinimum": 0.0
12856
+ },
12857
+ {
12858
+ "type": "string",
12859
+ "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
12860
+ }
12861
+ ],
12862
+ "title": "Initial Collateral Amount",
12863
+ "description": "Collateral (in token units) already held in the Credit Account to seed the loop.",
12864
+ "example": 1
12865
+ },
12866
+ "multiplier": {
12867
+ "anyOf": [
12868
+ {
12869
+ "type": "number",
12870
+ "exclusiveMinimum": 1.0
12871
+ },
12872
+ {
12873
+ "type": "string",
12874
+ "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
12875
+ }
12876
+ ],
12877
+ "title": "Multiplier",
12878
+ "description": "Target leverage: total collateral exposure = multiplier \u00d7 initial_collateral_amount. Must be achievable at the requested loan_to_value (max \u2248 0.9 / (1 \u2212 LTV)).",
12879
+ "example": 2
12880
+ },
12881
+ "loan_to_value": {
12882
+ "anyOf": [
12883
+ {
12884
+ "type": "number",
12885
+ "maximum": 100.0,
12886
+ "exclusiveMinimum": 0.0
12887
+ },
12888
+ {
12889
+ "type": "string",
12890
+ "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
12891
+ }
12892
+ ],
12893
+ "title": "Loan To Value",
12894
+ "description": "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.",
12895
+ "example": 70
12896
+ },
12897
+ "max_slippage_percent": {
12898
+ "anyOf": [
12899
+ {
12900
+ "type": "number",
12901
+ "maximum": 10.0,
12902
+ "exclusiveMinimum": 0.0
12903
+ },
12904
+ {
12905
+ "type": "string",
12906
+ "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
12907
+ }
12908
+ ],
12909
+ "title": "Max Slippage Percent",
12910
+ "description": "Per-swap slippage tolerance in percent. Loop dust is bounded by this per iteration, so tighter slippage means less dust.",
12911
+ "example": "0.5"
12912
+ },
12913
+ "emode_category": {
12914
+ "anyOf": [
12915
+ {
12916
+ "type": "integer",
12917
+ "minimum": 0.0
12918
+ },
12919
+ {
12920
+ "type": "null"
12921
+ }
12922
+ ],
12923
+ "title": "Emode Category",
12924
+ "description": "Aave only: e-mode category to enable before looping (higher LTV for correlated pairs, e.g. ETH-correlated)."
12925
+ },
12926
+ "gas_sponsorship": {
12927
+ "type": "boolean",
12928
+ "title": "Gas Sponsorship",
12929
+ "description": "If true, returns EIP-712 typed data for gas-sponsored execution instead of an unsigned transaction.",
12930
+ "example": false
12931
+ }
12932
+ },
12933
+ "type": "object",
12934
+ "required": [
12935
+ "owner",
12936
+ "chain",
12937
+ "collateral_token",
12938
+ "borrow_token",
12939
+ "initial_collateral_amount",
12940
+ "multiplier",
12941
+ "loan_to_value"
12942
+ ],
12943
+ "title": "CreditLoopRequest",
12944
+ "description": "Open a leveraged loop: repeatedly supply collateral, borrow, and swap the\nborrow back to collateral \u2014 all in ONE atomic transaction from the Credit\nAccount.",
12945
+ "example": {
12946
+ "owner": "0x5e5b00ed886A6879C2B934612D2312975427fcAf",
12947
+ "chain": "ethereum",
12948
+ "protocol": "AAVE",
12949
+ "collateral_token": "WETH",
12950
+ "borrow_token": "USDC",
12951
+ "initial_collateral_amount": 1,
12952
+ "multiplier": 2,
12953
+ "loan_to_value": 70,
12954
+ "max_slippage_percent": 0.5,
12955
+ "gas_sponsorship": false
12956
+ }
12957
+ },
12958
+ "CreditLoopResponse": {
12959
+ "properties": {
12960
+ "transaction": {
12961
+ "anyOf": [
12962
+ {
12963
+ "$ref": "#/components/schemas/UnsignedTransaction"
12964
+ },
12965
+ {
12966
+ "type": "null"
12967
+ }
12968
+ ],
12969
+ "description": "Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false."
12970
+ },
12971
+ "eip_712": {
12972
+ "anyOf": [
12973
+ {
12974
+ "$ref": "#/components/schemas/BatchedSafeOperationsResponse-Output"
12975
+ },
12976
+ {
12977
+ "type": "null"
12978
+ }
12979
+ ],
12980
+ "description": "EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship=true."
12981
+ },
12982
+ "preview": {
12983
+ "$ref": "#/components/schemas/CreditLoopPreview",
12984
+ "description": "Projected end state, computed on guaranteed swap floors."
12985
+ }
12986
+ },
12987
+ "type": "object",
12988
+ "required": [
12989
+ "preview"
12990
+ ],
12991
+ "title": "CreditLoopResponse",
12992
+ "description": "The atomic loop transaction plus its guaranteed-floor preview."
12993
+ },
12598
12994
  "CreditPositionsResponse": {
12599
12995
  "properties": {
12600
12996
  "collateral_positions": {
@@ -12672,10 +13068,11 @@
12672
13068
  "type": "string",
12673
13069
  "enum": [
12674
13070
  "AAVE",
12675
- "EULER"
13071
+ "EULER",
13072
+ "MORPHO"
12676
13073
  ],
12677
13074
  "title": "CreditProtocol",
12678
- "description": "Which lending protocol a credit action targets.\n\n``AAVE`` is the default so existing callers (which never send a ``protocol``\nfield) keep hitting the unchanged Aave code path. ``EULER`` opts in to the\nEuler V2 path, where the market is identified by EVK vault address(es)."
13075
+ "description": "Which lending protocol a credit action targets.\n\n``AAVE`` is the default so existing callers (which never send a ``protocol``\nfield) keep hitting the unchanged Aave code path. ``EULER`` opts in to the\nEuler V2 path, where the market is identified by EVK vault address(es).\n``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is\ncurrently read-only: positions and market discovery only \u2014 transaction\nbuilders land with the looping work (COM-7106/7107/7108), so transact\nendpoints reject it with a 422."
12679
13076
  },
12680
13077
  "CreditRepayParams": {
12681
13078
  "properties": {
@@ -12725,6 +13122,18 @@
12725
13122
  ],
12726
13123
  "title": "Borrow Vault",
12727
13124
  "description": "Euler only: the EVK vault the debt is owed to. Required when protocol=EULER."
13125
+ },
13126
+ "market_id": {
13127
+ "anyOf": [
13128
+ {
13129
+ "type": "string"
13130
+ },
13131
+ {
13132
+ "type": "null"
13133
+ }
13134
+ ],
13135
+ "title": "Market Id",
13136
+ "description": "Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO."
12728
13137
  }
12729
13138
  },
12730
13139
  "type": "object",
@@ -12765,6 +13174,18 @@
12765
13174
  "title": "Borrow Vault",
12766
13175
  "description": "Euler only: the EVK vault the debt is owed to (repay target). Required when protocol=EULER."
12767
13176
  },
13177
+ "market_id": {
13178
+ "anyOf": [
13179
+ {
13180
+ "type": "string"
13181
+ },
13182
+ {
13183
+ "type": "null"
13184
+ }
13185
+ ],
13186
+ "title": "Market Id",
13187
+ "description": "Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO."
13188
+ },
12768
13189
  "collateral_vault": {
12769
13190
  "anyOf": [
12770
13191
  {
@@ -13015,6 +13436,18 @@
13015
13436
  ],
13016
13437
  "title": "Collateral Vault",
13017
13438
  "description": "Euler only: the EVK collateral vault to supply into. Required when protocol=EULER."
13439
+ },
13440
+ "market_id": {
13441
+ "anyOf": [
13442
+ {
13443
+ "type": "string"
13444
+ },
13445
+ {
13446
+ "type": "null"
13447
+ }
13448
+ ],
13449
+ "title": "Market Id",
13450
+ "description": "Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO."
13018
13451
  }
13019
13452
  },
13020
13453
  "type": "object",
@@ -13275,6 +13708,18 @@
13275
13708
  ],
13276
13709
  "title": "Collateral Vault",
13277
13710
  "description": "Euler only: the EVK collateral vault to withdraw from. Required when protocol=EULER."
13711
+ },
13712
+ "market_id": {
13713
+ "anyOf": [
13714
+ {
13715
+ "type": "string"
13716
+ },
13717
+ {
13718
+ "type": "null"
13719
+ }
13720
+ ],
13721
+ "title": "Market Id",
13722
+ "description": "Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO."
13278
13723
  }
13279
13724
  },
13280
13725
  "type": "object",
@@ -13314,6 +13759,30 @@
13314
13759
  "title": "Vault",
13315
13760
  "description": "Euler only: the EVK borrow vault this debt is owed to."
13316
13761
  },
13762
+ "market_id": {
13763
+ "anyOf": [
13764
+ {
13765
+ "type": "string"
13766
+ },
13767
+ {
13768
+ "type": "null"
13769
+ }
13770
+ ],
13771
+ "title": "Market Id",
13772
+ "description": "Morpho only: the bytes32 id of the isolated market this debt is owed to."
13773
+ },
13774
+ "health_factor": {
13775
+ "anyOf": [
13776
+ {
13777
+ "type": "string"
13778
+ },
13779
+ {
13780
+ "type": "null"
13781
+ }
13782
+ ],
13783
+ "title": "Health Factor",
13784
+ "description": "Morpho only: this market's health factor (markets are isolated, so health is per market \u2014 below 1 the position is liquidatable). Null for other protocols and when the oracle read fails."
13785
+ },
13317
13786
  "amount_borrowed": {
13318
13787
  "anyOf": [
13319
13788
  {
@@ -16537,6 +17006,53 @@
16537
17006
  "title": "ListAaveMarketsResponse",
16538
17007
  "description": "Response containing Aave market rates organized by token symbol."
16539
17008
  },
17009
+ "LoopLegPreview": {
17010
+ "properties": {
17011
+ "supply_amount": {
17012
+ "anyOf": [
17013
+ {
17014
+ "type": "string"
17015
+ },
17016
+ {
17017
+ "type": "null"
17018
+ }
17019
+ ],
17020
+ "title": "Supply Amount",
17021
+ "description": "Collateral supplied this iteration (token units)."
17022
+ },
17023
+ "borrow_amount": {
17024
+ "anyOf": [
17025
+ {
17026
+ "type": "string"
17027
+ },
17028
+ {
17029
+ "type": "null"
17030
+ }
17031
+ ],
17032
+ "title": "Borrow Amount",
17033
+ "description": "Loan borrowed this iteration; null on the final supply-only iteration."
17034
+ },
17035
+ "min_swap_out": {
17036
+ "anyOf": [
17037
+ {
17038
+ "type": "string"
17039
+ },
17040
+ {
17041
+ "type": "null"
17042
+ }
17043
+ ],
17044
+ "title": "Min Swap Out",
17045
+ "description": "Guaranteed swap output (collateral units) \u2014 the next iteration's supply. Enforced on-chain by the swap's minimum-return."
17046
+ }
17047
+ },
17048
+ "additionalProperties": false,
17049
+ "type": "object",
17050
+ "required": [
17051
+ "supply_amount"
17052
+ ],
17053
+ "title": "LoopLegPreview",
17054
+ "description": "One planned loop iteration."
17055
+ },
16540
17056
  "LpBalance": {
16541
17057
  "properties": {
16542
17058
  "valuation": {
@@ -17657,6 +18173,130 @@
17657
18173
  ],
17658
18174
  "title": "MorphoGetVaultsResponse"
17659
18175
  },
18176
+ "MorphoLendingMarket": {
18177
+ "properties": {
18178
+ "market_id": {
18179
+ "type": "string",
18180
+ "title": "Market Id",
18181
+ "description": "Morpho Blue market id \u2014 the bytes32 keccak of the market's (loanToken, collateralToken, oracle, irm, lltv) tuple. Pass this to the Morpho credit actions to identify the market."
18182
+ },
18183
+ "loan_token": {
18184
+ "type": "string",
18185
+ "title": "Loan Token",
18186
+ "description": "Token that is supplied and borrowed in this market."
18187
+ },
18188
+ "loan_token_symbol": {
18189
+ "type": "string",
18190
+ "title": "Loan Token Symbol",
18191
+ "description": "Symbol of the loan token (e.g. USDC)."
18192
+ },
18193
+ "loan_token_decimals": {
18194
+ "type": "integer",
18195
+ "title": "Loan Token Decimals",
18196
+ "description": "Decimals of the loan token."
18197
+ },
18198
+ "collateral_token": {
18199
+ "type": "string",
18200
+ "title": "Collateral Token",
18201
+ "description": "Token accepted as collateral in this market."
18202
+ },
18203
+ "collateral_token_symbol": {
18204
+ "type": "string",
18205
+ "title": "Collateral Token Symbol",
18206
+ "description": "Symbol of the collateral token (e.g. wstETH)."
18207
+ },
18208
+ "collateral_token_decimals": {
18209
+ "type": "integer",
18210
+ "title": "Collateral Token Decimals",
18211
+ "description": "Decimals of the collateral token."
18212
+ },
18213
+ "oracle": {
18214
+ "type": "string",
18215
+ "title": "Oracle",
18216
+ "description": "Oracle pricing the collateral in loan-token terms for this market."
18217
+ },
18218
+ "irm": {
18219
+ "type": "string",
18220
+ "title": "Irm",
18221
+ "description": "Interest rate model contract of this market."
18222
+ },
18223
+ "lltv": {
18224
+ "type": "string",
18225
+ "title": "Lltv",
18226
+ "description": "Liquidation loan-to-value in percentage (e.g. 86 means a position is liquidatable once debt exceeds 86% of collateral value)."
18227
+ },
18228
+ "supply_apy": {
18229
+ "anyOf": [
18230
+ {
18231
+ "type": "string"
18232
+ },
18233
+ {
18234
+ "type": "null"
18235
+ }
18236
+ ],
18237
+ "title": "Supply Apy",
18238
+ "description": "Current supply APY for lending the loan token, in percentage (e.g. 3.5 means 3.5%). Null if the rate is unavailable."
18239
+ },
18240
+ "borrow_apy": {
18241
+ "anyOf": [
18242
+ {
18243
+ "type": "string"
18244
+ },
18245
+ {
18246
+ "type": "null"
18247
+ }
18248
+ ],
18249
+ "title": "Borrow Apy",
18250
+ "description": "Current borrow APY for the loan token, in percentage (e.g. 5.25 means 5.25%). Null if the rate is unavailable."
18251
+ },
18252
+ "utilization": {
18253
+ "type": "string",
18254
+ "title": "Utilization",
18255
+ "description": "Borrowed share of supplied assets, in percentage 0-100."
18256
+ },
18257
+ "total_supply_assets": {
18258
+ "type": "string",
18259
+ "title": "Total Supply Assets",
18260
+ "description": "Total loan tokens supplied to the market, in token units."
18261
+ },
18262
+ "total_borrow_assets": {
18263
+ "type": "string",
18264
+ "title": "Total Borrow Assets",
18265
+ "description": "Total loan tokens borrowed from the market, in token units."
18266
+ },
18267
+ "available_liquidity": {
18268
+ "type": "string",
18269
+ "title": "Available Liquidity",
18270
+ "description": "Loan tokens available to borrow or withdraw (supplied - borrowed), in token units."
18271
+ },
18272
+ "fee": {
18273
+ "type": "string",
18274
+ "title": "Fee",
18275
+ "description": "Protocol fee taken from interest, in percentage of interest (e.g. 0 means no fee)."
18276
+ }
18277
+ },
18278
+ "additionalProperties": false,
18279
+ "type": "object",
18280
+ "required": [
18281
+ "market_id",
18282
+ "loan_token",
18283
+ "loan_token_symbol",
18284
+ "loan_token_decimals",
18285
+ "collateral_token",
18286
+ "collateral_token_symbol",
18287
+ "collateral_token_decimals",
18288
+ "oracle",
18289
+ "irm",
18290
+ "lltv",
18291
+ "utilization",
18292
+ "total_supply_assets",
18293
+ "total_borrow_assets",
18294
+ "available_liquidity",
18295
+ "fee"
18296
+ ],
18297
+ "title": "MorphoLendingMarket",
18298
+ "description": "A Morpho Blue lending market: one isolated (collateral, loan) pair."
18299
+ },
17660
18300
  "MorphoMarket": {
17661
18301
  "properties": {
17662
18302
  "uniqueKey": {
@@ -17707,6 +18347,30 @@
17707
18347
  ],
17708
18348
  "title": "MorphoMarket"
17709
18349
  },
18350
+ "MorphoMarketsResponse": {
18351
+ "properties": {
18352
+ "morpho": {
18353
+ "type": "string",
18354
+ "title": "Morpho",
18355
+ "description": "Morpho Blue singleton contract the markets were read from."
18356
+ },
18357
+ "markets": {
18358
+ "items": {
18359
+ "$ref": "#/components/schemas/MorphoLendingMarket"
18360
+ },
18361
+ "type": "array",
18362
+ "title": "Markets",
18363
+ "description": "Curated lending markets with live LLTV, APYs, utilization, and liquidity.",
18364
+ "example": []
18365
+ }
18366
+ },
18367
+ "type": "object",
18368
+ "required": [
18369
+ "morpho"
18370
+ ],
18371
+ "title": "MorphoMarketsResponse",
18372
+ "description": "Curated Morpho Blue lending markets, read on-chain per request."
18373
+ },
17710
18374
  "MorphoRepayParams": {
17711
18375
  "properties": {
17712
18376
  "action_type": {