@underscore-finance/sdk 1.2.20-next.0 → 1.2.20-next.1

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 (254) hide show
  1. package/.claude/settings.local.json +31 -0
  2. package/.eslintrc.json +27 -0
  3. package/.prettierrc +9 -0
  4. package/.tool-versions +1 -0
  5. package/LICENSE +41 -0
  6. package/LICENSE_DATE.md +34 -0
  7. package/LICENSE_GRANTS.md +33 -0
  8. package/LICENSE_INFO.md +90 -0
  9. package/README.md +116 -17
  10. package/dapp.config.js +154 -0
  11. package/package.json +17 -44
  12. package/src/getSwapInstructions.ts +55 -0
  13. package/src/index.ts +192 -0
  14. package/tsconfig.json +18 -0
  15. package/AGENTS.md +0 -162
  16. package/abis.json +0 -181875
  17. package/addresses.json +0 -76
  18. package/dist/contracts/AaveV3.d.ts +0 -2594
  19. package/dist/contracts/AaveV3.d.ts.map +0 -1
  20. package/dist/contracts/AaveV3.js +0 -3272
  21. package/dist/contracts/AeroClassic.d.ts +0 -2118
  22. package/dist/contracts/AeroClassic.d.ts.map +0 -1
  23. package/dist/contracts/AeroClassic.js +0 -2679
  24. package/dist/contracts/AeroSlipstream.d.ts +0 -2256
  25. package/dist/contracts/AeroSlipstream.d.ts.map +0 -1
  26. package/dist/contracts/AeroSlipstream.js +0 -2848
  27. package/dist/contracts/AgentSenderGeneric.d.ts +0 -4129
  28. package/dist/contracts/AgentSenderGeneric.d.ts.map +0 -1
  29. package/dist/contracts/AgentSenderGeneric.js +0 -5397
  30. package/dist/contracts/AgentSenderSpecial.d.ts +0 -1997
  31. package/dist/contracts/AgentSenderSpecial.d.ts.map +0 -1
  32. package/dist/contracts/AgentSenderSpecial.js +0 -2532
  33. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +0 -2245
  34. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +0 -1
  35. package/dist/contracts/AgentSenderSpecialSigHelper.js +0 -2971
  36. package/dist/contracts/AgentWrapper.d.ts +0 -2520
  37. package/dist/contracts/AgentWrapper.d.ts.map +0 -1
  38. package/dist/contracts/AgentWrapper.js +0 -3389
  39. package/dist/contracts/AgentWrapperV1.d.ts +0 -3789
  40. package/dist/contracts/AgentWrapperV1.d.ts.map +0 -1
  41. package/dist/contracts/AgentWrapperV1.js +0 -4945
  42. package/dist/contracts/AgentWrapperV2.d.ts +0 -2494
  43. package/dist/contracts/AgentWrapperV2.d.ts.map +0 -1
  44. package/dist/contracts/AgentWrapperV2.js +0 -3354
  45. package/dist/contracts/Appraiser.d.ts +0 -577
  46. package/dist/contracts/Appraiser.d.ts.map +0 -1
  47. package/dist/contracts/Appraiser.js +0 -735
  48. package/dist/contracts/Avantis.d.ts +0 -2606
  49. package/dist/contracts/Avantis.d.ts.map +0 -1
  50. package/dist/contracts/Avantis.js +0 -3282
  51. package/dist/contracts/Billing.d.ts +0 -381
  52. package/dist/contracts/Billing.d.ts.map +0 -1
  53. package/dist/contracts/Billing.js +0 -451
  54. package/dist/contracts/ChequeBook.d.ts +0 -1704
  55. package/dist/contracts/ChequeBook.d.ts.map +0 -1
  56. package/dist/contracts/ChequeBook.js +0 -1922
  57. package/dist/contracts/CompoundV3.d.ts +0 -2622
  58. package/dist/contracts/CompoundV3.d.ts.map +0 -1
  59. package/dist/contracts/CompoundV3.js +0 -3304
  60. package/dist/contracts/ConvertVaultToken.d.ts +0 -64
  61. package/dist/contracts/ConvertVaultToken.d.ts.map +0 -1
  62. package/dist/contracts/ConvertVaultToken.js +0 -75
  63. package/dist/contracts/Curve.d.ts +0 -1107
  64. package/dist/contracts/Curve.d.ts.map +0 -1
  65. package/dist/contracts/Curve.js +0 -1379
  66. package/dist/contracts/DefaultsBase.d.ts +0 -306
  67. package/dist/contracts/DefaultsBase.d.ts.map +0 -1
  68. package/dist/contracts/DefaultsBase.js +0 -331
  69. package/dist/contracts/ERC20.d.ts +0 -288
  70. package/dist/contracts/ERC20.d.ts.map +0 -1
  71. package/dist/contracts/ERC20.js +0 -359
  72. package/dist/contracts/EarnVault.d.ts +0 -1733
  73. package/dist/contracts/EarnVault.d.ts.map +0 -1
  74. package/dist/contracts/EarnVault.js +0 -2235
  75. package/dist/contracts/EarnVaultAgent.d.ts +0 -1033
  76. package/dist/contracts/EarnVaultAgent.d.ts.map +0 -1
  77. package/dist/contracts/EarnVaultAgent.js +0 -1296
  78. package/dist/contracts/EarnVaultAgentSigHelper.d.ts +0 -905
  79. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +0 -1
  80. package/dist/contracts/EarnVaultAgentSigHelper.js +0 -1198
  81. package/dist/contracts/Euler.d.ts +0 -2662
  82. package/dist/contracts/Euler.d.ts.map +0 -1
  83. package/dist/contracts/Euler.js +0 -3350
  84. package/dist/contracts/ExtraFi.d.ts +0 -2637
  85. package/dist/contracts/ExtraFi.d.ts.map +0 -1
  86. package/dist/contracts/ExtraFi.js +0 -3323
  87. package/dist/contracts/Fluid.d.ts +0 -2634
  88. package/dist/contracts/Fluid.d.ts.map +0 -1
  89. package/dist/contracts/Fluid.js +0 -3318
  90. package/dist/contracts/FortyAcres.d.ts +0 -2620
  91. package/dist/contracts/FortyAcres.d.ts.map +0 -1
  92. package/dist/contracts/FortyAcres.js +0 -3300
  93. package/dist/contracts/Hatchery.d.ts +0 -392
  94. package/dist/contracts/Hatchery.d.ts.map +0 -1
  95. package/dist/contracts/Hatchery.js +0 -472
  96. package/dist/contracts/Helpers.d.ts +0 -1463
  97. package/dist/contracts/Helpers.d.ts.map +0 -1
  98. package/dist/contracts/Helpers.js +0 -1763
  99. package/dist/contracts/HighCommand.d.ts +0 -2129
  100. package/dist/contracts/HighCommand.d.ts.map +0 -1
  101. package/dist/contracts/HighCommand.js +0 -2429
  102. package/dist/contracts/Kernel.d.ts +0 -387
  103. package/dist/contracts/Kernel.d.ts.map +0 -1
  104. package/dist/contracts/Kernel.js +0 -442
  105. package/dist/contracts/Ledger.d.ts +0 -708
  106. package/dist/contracts/Ledger.d.ts.map +0 -1
  107. package/dist/contracts/Ledger.js +0 -854
  108. package/dist/contracts/LegoBook.d.ts +0 -1463
  109. package/dist/contracts/LegoBook.d.ts.map +0 -1
  110. package/dist/contracts/LegoBook.js +0 -1763
  111. package/dist/contracts/LegoTools.d.ts +0 -1913
  112. package/dist/contracts/LegoTools.d.ts.map +0 -1
  113. package/dist/contracts/LegoTools.js +0 -2402
  114. package/dist/contracts/LevgVault.d.ts +0 -2115
  115. package/dist/contracts/LevgVault.d.ts.map +0 -1
  116. package/dist/contracts/LevgVault.js +0 -2733
  117. package/dist/contracts/LevgVaultAgent.d.ts +0 -1955
  118. package/dist/contracts/LevgVaultAgent.d.ts.map +0 -1
  119. package/dist/contracts/LevgVaultAgent.js +0 -2508
  120. package/dist/contracts/LevgVaultAgentSigHelper.d.ts +0 -2221
  121. package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +0 -1
  122. package/dist/contracts/LevgVaultAgentSigHelper.js +0 -2963
  123. package/dist/contracts/LevgVaultHelper.d.ts +0 -977
  124. package/dist/contracts/LevgVaultHelper.d.ts.map +0 -1
  125. package/dist/contracts/LevgVaultHelper.js +0 -1289
  126. package/dist/contracts/LevgVaultTools.d.ts +0 -2629
  127. package/dist/contracts/LevgVaultTools.d.ts.map +0 -1
  128. package/dist/contracts/LevgVaultTools.js +0 -3560
  129. package/dist/contracts/LootDistributor.d.ts +0 -1053
  130. package/dist/contracts/LootDistributor.d.ts.map +0 -1
  131. package/dist/contracts/LootDistributor.js +0 -1291
  132. package/dist/contracts/Migrator.d.ts +0 -289
  133. package/dist/contracts/Migrator.d.ts.map +0 -1
  134. package/dist/contracts/Migrator.js +0 -348
  135. package/dist/contracts/MissionControl.d.ts +0 -1405
  136. package/dist/contracts/MissionControl.d.ts.map +0 -1
  137. package/dist/contracts/MissionControl.js +0 -1592
  138. package/dist/contracts/Moonwell.d.ts +0 -2623
  139. package/dist/contracts/Moonwell.d.ts.map +0 -1
  140. package/dist/contracts/Moonwell.js +0 -3304
  141. package/dist/contracts/Morpho.d.ts +0 -2662
  142. package/dist/contracts/Morpho.d.ts.map +0 -1
  143. package/dist/contracts/Morpho.js +0 -3350
  144. package/dist/contracts/Paymaster.d.ts +0 -1714
  145. package/dist/contracts/Paymaster.d.ts.map +0 -1
  146. package/dist/contracts/Paymaster.js +0 -2098
  147. package/dist/contracts/RipeLego.d.ts +0 -2913
  148. package/dist/contracts/RipeLego.d.ts.map +0 -1
  149. package/dist/contracts/RipeLego.js +0 -3643
  150. package/dist/contracts/Sentinel.d.ts +0 -2064
  151. package/dist/contracts/Sentinel.d.ts.map +0 -1
  152. package/dist/contracts/Sentinel.js +0 -2476
  153. package/dist/contracts/SignatureHelper.d.ts +0 -4250
  154. package/dist/contracts/SignatureHelper.d.ts.map +0 -1
  155. package/dist/contracts/SignatureHelper.js +0 -5714
  156. package/dist/contracts/SignatureHelperV1.d.ts +0 -4250
  157. package/dist/contracts/SignatureHelperV1.d.ts.map +0 -1
  158. package/dist/contracts/SignatureHelperV1.js +0 -5714
  159. package/dist/contracts/SkyPsm.d.ts +0 -2667
  160. package/dist/contracts/SkyPsm.d.ts.map +0 -1
  161. package/dist/contracts/SkyPsm.js +0 -3356
  162. package/dist/contracts/Switchboard.d.ts +0 -1483
  163. package/dist/contracts/Switchboard.d.ts.map +0 -1
  164. package/dist/contracts/Switchboard.js +0 -1790
  165. package/dist/contracts/SwitchboardAlpha.d.ts +0 -3161
  166. package/dist/contracts/SwitchboardAlpha.d.ts.map +0 -1
  167. package/dist/contracts/SwitchboardAlpha.js +0 -3771
  168. package/dist/contracts/SwitchboardBravo.d.ts +0 -1591
  169. package/dist/contracts/SwitchboardBravo.d.ts.map +0 -1
  170. package/dist/contracts/SwitchboardBravo.js +0 -1872
  171. package/dist/contracts/SwitchboardCharlie.d.ts +0 -3172
  172. package/dist/contracts/SwitchboardCharlie.d.ts.map +0 -1
  173. package/dist/contracts/SwitchboardCharlie.js +0 -3713
  174. package/dist/contracts/UnderscoreLego.d.ts +0 -2592
  175. package/dist/contracts/UnderscoreLego.d.ts.map +0 -1
  176. package/dist/contracts/UnderscoreLego.js +0 -3264
  177. package/dist/contracts/UndyAero.d.ts +0 -1733
  178. package/dist/contracts/UndyAero.d.ts.map +0 -1
  179. package/dist/contracts/UndyAero.js +0 -2235
  180. package/dist/contracts/UndyBtc.d.ts +0 -1733
  181. package/dist/contracts/UndyBtc.d.ts.map +0 -1
  182. package/dist/contracts/UndyBtc.js +0 -2235
  183. package/dist/contracts/UndyCbeth.d.ts +0 -1733
  184. package/dist/contracts/UndyCbeth.d.ts.map +0 -1
  185. package/dist/contracts/UndyCbeth.js +0 -2235
  186. package/dist/contracts/UndyEth.d.ts +0 -1733
  187. package/dist/contracts/UndyEth.d.ts.map +0 -1
  188. package/dist/contracts/UndyEth.js +0 -2235
  189. package/dist/contracts/UndyEurc.d.ts +0 -1733
  190. package/dist/contracts/UndyEurc.d.ts.map +0 -1
  191. package/dist/contracts/UndyEurc.js +0 -2235
  192. package/dist/contracts/UndyGho.d.ts +0 -1733
  193. package/dist/contracts/UndyGho.d.ts.map +0 -1
  194. package/dist/contracts/UndyGho.js +0 -2235
  195. package/dist/contracts/UndyHq.d.ts +0 -1677
  196. package/dist/contracts/UndyHq.d.ts.map +0 -1
  197. package/dist/contracts/UndyHq.js +0 -2026
  198. package/dist/contracts/UndyRewardsLego.d.ts +0 -1572
  199. package/dist/contracts/UndyRewardsLego.d.ts.map +0 -1
  200. package/dist/contracts/UndyRewardsLego.js +0 -1994
  201. package/dist/contracts/UndyUsd.d.ts +0 -1733
  202. package/dist/contracts/UndyUsd.d.ts.map +0 -1
  203. package/dist/contracts/UndyUsd.js +0 -2235
  204. package/dist/contracts/UndyUsdV2.d.ts +0 -1762
  205. package/dist/contracts/UndyUsdV2.d.ts.map +0 -1
  206. package/dist/contracts/UndyUsdV2.js +0 -2267
  207. package/dist/contracts/UndyUsds.d.ts +0 -1733
  208. package/dist/contracts/UndyUsds.d.ts.map +0 -1
  209. package/dist/contracts/UndyUsds.js +0 -2235
  210. package/dist/contracts/UndyVirtual.d.ts +0 -1762
  211. package/dist/contracts/UndyVirtual.d.ts.map +0 -1
  212. package/dist/contracts/UndyVirtual.js +0 -2267
  213. package/dist/contracts/UniswapV2.d.ts +0 -2118
  214. package/dist/contracts/UniswapV2.d.ts.map +0 -1
  215. package/dist/contracts/UniswapV2.js +0 -2679
  216. package/dist/contracts/UniswapV3.d.ts +0 -2256
  217. package/dist/contracts/UniswapV3.d.ts.map +0 -1
  218. package/dist/contracts/UniswapV3.js +0 -2848
  219. package/dist/contracts/UserWallet.d.ts +0 -2650
  220. package/dist/contracts/UserWallet.d.ts.map +0 -1
  221. package/dist/contracts/UserWallet.js +0 -3520
  222. package/dist/contracts/UserWalletConfig.d.ts +0 -3901
  223. package/dist/contracts/UserWalletConfig.d.ts.map +0 -1
  224. package/dist/contracts/UserWalletConfig.js +0 -4507
  225. package/dist/contracts/UserWalletConfigV1.d.ts +0 -3692
  226. package/dist/contracts/UserWalletConfigV1.d.ts.map +0 -1
  227. package/dist/contracts/UserWalletConfigV1.js +0 -4276
  228. package/dist/contracts/UserWalletSignatureHelper.d.ts +0 -4552
  229. package/dist/contracts/UserWalletSignatureHelper.d.ts.map +0 -1
  230. package/dist/contracts/UserWalletSignatureHelper.js +0 -6123
  231. package/dist/contracts/UserWalletV1.d.ts +0 -2650
  232. package/dist/contracts/UserWalletV1.d.ts.map +0 -1
  233. package/dist/contracts/UserWalletV1.js +0 -3520
  234. package/dist/contracts/VaultRegistry.d.ts +0 -3162
  235. package/dist/contracts/VaultRegistry.d.ts.map +0 -1
  236. package/dist/contracts/VaultRegistry.js +0 -3893
  237. package/dist/contracts/WalletBackpack.d.ts +0 -1248
  238. package/dist/contracts/WalletBackpack.d.ts.map +0 -1
  239. package/dist/contracts/WalletBackpack.js +0 -1519
  240. package/dist/contracts/Wasabi.d.ts +0 -2620
  241. package/dist/contracts/Wasabi.d.ts.map +0 -1
  242. package/dist/contracts/Wasabi.js +0 -3300
  243. package/dist/contracts/index.d.ts +0 -76
  244. package/dist/contracts/index.d.ts.map +0 -1
  245. package/dist/contracts/index.js +0 -79
  246. package/dist/contracts/sdk.d.ts +0 -156
  247. package/dist/contracts/sdk.d.ts.map +0 -1
  248. package/dist/contracts/sdk.js +0 -158
  249. package/dist/getSwapInstructions.d.ts +0 -34
  250. package/dist/getSwapInstructions.d.ts.map +0 -1
  251. package/dist/getSwapInstructions.js +0 -21
  252. package/dist/index.d.ts +0 -135
  253. package/dist/index.d.ts.map +0 -1
  254. package/dist/index.js +0 -137
