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