@@ -1,3560 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /* @ts-nocheck */
5
- import { singleQuery } from '@dappql/async';
6
- export const abi = [
7
- {
8
- "stateMutability": "view",
9
- "type": "function",
10
- "name": "getAddys",
11
- "inputs": [],
12
- "outputs": [
13
- {
14
- "name": "",
15
- "type": "tuple",
16
- "components": [
17
- {
18
- "name": "hq",
19
- "type": "address"
20
- },
21
- {
22
- "name": "undyToken",
23
- "type": "address"
24
- },
25
- {
26
- "name": "ledger",
27
- "type": "address"
28
- },
29
- {
30
- "name": "missionControl",
31
- "type": "address"
32
- },
33
- {
34
- "name": "legoBook",
35
- "type": "address"
36
- },
37
- {
38
- "name": "switchboard",
39
- "type": "address"
40
- },
41
- {
42
- "name": "hatchery",
43
- "type": "address"
44
- },
45
- {
46
- "name": "lootDistributor",
47
- "type": "address"
48
- },
49
- {
50
- "name": "appraiser",
51
- "type": "address"
52
- },
53
- {
54
- "name": "walletBackpack",
55
- "type": "address"
56
- },
57
- {
58
- "name": "billing",
59
- "type": "address"
60
- },
61
- {
62
- "name": "vaultRegistry",
63
- "type": "address"
64
- }
65
- ]
66
- }
67
- ]
68
- },
69
- {
70
- "stateMutability": "view",
71
- "type": "function",
72
- "name": "getUndyHq",
73
- "inputs": [],
74
- "outputs": [
75
- {
76
- "name": "",
77
- "type": "address"
78
- }
79
- ]
80
- },
81
- {
82
- "stateMutability": "view",
83
- "type": "function",
84
- "name": "getTotalUnderlyingAmount",
85
- "inputs": [
86
- {
87
- "name": "_levgVault",
88
- "type": "address"
89
- },
90
- {
91
- "name": "_isCollateralAsset",
92
- "type": "bool"
93
- },
94
- {
95
- "name": "_shouldGetMax",
96
- "type": "bool"
97
- }
98
- ],
99
- "outputs": [
100
- {
101
- "name": "",
102
- "type": "uint256"
103
- }
104
- ]
105
- },
106
- {
107
- "stateMutability": "view",
108
- "type": "function",
109
- "name": "getTotalUnderlyingAmount",
110
- "inputs": [
111
- {
112
- "name": "_levgVault",
113
- "type": "address"
114
- },
115
- {
116
- "name": "_isCollateralAsset",
117
- "type": "bool"
118
- },
119
- {
120
- "name": "_shouldGetMax",
121
- "type": "bool"
122
- },
123
- {
124
- "name": "_legoBook",
125
- "type": "address"
126
- }
127
- ],
128
- "outputs": [
129
- {
130
- "name": "",
131
- "type": "uint256"
132
- }
133
- ]
134
- },
135
- {
136
- "stateMutability": "view",
137
- "type": "function",
138
- "name": "getTotalUnderlyingAmount",
139
- "inputs": [
140
- {
141
- "name": "_levgVault",
142
- "type": "address"
143
- },
144
- {
145
- "name": "_isCollateralAsset",
146
- "type": "bool"
147
- },
148
- {
149
- "name": "_shouldGetMax",
150
- "type": "bool"
151
- },
152
- {
153
- "name": "_legoBook",
154
- "type": "address"
155
- },
156
- {
157
- "name": "_ripeVaultBook",
158
- "type": "address"
159
- }
160
- ],
161
- "outputs": [
162
- {
163
- "name": "",
164
- "type": "uint256"
165
- }
166
- ]
167
- },
168
- {
169
- "stateMutability": "view",
170
- "type": "function",
171
- "name": "getTotalUnderlyingAmount",
172
- "inputs": [
173
- {
174
- "name": "_levgVault",
175
- "type": "address"
176
- },
177
- {
178
- "name": "_isCollateralAsset",
179
- "type": "bool"
180
- },
181
- {
182
- "name": "_shouldGetMax",
183
- "type": "bool"
184
- },
185
- {
186
- "name": "_legoBook",
187
- "type": "address"
188
- },
189
- {
190
- "name": "_ripeVaultBook",
191
- "type": "address"
192
- },
193
- {
194
- "name": "_ripeMissionControl",
195
- "type": "address"
196
- }
197
- ],
198
- "outputs": [
199
- {
200
- "name": "",
201
- "type": "uint256"
202
- }
203
- ]
204
- },
205
- {
206
- "stateMutability": "view",
207
- "type": "function",
208
- "name": "getTotalUnderlyingAmount",
209
- "inputs": [
210
- {
211
- "name": "_levgVault",
212
- "type": "address"
213
- },
214
- {
215
- "name": "_isCollateralAsset",
216
- "type": "bool"
217
- },
218
- {
219
- "name": "_shouldGetMax",
220
- "type": "bool"
221
- },
222
- {
223
- "name": "_legoBook",
224
- "type": "address"
225
- },
226
- {
227
- "name": "_ripeVaultBook",
228
- "type": "address"
229
- },
230
- {
231
- "name": "_ripeMissionControl",
232
- "type": "address"
233
- },
234
- {
235
- "name": "_ripeHq",
236
- "type": "address"
237
- }
238
- ],
239
- "outputs": [
240
- {
241
- "name": "",
242
- "type": "uint256"
243
- }
244
- ]
245
- },
246
- {
247
- "stateMutability": "view",
248
- "type": "function",
249
- "name": "getAmountForAsset",
250
- "inputs": [
251
- {
252
- "name": "_levgVault",
253
- "type": "address"
254
- },
255
- {
256
- "name": "_asset",
257
- "type": "address"
258
- }
259
- ],
260
- "outputs": [
261
- {
262
- "name": "",
263
- "type": "uint256"
264
- }
265
- ]
266
- },
267
- {
268
- "stateMutability": "view",
269
- "type": "function",
270
- "name": "getAmountForAsset",
271
- "inputs": [
272
- {
273
- "name": "_levgVault",
274
- "type": "address"
275
- },
276
- {
277
- "name": "_asset",
278
- "type": "address"
279
- },
280
- {
281
- "name": "_ripeVaultId",
282
- "type": "uint256"
283
- }
284
- ],
285
- "outputs": [
286
- {
287
- "name": "",
288
- "type": "uint256"
289
- }
290
- ]
291
- },
292
- {
293
- "stateMutability": "view",
294
- "type": "function",
295
- "name": "getAmountForAsset",
296
- "inputs": [
297
- {
298
- "name": "_levgVault",
299
- "type": "address"
300
- },
301
- {
302
- "name": "_asset",
303
- "type": "address"
304
- },
305
- {
306
- "name": "_ripeVaultId",
307
- "type": "uint256"
308
- },
309
- {
310
- "name": "_ripeVaultBook",
311
- "type": "address"
312
- }
313
- ],
314
- "outputs": [
315
- {
316
- "name": "",
317
- "type": "uint256"
318
- }
319
- ]
320
- },
321
- {
322
- "stateMutability": "view",
323
- "type": "function",
324
- "name": "getAmountForAsset",
325
- "inputs": [
326
- {
327
- "name": "_levgVault",
328
- "type": "address"
329
- },
330
- {
331
- "name": "_asset",
332
- "type": "address"
333
- },
334
- {
335
- "name": "_ripeVaultId",
336
- "type": "uint256"
337
- },
338
- {
339
- "name": "_ripeVaultBook",
340
- "type": "address"
341
- },
342
- {
343
- "name": "_ripeMissionControl",
344
- "type": "address"
345
- }
346
- ],
347
- "outputs": [
348
- {
349
- "name": "",
350
- "type": "uint256"
351
- }
352
- ]
353
- },
354
- {
355
- "stateMutability": "view",
356
- "type": "function",
357
- "name": "getAmountForAsset",
358
- "inputs": [
359
- {
360
- "name": "_levgVault",
361
- "type": "address"
362
- },
363
- {
364
- "name": "_asset",
365
- "type": "address"
366
- },
367
- {
368
- "name": "_ripeVaultId",
369
- "type": "uint256"
370
- },
371
- {
372
- "name": "_ripeVaultBook",
373
- "type": "address"
374
- },
375
- {
376
- "name": "_ripeMissionControl",
377
- "type": "address"
378
- },
379
- {
380
- "name": "_ripeHq",
381
- "type": "address"
382
- }
383
- ],
384
- "outputs": [
385
- {
386
- "name": "",
387
- "type": "uint256"
388
- }
389
- ]
390
- },
391
- {
392
- "stateMutability": "view",
393
- "type": "function",
394
- "name": "getUnderlyingAmountForVaultToken",
395
- "inputs": [
396
- {
397
- "name": "_levgVault",
398
- "type": "address"
399
- },
400
- {
401
- "name": "_isCollateralAsset",
402
- "type": "bool"
403
- },
404
- {
405
- "name": "_shouldGetMax",
406
- "type": "bool"
407
- }
408
- ],
409
- "outputs": [
410
- {
411
- "name": "",
412
- "type": "uint256"
413
- }
414
- ]
415
- },
416
- {
417
- "stateMutability": "view",
418
- "type": "function",
419
- "name": "getUnderlyingAmountForVaultToken",
420
- "inputs": [
421
- {
422
- "name": "_levgVault",
423
- "type": "address"
424
- },
425
- {
426
- "name": "_isCollateralAsset",
427
- "type": "bool"
428
- },
429
- {
430
- "name": "_shouldGetMax",
431
- "type": "bool"
432
- },
433
- {
434
- "name": "_legoBook",
435
- "type": "address"
436
- }
437
- ],
438
- "outputs": [
439
- {
440
- "name": "",
441
- "type": "uint256"
442
- }
443
- ]
444
- },
445
- {
446
- "stateMutability": "view",
447
- "type": "function",
448
- "name": "getUnderlyingAmountForVaultToken",
449
- "inputs": [
450
- {
451
- "name": "_levgVault",
452
- "type": "address"
453
- },
454
- {
455
- "name": "_isCollateralAsset",
456
- "type": "bool"
457
- },
458
- {
459
- "name": "_shouldGetMax",
460
- "type": "bool"
461
- },
462
- {
463
- "name": "_legoBook",
464
- "type": "address"
465
- },
466
- {
467
- "name": "_ripeVaultBook",
468
- "type": "address"
469
- }
470
- ],
471
- "outputs": [
472
- {
473
- "name": "",
474
- "type": "uint256"
475
- }
476
- ]
477
- },
478
- {
479
- "stateMutability": "view",
480
- "type": "function",
481
- "name": "getUnderlyingAmountForVaultToken",
482
- "inputs": [
483
- {
484
- "name": "_levgVault",
485
- "type": "address"
486
- },
487
- {
488
- "name": "_isCollateralAsset",
489
- "type": "bool"
490
- },
491
- {
492
- "name": "_shouldGetMax",
493
- "type": "bool"
494
- },
495
- {
496
- "name": "_legoBook",
497
- "type": "address"
498
- },
499
- {
500
- "name": "_ripeVaultBook",
501
- "type": "address"
502
- },
503
- {
504
- "name": "_ripeMissionControl",
505
- "type": "address"
506
- }
507
- ],
508
- "outputs": [
509
- {
510
- "name": "",
511
- "type": "uint256"
512
- }
513
- ]
514
- },
515
- {
516
- "stateMutability": "view",
517
- "type": "function",
518
- "name": "getUnderlyingAmountForVaultToken",
519
- "inputs": [
520
- {
521
- "name": "_levgVault",
522
- "type": "address"
523
- },
524
- {
525
- "name": "_isCollateralAsset",
526
- "type": "bool"
527
- },
528
- {
529
- "name": "_shouldGetMax",
530
- "type": "bool"
531
- },
532
- {
533
- "name": "_legoBook",
534
- "type": "address"
535
- },
536
- {
537
- "name": "_ripeVaultBook",
538
- "type": "address"
539
- },
540
- {
541
- "name": "_ripeMissionControl",
542
- "type": "address"
543
- },
544
- {
545
- "name": "_ripeHq",
546
- "type": "address"
547
- }
548
- ],
549
- "outputs": [
550
- {
551
- "name": "",
552
- "type": "uint256"
553
- }
554
- ]
555
- },
556
- {
557
- "stateMutability": "view",
558
- "type": "function",
559
- "name": "getRipeCollateralBalance",
560
- "inputs": [
561
- {
562
- "name": "_levgVault",
563
- "type": "address"
564
- },
565
- {
566
- "name": "_asset",
567
- "type": "address"
568
- }
569
- ],
570
- "outputs": [
571
- {
572
- "name": "",
573
- "type": "uint256"
574
- }
575
- ]
576
- },
577
- {
578
- "stateMutability": "view",
579
- "type": "function",
580
- "name": "getRipeCollateralBalance",
581
- "inputs": [
582
- {
583
- "name": "_levgVault",
584
- "type": "address"
585
- },
586
- {
587
- "name": "_asset",
588
- "type": "address"
589
- },
590
- {
591
- "name": "_ripeVaultId",
592
- "type": "uint256"
593
- }
594
- ],
595
- "outputs": [
596
- {
597
- "name": "",
598
- "type": "uint256"
599
- }
600
- ]
601
- },
602
- {
603
- "stateMutability": "view",
604
- "type": "function",
605
- "name": "getRipeCollateralBalance",
606
- "inputs": [
607
- {
608
- "name": "_levgVault",
609
- "type": "address"
610
- },
611
- {
612
- "name": "_asset",
613
- "type": "address"
614
- },
615
- {
616
- "name": "_ripeVaultId",
617
- "type": "uint256"
618
- },
619
- {
620
- "name": "_ripeVaultBook",
621
- "type": "address"
622
- }
623
- ],
624
- "outputs": [
625
- {
626
- "name": "",
627
- "type": "uint256"
628
- }
629
- ]
630
- },
631
- {
632
- "stateMutability": "view",
633
- "type": "function",
634
- "name": "getRipeCollateralBalance",
635
- "inputs": [
636
- {
637
- "name": "_levgVault",
638
- "type": "address"
639
- },
640
- {
641
- "name": "_asset",
642
- "type": "address"
643
- },
644
- {
645
- "name": "_ripeVaultId",
646
- "type": "uint256"
647
- },
648
- {
649
- "name": "_ripeVaultBook",
650
- "type": "address"
651
- },
652
- {
653
- "name": "_ripeMissionControl",
654
- "type": "address"
655
- }
656
- ],
657
- "outputs": [
658
- {
659
- "name": "",
660
- "type": "uint256"
661
- }
662
- ]
663
- },
664
- {
665
- "stateMutability": "view",
666
- "type": "function",
667
- "name": "getRipeCollateralBalance",
668
- "inputs": [
669
- {
670
- "name": "_levgVault",
671
- "type": "address"
672
- },
673
- {
674
- "name": "_asset",
675
- "type": "address"
676
- },
677
- {
678
- "name": "_ripeVaultId",
679
- "type": "uint256"
680
- },
681
- {
682
- "name": "_ripeVaultBook",
683
- "type": "address"
684
- },
685
- {
686
- "name": "_ripeMissionControl",
687
- "type": "address"
688
- },
689
- {
690
- "name": "_ripeHq",
691
- "type": "address"
692
- }
693
- ],
694
- "outputs": [
695
- {
696
- "name": "",
697
- "type": "uint256"
698
- }
699
- ]
700
- },
701
- {
702
- "stateMutability": "view",
703
- "type": "function",
704
- "name": "getUnderlyingGreenAmount",
705
- "inputs": [
706
- {
707
- "name": "_levgVault",
708
- "type": "address"
709
- }
710
- ],
711
- "outputs": [
712
- {
713
- "name": "",
714
- "type": "uint256"
715
- }
716
- ]
717
- },
718
- {
719
- "stateMutability": "view",
720
- "type": "function",
721
- "name": "getUnderlyingGreenAmount",
722
- "inputs": [
723
- {
724
- "name": "_levgVault",
725
- "type": "address"
726
- },
727
- {
728
- "name": "_green",
729
- "type": "address"
730
- }
731
- ],
732
- "outputs": [
733
- {
734
- "name": "",
735
- "type": "uint256"
736
- }
737
- ]
738
- },
739
- {
740
- "stateMutability": "view",
741
- "type": "function",
742
- "name": "getUnderlyingGreenAmount",
743
- "inputs": [
744
- {
745
- "name": "_levgVault",
746
- "type": "address"
747
- },
748
- {
749
- "name": "_green",
750
- "type": "address"
751
- },
752
- {
753
- "name": "_savingsGreen",
754
- "type": "address"
755
- }
756
- ],
757
- "outputs": [
758
- {
759
- "name": "",
760
- "type": "uint256"
761
- }
762
- ]
763
- },
764
- {
765
- "stateMutability": "view",
766
- "type": "function",
767
- "name": "getUnderlyingGreenAmount",
768
- "inputs": [
769
- {
770
- "name": "_levgVault",
771
- "type": "address"
772
- },
773
- {
774
- "name": "_green",
775
- "type": "address"
776
- },
777
- {
778
- "name": "_savingsGreen",
779
- "type": "address"
780
- },
781
- {
782
- "name": "_ripeVaultBook",
783
- "type": "address"
784
- }
785
- ],
786
- "outputs": [
787
- {
788
- "name": "",
789
- "type": "uint256"
790
- }
791
- ]
792
- },
793
- {
794
- "stateMutability": "view",
795
- "type": "function",
796
- "name": "getUnderlyingGreenAmount",
797
- "inputs": [
798
- {
799
- "name": "_levgVault",
800
- "type": "address"
801
- },
802
- {
803
- "name": "_green",
804
- "type": "address"
805
- },
806
- {
807
- "name": "_savingsGreen",
808
- "type": "address"
809
- },
810
- {
811
- "name": "_ripeVaultBook",
812
- "type": "address"
813
- },
814
- {
815
- "name": "_ripeMissionControl",
816
- "type": "address"
817
- }
818
- ],
819
- "outputs": [
820
- {
821
- "name": "",
822
- "type": "uint256"
823
- }
824
- ]
825
- },
826
- {
827
- "stateMutability": "view",
828
- "type": "function",
829
- "name": "getUnderlyingGreenAmount",
830
- "inputs": [
831
- {
832
- "name": "_levgVault",
833
- "type": "address"
834
- },
835
- {
836
- "name": "_green",
837
- "type": "address"
838
- },
839
- {
840
- "name": "_savingsGreen",
841
- "type": "address"
842
- },
843
- {
844
- "name": "_ripeVaultBook",
845
- "type": "address"
846
- },
847
- {
848
- "name": "_ripeMissionControl",
849
- "type": "address"
850
- },
851
- {
852
- "name": "_ripeHq",
853
- "type": "address"
854
- }
855
- ],
856
- "outputs": [
857
- {
858
- "name": "",
859
- "type": "uint256"
860
- }
861
- ]
862
- },
863
- {
864
- "stateMutability": "view",
865
- "type": "function",
866
- "name": "getSavingsGreenBalances",
867
- "inputs": [],
868
- "outputs": [
869
- {
870
- "name": "",
871
- "type": "uint256"
872
- },
873
- {
874
- "name": "",
875
- "type": "uint256"
876
- },
877
- {
878
- "name": "",
879
- "type": "uint256"
880
- },
881
- {
882
- "name": "",
883
- "type": "uint256"
884
- }
885
- ]
886
- },
887
- {
888
- "stateMutability": "view",
889
- "type": "function",
890
- "name": "getSavingsGreenBalances",
891
- "inputs": [
892
- {
893
- "name": "_ripeHq",
894
- "type": "address"
895
- }
896
- ],
897
- "outputs": [
898
- {
899
- "name": "",
900
- "type": "uint256"
901
- },
902
- {
903
- "name": "",
904
- "type": "uint256"
905
- },
906
- {
907
- "name": "",
908
- "type": "uint256"
909
- },
910
- {
911
- "name": "",
912
- "type": "uint256"
913
- }
914
- ]
915
- },
916
- {
917
- "stateMutability": "view",
918
- "type": "function",
919
- "name": "getSwappableUsdcAmount",
920
- "inputs": [
921
- {
922
- "name": "_levgVault",
923
- "type": "address"
924
- }
925
- ],
926
- "outputs": [
927
- {
928
- "name": "",
929
- "type": "uint256"
930
- }
931
- ]
932
- },
933
- {
934
- "stateMutability": "view",
935
- "type": "function",
936
- "name": "getSwappableUsdcAmount",
937
- "inputs": [
938
- {
939
- "name": "_levgVault",
940
- "type": "address"
941
- },
942
- {
943
- "name": "_leverageVaultToken",
944
- "type": "address"
945
- }
946
- ],
947
- "outputs": [
948
- {
949
- "name": "",
950
- "type": "uint256"
951
- }
952
- ]
953
- },
954
- {
955
- "stateMutability": "view",
956
- "type": "function",
957
- "name": "getSwappableUsdcAmount",
958
- "inputs": [
959
- {
960
- "name": "_levgVault",
961
- "type": "address"
962
- },
963
- {
964
- "name": "_leverageVaultToken",
965
- "type": "address"
966
- },
967
- {
968
- "name": "_leverageVaultTokenRipeVaultId",
969
- "type": "uint256"
970
- }
971
- ],
972
- "outputs": [
973
- {
974
- "name": "",
975
- "type": "uint256"
976
- }
977
- ]
978
- },
979
- {
980
- "stateMutability": "view",
981
- "type": "function",
982
- "name": "getSwappableUsdcAmount",
983
- "inputs": [
984
- {
985
- "name": "_levgVault",
986
- "type": "address"
987
- },
988
- {
989
- "name": "_leverageVaultToken",
990
- "type": "address"
991
- },
992
- {
993
- "name": "_leverageVaultTokenRipeVaultId",
994
- "type": "uint256"
995
- },
996
- {
997
- "name": "_usdc",
998
- "type": "address"
999
- }
1000
- ],
1001
- "outputs": [
1002
- {
1003
- "name": "",
1004
- "type": "uint256"
1005
- }
1006
- ]
1007
- },
1008
- {
1009
- "stateMutability": "view",
1010
- "type": "function",
1011
- "name": "getSwappableUsdcAmount",
1012
- "inputs": [
1013
- {
1014
- "name": "_levgVault",
1015
- "type": "address"
1016
- },
1017
- {
1018
- "name": "_leverageVaultToken",
1019
- "type": "address"
1020
- },
1021
- {
1022
- "name": "_leverageVaultTokenRipeVaultId",
1023
- "type": "uint256"
1024
- },
1025
- {
1026
- "name": "_usdc",
1027
- "type": "address"
1028
- },
1029
- {
1030
- "name": "_green",
1031
- "type": "address"
1032
- }
1033
- ],
1034
- "outputs": [
1035
- {
1036
- "name": "",
1037
- "type": "uint256"
1038
- }
1039
- ]
1040
- },
1041
- {
1042
- "stateMutability": "view",
1043
- "type": "function",
1044
- "name": "getSwappableUsdcAmount",
1045
- "inputs": [
1046
- {
1047
- "name": "_levgVault",
1048
- "type": "address"
1049
- },
1050
- {
1051
- "name": "_leverageVaultToken",
1052
- "type": "address"
1053
- },
1054
- {
1055
- "name": "_leverageVaultTokenRipeVaultId",
1056
- "type": "uint256"
1057
- },
1058
- {
1059
- "name": "_usdc",
1060
- "type": "address"
1061
- },
1062
- {
1063
- "name": "_green",
1064
- "type": "address"
1065
- },
1066
- {
1067
- "name": "_savingsGreen",
1068
- "type": "address"
1069
- }
1070
- ],
1071
- "outputs": [
1072
- {
1073
- "name": "",
1074
- "type": "uint256"
1075
- }
1076
- ]
1077
- },
1078
- {
1079
- "stateMutability": "view",
1080
- "type": "function",
1081
- "name": "getSwappableUsdcAmount",
1082
- "inputs": [
1083
- {
1084
- "name": "_levgVault",
1085
- "type": "address"
1086
- },
1087
- {
1088
- "name": "_leverageVaultToken",
1089
- "type": "address"
1090
- },
1091
- {
1092
- "name": "_leverageVaultTokenRipeVaultId",
1093
- "type": "uint256"
1094
- },
1095
- {
1096
- "name": "_usdc",
1097
- "type": "address"
1098
- },
1099
- {
1100
- "name": "_green",
1101
- "type": "address"
1102
- },
1103
- {
1104
- "name": "_savingsGreen",
1105
- "type": "address"
1106
- },
1107
- {
1108
- "name": "_legoBook",
1109
- "type": "address"
1110
- }
1111
- ],
1112
- "outputs": [
1113
- {
1114
- "name": "",
1115
- "type": "uint256"
1116
- }
1117
- ]
1118
- },
1119
- {
1120
- "stateMutability": "view",
1121
- "type": "function",
1122
- "name": "getSwappableUsdcAmount",
1123
- "inputs": [
1124
- {
1125
- "name": "_levgVault",
1126
- "type": "address"
1127
- },
1128
- {
1129
- "name": "_leverageVaultToken",
1130
- "type": "address"
1131
- },
1132
- {
1133
- "name": "_leverageVaultTokenRipeVaultId",
1134
- "type": "uint256"
1135
- },
1136
- {
1137
- "name": "_usdc",
1138
- "type": "address"
1139
- },
1140
- {
1141
- "name": "_green",
1142
- "type": "address"
1143
- },
1144
- {
1145
- "name": "_savingsGreen",
1146
- "type": "address"
1147
- },
1148
- {
1149
- "name": "_legoBook",
1150
- "type": "address"
1151
- },
1152
- {
1153
- "name": "_ripeVaultBook",
1154
- "type": "address"
1155
- }
1156
- ],
1157
- "outputs": [
1158
- {
1159
- "name": "",
1160
- "type": "uint256"
1161
- }
1162
- ]
1163
- },
1164
- {
1165
- "stateMutability": "view",
1166
- "type": "function",
1167
- "name": "getSwappableUsdcAmount",
1168
- "inputs": [
1169
- {
1170
- "name": "_levgVault",
1171
- "type": "address"
1172
- },
1173
- {
1174
- "name": "_leverageVaultToken",
1175
- "type": "address"
1176
- },
1177
- {
1178
- "name": "_leverageVaultTokenRipeVaultId",
1179
- "type": "uint256"
1180
- },
1181
- {
1182
- "name": "_usdc",
1183
- "type": "address"
1184
- },
1185
- {
1186
- "name": "_green",
1187
- "type": "address"
1188
- },
1189
- {
1190
- "name": "_savingsGreen",
1191
- "type": "address"
1192
- },
1193
- {
1194
- "name": "_legoBook",
1195
- "type": "address"
1196
- },
1197
- {
1198
- "name": "_ripeVaultBook",
1199
- "type": "address"
1200
- },
1201
- {
1202
- "name": "_ripeMissionControl",
1203
- "type": "address"
1204
- }
1205
- ],
1206
- "outputs": [
1207
- {
1208
- "name": "",
1209
- "type": "uint256"
1210
- }
1211
- ]
1212
- },
1213
- {
1214
- "stateMutability": "view",
1215
- "type": "function",
1216
- "name": "getSwappableUsdcAmount",
1217
- "inputs": [
1218
- {
1219
- "name": "_levgVault",
1220
- "type": "address"
1221
- },
1222
- {
1223
- "name": "_leverageVaultToken",
1224
- "type": "address"
1225
- },
1226
- {
1227
- "name": "_leverageVaultTokenRipeVaultId",
1228
- "type": "uint256"
1229
- },
1230
- {
1231
- "name": "_usdc",
1232
- "type": "address"
1233
- },
1234
- {
1235
- "name": "_green",
1236
- "type": "address"
1237
- },
1238
- {
1239
- "name": "_savingsGreen",
1240
- "type": "address"
1241
- },
1242
- {
1243
- "name": "_legoBook",
1244
- "type": "address"
1245
- },
1246
- {
1247
- "name": "_ripeVaultBook",
1248
- "type": "address"
1249
- },
1250
- {
1251
- "name": "_ripeMissionControl",
1252
- "type": "address"
1253
- },
1254
- {
1255
- "name": "_ripeHq",
1256
- "type": "address"
1257
- }
1258
- ],
1259
- "outputs": [
1260
- {
1261
- "name": "",
1262
- "type": "uint256"
1263
- }
1264
- ]
1265
- },
1266
- {
1267
- "stateMutability": "view",
1268
- "type": "function",
1269
- "name": "getBorrowRate",
1270
- "inputs": [
1271
- {
1272
- "name": "_levgVault",
1273
- "type": "address"
1274
- }
1275
- ],
1276
- "outputs": [
1277
- {
1278
- "name": "",
1279
- "type": "uint256"
1280
- }
1281
- ]
1282
- },
1283
- {
1284
- "stateMutability": "view",
1285
- "type": "function",
1286
- "name": "getBorrowRate",
1287
- "inputs": [
1288
- {
1289
- "name": "_levgVault",
1290
- "type": "address"
1291
- },
1292
- {
1293
- "name": "_ripeHq",
1294
- "type": "address"
1295
- }
1296
- ],
1297
- "outputs": [
1298
- {
1299
- "name": "",
1300
- "type": "uint256"
1301
- }
1302
- ]
1303
- },
1304
- {
1305
- "stateMutability": "view",
1306
- "type": "function",
1307
- "name": "getDebtAmount",
1308
- "inputs": [
1309
- {
1310
- "name": "_levgVault",
1311
- "type": "address"
1312
- }
1313
- ],
1314
- "outputs": [
1315
- {
1316
- "name": "",
1317
- "type": "uint256"
1318
- }
1319
- ]
1320
- },
1321
- {
1322
- "stateMutability": "view",
1323
- "type": "function",
1324
- "name": "getDebtAmount",
1325
- "inputs": [
1326
- {
1327
- "name": "_levgVault",
1328
- "type": "address"
1329
- },
1330
- {
1331
- "name": "_ripeHq",
1332
- "type": "address"
1333
- }
1334
- ],
1335
- "outputs": [
1336
- {
1337
- "name": "",
1338
- "type": "uint256"
1339
- }
1340
- ]
1341
- },
1342
- {
1343
- "stateMutability": "view",
1344
- "type": "function",
1345
- "name": "getAvailableUsdcFromEndaomentPsm",
1346
- "inputs": [],
1347
- "outputs": [
1348
- {
1349
- "name": "",
1350
- "type": "uint256"
1351
- }
1352
- ]
1353
- },
1354
- {
1355
- "stateMutability": "view",
1356
- "type": "function",
1357
- "name": "getAvailableUsdcFromEndaomentPsm",
1358
- "inputs": [
1359
- {
1360
- "name": "_ripeHq",
1361
- "type": "address"
1362
- }
1363
- ],
1364
- "outputs": [
1365
- {
1366
- "name": "",
1367
- "type": "uint256"
1368
- }
1369
- ]
1370
- },
1371
- {
1372
- "stateMutability": "view",
1373
- "type": "function",
1374
- "name": "getTrueMaxBorrowAmount",
1375
- "inputs": [
1376
- {
1377
- "name": "_levgVault",
1378
- "type": "address"
1379
- }
1380
- ],
1381
- "outputs": [
1382
- {
1383
- "name": "",
1384
- "type": "uint256"
1385
- }
1386
- ]
1387
- },
1388
- {
1389
- "stateMutability": "view",
1390
- "type": "function",
1391
- "name": "getTrueMaxBorrowAmount",
1392
- "inputs": [
1393
- {
1394
- "name": "_levgVault",
1395
- "type": "address"
1396
- },
1397
- {
1398
- "name": "_ripeHq",
1399
- "type": "address"
1400
- }
1401
- ],
1402
- "outputs": [
1403
- {
1404
- "name": "",
1405
- "type": "uint256"
1406
- }
1407
- ]
1408
- },
1409
- {
1410
- "stateMutability": "view",
1411
- "type": "function",
1412
- "name": "getMaxBorrowAmountByMaxDebtRatio",
1413
- "inputs": [
1414
- {
1415
- "name": "_levgVault",
1416
- "type": "address"
1417
- }
1418
- ],
1419
- "outputs": [
1420
- {
1421
- "name": "",
1422
- "type": "uint256"
1423
- }
1424
- ]
1425
- },
1426
- {
1427
- "stateMutability": "view",
1428
- "type": "function",
1429
- "name": "getMaxBorrowAmountByMaxDebtRatio",
1430
- "inputs": [
1431
- {
1432
- "name": "_levgVault",
1433
- "type": "address"
1434
- },
1435
- {
1436
- "name": "_underlyingAsset",
1437
- "type": "address"
1438
- }
1439
- ],
1440
- "outputs": [
1441
- {
1442
- "name": "",
1443
- "type": "uint256"
1444
- }
1445
- ]
1446
- },
1447
- {
1448
- "stateMutability": "view",
1449
- "type": "function",
1450
- "name": "getMaxBorrowAmountByMaxDebtRatio",
1451
- "inputs": [
1452
- {
1453
- "name": "_levgVault",
1454
- "type": "address"
1455
- },
1456
- {
1457
- "name": "_underlyingAsset",
1458
- "type": "address"
1459
- },
1460
- {
1461
- "name": "_collateralVaultToken",
1462
- "type": "address"
1463
- }
1464
- ],
1465
- "outputs": [
1466
- {
1467
- "name": "",
1468
- "type": "uint256"
1469
- }
1470
- ]
1471
- },
1472
- {
1473
- "stateMutability": "view",
1474
- "type": "function",
1475
- "name": "getMaxBorrowAmountByMaxDebtRatio",
1476
- "inputs": [
1477
- {
1478
- "name": "_levgVault",
1479
- "type": "address"
1480
- },
1481
- {
1482
- "name": "_underlyingAsset",
1483
- "type": "address"
1484
- },
1485
- {
1486
- "name": "_collateralVaultToken",
1487
- "type": "address"
1488
- },
1489
- {
1490
- "name": "_collateralVaultTokenRipeVaultId",
1491
- "type": "uint256"
1492
- }
1493
- ],
1494
- "outputs": [
1495
- {
1496
- "name": "",
1497
- "type": "uint256"
1498
- }
1499
- ]
1500
- },
1501
- {
1502
- "stateMutability": "view",
1503
- "type": "function",
1504
- "name": "getMaxBorrowAmountByMaxDebtRatio",
1505
- "inputs": [
1506
- {
1507
- "name": "_levgVault",
1508
- "type": "address"
1509
- },
1510
- {
1511
- "name": "_underlyingAsset",
1512
- "type": "address"
1513
- },
1514
- {
1515
- "name": "_collateralVaultToken",
1516
- "type": "address"
1517
- },
1518
- {
1519
- "name": "_collateralVaultTokenRipeVaultId",
1520
- "type": "uint256"
1521
- },
1522
- {
1523
- "name": "_leverageVaultToken",
1524
- "type": "address"
1525
- }
1526
- ],
1527
- "outputs": [
1528
- {
1529
- "name": "",
1530
- "type": "uint256"
1531
- }
1532
- ]
1533
- },
1534
- {
1535
- "stateMutability": "view",
1536
- "type": "function",
1537
- "name": "getMaxBorrowAmountByMaxDebtRatio",
1538
- "inputs": [
1539
- {
1540
- "name": "_levgVault",
1541
- "type": "address"
1542
- },
1543
- {
1544
- "name": "_underlyingAsset",
1545
- "type": "address"
1546
- },
1547
- {
1548
- "name": "_collateralVaultToken",
1549
- "type": "address"
1550
- },
1551
- {
1552
- "name": "_collateralVaultTokenRipeVaultId",
1553
- "type": "uint256"
1554
- },
1555
- {
1556
- "name": "_leverageVaultToken",
1557
- "type": "address"
1558
- },
1559
- {
1560
- "name": "_totalAssets",
1561
- "type": "uint256"
1562
- }
1563
- ],
1564
- "outputs": [
1565
- {
1566
- "name": "",
1567
- "type": "uint256"
1568
- }
1569
- ]
1570
- },
1571
- {
1572
- "stateMutability": "view",
1573
- "type": "function",
1574
- "name": "getMaxBorrowAmountByMaxDebtRatio",
1575
- "inputs": [
1576
- {
1577
- "name": "_levgVault",
1578
- "type": "address"
1579
- },
1580
- {
1581
- "name": "_underlyingAsset",
1582
- "type": "address"
1583
- },
1584
- {
1585
- "name": "_collateralVaultToken",
1586
- "type": "address"
1587
- },
1588
- {
1589
- "name": "_collateralVaultTokenRipeVaultId",
1590
- "type": "uint256"
1591
- },
1592
- {
1593
- "name": "_leverageVaultToken",
1594
- "type": "address"
1595
- },
1596
- {
1597
- "name": "_totalAssets",
1598
- "type": "uint256"
1599
- },
1600
- {
1601
- "name": "_maxDebtRatio",
1602
- "type": "uint256"
1603
- }
1604
- ],
1605
- "outputs": [
1606
- {
1607
- "name": "",
1608
- "type": "uint256"
1609
- }
1610
- ]
1611
- },
1612
- {
1613
- "stateMutability": "view",
1614
- "type": "function",
1615
- "name": "getMaxBorrowAmountByMaxDebtRatio",
1616
- "inputs": [
1617
- {
1618
- "name": "_levgVault",
1619
- "type": "address"
1620
- },
1621
- {
1622
- "name": "_underlyingAsset",
1623
- "type": "address"
1624
- },
1625
- {
1626
- "name": "_collateralVaultToken",
1627
- "type": "address"
1628
- },
1629
- {
1630
- "name": "_collateralVaultTokenRipeVaultId",
1631
- "type": "uint256"
1632
- },
1633
- {
1634
- "name": "_leverageVaultToken",
1635
- "type": "address"
1636
- },
1637
- {
1638
- "name": "_totalAssets",
1639
- "type": "uint256"
1640
- },
1641
- {
1642
- "name": "_maxDebtRatio",
1643
- "type": "uint256"
1644
- },
1645
- {
1646
- "name": "_legoBook",
1647
- "type": "address"
1648
- }
1649
- ],
1650
- "outputs": [
1651
- {
1652
- "name": "",
1653
- "type": "uint256"
1654
- }
1655
- ]
1656
- },
1657
- {
1658
- "stateMutability": "view",
1659
- "type": "function",
1660
- "name": "getMaxBorrowAmountByMaxDebtRatio",
1661
- "inputs": [
1662
- {
1663
- "name": "_levgVault",
1664
- "type": "address"
1665
- },
1666
- {
1667
- "name": "_underlyingAsset",
1668
- "type": "address"
1669
- },
1670
- {
1671
- "name": "_collateralVaultToken",
1672
- "type": "address"
1673
- },
1674
- {
1675
- "name": "_collateralVaultTokenRipeVaultId",
1676
- "type": "uint256"
1677
- },
1678
- {
1679
- "name": "_leverageVaultToken",
1680
- "type": "address"
1681
- },
1682
- {
1683
- "name": "_totalAssets",
1684
- "type": "uint256"
1685
- },
1686
- {
1687
- "name": "_maxDebtRatio",
1688
- "type": "uint256"
1689
- },
1690
- {
1691
- "name": "_legoBook",
1692
- "type": "address"
1693
- },
1694
- {
1695
- "name": "_ripeVaultBook",
1696
- "type": "address"
1697
- }
1698
- ],
1699
- "outputs": [
1700
- {
1701
- "name": "",
1702
- "type": "uint256"
1703
- }
1704
- ]
1705
- },
1706
- {
1707
- "stateMutability": "view",
1708
- "type": "function",
1709
- "name": "getMaxBorrowAmountByMaxDebtRatio",
1710
- "inputs": [
1711
- {
1712
- "name": "_levgVault",
1713
- "type": "address"
1714
- },
1715
- {
1716
- "name": "_underlyingAsset",
1717
- "type": "address"
1718
- },
1719
- {
1720
- "name": "_collateralVaultToken",
1721
- "type": "address"
1722
- },
1723
- {
1724
- "name": "_collateralVaultTokenRipeVaultId",
1725
- "type": "uint256"
1726
- },
1727
- {
1728
- "name": "_leverageVaultToken",
1729
- "type": "address"
1730
- },
1731
- {
1732
- "name": "_totalAssets",
1733
- "type": "uint256"
1734
- },
1735
- {
1736
- "name": "_maxDebtRatio",
1737
- "type": "uint256"
1738
- },
1739
- {
1740
- "name": "_legoBook",
1741
- "type": "address"
1742
- },
1743
- {
1744
- "name": "_ripeVaultBook",
1745
- "type": "address"
1746
- },
1747
- {
1748
- "name": "_ripeMissionControl",
1749
- "type": "address"
1750
- }
1751
- ],
1752
- "outputs": [
1753
- {
1754
- "name": "",
1755
- "type": "uint256"
1756
- }
1757
- ]
1758
- },
1759
- {
1760
- "stateMutability": "view",
1761
- "type": "function",
1762
- "name": "getMaxBorrowAmountByMaxDebtRatio",
1763
- "inputs": [
1764
- {
1765
- "name": "_levgVault",
1766
- "type": "address"
1767
- },
1768
- {
1769
- "name": "_underlyingAsset",
1770
- "type": "address"
1771
- },
1772
- {
1773
- "name": "_collateralVaultToken",
1774
- "type": "address"
1775
- },
1776
- {
1777
- "name": "_collateralVaultTokenRipeVaultId",
1778
- "type": "uint256"
1779
- },
1780
- {
1781
- "name": "_leverageVaultToken",
1782
- "type": "address"
1783
- },
1784
- {
1785
- "name": "_totalAssets",
1786
- "type": "uint256"
1787
- },
1788
- {
1789
- "name": "_maxDebtRatio",
1790
- "type": "uint256"
1791
- },
1792
- {
1793
- "name": "_legoBook",
1794
- "type": "address"
1795
- },
1796
- {
1797
- "name": "_ripeVaultBook",
1798
- "type": "address"
1799
- },
1800
- {
1801
- "name": "_ripeMissionControl",
1802
- "type": "address"
1803
- },
1804
- {
1805
- "name": "_ripeHq",
1806
- "type": "address"
1807
- }
1808
- ],
1809
- "outputs": [
1810
- {
1811
- "name": "",
1812
- "type": "uint256"
1813
- }
1814
- ]
1815
- },
1816
- {
1817
- "stateMutability": "view",
1818
- "type": "function",
1819
- "name": "getMaxBorrowAmountByRipeLtv",
1820
- "inputs": [
1821
- {
1822
- "name": "_levgVault",
1823
- "type": "address"
1824
- }
1825
- ],
1826
- "outputs": [
1827
- {
1828
- "name": "",
1829
- "type": "uint256"
1830
- }
1831
- ]
1832
- },
1833
- {
1834
- "stateMutability": "view",
1835
- "type": "function",
1836
- "name": "getMaxBorrowAmountByRipeLtv",
1837
- "inputs": [
1838
- {
1839
- "name": "_levgVault",
1840
- "type": "address"
1841
- },
1842
- {
1843
- "name": "_creditEngine",
1844
- "type": "address"
1845
- }
1846
- ],
1847
- "outputs": [
1848
- {
1849
- "name": "",
1850
- "type": "uint256"
1851
- }
1852
- ]
1853
- },
1854
- {
1855
- "stateMutability": "view",
1856
- "type": "function",
1857
- "name": "getMaxBorrowAmountByRipeLtv",
1858
- "inputs": [
1859
- {
1860
- "name": "_levgVault",
1861
- "type": "address"
1862
- },
1863
- {
1864
- "name": "_creditEngine",
1865
- "type": "address"
1866
- },
1867
- {
1868
- "name": "_ripeHq",
1869
- "type": "address"
1870
- }
1871
- ],
1872
- "outputs": [
1873
- {
1874
- "name": "",
1875
- "type": "uint256"
1876
- }
1877
- ]
1878
- },
1879
- {
1880
- "stateMutability": "view",
1881
- "type": "function",
1882
- "name": "getNetUserDebt",
1883
- "inputs": [
1884
- {
1885
- "name": "_levgVault",
1886
- "type": "address"
1887
- }
1888
- ],
1889
- "outputs": [
1890
- {
1891
- "name": "",
1892
- "type": "uint256"
1893
- }
1894
- ]
1895
- },
1896
- {
1897
- "stateMutability": "view",
1898
- "type": "function",
1899
- "name": "getNetUserDebt",
1900
- "inputs": [
1901
- {
1902
- "name": "_levgVault",
1903
- "type": "address"
1904
- },
1905
- {
1906
- "name": "_ripeVaultBook",
1907
- "type": "address"
1908
- }
1909
- ],
1910
- "outputs": [
1911
- {
1912
- "name": "",
1913
- "type": "uint256"
1914
- }
1915
- ]
1916
- },
1917
- {
1918
- "stateMutability": "view",
1919
- "type": "function",
1920
- "name": "getNetUserDebt",
1921
- "inputs": [
1922
- {
1923
- "name": "_levgVault",
1924
- "type": "address"
1925
- },
1926
- {
1927
- "name": "_ripeVaultBook",
1928
- "type": "address"
1929
- },
1930
- {
1931
- "name": "_ripeMissionControl",
1932
- "type": "address"
1933
- }
1934
- ],
1935
- "outputs": [
1936
- {
1937
- "name": "",
1938
- "type": "uint256"
1939
- }
1940
- ]
1941
- },
1942
- {
1943
- "stateMutability": "view",
1944
- "type": "function",
1945
- "name": "getNetUserDebt",
1946
- "inputs": [
1947
- {
1948
- "name": "_levgVault",
1949
- "type": "address"
1950
- },
1951
- {
1952
- "name": "_ripeVaultBook",
1953
- "type": "address"
1954
- },
1955
- {
1956
- "name": "_ripeMissionControl",
1957
- "type": "address"
1958
- },
1959
- {
1960
- "name": "_ripeHq",
1961
- "type": "address"
1962
- }
1963
- ],
1964
- "outputs": [
1965
- {
1966
- "name": "",
1967
- "type": "uint256"
1968
- }
1969
- ]
1970
- },
1971
- {
1972
- "stateMutability": "view",
1973
- "type": "function",
1974
- "name": "getDebtToDepositRatio",
1975
- "inputs": [
1976
- {
1977
- "name": "_levgVault",
1978
- "type": "address"
1979
- }
1980
- ],
1981
- "outputs": [
1982
- {
1983
- "name": "",
1984
- "type": "uint256"
1985
- }
1986
- ]
1987
- },
1988
- {
1989
- "stateMutability": "view",
1990
- "type": "function",
1991
- "name": "getDebtToDepositRatio",
1992
- "inputs": [
1993
- {
1994
- "name": "_levgVault",
1995
- "type": "address"
1996
- },
1997
- {
1998
- "name": "_underlyingAsset",
1999
- "type": "address"
2000
- }
2001
- ],
2002
- "outputs": [
2003
- {
2004
- "name": "",
2005
- "type": "uint256"
2006
- }
2007
- ]
2008
- },
2009
- {
2010
- "stateMutability": "view",
2011
- "type": "function",
2012
- "name": "getDebtToDepositRatio",
2013
- "inputs": [
2014
- {
2015
- "name": "_levgVault",
2016
- "type": "address"
2017
- },
2018
- {
2019
- "name": "_underlyingAsset",
2020
- "type": "address"
2021
- },
2022
- {
2023
- "name": "_collateralVaultToken",
2024
- "type": "address"
2025
- }
2026
- ],
2027
- "outputs": [
2028
- {
2029
- "name": "",
2030
- "type": "uint256"
2031
- }
2032
- ]
2033
- },
2034
- {
2035
- "stateMutability": "view",
2036
- "type": "function",
2037
- "name": "getDebtToDepositRatio",
2038
- "inputs": [
2039
- {
2040
- "name": "_levgVault",
2041
- "type": "address"
2042
- },
2043
- {
2044
- "name": "_underlyingAsset",
2045
- "type": "address"
2046
- },
2047
- {
2048
- "name": "_collateralVaultToken",
2049
- "type": "address"
2050
- },
2051
- {
2052
- "name": "_collateralVaultTokenRipeVaultId",
2053
- "type": "uint256"
2054
- }
2055
- ],
2056
- "outputs": [
2057
- {
2058
- "name": "",
2059
- "type": "uint256"
2060
- }
2061
- ]
2062
- },
2063
- {
2064
- "stateMutability": "view",
2065
- "type": "function",
2066
- "name": "getDebtToDepositRatio",
2067
- "inputs": [
2068
- {
2069
- "name": "_levgVault",
2070
- "type": "address"
2071
- },
2072
- {
2073
- "name": "_underlyingAsset",
2074
- "type": "address"
2075
- },
2076
- {
2077
- "name": "_collateralVaultToken",
2078
- "type": "address"
2079
- },
2080
- {
2081
- "name": "_collateralVaultTokenRipeVaultId",
2082
- "type": "uint256"
2083
- },
2084
- {
2085
- "name": "_leverageVaultToken",
2086
- "type": "address"
2087
- }
2088
- ],
2089
- "outputs": [
2090
- {
2091
- "name": "",
2092
- "type": "uint256"
2093
- }
2094
- ]
2095
- },
2096
- {
2097
- "stateMutability": "view",
2098
- "type": "function",
2099
- "name": "getDebtToDepositRatio",
2100
- "inputs": [
2101
- {
2102
- "name": "_levgVault",
2103
- "type": "address"
2104
- },
2105
- {
2106
- "name": "_underlyingAsset",
2107
- "type": "address"
2108
- },
2109
- {
2110
- "name": "_collateralVaultToken",
2111
- "type": "address"
2112
- },
2113
- {
2114
- "name": "_collateralVaultTokenRipeVaultId",
2115
- "type": "uint256"
2116
- },
2117
- {
2118
- "name": "_leverageVaultToken",
2119
- "type": "address"
2120
- },
2121
- {
2122
- "name": "_totalAssets",
2123
- "type": "uint256"
2124
- }
2125
- ],
2126
- "outputs": [
2127
- {
2128
- "name": "",
2129
- "type": "uint256"
2130
- }
2131
- ]
2132
- },
2133
- {
2134
- "stateMutability": "view",
2135
- "type": "function",
2136
- "name": "getDebtToDepositRatio",
2137
- "inputs": [
2138
- {
2139
- "name": "_levgVault",
2140
- "type": "address"
2141
- },
2142
- {
2143
- "name": "_underlyingAsset",
2144
- "type": "address"
2145
- },
2146
- {
2147
- "name": "_collateralVaultToken",
2148
- "type": "address"
2149
- },
2150
- {
2151
- "name": "_collateralVaultTokenRipeVaultId",
2152
- "type": "uint256"
2153
- },
2154
- {
2155
- "name": "_leverageVaultToken",
2156
- "type": "address"
2157
- },
2158
- {
2159
- "name": "_totalAssets",
2160
- "type": "uint256"
2161
- },
2162
- {
2163
- "name": "_legoBook",
2164
- "type": "address"
2165
- }
2166
- ],
2167
- "outputs": [
2168
- {
2169
- "name": "",
2170
- "type": "uint256"
2171
- }
2172
- ]
2173
- },
2174
- {
2175
- "stateMutability": "view",
2176
- "type": "function",
2177
- "name": "getDebtToDepositRatio",
2178
- "inputs": [
2179
- {
2180
- "name": "_levgVault",
2181
- "type": "address"
2182
- },
2183
- {
2184
- "name": "_underlyingAsset",
2185
- "type": "address"
2186
- },
2187
- {
2188
- "name": "_collateralVaultToken",
2189
- "type": "address"
2190
- },
2191
- {
2192
- "name": "_collateralVaultTokenRipeVaultId",
2193
- "type": "uint256"
2194
- },
2195
- {
2196
- "name": "_leverageVaultToken",
2197
- "type": "address"
2198
- },
2199
- {
2200
- "name": "_totalAssets",
2201
- "type": "uint256"
2202
- },
2203
- {
2204
- "name": "_legoBook",
2205
- "type": "address"
2206
- },
2207
- {
2208
- "name": "_ripeVaultBook",
2209
- "type": "address"
2210
- }
2211
- ],
2212
- "outputs": [
2213
- {
2214
- "name": "",
2215
- "type": "uint256"
2216
- }
2217
- ]
2218
- },
2219
- {
2220
- "stateMutability": "view",
2221
- "type": "function",
2222
- "name": "getDebtToDepositRatio",
2223
- "inputs": [
2224
- {
2225
- "name": "_levgVault",
2226
- "type": "address"
2227
- },
2228
- {
2229
- "name": "_underlyingAsset",
2230
- "type": "address"
2231
- },
2232
- {
2233
- "name": "_collateralVaultToken",
2234
- "type": "address"
2235
- },
2236
- {
2237
- "name": "_collateralVaultTokenRipeVaultId",
2238
- "type": "uint256"
2239
- },
2240
- {
2241
- "name": "_leverageVaultToken",
2242
- "type": "address"
2243
- },
2244
- {
2245
- "name": "_totalAssets",
2246
- "type": "uint256"
2247
- },
2248
- {
2249
- "name": "_legoBook",
2250
- "type": "address"
2251
- },
2252
- {
2253
- "name": "_ripeVaultBook",
2254
- "type": "address"
2255
- },
2256
- {
2257
- "name": "_ripeMissionControl",
2258
- "type": "address"
2259
- }
2260
- ],
2261
- "outputs": [
2262
- {
2263
- "name": "",
2264
- "type": "uint256"
2265
- }
2266
- ]
2267
- },
2268
- {
2269
- "stateMutability": "view",
2270
- "type": "function",
2271
- "name": "getDebtToDepositRatio",
2272
- "inputs": [
2273
- {
2274
- "name": "_levgVault",
2275
- "type": "address"
2276
- },
2277
- {
2278
- "name": "_underlyingAsset",
2279
- "type": "address"
2280
- },
2281
- {
2282
- "name": "_collateralVaultToken",
2283
- "type": "address"
2284
- },
2285
- {
2286
- "name": "_collateralVaultTokenRipeVaultId",
2287
- "type": "uint256"
2288
- },
2289
- {
2290
- "name": "_leverageVaultToken",
2291
- "type": "address"
2292
- },
2293
- {
2294
- "name": "_totalAssets",
2295
- "type": "uint256"
2296
- },
2297
- {
2298
- "name": "_legoBook",
2299
- "type": "address"
2300
- },
2301
- {
2302
- "name": "_ripeVaultBook",
2303
- "type": "address"
2304
- },
2305
- {
2306
- "name": "_ripeMissionControl",
2307
- "type": "address"
2308
- },
2309
- {
2310
- "name": "_ripeHq",
2311
- "type": "address"
2312
- }
2313
- ],
2314
- "outputs": [
2315
- {
2316
- "name": "",
2317
- "type": "uint256"
2318
- }
2319
- ]
2320
- },
2321
- {
2322
- "stateMutability": "view",
2323
- "type": "function",
2324
- "name": "getDebtUtilization",
2325
- "inputs": [
2326
- {
2327
- "name": "_levgVault",
2328
- "type": "address"
2329
- }
2330
- ],
2331
- "outputs": [
2332
- {
2333
- "name": "",
2334
- "type": "uint256"
2335
- }
2336
- ]
2337
- },
2338
- {
2339
- "stateMutability": "view",
2340
- "type": "function",
2341
- "name": "getDebtUtilization",
2342
- "inputs": [
2343
- {
2344
- "name": "_levgVault",
2345
- "type": "address"
2346
- },
2347
- {
2348
- "name": "_underlyingAsset",
2349
- "type": "address"
2350
- }
2351
- ],
2352
- "outputs": [
2353
- {
2354
- "name": "",
2355
- "type": "uint256"
2356
- }
2357
- ]
2358
- },
2359
- {
2360
- "stateMutability": "view",
2361
- "type": "function",
2362
- "name": "getDebtUtilization",
2363
- "inputs": [
2364
- {
2365
- "name": "_levgVault",
2366
- "type": "address"
2367
- },
2368
- {
2369
- "name": "_underlyingAsset",
2370
- "type": "address"
2371
- },
2372
- {
2373
- "name": "_collateralVaultToken",
2374
- "type": "address"
2375
- }
2376
- ],
2377
- "outputs": [
2378
- {
2379
- "name": "",
2380
- "type": "uint256"
2381
- }
2382
- ]
2383
- },
2384
- {
2385
- "stateMutability": "view",
2386
- "type": "function",
2387
- "name": "getDebtUtilization",
2388
- "inputs": [
2389
- {
2390
- "name": "_levgVault",
2391
- "type": "address"
2392
- },
2393
- {
2394
- "name": "_underlyingAsset",
2395
- "type": "address"
2396
- },
2397
- {
2398
- "name": "_collateralVaultToken",
2399
- "type": "address"
2400
- },
2401
- {
2402
- "name": "_collateralVaultTokenRipeVaultId",
2403
- "type": "uint256"
2404
- }
2405
- ],
2406
- "outputs": [
2407
- {
2408
- "name": "",
2409
- "type": "uint256"
2410
- }
2411
- ]
2412
- },
2413
- {
2414
- "stateMutability": "view",
2415
- "type": "function",
2416
- "name": "getDebtUtilization",
2417
- "inputs": [
2418
- {
2419
- "name": "_levgVault",
2420
- "type": "address"
2421
- },
2422
- {
2423
- "name": "_underlyingAsset",
2424
- "type": "address"
2425
- },
2426
- {
2427
- "name": "_collateralVaultToken",
2428
- "type": "address"
2429
- },
2430
- {
2431
- "name": "_collateralVaultTokenRipeVaultId",
2432
- "type": "uint256"
2433
- },
2434
- {
2435
- "name": "_leverageVaultToken",
2436
- "type": "address"
2437
- }
2438
- ],
2439
- "outputs": [
2440
- {
2441
- "name": "",
2442
- "type": "uint256"
2443
- }
2444
- ]
2445
- },
2446
- {
2447
- "stateMutability": "view",
2448
- "type": "function",
2449
- "name": "getDebtUtilization",
2450
- "inputs": [
2451
- {
2452
- "name": "_levgVault",
2453
- "type": "address"
2454
- },
2455
- {
2456
- "name": "_underlyingAsset",
2457
- "type": "address"
2458
- },
2459
- {
2460
- "name": "_collateralVaultToken",
2461
- "type": "address"
2462
- },
2463
- {
2464
- "name": "_collateralVaultTokenRipeVaultId",
2465
- "type": "uint256"
2466
- },
2467
- {
2468
- "name": "_leverageVaultToken",
2469
- "type": "address"
2470
- },
2471
- {
2472
- "name": "_totalAssets",
2473
- "type": "uint256"
2474
- }
2475
- ],
2476
- "outputs": [
2477
- {
2478
- "name": "",
2479
- "type": "uint256"
2480
- }
2481
- ]
2482
- },
2483
- {
2484
- "stateMutability": "view",
2485
- "type": "function",
2486
- "name": "getDebtUtilization",
2487
- "inputs": [
2488
- {
2489
- "name": "_levgVault",
2490
- "type": "address"
2491
- },
2492
- {
2493
- "name": "_underlyingAsset",
2494
- "type": "address"
2495
- },
2496
- {
2497
- "name": "_collateralVaultToken",
2498
- "type": "address"
2499
- },
2500
- {
2501
- "name": "_collateralVaultTokenRipeVaultId",
2502
- "type": "uint256"
2503
- },
2504
- {
2505
- "name": "_leverageVaultToken",
2506
- "type": "address"
2507
- },
2508
- {
2509
- "name": "_totalAssets",
2510
- "type": "uint256"
2511
- },
2512
- {
2513
- "name": "_maxDebtRatio",
2514
- "type": "uint256"
2515
- }
2516
- ],
2517
- "outputs": [
2518
- {
2519
- "name": "",
2520
- "type": "uint256"
2521
- }
2522
- ]
2523
- },
2524
- {
2525
- "stateMutability": "view",
2526
- "type": "function",
2527
- "name": "getDebtUtilization",
2528
- "inputs": [
2529
- {
2530
- "name": "_levgVault",
2531
- "type": "address"
2532
- },
2533
- {
2534
- "name": "_underlyingAsset",
2535
- "type": "address"
2536
- },
2537
- {
2538
- "name": "_collateralVaultToken",
2539
- "type": "address"
2540
- },
2541
- {
2542
- "name": "_collateralVaultTokenRipeVaultId",
2543
- "type": "uint256"
2544
- },
2545
- {
2546
- "name": "_leverageVaultToken",
2547
- "type": "address"
2548
- },
2549
- {
2550
- "name": "_totalAssets",
2551
- "type": "uint256"
2552
- },
2553
- {
2554
- "name": "_maxDebtRatio",
2555
- "type": "uint256"
2556
- },
2557
- {
2558
- "name": "_legoBook",
2559
- "type": "address"
2560
- }
2561
- ],
2562
- "outputs": [
2563
- {
2564
- "name": "",
2565
- "type": "uint256"
2566
- }
2567
- ]
2568
- },
2569
- {
2570
- "stateMutability": "view",
2571
- "type": "function",
2572
- "name": "getDebtUtilization",
2573
- "inputs": [
2574
- {
2575
- "name": "_levgVault",
2576
- "type": "address"
2577
- },
2578
- {
2579
- "name": "_underlyingAsset",
2580
- "type": "address"
2581
- },
2582
- {
2583
- "name": "_collateralVaultToken",
2584
- "type": "address"
2585
- },
2586
- {
2587
- "name": "_collateralVaultTokenRipeVaultId",
2588
- "type": "uint256"
2589
- },
2590
- {
2591
- "name": "_leverageVaultToken",
2592
- "type": "address"
2593
- },
2594
- {
2595
- "name": "_totalAssets",
2596
- "type": "uint256"
2597
- },
2598
- {
2599
- "name": "_maxDebtRatio",
2600
- "type": "uint256"
2601
- },
2602
- {
2603
- "name": "_legoBook",
2604
- "type": "address"
2605
- },
2606
- {
2607
- "name": "_ripeVaultBook",
2608
- "type": "address"
2609
- }
2610
- ],
2611
- "outputs": [
2612
- {
2613
- "name": "",
2614
- "type": "uint256"
2615
- }
2616
- ]
2617
- },
2618
- {
2619
- "stateMutability": "view",
2620
- "type": "function",
2621
- "name": "getDebtUtilization",
2622
- "inputs": [
2623
- {
2624
- "name": "_levgVault",
2625
- "type": "address"
2626
- },
2627
- {
2628
- "name": "_underlyingAsset",
2629
- "type": "address"
2630
- },
2631
- {
2632
- "name": "_collateralVaultToken",
2633
- "type": "address"
2634
- },
2635
- {
2636
- "name": "_collateralVaultTokenRipeVaultId",
2637
- "type": "uint256"
2638
- },
2639
- {
2640
- "name": "_leverageVaultToken",
2641
- "type": "address"
2642
- },
2643
- {
2644
- "name": "_totalAssets",
2645
- "type": "uint256"
2646
- },
2647
- {
2648
- "name": "_maxDebtRatio",
2649
- "type": "uint256"
2650
- },
2651
- {
2652
- "name": "_legoBook",
2653
- "type": "address"
2654
- },
2655
- {
2656
- "name": "_ripeVaultBook",
2657
- "type": "address"
2658
- },
2659
- {
2660
- "name": "_ripeMissionControl",
2661
- "type": "address"
2662
- }
2663
- ],
2664
- "outputs": [
2665
- {
2666
- "name": "",
2667
- "type": "uint256"
2668
- }
2669
- ]
2670
- },
2671
- {
2672
- "stateMutability": "view",
2673
- "type": "function",
2674
- "name": "getDebtUtilization",
2675
- "inputs": [
2676
- {
2677
- "name": "_levgVault",
2678
- "type": "address"
2679
- },
2680
- {
2681
- "name": "_underlyingAsset",
2682
- "type": "address"
2683
- },
2684
- {
2685
- "name": "_collateralVaultToken",
2686
- "type": "address"
2687
- },
2688
- {
2689
- "name": "_collateralVaultTokenRipeVaultId",
2690
- "type": "uint256"
2691
- },
2692
- {
2693
- "name": "_leverageVaultToken",
2694
- "type": "address"
2695
- },
2696
- {
2697
- "name": "_totalAssets",
2698
- "type": "uint256"
2699
- },
2700
- {
2701
- "name": "_maxDebtRatio",
2702
- "type": "uint256"
2703
- },
2704
- {
2705
- "name": "_legoBook",
2706
- "type": "address"
2707
- },
2708
- {
2709
- "name": "_ripeVaultBook",
2710
- "type": "address"
2711
- },
2712
- {
2713
- "name": "_ripeMissionControl",
2714
- "type": "address"
2715
- },
2716
- {
2717
- "name": "_ripeHq",
2718
- "type": "address"
2719
- }
2720
- ],
2721
- "outputs": [
2722
- {
2723
- "name": "",
2724
- "type": "uint256"
2725
- }
2726
- ]
2727
- },
2728
- {
2729
- "stateMutability": "view",
2730
- "type": "function",
2731
- "name": "getDebtToRipeCollateralRatio",
2732
- "inputs": [
2733
- {
2734
- "name": "_levgVault",
2735
- "type": "address"
2736
- }
2737
- ],
2738
- "outputs": [
2739
- {
2740
- "name": "",
2741
- "type": "uint256"
2742
- }
2743
- ]
2744
- },
2745
- {
2746
- "stateMutability": "view",
2747
- "type": "function",
2748
- "name": "getDebtToRipeCollateralRatio",
2749
- "inputs": [
2750
- {
2751
- "name": "_levgVault",
2752
- "type": "address"
2753
- },
2754
- {
2755
- "name": "_ripeVaultBook",
2756
- "type": "address"
2757
- }
2758
- ],
2759
- "outputs": [
2760
- {
2761
- "name": "",
2762
- "type": "uint256"
2763
- }
2764
- ]
2765
- },
2766
- {
2767
- "stateMutability": "view",
2768
- "type": "function",
2769
- "name": "getDebtToRipeCollateralRatio",
2770
- "inputs": [
2771
- {
2772
- "name": "_levgVault",
2773
- "type": "address"
2774
- },
2775
- {
2776
- "name": "_ripeVaultBook",
2777
- "type": "address"
2778
- },
2779
- {
2780
- "name": "_ripeMissionControl",
2781
- "type": "address"
2782
- }
2783
- ],
2784
- "outputs": [
2785
- {
2786
- "name": "",
2787
- "type": "uint256"
2788
- }
2789
- ]
2790
- },
2791
- {
2792
- "stateMutability": "view",
2793
- "type": "function",
2794
- "name": "getDebtToRipeCollateralRatio",
2795
- "inputs": [
2796
- {
2797
- "name": "_levgVault",
2798
- "type": "address"
2799
- },
2800
- {
2801
- "name": "_ripeVaultBook",
2802
- "type": "address"
2803
- },
2804
- {
2805
- "name": "_ripeMissionControl",
2806
- "type": "address"
2807
- },
2808
- {
2809
- "name": "_ripeHq",
2810
- "type": "address"
2811
- }
2812
- ],
2813
- "outputs": [
2814
- {
2815
- "name": "",
2816
- "type": "uint256"
2817
- }
2818
- ]
2819
- },
2820
- {
2821
- "stateMutability": "view",
2822
- "type": "function",
2823
- "name": "getVaultTokenAmounts",
2824
- "inputs": [
2825
- {
2826
- "name": "_levgVault",
2827
- "type": "address"
2828
- },
2829
- {
2830
- "name": "_isCollateralAsset",
2831
- "type": "bool"
2832
- }
2833
- ],
2834
- "outputs": [
2835
- {
2836
- "name": "",
2837
- "type": "uint256"
2838
- },
2839
- {
2840
- "name": "",
2841
- "type": "uint256"
2842
- }
2843
- ]
2844
- },
2845
- {
2846
- "stateMutability": "view",
2847
- "type": "function",
2848
- "name": "getVaultTokenAmounts",
2849
- "inputs": [
2850
- {
2851
- "name": "_levgVault",
2852
- "type": "address"
2853
- },
2854
- {
2855
- "name": "_isCollateralAsset",
2856
- "type": "bool"
2857
- },
2858
- {
2859
- "name": "_ripeVaultBook",
2860
- "type": "address"
2861
- }
2862
- ],
2863
- "outputs": [
2864
- {
2865
- "name": "",
2866
- "type": "uint256"
2867
- },
2868
- {
2869
- "name": "",
2870
- "type": "uint256"
2871
- }
2872
- ]
2873
- },
2874
- {
2875
- "stateMutability": "view",
2876
- "type": "function",
2877
- "name": "getVaultTokenAmounts",
2878
- "inputs": [
2879
- {
2880
- "name": "_levgVault",
2881
- "type": "address"
2882
- },
2883
- {
2884
- "name": "_isCollateralAsset",
2885
- "type": "bool"
2886
- },
2887
- {
2888
- "name": "_ripeVaultBook",
2889
- "type": "address"
2890
- },
2891
- {
2892
- "name": "_ripeMissionControl",
2893
- "type": "address"
2894
- }
2895
- ],
2896
- "outputs": [
2897
- {
2898
- "name": "",
2899
- "type": "uint256"
2900
- },
2901
- {
2902
- "name": "",
2903
- "type": "uint256"
2904
- }
2905
- ]
2906
- },
2907
- {
2908
- "stateMutability": "view",
2909
- "type": "function",
2910
- "name": "getVaultTokenAmounts",
2911
- "inputs": [
2912
- {
2913
- "name": "_levgVault",
2914
- "type": "address"
2915
- },
2916
- {
2917
- "name": "_isCollateralAsset",
2918
- "type": "bool"
2919
- },
2920
- {
2921
- "name": "_ripeVaultBook",
2922
- "type": "address"
2923
- },
2924
- {
2925
- "name": "_ripeMissionControl",
2926
- "type": "address"
2927
- },
2928
- {
2929
- "name": "_ripeHq",
2930
- "type": "address"
2931
- }
2932
- ],
2933
- "outputs": [
2934
- {
2935
- "name": "",
2936
- "type": "uint256"
2937
- },
2938
- {
2939
- "name": "",
2940
- "type": "uint256"
2941
- }
2942
- ]
2943
- },
2944
- {
2945
- "stateMutability": "view",
2946
- "type": "function",
2947
- "name": "getUnderlyingAmounts",
2948
- "inputs": [
2949
- {
2950
- "name": "_levgVault",
2951
- "type": "address"
2952
- },
2953
- {
2954
- "name": "_isCollateralAsset",
2955
- "type": "bool"
2956
- },
2957
- {
2958
- "name": "_shouldGetMax",
2959
- "type": "bool"
2960
- }
2961
- ],
2962
- "outputs": [
2963
- {
2964
- "name": "",
2965
- "type": "uint256"
2966
- },
2967
- {
2968
- "name": "",
2969
- "type": "uint256"
2970
- },
2971
- {
2972
- "name": "",
2973
- "type": "uint256"
2974
- },
2975
- {
2976
- "name": "",
2977
- "type": "uint256"
2978
- }
2979
- ]
2980
- },
2981
- {
2982
- "stateMutability": "view",
2983
- "type": "function",
2984
- "name": "getUnderlyingAmounts",
2985
- "inputs": [
2986
- {
2987
- "name": "_levgVault",
2988
- "type": "address"
2989
- },
2990
- {
2991
- "name": "_isCollateralAsset",
2992
- "type": "bool"
2993
- },
2994
- {
2995
- "name": "_shouldGetMax",
2996
- "type": "bool"
2997
- },
2998
- {
2999
- "name": "_legoBook",
3000
- "type": "address"
3001
- }
3002
- ],
3003
- "outputs": [
3004
- {
3005
- "name": "",
3006
- "type": "uint256"
3007
- },
3008
- {
3009
- "name": "",
3010
- "type": "uint256"
3011
- },
3012
- {
3013
- "name": "",
3014
- "type": "uint256"
3015
- },
3016
- {
3017
- "name": "",
3018
- "type": "uint256"
3019
- }
3020
- ]
3021
- },
3022
- {
3023
- "stateMutability": "view",
3024
- "type": "function",
3025
- "name": "getUnderlyingAmounts",
3026
- "inputs": [
3027
- {
3028
- "name": "_levgVault",
3029
- "type": "address"
3030
- },
3031
- {
3032
- "name": "_isCollateralAsset",
3033
- "type": "bool"
3034
- },
3035
- {
3036
- "name": "_shouldGetMax",
3037
- "type": "bool"
3038
- },
3039
- {
3040
- "name": "_legoBook",
3041
- "type": "address"
3042
- },
3043
- {
3044
- "name": "_ripeVaultBook",
3045
- "type": "address"
3046
- }
3047
- ],
3048
- "outputs": [
3049
- {
3050
- "name": "",
3051
- "type": "uint256"
3052
- },
3053
- {
3054
- "name": "",
3055
- "type": "uint256"
3056
- },
3057
- {
3058
- "name": "",
3059
- "type": "uint256"
3060
- },
3061
- {
3062
- "name": "",
3063
- "type": "uint256"
3064
- }
3065
- ]
3066
- },
3067
- {
3068
- "stateMutability": "view",
3069
- "type": "function",
3070
- "name": "getUnderlyingAmounts",
3071
- "inputs": [
3072
- {
3073
- "name": "_levgVault",
3074
- "type": "address"
3075
- },
3076
- {
3077
- "name": "_isCollateralAsset",
3078
- "type": "bool"
3079
- },
3080
- {
3081
- "name": "_shouldGetMax",
3082
- "type": "bool"
3083
- },
3084
- {
3085
- "name": "_legoBook",
3086
- "type": "address"
3087
- },
3088
- {
3089
- "name": "_ripeVaultBook",
3090
- "type": "address"
3091
- },
3092
- {
3093
- "name": "_ripeMissionControl",
3094
- "type": "address"
3095
- }
3096
- ],
3097
- "outputs": [
3098
- {
3099
- "name": "",
3100
- "type": "uint256"
3101
- },
3102
- {
3103
- "name": "",
3104
- "type": "uint256"
3105
- },
3106
- {
3107
- "name": "",
3108
- "type": "uint256"
3109
- },
3110
- {
3111
- "name": "",
3112
- "type": "uint256"
3113
- }
3114
- ]
3115
- },
3116
- {
3117
- "stateMutability": "view",
3118
- "type": "function",
3119
- "name": "getUnderlyingAmounts",
3120
- "inputs": [
3121
- {
3122
- "name": "_levgVault",
3123
- "type": "address"
3124
- },
3125
- {
3126
- "name": "_isCollateralAsset",
3127
- "type": "bool"
3128
- },
3129
- {
3130
- "name": "_shouldGetMax",
3131
- "type": "bool"
3132
- },
3133
- {
3134
- "name": "_legoBook",
3135
- "type": "address"
3136
- },
3137
- {
3138
- "name": "_ripeVaultBook",
3139
- "type": "address"
3140
- },
3141
- {
3142
- "name": "_ripeMissionControl",
3143
- "type": "address"
3144
- },
3145
- {
3146
- "name": "_ripeHq",
3147
- "type": "address"
3148
- }
3149
- ],
3150
- "outputs": [
3151
- {
3152
- "name": "",
3153
- "type": "uint256"
3154
- },
3155
- {
3156
- "name": "",
3157
- "type": "uint256"
3158
- },
3159
- {
3160
- "name": "",
3161
- "type": "uint256"
3162
- },
3163
- {
3164
- "name": "",
3165
- "type": "uint256"
3166
- }
3167
- ]
3168
- },
3169
- {
3170
- "stateMutability": "view",
3171
- "type": "function",
3172
- "name": "getGreenAmounts",
3173
- "inputs": [
3174
- {
3175
- "name": "_levgVault",
3176
- "type": "address"
3177
- }
3178
- ],
3179
- "outputs": [
3180
- {
3181
- "name": "",
3182
- "type": "uint256"
3183
- },
3184
- {
3185
- "name": "",
3186
- "type": "uint256"
3187
- },
3188
- {
3189
- "name": "",
3190
- "type": "uint256"
3191
- },
3192
- {
3193
- "name": "",
3194
- "type": "uint256"
3195
- }
3196
- ]
3197
- },
3198
- {
3199
- "stateMutability": "view",
3200
- "type": "function",
3201
- "name": "getGreenAmounts",
3202
- "inputs": [
3203
- {
3204
- "name": "_levgVault",
3205
- "type": "address"
3206
- },
3207
- {
3208
- "name": "_green",
3209
- "type": "address"
3210
- }
3211
- ],
3212
- "outputs": [
3213
- {
3214
- "name": "",
3215
- "type": "uint256"
3216
- },
3217
- {
3218
- "name": "",
3219
- "type": "uint256"
3220
- },
3221
- {
3222
- "name": "",
3223
- "type": "uint256"
3224
- },
3225
- {
3226
- "name": "",
3227
- "type": "uint256"
3228
- }
3229
- ]
3230
- },
3231
- {
3232
- "stateMutability": "view",
3233
- "type": "function",
3234
- "name": "getGreenAmounts",
3235
- "inputs": [
3236
- {
3237
- "name": "_levgVault",
3238
- "type": "address"
3239
- },
3240
- {
3241
- "name": "_green",
3242
- "type": "address"
3243
- },
3244
- {
3245
- "name": "_savingsGreen",
3246
- "type": "address"
3247
- }
3248
- ],
3249
- "outputs": [
3250
- {
3251
- "name": "",
3252
- "type": "uint256"
3253
- },
3254
- {
3255
- "name": "",
3256
- "type": "uint256"
3257
- },
3258
- {
3259
- "name": "",
3260
- "type": "uint256"
3261
- },
3262
- {
3263
- "name": "",
3264
- "type": "uint256"
3265
- }
3266
- ]
3267
- },
3268
- {
3269
- "stateMutability": "view",
3270
- "type": "function",
3271
- "name": "getGreenAmounts",
3272
- "inputs": [
3273
- {
3274
- "name": "_levgVault",
3275
- "type": "address"
3276
- },
3277
- {
3278
- "name": "_green",
3279
- "type": "address"
3280
- },
3281
- {
3282
- "name": "_savingsGreen",
3283
- "type": "address"
3284
- },
3285
- {
3286
- "name": "_ripeVaultBook",
3287
- "type": "address"
3288
- }
3289
- ],
3290
- "outputs": [
3291
- {
3292
- "name": "",
3293
- "type": "uint256"
3294
- },
3295
- {
3296
- "name": "",
3297
- "type": "uint256"
3298
- },
3299
- {
3300
- "name": "",
3301
- "type": "uint256"
3302
- },
3303
- {
3304
- "name": "",
3305
- "type": "uint256"
3306
- }
3307
- ]
3308
- },
3309
- {
3310
- "stateMutability": "view",
3311
- "type": "function",
3312
- "name": "getGreenAmounts",
3313
- "inputs": [
3314
- {
3315
- "name": "_levgVault",
3316
- "type": "address"
3317
- },
3318
- {
3319
- "name": "_green",
3320
- "type": "address"
3321
- },
3322
- {
3323
- "name": "_savingsGreen",
3324
- "type": "address"
3325
- },
3326
- {
3327
- "name": "_ripeVaultBook",
3328
- "type": "address"
3329
- },
3330
- {
3331
- "name": "_ripeMissionControl",
3332
- "type": "address"
3333
- }
3334
- ],
3335
- "outputs": [
3336
- {
3337
- "name": "",
3338
- "type": "uint256"
3339
- },
3340
- {
3341
- "name": "",
3342
- "type": "uint256"
3343
- },
3344
- {
3345
- "name": "",
3346
- "type": "uint256"
3347
- },
3348
- {
3349
- "name": "",
3350
- "type": "uint256"
3351
- }
3352
- ]
3353
- },
3354
- {
3355
- "stateMutability": "view",
3356
- "type": "function",
3357
- "name": "getGreenAmounts",
3358
- "inputs": [
3359
- {
3360
- "name": "_levgVault",
3361
- "type": "address"
3362
- },
3363
- {
3364
- "name": "_green",
3365
- "type": "address"
3366
- },
3367
- {
3368
- "name": "_savingsGreen",
3369
- "type": "address"
3370
- },
3371
- {
3372
- "name": "_ripeVaultBook",
3373
- "type": "address"
3374
- },
3375
- {
3376
- "name": "_ripeMissionControl",
3377
- "type": "address"
3378
- },
3379
- {
3380
- "name": "_ripeHq",
3381
- "type": "address"
3382
- }
3383
- ],
3384
- "outputs": [
3385
- {
3386
- "name": "",
3387
- "type": "uint256"
3388
- },
3389
- {
3390
- "name": "",
3391
- "type": "uint256"
3392
- },
3393
- {
3394
- "name": "",
3395
- "type": "uint256"
3396
- },
3397
- {
3398
- "name": "",
3399
- "type": "uint256"
3400
- }
3401
- ]
3402
- },
3403
- {
3404
- "stateMutability": "view",
3405
- "type": "function",
3406
- "name": "RIPE_REGISTRY",
3407
- "inputs": [],
3408
- "outputs": [
3409
- {
3410
- "name": "",
3411
- "type": "address"
3412
- }
3413
- ]
3414
- },
3415
- {
3416
- "stateMutability": "view",
3417
- "type": "function",
3418
- "name": "GREEN_TOKEN",
3419
- "inputs": [],
3420
- "outputs": [
3421
- {
3422
- "name": "",
3423
- "type": "address"
3424
- }
3425
- ]
3426
- },
3427
- {
3428
- "stateMutability": "view",
3429
- "type": "function",
3430
- "name": "SAVINGS_GREEN",
3431
- "inputs": [],
3432
- "outputs": [
3433
- {
3434
- "name": "",
3435
- "type": "address"
3436
- }
3437
- ]
3438
- },
3439
- {
3440
- "stateMutability": "view",
3441
- "type": "function",
3442
- "name": "USDC",
3443
- "inputs": [],
3444
- "outputs": [
3445
- {
3446
- "name": "",
3447
- "type": "address"
3448
- }
3449
- ]
3450
- },
3451
- {
3452
- "stateMutability": "nonpayable",
3453
- "type": "constructor",
3454
- "inputs": [
3455
- {
3456
- "name": "_undyHq",
3457
- "type": "address"
3458
- },
3459
- {
3460
- "name": "_ripeRegistry",
3461
- "type": "address"
3462
- },
3463
- {
3464
- "name": "_usdc",
3465
- "type": "address"
3466
- }
3467
- ],
3468
- "outputs": []
3469
- }
3470
- ];
3471
- export const deployAddress = '0x27dd580A2DF715d5B236d766aDA29D89169B51b2';
3472
- function getRequest(method, args, contractAddressOrOptions) {
3473
- const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
3474
- const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
3475
- const call = {
3476
- contractName: 'LevgVaultTools',
3477
- method,
3478
- args,
3479
- address,
3480
- deployAddress,
3481
- defaultValue,
3482
- getAbi: () => abi,
3483
- with: (options) => {
3484
- call.address = options.contractAddress;
3485
- call.defaultValue = options.defaultValue;
3486
- return call;
3487
- },
3488
- defaultTo: (defaultValue) => {
3489
- call.defaultValue = defaultValue;
3490
- return call;
3491
- },
3492
- at: (address) => {
3493
- call.address = address;
3494
- return call;
3495
- },
3496
- };
3497
- return call;
3498
- }
3499
- export const call = {
3500
- getAddys: (...args) => getRequest('getAddys', args),
3501
- getUndyHq: (...args) => getRequest('getUndyHq', args),
3502
- getTotalUnderlyingAmount: (...args) => getRequest('getTotalUnderlyingAmount', args),
3503
- getAmountForAsset: (...args) => getRequest('getAmountForAsset', args),
3504
- getUnderlyingAmountForVaultToken: (...args) => getRequest('getUnderlyingAmountForVaultToken', args),
3505
- getRipeCollateralBalance: (...args) => getRequest('getRipeCollateralBalance', args),
3506
- getUnderlyingGreenAmount: (...args) => getRequest('getUnderlyingGreenAmount', args),
3507
- getSavingsGreenBalances: (...args) => getRequest('getSavingsGreenBalances', args),
3508
- getSwappableUsdcAmount: (...args) => getRequest('getSwappableUsdcAmount', args),
3509
- getBorrowRate: (...args) => getRequest('getBorrowRate', args),
3510
- getDebtAmount: (...args) => getRequest('getDebtAmount', args),
3511
- getAvailableUsdcFromEndaomentPsm: (...args) => getRequest('getAvailableUsdcFromEndaomentPsm', args),
3512
- getTrueMaxBorrowAmount: (...args) => getRequest('getTrueMaxBorrowAmount', args),
3513
- getMaxBorrowAmountByMaxDebtRatio: (...args) => getRequest('getMaxBorrowAmountByMaxDebtRatio', args),
3514
- getMaxBorrowAmountByRipeLtv: (...args) => getRequest('getMaxBorrowAmountByRipeLtv', args),
3515
- getNetUserDebt: (...args) => getRequest('getNetUserDebt', args),
3516
- getDebtToDepositRatio: (...args) => getRequest('getDebtToDepositRatio', args),
3517
- getDebtUtilization: (...args) => getRequest('getDebtUtilization', args),
3518
- getDebtToRipeCollateralRatio: (...args) => getRequest('getDebtToRipeCollateralRatio', args),
3519
- getVaultTokenAmounts: (...args) => getRequest('getVaultTokenAmounts', args),
3520
- getUnderlyingAmounts: (...args) => getRequest('getUnderlyingAmounts', args),
3521
- getGreenAmounts: (...args) => getRequest('getGreenAmounts', args),
3522
- RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
3523
- GREEN_TOKEN: (...args) => getRequest('GREEN_TOKEN', args),
3524
- SAVINGS_GREEN: (...args) => getRequest('SAVINGS_GREEN', args),
3525
- USDC: (...args) => getRequest('USDC', args),
3526
- };
3527
- export function toSdk(publicClient, walletClient, addressResolver) {
3528
- return {
3529
- deployAddress,
3530
- abi,
3531
- // Queries
3532
- getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args), {}, addressResolver),
3533
- getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args), {}, addressResolver),
3534
- getTotalUnderlyingAmount: (...args) => singleQuery(publicClient, call.getTotalUnderlyingAmount(...args), {}, addressResolver),
3535
- getAmountForAsset: (...args) => singleQuery(publicClient, call.getAmountForAsset(...args), {}, addressResolver),
3536
- getUnderlyingAmountForVaultToken: (...args) => singleQuery(publicClient, call.getUnderlyingAmountForVaultToken(...args), {}, addressResolver),
3537
- getRipeCollateralBalance: (...args) => singleQuery(publicClient, call.getRipeCollateralBalance(...args), {}, addressResolver),
3538
- getUnderlyingGreenAmount: (...args) => singleQuery(publicClient, call.getUnderlyingGreenAmount(...args), {}, addressResolver),
3539
- getSavingsGreenBalances: (...args) => singleQuery(publicClient, call.getSavingsGreenBalances(...args), {}, addressResolver),
3540
- getSwappableUsdcAmount: (...args) => singleQuery(publicClient, call.getSwappableUsdcAmount(...args), {}, addressResolver),
3541
- getBorrowRate: (...args) => singleQuery(publicClient, call.getBorrowRate(...args), {}, addressResolver),
3542
- getDebtAmount: (...args) => singleQuery(publicClient, call.getDebtAmount(...args), {}, addressResolver),
3543
- getAvailableUsdcFromEndaomentPsm: (...args) => singleQuery(publicClient, call.getAvailableUsdcFromEndaomentPsm(...args), {}, addressResolver),
3544
- getTrueMaxBorrowAmount: (...args) => singleQuery(publicClient, call.getTrueMaxBorrowAmount(...args), {}, addressResolver),
3545
- getMaxBorrowAmountByMaxDebtRatio: (...args) => singleQuery(publicClient, call.getMaxBorrowAmountByMaxDebtRatio(...args), {}, addressResolver),
3546
- getMaxBorrowAmountByRipeLtv: (...args) => singleQuery(publicClient, call.getMaxBorrowAmountByRipeLtv(...args), {}, addressResolver),
3547
- getNetUserDebt: (...args) => singleQuery(publicClient, call.getNetUserDebt(...args), {}, addressResolver),
3548
- getDebtToDepositRatio: (...args) => singleQuery(publicClient, call.getDebtToDepositRatio(...args), {}, addressResolver),
3549
- getDebtUtilization: (...args) => singleQuery(publicClient, call.getDebtUtilization(...args), {}, addressResolver),
3550
- getDebtToRipeCollateralRatio: (...args) => singleQuery(publicClient, call.getDebtToRipeCollateralRatio(...args), {}, addressResolver),
3551
- getVaultTokenAmounts: (...args) => singleQuery(publicClient, call.getVaultTokenAmounts(...args), {}, addressResolver),
3552
- getUnderlyingAmounts: (...args) => singleQuery(publicClient, call.getUnderlyingAmounts(...args), {}, addressResolver),
3553
- getGreenAmounts: (...args) => singleQuery(publicClient, call.getGreenAmounts(...args), {}, addressResolver),
3554
- RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args), {}, addressResolver),
3555
- GREEN_TOKEN: (...args) => singleQuery(publicClient, call.GREEN_TOKEN(...args), {}, addressResolver),
3556
- SAVINGS_GREEN: (...args) => singleQuery(publicClient, call.SAVINGS_GREEN(...args), {}, addressResolver),
3557
- USDC: (...args) => singleQuery(publicClient, call.USDC(...args), {}, addressResolver),
3558
- // Mutations
3559
- };
3560
- }