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

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 (284) hide show
  1. package/AGENTS.md +172 -0
  2. package/README.md +17 -116
  3. package/abis.json +193056 -0
  4. package/addresses.json +76 -0
  5. package/dist/contracts/AaveV3.d.ts +2594 -0
  6. package/dist/contracts/AaveV3.d.ts.map +1 -0
  7. package/dist/contracts/AaveV3.js +3272 -0
  8. package/dist/contracts/Addys.d.ts +124 -0
  9. package/dist/contracts/Addys.d.ts.map +1 -0
  10. package/dist/contracts/Addys.js +134 -0
  11. package/dist/contracts/AeroClassic.d.ts +2118 -0
  12. package/dist/contracts/AeroClassic.d.ts.map +1 -0
  13. package/dist/contracts/AeroClassic.js +2679 -0
  14. package/dist/contracts/AeroSlipstream.d.ts +2256 -0
  15. package/dist/contracts/AeroSlipstream.d.ts.map +1 -0
  16. package/dist/contracts/AeroSlipstream.js +2848 -0
  17. package/dist/contracts/AgentSenderGeneric.d.ts +4771 -0
  18. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -0
  19. package/dist/contracts/AgentSenderGeneric.js +6192 -0
  20. package/dist/contracts/AgentSenderSpecial.d.ts +2124 -0
  21. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -0
  22. package/dist/contracts/AgentSenderSpecial.js +2671 -0
  23. package/dist/contracts/AgentSenderSpecialAdmin.d.ts +984 -0
  24. package/dist/contracts/AgentSenderSpecialAdmin.d.ts.map +1 -0
  25. package/dist/contracts/AgentSenderSpecialAdmin.js +1185 -0
  26. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +3180 -0
  27. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +1 -0
  28. package/dist/contracts/AgentSenderSpecialSigHelper.js +4211 -0
  29. package/dist/contracts/AgentWrapper.d.ts +2678 -0
  30. package/dist/contracts/AgentWrapper.d.ts.map +1 -0
  31. package/dist/contracts/AgentWrapper.js +3602 -0
  32. package/dist/contracts/AgentWrapperV1.d.ts +3789 -0
  33. package/dist/contracts/AgentWrapperV1.d.ts.map +1 -0
  34. package/dist/contracts/AgentWrapperV1.js +4945 -0
  35. package/dist/contracts/AgentWrapperV2.d.ts +2494 -0
  36. package/dist/contracts/AgentWrapperV2.d.ts.map +1 -0
  37. package/dist/contracts/AgentWrapperV2.js +3354 -0
  38. package/dist/contracts/Appraiser.d.ts +577 -0
  39. package/dist/contracts/Appraiser.d.ts.map +1 -0
  40. package/dist/contracts/Appraiser.js +735 -0
  41. package/dist/contracts/Avantis.d.ts +2606 -0
  42. package/dist/contracts/Avantis.d.ts.map +1 -0
  43. package/dist/contracts/Avantis.js +3282 -0
  44. package/dist/contracts/Billing.d.ts +381 -0
  45. package/dist/contracts/Billing.d.ts.map +1 -0
  46. package/dist/contracts/Billing.js +451 -0
  47. package/dist/contracts/ChequeBook.d.ts +1860 -0
  48. package/dist/contracts/ChequeBook.d.ts.map +1 -0
  49. package/dist/contracts/ChequeBook.js +2131 -0
  50. package/dist/contracts/CompoundV3.d.ts +2622 -0
  51. package/dist/contracts/CompoundV3.d.ts.map +1 -0
  52. package/dist/contracts/CompoundV3.js +3304 -0
  53. package/dist/contracts/ConvertVaultToken.d.ts +64 -0
  54. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -0
  55. package/dist/contracts/ConvertVaultToken.js +75 -0
  56. package/dist/contracts/Curve.d.ts +1107 -0
  57. package/dist/contracts/Curve.d.ts.map +1 -0
  58. package/dist/contracts/Curve.js +1379 -0
  59. package/dist/contracts/DefaultsBase.d.ts +306 -0
  60. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  61. package/dist/contracts/DefaultsBase.js +331 -0
  62. package/dist/contracts/DefaultsLocal.d.ts +320 -0
  63. package/dist/contracts/DefaultsLocal.d.ts.map +1 -0
  64. package/dist/contracts/DefaultsLocal.js +350 -0
  65. package/dist/contracts/ERC20.d.ts +813 -0
  66. package/dist/contracts/ERC20.d.ts.map +1 -0
  67. package/dist/contracts/ERC20.js +1006 -0
  68. package/dist/contracts/EarnVault.d.ts +1762 -0
  69. package/dist/contracts/EarnVault.d.ts.map +1 -0
  70. package/dist/contracts/EarnVault.js +2267 -0
  71. package/dist/contracts/EarnVaultAgent.d.ts +1160 -0
  72. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -0
  73. package/dist/contracts/EarnVaultAgent.js +1435 -0
  74. package/dist/contracts/EarnVaultAgentSigHelper.d.ts +905 -0
  75. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -0
  76. package/dist/contracts/EarnVaultAgentSigHelper.js +1198 -0
  77. package/dist/contracts/EarnVaultWallet.d.ts +777 -0
  78. package/dist/contracts/EarnVaultWallet.d.ts.map +1 -0
  79. package/dist/contracts/EarnVaultWallet.js +987 -0
  80. package/dist/contracts/Erc20Token.d.ts +813 -0
  81. package/dist/contracts/Erc20Token.d.ts.map +1 -0
  82. package/dist/contracts/Erc20Token.js +1006 -0
  83. package/dist/contracts/Euler.d.ts +2662 -0
  84. package/dist/contracts/Euler.d.ts.map +1 -0
  85. package/dist/contracts/Euler.js +3350 -0
  86. package/dist/contracts/ExtraFi.d.ts +2637 -0
  87. package/dist/contracts/ExtraFi.d.ts.map +1 -0
  88. package/dist/contracts/ExtraFi.js +3323 -0
  89. package/dist/contracts/Fluid.d.ts +2634 -0
  90. package/dist/contracts/Fluid.d.ts.map +1 -0
  91. package/dist/contracts/Fluid.js +3318 -0
  92. package/dist/contracts/FortyAcres.d.ts +2620 -0
  93. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  94. package/dist/contracts/FortyAcres.js +3300 -0
  95. package/dist/contracts/Hatchery.d.ts +392 -0
  96. package/dist/contracts/Hatchery.d.ts.map +1 -0
  97. package/dist/contracts/Hatchery.js +472 -0
  98. package/dist/contracts/Helpers.d.ts +1463 -0
  99. package/dist/contracts/Helpers.d.ts.map +1 -0
  100. package/dist/contracts/Helpers.js +1763 -0
  101. package/dist/contracts/HighCommand.d.ts +2169 -0
  102. package/dist/contracts/HighCommand.d.ts.map +1 -0
  103. package/dist/contracts/HighCommand.js +2474 -0
  104. package/dist/contracts/Kernel.d.ts +391 -0
  105. package/dist/contracts/Kernel.d.ts.map +1 -0
  106. package/dist/contracts/Kernel.js +446 -0
  107. package/dist/contracts/Ledger.d.ts +637 -0
  108. package/dist/contracts/Ledger.d.ts.map +1 -0
  109. package/dist/contracts/Ledger.js +759 -0
  110. package/dist/contracts/LegoBook.d.ts +1463 -0
  111. package/dist/contracts/LegoBook.d.ts.map +1 -0
  112. package/dist/contracts/LegoBook.js +1763 -0
  113. package/dist/contracts/LegoTools.d.ts +1913 -0
  114. package/dist/contracts/LegoTools.d.ts.map +1 -0
  115. package/dist/contracts/LegoTools.js +2402 -0
  116. package/dist/contracts/LevgVault.d.ts +2115 -0
  117. package/dist/contracts/LevgVault.d.ts.map +1 -0
  118. package/dist/contracts/LevgVault.js +2733 -0
  119. package/dist/contracts/LevgVaultAgent.d.ts +2013 -0
  120. package/dist/contracts/LevgVaultAgent.d.ts.map +1 -0
  121. package/dist/contracts/LevgVaultAgent.js +2563 -0
  122. package/dist/contracts/LevgVaultAgentSigHelper.d.ts +2221 -0
  123. package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +1 -0
  124. package/dist/contracts/LevgVaultAgentSigHelper.js +2963 -0
  125. package/dist/contracts/LevgVaultHelper.d.ts +977 -0
  126. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -0
  127. package/dist/contracts/LevgVaultHelper.js +1289 -0
  128. package/dist/contracts/LevgVaultTools.d.ts +2629 -0
  129. package/dist/contracts/LevgVaultTools.d.ts.map +1 -0
  130. package/dist/contracts/LevgVaultTools.js +3560 -0
  131. package/dist/contracts/LevgVaultWallet.d.ts +1119 -0
  132. package/dist/contracts/LevgVaultWallet.d.ts.map +1 -0
  133. package/dist/contracts/LevgVaultWallet.js +1439 -0
  134. package/dist/contracts/LocalGov.d.ts +427 -0
  135. package/dist/contracts/LocalGov.d.ts.map +1 -0
  136. package/dist/contracts/LocalGov.js +507 -0
  137. package/dist/contracts/LootDistributor.d.ts +1053 -0
  138. package/dist/contracts/LootDistributor.d.ts.map +1 -0
  139. package/dist/contracts/LootDistributor.js +1291 -0
  140. package/dist/contracts/Migrator.d.ts +449 -0
  141. package/dist/contracts/Migrator.d.ts.map +1 -0
  142. package/dist/contracts/Migrator.js +535 -0
  143. package/dist/contracts/MissionControl.d.ts +1405 -0
  144. package/dist/contracts/MissionControl.d.ts.map +1 -0
  145. package/dist/contracts/MissionControl.js +1592 -0
  146. package/dist/contracts/Moonwell.d.ts +2623 -0
  147. package/dist/contracts/Moonwell.d.ts.map +1 -0
  148. package/dist/contracts/Moonwell.js +3304 -0
  149. package/dist/contracts/Morpho.d.ts +2662 -0
  150. package/dist/contracts/Morpho.d.ts.map +1 -0
  151. package/dist/contracts/Morpho.js +3350 -0
  152. package/dist/contracts/Ownership.d.ts +414 -0
  153. package/dist/contracts/Ownership.d.ts.map +1 -0
  154. package/dist/contracts/Ownership.js +472 -0
  155. package/dist/contracts/Paymaster.d.ts +1511 -0
  156. package/dist/contracts/Paymaster.d.ts.map +1 -0
  157. package/dist/contracts/Paymaster.js +1812 -0
  158. package/dist/contracts/RipeLego.d.ts +2913 -0
  159. package/dist/contracts/RipeLego.d.ts.map +1 -0
  160. package/dist/contracts/RipeLego.js +3643 -0
  161. package/dist/contracts/Sentinel.d.ts +2067 -0
  162. package/dist/contracts/Sentinel.d.ts.map +1 -0
  163. package/dist/contracts/Sentinel.js +2480 -0
  164. package/dist/contracts/SignatureHelper.d.ts +4250 -0
  165. package/dist/contracts/SignatureHelper.d.ts.map +1 -0
  166. package/dist/contracts/SignatureHelper.js +5714 -0
  167. package/dist/contracts/SignatureHelperV1.d.ts +4250 -0
  168. package/dist/contracts/SignatureHelperV1.d.ts.map +1 -0
  169. package/dist/contracts/SignatureHelperV1.js +5714 -0
  170. package/dist/contracts/SkyPsm.d.ts +2667 -0
  171. package/dist/contracts/SkyPsm.d.ts.map +1 -0
  172. package/dist/contracts/SkyPsm.js +3356 -0
  173. package/dist/contracts/Switchboard.d.ts +1483 -0
  174. package/dist/contracts/Switchboard.d.ts.map +1 -0
  175. package/dist/contracts/Switchboard.js +1790 -0
  176. package/dist/contracts/SwitchboardAlpha.d.ts +3161 -0
  177. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  178. package/dist/contracts/SwitchboardAlpha.js +3771 -0
  179. package/dist/contracts/SwitchboardBravo.d.ts +1591 -0
  180. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  181. package/dist/contracts/SwitchboardBravo.js +1872 -0
  182. package/dist/contracts/SwitchboardCharlie.d.ts +3172 -0
  183. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  184. package/dist/contracts/SwitchboardCharlie.js +3713 -0
  185. package/dist/contracts/UnderscoreLego.d.ts +2592 -0
  186. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  187. package/dist/contracts/UnderscoreLego.js +3264 -0
  188. package/dist/contracts/UndyAero.d.ts +1733 -0
  189. package/dist/contracts/UndyAero.d.ts.map +1 -0
  190. package/dist/contracts/UndyAero.js +2235 -0
  191. package/dist/contracts/UndyBtc.d.ts +1733 -0
  192. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  193. package/dist/contracts/UndyBtc.js +2235 -0
  194. package/dist/contracts/UndyCbeth.d.ts +1733 -0
  195. package/dist/contracts/UndyCbeth.d.ts.map +1 -0
  196. package/dist/contracts/UndyCbeth.js +2235 -0
  197. package/dist/contracts/UndyEth.d.ts +1733 -0
  198. package/dist/contracts/UndyEth.d.ts.map +1 -0
  199. package/dist/contracts/UndyEth.js +2235 -0
  200. package/dist/contracts/UndyEurc.d.ts +1733 -0
  201. package/dist/contracts/UndyEurc.d.ts.map +1 -0
  202. package/dist/contracts/UndyEurc.js +2235 -0
  203. package/dist/contracts/UndyGho.d.ts +1733 -0
  204. package/dist/contracts/UndyGho.d.ts.map +1 -0
  205. package/dist/contracts/UndyGho.js +2235 -0
  206. package/dist/contracts/UndyHq.d.ts +1677 -0
  207. package/dist/contracts/UndyHq.d.ts.map +1 -0
  208. package/dist/contracts/UndyHq.js +2026 -0
  209. package/dist/contracts/UndyRewardsLego.d.ts +1572 -0
  210. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -0
  211. package/dist/contracts/UndyRewardsLego.js +1994 -0
  212. package/dist/contracts/UndyToken.d.ts +821 -0
  213. package/dist/contracts/UndyToken.d.ts.map +1 -0
  214. package/dist/contracts/UndyToken.js +1017 -0
  215. package/dist/contracts/UndyUsd.d.ts +1733 -0
  216. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  217. package/dist/contracts/UndyUsd.js +2235 -0
  218. package/dist/contracts/UndyUsdV2.d.ts +1762 -0
  219. package/dist/contracts/UndyUsdV2.d.ts.map +1 -0
  220. package/dist/contracts/UndyUsdV2.js +2267 -0
  221. package/dist/contracts/UndyUsds.d.ts +1733 -0
  222. package/dist/contracts/UndyUsds.d.ts.map +1 -0
  223. package/dist/contracts/UndyUsds.js +2235 -0
  224. package/dist/contracts/UndyVirtual.d.ts +1762 -0
  225. package/dist/contracts/UndyVirtual.d.ts.map +1 -0
  226. package/dist/contracts/UndyVirtual.js +2267 -0
  227. package/dist/contracts/UniswapV2.d.ts +2118 -0
  228. package/dist/contracts/UniswapV2.d.ts.map +1 -0
  229. package/dist/contracts/UniswapV2.js +2679 -0
  230. package/dist/contracts/UniswapV3.d.ts +2256 -0
  231. package/dist/contracts/UniswapV3.d.ts.map +1 -0
  232. package/dist/contracts/UniswapV3.js +2848 -0
  233. package/dist/contracts/UserWallet.d.ts +2650 -0
  234. package/dist/contracts/UserWallet.d.ts.map +1 -0
  235. package/dist/contracts/UserWallet.js +3520 -0
  236. package/dist/contracts/UserWalletConfig.d.ts +3918 -0
  237. package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
  238. package/dist/contracts/UserWalletConfig.js +4527 -0
  239. package/dist/contracts/UserWalletConfigV1.d.ts +3692 -0
  240. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -0
  241. package/dist/contracts/UserWalletConfigV1.js +4276 -0
  242. package/dist/contracts/UserWalletSignatureHelper.d.ts +5558 -0
  243. package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -0
  244. package/dist/contracts/UserWalletSignatureHelper.js +7480 -0
  245. package/dist/contracts/UserWalletV1.d.ts +2650 -0
  246. package/dist/contracts/UserWalletV1.d.ts.map +1 -0
  247. package/dist/contracts/UserWalletV1.js +3520 -0
  248. package/dist/contracts/VaultErc20Token.d.ts +522 -0
  249. package/dist/contracts/VaultErc20Token.d.ts.map +1 -0
  250. package/dist/contracts/VaultErc20Token.js +658 -0
  251. package/dist/contracts/VaultRegistry.d.ts +3162 -0
  252. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  253. package/dist/contracts/VaultRegistry.js +3893 -0
  254. package/dist/contracts/WalletBackpack.d.ts +1248 -0
  255. package/dist/contracts/WalletBackpack.d.ts.map +1 -0
  256. package/dist/contracts/WalletBackpack.js +1519 -0
  257. package/dist/contracts/Wasabi.d.ts +2620 -0
  258. package/dist/contracts/Wasabi.d.ts.map +1 -0
  259. package/dist/contracts/Wasabi.js +3300 -0
  260. package/dist/contracts/index.d.ts +86 -0
  261. package/dist/contracts/index.d.ts.map +1 -0
  262. package/dist/contracts/index.js +89 -0
  263. package/dist/contracts/sdk.d.ts +176 -0
  264. package/dist/contracts/sdk.d.ts.map +1 -0
  265. package/dist/contracts/sdk.js +178 -0
  266. package/dist/getSwapInstructions.d.ts +34 -0
  267. package/dist/getSwapInstructions.d.ts.map +1 -0
  268. package/dist/getSwapInstructions.js +21 -0
  269. package/dist/index.d.ts +135 -0
  270. package/dist/index.d.ts.map +1 -0
  271. package/dist/index.js +137 -0
  272. package/package.json +44 -17
  273. package/.claude/settings.local.json +0 -31
  274. package/.eslintrc.json +0 -27
  275. package/.prettierrc +0 -9
  276. package/.tool-versions +0 -1
  277. package/LICENSE +0 -41
  278. package/LICENSE_DATE.md +0 -34
  279. package/LICENSE_GRANTS.md +0 -33
  280. package/LICENSE_INFO.md +0 -90
  281. package/dapp.config.js +0 -154
  282. package/src/getSwapInstructions.ts +0 -55
  283. package/src/index.ts +0 -192
  284. package/tsconfig.json +0 -18
@@ -0,0 +1,2733 @@
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": "Deposit",
10
+ "inputs": [
11
+ {
12
+ "name": "sender",
13
+ "type": "address",
14
+ "indexed": true
15
+ },
16
+ {
17
+ "name": "owner",
18
+ "type": "address",
19
+ "indexed": true
20
+ },
21
+ {
22
+ "name": "assets",
23
+ "type": "uint256",
24
+ "indexed": false
25
+ },
26
+ {
27
+ "name": "shares",
28
+ "type": "uint256",
29
+ "indexed": false
30
+ }
31
+ ],
32
+ "anonymous": false,
33
+ "type": "event"
34
+ },
35
+ {
36
+ "name": "Withdraw",
37
+ "inputs": [
38
+ {
39
+ "name": "sender",
40
+ "type": "address",
41
+ "indexed": true
42
+ },
43
+ {
44
+ "name": "receiver",
45
+ "type": "address",
46
+ "indexed": true
47
+ },
48
+ {
49
+ "name": "owner",
50
+ "type": "address",
51
+ "indexed": true
52
+ },
53
+ {
54
+ "name": "assets",
55
+ "type": "uint256",
56
+ "indexed": false
57
+ },
58
+ {
59
+ "name": "shares",
60
+ "type": "uint256",
61
+ "indexed": false
62
+ }
63
+ ],
64
+ "anonymous": false,
65
+ "type": "event"
66
+ },
67
+ {
68
+ "name": "LeftoversSwept",
69
+ "inputs": [
70
+ {
71
+ "name": "amount",
72
+ "type": "uint256",
73
+ "indexed": false
74
+ },
75
+ {
76
+ "name": "recipient",
77
+ "type": "address",
78
+ "indexed": true
79
+ }
80
+ ],
81
+ "anonymous": false,
82
+ "type": "event"
83
+ },
84
+ {
85
+ "name": "Transfer",
86
+ "inputs": [
87
+ {
88
+ "name": "sender",
89
+ "type": "address",
90
+ "indexed": true
91
+ },
92
+ {
93
+ "name": "recipient",
94
+ "type": "address",
95
+ "indexed": true
96
+ },
97
+ {
98
+ "name": "amount",
99
+ "type": "uint256",
100
+ "indexed": false
101
+ }
102
+ ],
103
+ "anonymous": false,
104
+ "type": "event"
105
+ },
106
+ {
107
+ "name": "Approval",
108
+ "inputs": [
109
+ {
110
+ "name": "owner",
111
+ "type": "address",
112
+ "indexed": true
113
+ },
114
+ {
115
+ "name": "spender",
116
+ "type": "address",
117
+ "indexed": true
118
+ },
119
+ {
120
+ "name": "amount",
121
+ "type": "uint256",
122
+ "indexed": false
123
+ }
124
+ ],
125
+ "anonymous": false,
126
+ "type": "event"
127
+ },
128
+ {
129
+ "name": "BlacklistModified",
130
+ "inputs": [
131
+ {
132
+ "name": "addr",
133
+ "type": "address",
134
+ "indexed": true
135
+ },
136
+ {
137
+ "name": "isBlacklisted",
138
+ "type": "bool",
139
+ "indexed": false
140
+ }
141
+ ],
142
+ "anonymous": false,
143
+ "type": "event"
144
+ },
145
+ {
146
+ "name": "TokenPauseModified",
147
+ "inputs": [
148
+ {
149
+ "name": "isPaused",
150
+ "type": "bool",
151
+ "indexed": false
152
+ }
153
+ ],
154
+ "anonymous": false,
155
+ "type": "event"
156
+ },
157
+ {
158
+ "name": "LevgVaultAction",
159
+ "inputs": [
160
+ {
161
+ "name": "op",
162
+ "type": "uint8",
163
+ "indexed": false
164
+ },
165
+ {
166
+ "name": "asset1",
167
+ "type": "address",
168
+ "indexed": true
169
+ },
170
+ {
171
+ "name": "asset2",
172
+ "type": "address",
173
+ "indexed": true
174
+ },
175
+ {
176
+ "name": "amount1",
177
+ "type": "uint256",
178
+ "indexed": false
179
+ },
180
+ {
181
+ "name": "amount2",
182
+ "type": "uint256",
183
+ "indexed": false
184
+ },
185
+ {
186
+ "name": "usdValue",
187
+ "type": "uint256",
188
+ "indexed": false
189
+ },
190
+ {
191
+ "name": "legoId",
192
+ "type": "uint256",
193
+ "indexed": false
194
+ },
195
+ {
196
+ "name": "signer",
197
+ "type": "address",
198
+ "indexed": true
199
+ }
200
+ ],
201
+ "anonymous": false,
202
+ "type": "event"
203
+ },
204
+ {
205
+ "name": "CollateralVaultTokenSet",
206
+ "inputs": [
207
+ {
208
+ "name": "collateralVaultToken",
209
+ "type": "address",
210
+ "indexed": true
211
+ },
212
+ {
213
+ "name": "legoId",
214
+ "type": "uint256",
215
+ "indexed": false
216
+ },
217
+ {
218
+ "name": "ripeVaultId",
219
+ "type": "uint256",
220
+ "indexed": false
221
+ }
222
+ ],
223
+ "anonymous": false,
224
+ "type": "event"
225
+ },
226
+ {
227
+ "name": "LeverageVaultTokenSet",
228
+ "inputs": [
229
+ {
230
+ "name": "leverageVaultToken",
231
+ "type": "address",
232
+ "indexed": true
233
+ },
234
+ {
235
+ "name": "legoId",
236
+ "type": "uint256",
237
+ "indexed": false
238
+ },
239
+ {
240
+ "name": "ripeVaultId",
241
+ "type": "uint256",
242
+ "indexed": false
243
+ }
244
+ ],
245
+ "anonymous": false,
246
+ "type": "event"
247
+ },
248
+ {
249
+ "name": "SlippagesSet",
250
+ "inputs": [
251
+ {
252
+ "name": "usdcSlippage",
253
+ "type": "uint256",
254
+ "indexed": false
255
+ },
256
+ {
257
+ "name": "greenSlippage",
258
+ "type": "uint256",
259
+ "indexed": false
260
+ }
261
+ ],
262
+ "anonymous": false,
263
+ "type": "event"
264
+ },
265
+ {
266
+ "name": "LevgVaultHelperSet",
267
+ "inputs": [
268
+ {
269
+ "name": "levgVaultHelper",
270
+ "type": "address",
271
+ "indexed": true
272
+ }
273
+ ],
274
+ "anonymous": false,
275
+ "type": "event"
276
+ },
277
+ {
278
+ "name": "MaxDebtRatioSet",
279
+ "inputs": [
280
+ {
281
+ "name": "maxDebtRatio",
282
+ "type": "uint256",
283
+ "indexed": false
284
+ }
285
+ ],
286
+ "anonymous": false,
287
+ "type": "event"
288
+ },
289
+ {
290
+ "stateMutability": "view",
291
+ "type": "function",
292
+ "name": "name",
293
+ "inputs": [],
294
+ "outputs": [
295
+ {
296
+ "name": "",
297
+ "type": "string"
298
+ }
299
+ ]
300
+ },
301
+ {
302
+ "stateMutability": "view",
303
+ "type": "function",
304
+ "name": "symbol",
305
+ "inputs": [],
306
+ "outputs": [
307
+ {
308
+ "name": "",
309
+ "type": "string"
310
+ }
311
+ ]
312
+ },
313
+ {
314
+ "stateMutability": "view",
315
+ "type": "function",
316
+ "name": "decimals",
317
+ "inputs": [],
318
+ "outputs": [
319
+ {
320
+ "name": "",
321
+ "type": "uint8"
322
+ }
323
+ ]
324
+ },
325
+ {
326
+ "stateMutability": "nonpayable",
327
+ "type": "function",
328
+ "name": "transfer",
329
+ "inputs": [
330
+ {
331
+ "name": "_recipient",
332
+ "type": "address"
333
+ },
334
+ {
335
+ "name": "_amount",
336
+ "type": "uint256"
337
+ }
338
+ ],
339
+ "outputs": [
340
+ {
341
+ "name": "",
342
+ "type": "bool"
343
+ }
344
+ ]
345
+ },
346
+ {
347
+ "stateMutability": "nonpayable",
348
+ "type": "function",
349
+ "name": "transferFrom",
350
+ "inputs": [
351
+ {
352
+ "name": "_sender",
353
+ "type": "address"
354
+ },
355
+ {
356
+ "name": "_recipient",
357
+ "type": "address"
358
+ },
359
+ {
360
+ "name": "_amount",
361
+ "type": "uint256"
362
+ }
363
+ ],
364
+ "outputs": [
365
+ {
366
+ "name": "",
367
+ "type": "bool"
368
+ }
369
+ ]
370
+ },
371
+ {
372
+ "stateMutability": "nonpayable",
373
+ "type": "function",
374
+ "name": "approve",
375
+ "inputs": [
376
+ {
377
+ "name": "_spender",
378
+ "type": "address"
379
+ },
380
+ {
381
+ "name": "_amount",
382
+ "type": "uint256"
383
+ }
384
+ ],
385
+ "outputs": [
386
+ {
387
+ "name": "",
388
+ "type": "bool"
389
+ }
390
+ ]
391
+ },
392
+ {
393
+ "stateMutability": "nonpayable",
394
+ "type": "function",
395
+ "name": "increaseAllowance",
396
+ "inputs": [
397
+ {
398
+ "name": "_spender",
399
+ "type": "address"
400
+ },
401
+ {
402
+ "name": "_amount",
403
+ "type": "uint256"
404
+ }
405
+ ],
406
+ "outputs": [
407
+ {
408
+ "name": "",
409
+ "type": "bool"
410
+ }
411
+ ]
412
+ },
413
+ {
414
+ "stateMutability": "nonpayable",
415
+ "type": "function",
416
+ "name": "decreaseAllowance",
417
+ "inputs": [
418
+ {
419
+ "name": "_spender",
420
+ "type": "address"
421
+ },
422
+ {
423
+ "name": "_amount",
424
+ "type": "uint256"
425
+ }
426
+ ],
427
+ "outputs": [
428
+ {
429
+ "name": "",
430
+ "type": "bool"
431
+ }
432
+ ]
433
+ },
434
+ {
435
+ "stateMutability": "nonpayable",
436
+ "type": "function",
437
+ "name": "burn",
438
+ "inputs": [
439
+ {
440
+ "name": "_amount",
441
+ "type": "uint256"
442
+ }
443
+ ],
444
+ "outputs": [
445
+ {
446
+ "name": "",
447
+ "type": "bool"
448
+ }
449
+ ]
450
+ },
451
+ {
452
+ "stateMutability": "view",
453
+ "type": "function",
454
+ "name": "DOMAIN_SEPARATOR",
455
+ "inputs": [],
456
+ "outputs": [
457
+ {
458
+ "name": "",
459
+ "type": "bytes32"
460
+ }
461
+ ]
462
+ },
463
+ {
464
+ "stateMutability": "nonpayable",
465
+ "type": "function",
466
+ "name": "permit",
467
+ "inputs": [
468
+ {
469
+ "name": "_owner",
470
+ "type": "address"
471
+ },
472
+ {
473
+ "name": "_spender",
474
+ "type": "address"
475
+ },
476
+ {
477
+ "name": "_value",
478
+ "type": "uint256"
479
+ },
480
+ {
481
+ "name": "_deadline",
482
+ "type": "uint256"
483
+ },
484
+ {
485
+ "name": "_signature",
486
+ "type": "bytes"
487
+ }
488
+ ],
489
+ "outputs": [
490
+ {
491
+ "name": "",
492
+ "type": "bool"
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ "stateMutability": "nonpayable",
498
+ "type": "function",
499
+ "name": "setBlacklist",
500
+ "inputs": [
501
+ {
502
+ "name": "_addr",
503
+ "type": "address"
504
+ },
505
+ {
506
+ "name": "_shouldBlacklist",
507
+ "type": "bool"
508
+ }
509
+ ],
510
+ "outputs": [
511
+ {
512
+ "name": "",
513
+ "type": "bool"
514
+ }
515
+ ]
516
+ },
517
+ {
518
+ "stateMutability": "nonpayable",
519
+ "type": "function",
520
+ "name": "burnBlacklistTokens",
521
+ "inputs": [
522
+ {
523
+ "name": "_addr",
524
+ "type": "address"
525
+ }
526
+ ],
527
+ "outputs": [
528
+ {
529
+ "name": "",
530
+ "type": "bool"
531
+ }
532
+ ]
533
+ },
534
+ {
535
+ "stateMutability": "nonpayable",
536
+ "type": "function",
537
+ "name": "burnBlacklistTokens",
538
+ "inputs": [
539
+ {
540
+ "name": "_addr",
541
+ "type": "address"
542
+ },
543
+ {
544
+ "name": "_amount",
545
+ "type": "uint256"
546
+ }
547
+ ],
548
+ "outputs": [
549
+ {
550
+ "name": "",
551
+ "type": "bool"
552
+ }
553
+ ]
554
+ },
555
+ {
556
+ "stateMutability": "nonpayable",
557
+ "type": "function",
558
+ "name": "pause",
559
+ "inputs": [
560
+ {
561
+ "name": "_shouldPause",
562
+ "type": "bool"
563
+ }
564
+ ],
565
+ "outputs": []
566
+ },
567
+ {
568
+ "stateMutability": "view",
569
+ "type": "function",
570
+ "name": "undyHq",
571
+ "inputs": [],
572
+ "outputs": [
573
+ {
574
+ "name": "",
575
+ "type": "address"
576
+ }
577
+ ]
578
+ },
579
+ {
580
+ "stateMutability": "view",
581
+ "type": "function",
582
+ "name": "blacklisted",
583
+ "inputs": [
584
+ {
585
+ "name": "arg0",
586
+ "type": "address"
587
+ }
588
+ ],
589
+ "outputs": [
590
+ {
591
+ "name": "",
592
+ "type": "bool"
593
+ }
594
+ ]
595
+ },
596
+ {
597
+ "stateMutability": "view",
598
+ "type": "function",
599
+ "name": "isPaused",
600
+ "inputs": [],
601
+ "outputs": [
602
+ {
603
+ "name": "",
604
+ "type": "bool"
605
+ }
606
+ ]
607
+ },
608
+ {
609
+ "stateMutability": "view",
610
+ "type": "function",
611
+ "name": "balanceOf",
612
+ "inputs": [
613
+ {
614
+ "name": "arg0",
615
+ "type": "address"
616
+ }
617
+ ],
618
+ "outputs": [
619
+ {
620
+ "name": "",
621
+ "type": "uint256"
622
+ }
623
+ ]
624
+ },
625
+ {
626
+ "stateMutability": "view",
627
+ "type": "function",
628
+ "name": "allowance",
629
+ "inputs": [
630
+ {
631
+ "name": "arg0",
632
+ "type": "address"
633
+ },
634
+ {
635
+ "name": "arg1",
636
+ "type": "address"
637
+ }
638
+ ],
639
+ "outputs": [
640
+ {
641
+ "name": "",
642
+ "type": "uint256"
643
+ }
644
+ ]
645
+ },
646
+ {
647
+ "stateMutability": "view",
648
+ "type": "function",
649
+ "name": "totalSupply",
650
+ "inputs": [],
651
+ "outputs": [
652
+ {
653
+ "name": "",
654
+ "type": "uint256"
655
+ }
656
+ ]
657
+ },
658
+ {
659
+ "stateMutability": "view",
660
+ "type": "function",
661
+ "name": "TOKEN_NAME",
662
+ "inputs": [],
663
+ "outputs": [
664
+ {
665
+ "name": "",
666
+ "type": "string"
667
+ }
668
+ ]
669
+ },
670
+ {
671
+ "stateMutability": "view",
672
+ "type": "function",
673
+ "name": "TOKEN_SYMBOL",
674
+ "inputs": [],
675
+ "outputs": [
676
+ {
677
+ "name": "",
678
+ "type": "string"
679
+ }
680
+ ]
681
+ },
682
+ {
683
+ "stateMutability": "view",
684
+ "type": "function",
685
+ "name": "TOKEN_DECIMALS",
686
+ "inputs": [],
687
+ "outputs": [
688
+ {
689
+ "name": "",
690
+ "type": "uint8"
691
+ }
692
+ ]
693
+ },
694
+ {
695
+ "stateMutability": "view",
696
+ "type": "function",
697
+ "name": "VERSION",
698
+ "inputs": [],
699
+ "outputs": [
700
+ {
701
+ "name": "",
702
+ "type": "string"
703
+ }
704
+ ]
705
+ },
706
+ {
707
+ "stateMutability": "view",
708
+ "type": "function",
709
+ "name": "nonces",
710
+ "inputs": [
711
+ {
712
+ "name": "arg0",
713
+ "type": "address"
714
+ }
715
+ ],
716
+ "outputs": [
717
+ {
718
+ "name": "",
719
+ "type": "uint256"
720
+ }
721
+ ]
722
+ },
723
+ {
724
+ "stateMutability": "nonpayable",
725
+ "type": "function",
726
+ "name": "depositForYield",
727
+ "inputs": [
728
+ {
729
+ "name": "_legoId",
730
+ "type": "uint256"
731
+ },
732
+ {
733
+ "name": "_asset",
734
+ "type": "address"
735
+ }
736
+ ],
737
+ "outputs": [
738
+ {
739
+ "name": "",
740
+ "type": "uint256"
741
+ },
742
+ {
743
+ "name": "",
744
+ "type": "address"
745
+ },
746
+ {
747
+ "name": "",
748
+ "type": "uint256"
749
+ },
750
+ {
751
+ "name": "",
752
+ "type": "uint256"
753
+ }
754
+ ]
755
+ },
756
+ {
757
+ "stateMutability": "nonpayable",
758
+ "type": "function",
759
+ "name": "depositForYield",
760
+ "inputs": [
761
+ {
762
+ "name": "_legoId",
763
+ "type": "uint256"
764
+ },
765
+ {
766
+ "name": "_asset",
767
+ "type": "address"
768
+ },
769
+ {
770
+ "name": "_vaultAddr",
771
+ "type": "address"
772
+ }
773
+ ],
774
+ "outputs": [
775
+ {
776
+ "name": "",
777
+ "type": "uint256"
778
+ },
779
+ {
780
+ "name": "",
781
+ "type": "address"
782
+ },
783
+ {
784
+ "name": "",
785
+ "type": "uint256"
786
+ },
787
+ {
788
+ "name": "",
789
+ "type": "uint256"
790
+ }
791
+ ]
792
+ },
793
+ {
794
+ "stateMutability": "nonpayable",
795
+ "type": "function",
796
+ "name": "depositForYield",
797
+ "inputs": [
798
+ {
799
+ "name": "_legoId",
800
+ "type": "uint256"
801
+ },
802
+ {
803
+ "name": "_asset",
804
+ "type": "address"
805
+ },
806
+ {
807
+ "name": "_vaultAddr",
808
+ "type": "address"
809
+ },
810
+ {
811
+ "name": "_amount",
812
+ "type": "uint256"
813
+ }
814
+ ],
815
+ "outputs": [
816
+ {
817
+ "name": "",
818
+ "type": "uint256"
819
+ },
820
+ {
821
+ "name": "",
822
+ "type": "address"
823
+ },
824
+ {
825
+ "name": "",
826
+ "type": "uint256"
827
+ },
828
+ {
829
+ "name": "",
830
+ "type": "uint256"
831
+ }
832
+ ]
833
+ },
834
+ {
835
+ "stateMutability": "nonpayable",
836
+ "type": "function",
837
+ "name": "depositForYield",
838
+ "inputs": [
839
+ {
840
+ "name": "_legoId",
841
+ "type": "uint256"
842
+ },
843
+ {
844
+ "name": "_asset",
845
+ "type": "address"
846
+ },
847
+ {
848
+ "name": "_vaultAddr",
849
+ "type": "address"
850
+ },
851
+ {
852
+ "name": "_amount",
853
+ "type": "uint256"
854
+ },
855
+ {
856
+ "name": "_extraData",
857
+ "type": "bytes32"
858
+ }
859
+ ],
860
+ "outputs": [
861
+ {
862
+ "name": "",
863
+ "type": "uint256"
864
+ },
865
+ {
866
+ "name": "",
867
+ "type": "address"
868
+ },
869
+ {
870
+ "name": "",
871
+ "type": "uint256"
872
+ },
873
+ {
874
+ "name": "",
875
+ "type": "uint256"
876
+ }
877
+ ]
878
+ },
879
+ {
880
+ "stateMutability": "nonpayable",
881
+ "type": "function",
882
+ "name": "withdrawFromYield",
883
+ "inputs": [
884
+ {
885
+ "name": "_legoId",
886
+ "type": "uint256"
887
+ },
888
+ {
889
+ "name": "_vaultToken",
890
+ "type": "address"
891
+ }
892
+ ],
893
+ "outputs": [
894
+ {
895
+ "name": "",
896
+ "type": "uint256"
897
+ },
898
+ {
899
+ "name": "",
900
+ "type": "address"
901
+ },
902
+ {
903
+ "name": "",
904
+ "type": "uint256"
905
+ },
906
+ {
907
+ "name": "",
908
+ "type": "uint256"
909
+ }
910
+ ]
911
+ },
912
+ {
913
+ "stateMutability": "nonpayable",
914
+ "type": "function",
915
+ "name": "withdrawFromYield",
916
+ "inputs": [
917
+ {
918
+ "name": "_legoId",
919
+ "type": "uint256"
920
+ },
921
+ {
922
+ "name": "_vaultToken",
923
+ "type": "address"
924
+ },
925
+ {
926
+ "name": "_amount",
927
+ "type": "uint256"
928
+ }
929
+ ],
930
+ "outputs": [
931
+ {
932
+ "name": "",
933
+ "type": "uint256"
934
+ },
935
+ {
936
+ "name": "",
937
+ "type": "address"
938
+ },
939
+ {
940
+ "name": "",
941
+ "type": "uint256"
942
+ },
943
+ {
944
+ "name": "",
945
+ "type": "uint256"
946
+ }
947
+ ]
948
+ },
949
+ {
950
+ "stateMutability": "nonpayable",
951
+ "type": "function",
952
+ "name": "withdrawFromYield",
953
+ "inputs": [
954
+ {
955
+ "name": "_legoId",
956
+ "type": "uint256"
957
+ },
958
+ {
959
+ "name": "_vaultToken",
960
+ "type": "address"
961
+ },
962
+ {
963
+ "name": "_amount",
964
+ "type": "uint256"
965
+ },
966
+ {
967
+ "name": "_extraData",
968
+ "type": "bytes32"
969
+ }
970
+ ],
971
+ "outputs": [
972
+ {
973
+ "name": "",
974
+ "type": "uint256"
975
+ },
976
+ {
977
+ "name": "",
978
+ "type": "address"
979
+ },
980
+ {
981
+ "name": "",
982
+ "type": "uint256"
983
+ },
984
+ {
985
+ "name": "",
986
+ "type": "uint256"
987
+ }
988
+ ]
989
+ },
990
+ {
991
+ "stateMutability": "nonpayable",
992
+ "type": "function",
993
+ "name": "withdrawFromYield",
994
+ "inputs": [
995
+ {
996
+ "name": "_legoId",
997
+ "type": "uint256"
998
+ },
999
+ {
1000
+ "name": "_vaultToken",
1001
+ "type": "address"
1002
+ },
1003
+ {
1004
+ "name": "_amount",
1005
+ "type": "uint256"
1006
+ },
1007
+ {
1008
+ "name": "_extraData",
1009
+ "type": "bytes32"
1010
+ },
1011
+ {
1012
+ "name": "_isSpecialTx",
1013
+ "type": "bool"
1014
+ }
1015
+ ],
1016
+ "outputs": [
1017
+ {
1018
+ "name": "",
1019
+ "type": "uint256"
1020
+ },
1021
+ {
1022
+ "name": "",
1023
+ "type": "address"
1024
+ },
1025
+ {
1026
+ "name": "",
1027
+ "type": "uint256"
1028
+ },
1029
+ {
1030
+ "name": "",
1031
+ "type": "uint256"
1032
+ }
1033
+ ]
1034
+ },
1035
+ {
1036
+ "stateMutability": "nonpayable",
1037
+ "type": "function",
1038
+ "name": "swapTokens",
1039
+ "inputs": [
1040
+ {
1041
+ "name": "_instructions",
1042
+ "type": "tuple[]",
1043
+ "components": [
1044
+ {
1045
+ "name": "legoId",
1046
+ "type": "uint256"
1047
+ },
1048
+ {
1049
+ "name": "amountIn",
1050
+ "type": "uint256"
1051
+ },
1052
+ {
1053
+ "name": "minAmountOut",
1054
+ "type": "uint256"
1055
+ },
1056
+ {
1057
+ "name": "tokenPath",
1058
+ "type": "address[]"
1059
+ },
1060
+ {
1061
+ "name": "poolPath",
1062
+ "type": "address[]"
1063
+ }
1064
+ ]
1065
+ }
1066
+ ],
1067
+ "outputs": [
1068
+ {
1069
+ "name": "",
1070
+ "type": "address"
1071
+ },
1072
+ {
1073
+ "name": "",
1074
+ "type": "uint256"
1075
+ },
1076
+ {
1077
+ "name": "",
1078
+ "type": "address"
1079
+ },
1080
+ {
1081
+ "name": "",
1082
+ "type": "uint256"
1083
+ },
1084
+ {
1085
+ "name": "",
1086
+ "type": "uint256"
1087
+ }
1088
+ ]
1089
+ },
1090
+ {
1091
+ "stateMutability": "nonpayable",
1092
+ "type": "function",
1093
+ "name": "addCollateral",
1094
+ "inputs": [
1095
+ {
1096
+ "name": "_legoId",
1097
+ "type": "uint256"
1098
+ },
1099
+ {
1100
+ "name": "_asset",
1101
+ "type": "address"
1102
+ }
1103
+ ],
1104
+ "outputs": [
1105
+ {
1106
+ "name": "",
1107
+ "type": "uint256"
1108
+ },
1109
+ {
1110
+ "name": "",
1111
+ "type": "uint256"
1112
+ }
1113
+ ]
1114
+ },
1115
+ {
1116
+ "stateMutability": "nonpayable",
1117
+ "type": "function",
1118
+ "name": "addCollateral",
1119
+ "inputs": [
1120
+ {
1121
+ "name": "_legoId",
1122
+ "type": "uint256"
1123
+ },
1124
+ {
1125
+ "name": "_asset",
1126
+ "type": "address"
1127
+ },
1128
+ {
1129
+ "name": "_amount",
1130
+ "type": "uint256"
1131
+ }
1132
+ ],
1133
+ "outputs": [
1134
+ {
1135
+ "name": "",
1136
+ "type": "uint256"
1137
+ },
1138
+ {
1139
+ "name": "",
1140
+ "type": "uint256"
1141
+ }
1142
+ ]
1143
+ },
1144
+ {
1145
+ "stateMutability": "nonpayable",
1146
+ "type": "function",
1147
+ "name": "addCollateral",
1148
+ "inputs": [
1149
+ {
1150
+ "name": "_legoId",
1151
+ "type": "uint256"
1152
+ },
1153
+ {
1154
+ "name": "_asset",
1155
+ "type": "address"
1156
+ },
1157
+ {
1158
+ "name": "_amount",
1159
+ "type": "uint256"
1160
+ },
1161
+ {
1162
+ "name": "_extraData",
1163
+ "type": "bytes32"
1164
+ }
1165
+ ],
1166
+ "outputs": [
1167
+ {
1168
+ "name": "",
1169
+ "type": "uint256"
1170
+ },
1171
+ {
1172
+ "name": "",
1173
+ "type": "uint256"
1174
+ }
1175
+ ]
1176
+ },
1177
+ {
1178
+ "stateMutability": "nonpayable",
1179
+ "type": "function",
1180
+ "name": "removeCollateral",
1181
+ "inputs": [
1182
+ {
1183
+ "name": "_legoId",
1184
+ "type": "uint256"
1185
+ },
1186
+ {
1187
+ "name": "_asset",
1188
+ "type": "address"
1189
+ }
1190
+ ],
1191
+ "outputs": [
1192
+ {
1193
+ "name": "",
1194
+ "type": "uint256"
1195
+ },
1196
+ {
1197
+ "name": "",
1198
+ "type": "uint256"
1199
+ }
1200
+ ]
1201
+ },
1202
+ {
1203
+ "stateMutability": "nonpayable",
1204
+ "type": "function",
1205
+ "name": "removeCollateral",
1206
+ "inputs": [
1207
+ {
1208
+ "name": "_legoId",
1209
+ "type": "uint256"
1210
+ },
1211
+ {
1212
+ "name": "_asset",
1213
+ "type": "address"
1214
+ },
1215
+ {
1216
+ "name": "_amount",
1217
+ "type": "uint256"
1218
+ }
1219
+ ],
1220
+ "outputs": [
1221
+ {
1222
+ "name": "",
1223
+ "type": "uint256"
1224
+ },
1225
+ {
1226
+ "name": "",
1227
+ "type": "uint256"
1228
+ }
1229
+ ]
1230
+ },
1231
+ {
1232
+ "stateMutability": "nonpayable",
1233
+ "type": "function",
1234
+ "name": "removeCollateral",
1235
+ "inputs": [
1236
+ {
1237
+ "name": "_legoId",
1238
+ "type": "uint256"
1239
+ },
1240
+ {
1241
+ "name": "_asset",
1242
+ "type": "address"
1243
+ },
1244
+ {
1245
+ "name": "_amount",
1246
+ "type": "uint256"
1247
+ },
1248
+ {
1249
+ "name": "_extraData",
1250
+ "type": "bytes32"
1251
+ }
1252
+ ],
1253
+ "outputs": [
1254
+ {
1255
+ "name": "",
1256
+ "type": "uint256"
1257
+ },
1258
+ {
1259
+ "name": "",
1260
+ "type": "uint256"
1261
+ }
1262
+ ]
1263
+ },
1264
+ {
1265
+ "stateMutability": "nonpayable",
1266
+ "type": "function",
1267
+ "name": "borrow",
1268
+ "inputs": [
1269
+ {
1270
+ "name": "_legoId",
1271
+ "type": "uint256"
1272
+ },
1273
+ {
1274
+ "name": "_borrowAsset",
1275
+ "type": "address"
1276
+ }
1277
+ ],
1278
+ "outputs": [
1279
+ {
1280
+ "name": "",
1281
+ "type": "uint256"
1282
+ },
1283
+ {
1284
+ "name": "",
1285
+ "type": "uint256"
1286
+ }
1287
+ ]
1288
+ },
1289
+ {
1290
+ "stateMutability": "nonpayable",
1291
+ "type": "function",
1292
+ "name": "borrow",
1293
+ "inputs": [
1294
+ {
1295
+ "name": "_legoId",
1296
+ "type": "uint256"
1297
+ },
1298
+ {
1299
+ "name": "_borrowAsset",
1300
+ "type": "address"
1301
+ },
1302
+ {
1303
+ "name": "_amount",
1304
+ "type": "uint256"
1305
+ }
1306
+ ],
1307
+ "outputs": [
1308
+ {
1309
+ "name": "",
1310
+ "type": "uint256"
1311
+ },
1312
+ {
1313
+ "name": "",
1314
+ "type": "uint256"
1315
+ }
1316
+ ]
1317
+ },
1318
+ {
1319
+ "stateMutability": "nonpayable",
1320
+ "type": "function",
1321
+ "name": "borrow",
1322
+ "inputs": [
1323
+ {
1324
+ "name": "_legoId",
1325
+ "type": "uint256"
1326
+ },
1327
+ {
1328
+ "name": "_borrowAsset",
1329
+ "type": "address"
1330
+ },
1331
+ {
1332
+ "name": "_amount",
1333
+ "type": "uint256"
1334
+ },
1335
+ {
1336
+ "name": "_extraData",
1337
+ "type": "bytes32"
1338
+ }
1339
+ ],
1340
+ "outputs": [
1341
+ {
1342
+ "name": "",
1343
+ "type": "uint256"
1344
+ },
1345
+ {
1346
+ "name": "",
1347
+ "type": "uint256"
1348
+ }
1349
+ ]
1350
+ },
1351
+ {
1352
+ "stateMutability": "nonpayable",
1353
+ "type": "function",
1354
+ "name": "repayDebt",
1355
+ "inputs": [
1356
+ {
1357
+ "name": "_legoId",
1358
+ "type": "uint256"
1359
+ },
1360
+ {
1361
+ "name": "_paymentAsset",
1362
+ "type": "address"
1363
+ }
1364
+ ],
1365
+ "outputs": [
1366
+ {
1367
+ "name": "",
1368
+ "type": "uint256"
1369
+ },
1370
+ {
1371
+ "name": "",
1372
+ "type": "uint256"
1373
+ }
1374
+ ]
1375
+ },
1376
+ {
1377
+ "stateMutability": "nonpayable",
1378
+ "type": "function",
1379
+ "name": "repayDebt",
1380
+ "inputs": [
1381
+ {
1382
+ "name": "_legoId",
1383
+ "type": "uint256"
1384
+ },
1385
+ {
1386
+ "name": "_paymentAsset",
1387
+ "type": "address"
1388
+ },
1389
+ {
1390
+ "name": "_paymentAmount",
1391
+ "type": "uint256"
1392
+ }
1393
+ ],
1394
+ "outputs": [
1395
+ {
1396
+ "name": "",
1397
+ "type": "uint256"
1398
+ },
1399
+ {
1400
+ "name": "",
1401
+ "type": "uint256"
1402
+ }
1403
+ ]
1404
+ },
1405
+ {
1406
+ "stateMutability": "nonpayable",
1407
+ "type": "function",
1408
+ "name": "repayDebt",
1409
+ "inputs": [
1410
+ {
1411
+ "name": "_legoId",
1412
+ "type": "uint256"
1413
+ },
1414
+ {
1415
+ "name": "_paymentAsset",
1416
+ "type": "address"
1417
+ },
1418
+ {
1419
+ "name": "_paymentAmount",
1420
+ "type": "uint256"
1421
+ },
1422
+ {
1423
+ "name": "_extraData",
1424
+ "type": "bytes32"
1425
+ }
1426
+ ],
1427
+ "outputs": [
1428
+ {
1429
+ "name": "",
1430
+ "type": "uint256"
1431
+ },
1432
+ {
1433
+ "name": "",
1434
+ "type": "uint256"
1435
+ }
1436
+ ]
1437
+ },
1438
+ {
1439
+ "stateMutability": "nonpayable",
1440
+ "type": "function",
1441
+ "name": "claimIncentives",
1442
+ "inputs": [
1443
+ {
1444
+ "name": "_legoId",
1445
+ "type": "uint256"
1446
+ }
1447
+ ],
1448
+ "outputs": [
1449
+ {
1450
+ "name": "",
1451
+ "type": "uint256"
1452
+ },
1453
+ {
1454
+ "name": "",
1455
+ "type": "uint256"
1456
+ }
1457
+ ]
1458
+ },
1459
+ {
1460
+ "stateMutability": "nonpayable",
1461
+ "type": "function",
1462
+ "name": "claimIncentives",
1463
+ "inputs": [
1464
+ {
1465
+ "name": "_legoId",
1466
+ "type": "uint256"
1467
+ },
1468
+ {
1469
+ "name": "_rewardToken",
1470
+ "type": "address"
1471
+ }
1472
+ ],
1473
+ "outputs": [
1474
+ {
1475
+ "name": "",
1476
+ "type": "uint256"
1477
+ },
1478
+ {
1479
+ "name": "",
1480
+ "type": "uint256"
1481
+ }
1482
+ ]
1483
+ },
1484
+ {
1485
+ "stateMutability": "nonpayable",
1486
+ "type": "function",
1487
+ "name": "claimIncentives",
1488
+ "inputs": [
1489
+ {
1490
+ "name": "_legoId",
1491
+ "type": "uint256"
1492
+ },
1493
+ {
1494
+ "name": "_rewardToken",
1495
+ "type": "address"
1496
+ },
1497
+ {
1498
+ "name": "_rewardAmount",
1499
+ "type": "uint256"
1500
+ }
1501
+ ],
1502
+ "outputs": [
1503
+ {
1504
+ "name": "",
1505
+ "type": "uint256"
1506
+ },
1507
+ {
1508
+ "name": "",
1509
+ "type": "uint256"
1510
+ }
1511
+ ]
1512
+ },
1513
+ {
1514
+ "stateMutability": "nonpayable",
1515
+ "type": "function",
1516
+ "name": "claimIncentives",
1517
+ "inputs": [
1518
+ {
1519
+ "name": "_legoId",
1520
+ "type": "uint256"
1521
+ },
1522
+ {
1523
+ "name": "_rewardToken",
1524
+ "type": "address"
1525
+ },
1526
+ {
1527
+ "name": "_rewardAmount",
1528
+ "type": "uint256"
1529
+ },
1530
+ {
1531
+ "name": "_proofs",
1532
+ "type": "bytes32[]"
1533
+ }
1534
+ ],
1535
+ "outputs": [
1536
+ {
1537
+ "name": "",
1538
+ "type": "uint256"
1539
+ },
1540
+ {
1541
+ "name": "",
1542
+ "type": "uint256"
1543
+ }
1544
+ ]
1545
+ },
1546
+ {
1547
+ "stateMutability": "nonpayable",
1548
+ "type": "function",
1549
+ "name": "setCollateralVault",
1550
+ "inputs": [
1551
+ {
1552
+ "name": "_vaultToken",
1553
+ "type": "address"
1554
+ },
1555
+ {
1556
+ "name": "_legoId",
1557
+ "type": "uint256"
1558
+ },
1559
+ {
1560
+ "name": "_ripeVaultId",
1561
+ "type": "uint256"
1562
+ },
1563
+ {
1564
+ "name": "_shouldMaxWithdraw",
1565
+ "type": "bool"
1566
+ }
1567
+ ],
1568
+ "outputs": []
1569
+ },
1570
+ {
1571
+ "stateMutability": "nonpayable",
1572
+ "type": "function",
1573
+ "name": "setLeverageVault",
1574
+ "inputs": [
1575
+ {
1576
+ "name": "_vaultToken",
1577
+ "type": "address"
1578
+ },
1579
+ {
1580
+ "name": "_legoId",
1581
+ "type": "uint256"
1582
+ },
1583
+ {
1584
+ "name": "_ripeVaultId",
1585
+ "type": "uint256"
1586
+ },
1587
+ {
1588
+ "name": "_shouldMaxWithdraw",
1589
+ "type": "bool"
1590
+ }
1591
+ ],
1592
+ "outputs": []
1593
+ },
1594
+ {
1595
+ "stateMutability": "nonpayable",
1596
+ "type": "function",
1597
+ "name": "setSlippagesAllowed",
1598
+ "inputs": [
1599
+ {
1600
+ "name": "_usdcSlippage",
1601
+ "type": "uint256"
1602
+ },
1603
+ {
1604
+ "name": "_greenSlippage",
1605
+ "type": "uint256"
1606
+ }
1607
+ ],
1608
+ "outputs": []
1609
+ },
1610
+ {
1611
+ "stateMutability": "nonpayable",
1612
+ "type": "function",
1613
+ "name": "setLevgVaultHelper",
1614
+ "inputs": [
1615
+ {
1616
+ "name": "_levgVaultHelper",
1617
+ "type": "address"
1618
+ }
1619
+ ],
1620
+ "outputs": []
1621
+ },
1622
+ {
1623
+ "stateMutability": "nonpayable",
1624
+ "type": "function",
1625
+ "name": "setMaxDebtRatio",
1626
+ "inputs": [
1627
+ {
1628
+ "name": "_ratio",
1629
+ "type": "uint256"
1630
+ }
1631
+ ],
1632
+ "outputs": []
1633
+ },
1634
+ {
1635
+ "stateMutability": "nonpayable",
1636
+ "type": "function",
1637
+ "name": "addManager",
1638
+ "inputs": [
1639
+ {
1640
+ "name": "_manager",
1641
+ "type": "address"
1642
+ }
1643
+ ],
1644
+ "outputs": []
1645
+ },
1646
+ {
1647
+ "stateMutability": "nonpayable",
1648
+ "type": "function",
1649
+ "name": "removeManager",
1650
+ "inputs": [
1651
+ {
1652
+ "name": "_manager",
1653
+ "type": "address"
1654
+ }
1655
+ ],
1656
+ "outputs": []
1657
+ },
1658
+ {
1659
+ "stateMutability": "view",
1660
+ "type": "function",
1661
+ "name": "vaultToLegoId",
1662
+ "inputs": [
1663
+ {
1664
+ "name": "arg0",
1665
+ "type": "address"
1666
+ }
1667
+ ],
1668
+ "outputs": [
1669
+ {
1670
+ "name": "",
1671
+ "type": "uint256"
1672
+ }
1673
+ ]
1674
+ },
1675
+ {
1676
+ "stateMutability": "view",
1677
+ "type": "function",
1678
+ "name": "levgVaultHelper",
1679
+ "inputs": [],
1680
+ "outputs": [
1681
+ {
1682
+ "name": "",
1683
+ "type": "address"
1684
+ }
1685
+ ]
1686
+ },
1687
+ {
1688
+ "stateMutability": "view",
1689
+ "type": "function",
1690
+ "name": "collateralAsset",
1691
+ "inputs": [],
1692
+ "outputs": [
1693
+ {
1694
+ "name": "",
1695
+ "type": "tuple",
1696
+ "components": [
1697
+ {
1698
+ "name": "vaultToken",
1699
+ "type": "address"
1700
+ },
1701
+ {
1702
+ "name": "ripeVaultId",
1703
+ "type": "uint256"
1704
+ }
1705
+ ]
1706
+ }
1707
+ ]
1708
+ },
1709
+ {
1710
+ "stateMutability": "view",
1711
+ "type": "function",
1712
+ "name": "leverageAsset",
1713
+ "inputs": [],
1714
+ "outputs": [
1715
+ {
1716
+ "name": "",
1717
+ "type": "tuple",
1718
+ "components": [
1719
+ {
1720
+ "name": "vaultToken",
1721
+ "type": "address"
1722
+ },
1723
+ {
1724
+ "name": "ripeVaultId",
1725
+ "type": "uint256"
1726
+ }
1727
+ ]
1728
+ }
1729
+ ]
1730
+ },
1731
+ {
1732
+ "stateMutability": "view",
1733
+ "type": "function",
1734
+ "name": "isRawAssetCollateral",
1735
+ "inputs": [],
1736
+ "outputs": [
1737
+ {
1738
+ "name": "",
1739
+ "type": "bool"
1740
+ }
1741
+ ]
1742
+ },
1743
+ {
1744
+ "stateMutability": "view",
1745
+ "type": "function",
1746
+ "name": "managers",
1747
+ "inputs": [
1748
+ {
1749
+ "name": "arg0",
1750
+ "type": "uint256"
1751
+ }
1752
+ ],
1753
+ "outputs": [
1754
+ {
1755
+ "name": "",
1756
+ "type": "address"
1757
+ }
1758
+ ]
1759
+ },
1760
+ {
1761
+ "stateMutability": "view",
1762
+ "type": "function",
1763
+ "name": "indexOfManager",
1764
+ "inputs": [
1765
+ {
1766
+ "name": "arg0",
1767
+ "type": "address"
1768
+ }
1769
+ ],
1770
+ "outputs": [
1771
+ {
1772
+ "name": "",
1773
+ "type": "uint256"
1774
+ }
1775
+ ]
1776
+ },
1777
+ {
1778
+ "stateMutability": "view",
1779
+ "type": "function",
1780
+ "name": "numManagers",
1781
+ "inputs": [],
1782
+ "outputs": [
1783
+ {
1784
+ "name": "",
1785
+ "type": "uint256"
1786
+ }
1787
+ ]
1788
+ },
1789
+ {
1790
+ "stateMutability": "view",
1791
+ "type": "function",
1792
+ "name": "usdcSlippageAllowed",
1793
+ "inputs": [],
1794
+ "outputs": [
1795
+ {
1796
+ "name": "",
1797
+ "type": "uint256"
1798
+ }
1799
+ ]
1800
+ },
1801
+ {
1802
+ "stateMutability": "view",
1803
+ "type": "function",
1804
+ "name": "greenSlippageAllowed",
1805
+ "inputs": [],
1806
+ "outputs": [
1807
+ {
1808
+ "name": "",
1809
+ "type": "uint256"
1810
+ }
1811
+ ]
1812
+ },
1813
+ {
1814
+ "stateMutability": "view",
1815
+ "type": "function",
1816
+ "name": "maxDebtRatio",
1817
+ "inputs": [],
1818
+ "outputs": [
1819
+ {
1820
+ "name": "",
1821
+ "type": "uint256"
1822
+ }
1823
+ ]
1824
+ },
1825
+ {
1826
+ "stateMutability": "view",
1827
+ "type": "function",
1828
+ "name": "USDC",
1829
+ "inputs": [],
1830
+ "outputs": [
1831
+ {
1832
+ "name": "",
1833
+ "type": "address"
1834
+ }
1835
+ ]
1836
+ },
1837
+ {
1838
+ "stateMutability": "view",
1839
+ "type": "function",
1840
+ "name": "asset",
1841
+ "inputs": [],
1842
+ "outputs": [
1843
+ {
1844
+ "name": "",
1845
+ "type": "address"
1846
+ }
1847
+ ]
1848
+ },
1849
+ {
1850
+ "stateMutability": "view",
1851
+ "type": "function",
1852
+ "name": "totalAssets",
1853
+ "inputs": [],
1854
+ "outputs": [
1855
+ {
1856
+ "name": "",
1857
+ "type": "uint256"
1858
+ }
1859
+ ]
1860
+ },
1861
+ {
1862
+ "stateMutability": "view",
1863
+ "type": "function",
1864
+ "name": "getTotalAssets",
1865
+ "inputs": [
1866
+ {
1867
+ "name": "_shouldGetMax",
1868
+ "type": "bool"
1869
+ }
1870
+ ],
1871
+ "outputs": [
1872
+ {
1873
+ "name": "",
1874
+ "type": "uint256"
1875
+ }
1876
+ ]
1877
+ },
1878
+ {
1879
+ "stateMutability": "view",
1880
+ "type": "function",
1881
+ "name": "isLeveragedVault",
1882
+ "inputs": [],
1883
+ "outputs": [
1884
+ {
1885
+ "name": "",
1886
+ "type": "bool"
1887
+ }
1888
+ ]
1889
+ },
1890
+ {
1891
+ "stateMutability": "view",
1892
+ "type": "function",
1893
+ "name": "maxDeposit",
1894
+ "inputs": [
1895
+ {
1896
+ "name": "_receiver",
1897
+ "type": "address"
1898
+ }
1899
+ ],
1900
+ "outputs": [
1901
+ {
1902
+ "name": "",
1903
+ "type": "uint256"
1904
+ }
1905
+ ]
1906
+ },
1907
+ {
1908
+ "stateMutability": "view",
1909
+ "type": "function",
1910
+ "name": "previewDeposit",
1911
+ "inputs": [
1912
+ {
1913
+ "name": "_assets",
1914
+ "type": "uint256"
1915
+ }
1916
+ ],
1917
+ "outputs": [
1918
+ {
1919
+ "name": "",
1920
+ "type": "uint256"
1921
+ }
1922
+ ]
1923
+ },
1924
+ {
1925
+ "stateMutability": "nonpayable",
1926
+ "type": "function",
1927
+ "name": "deposit",
1928
+ "inputs": [
1929
+ {
1930
+ "name": "_assets",
1931
+ "type": "uint256"
1932
+ }
1933
+ ],
1934
+ "outputs": [
1935
+ {
1936
+ "name": "",
1937
+ "type": "uint256"
1938
+ }
1939
+ ]
1940
+ },
1941
+ {
1942
+ "stateMutability": "nonpayable",
1943
+ "type": "function",
1944
+ "name": "deposit",
1945
+ "inputs": [
1946
+ {
1947
+ "name": "_assets",
1948
+ "type": "uint256"
1949
+ },
1950
+ {
1951
+ "name": "_receiver",
1952
+ "type": "address"
1953
+ }
1954
+ ],
1955
+ "outputs": [
1956
+ {
1957
+ "name": "",
1958
+ "type": "uint256"
1959
+ }
1960
+ ]
1961
+ },
1962
+ {
1963
+ "stateMutability": "nonpayable",
1964
+ "type": "function",
1965
+ "name": "depositWithMinAmountOut",
1966
+ "inputs": [
1967
+ {
1968
+ "name": "_assets",
1969
+ "type": "uint256"
1970
+ },
1971
+ {
1972
+ "name": "_minAmountOut",
1973
+ "type": "uint256"
1974
+ }
1975
+ ],
1976
+ "outputs": [
1977
+ {
1978
+ "name": "",
1979
+ "type": "uint256"
1980
+ }
1981
+ ]
1982
+ },
1983
+ {
1984
+ "stateMutability": "nonpayable",
1985
+ "type": "function",
1986
+ "name": "depositWithMinAmountOut",
1987
+ "inputs": [
1988
+ {
1989
+ "name": "_assets",
1990
+ "type": "uint256"
1991
+ },
1992
+ {
1993
+ "name": "_minAmountOut",
1994
+ "type": "uint256"
1995
+ },
1996
+ {
1997
+ "name": "_receiver",
1998
+ "type": "address"
1999
+ }
2000
+ ],
2001
+ "outputs": [
2002
+ {
2003
+ "name": "",
2004
+ "type": "uint256"
2005
+ }
2006
+ ]
2007
+ },
2008
+ {
2009
+ "stateMutability": "view",
2010
+ "type": "function",
2011
+ "name": "maxMint",
2012
+ "inputs": [
2013
+ {
2014
+ "name": "_receiver",
2015
+ "type": "address"
2016
+ }
2017
+ ],
2018
+ "outputs": [
2019
+ {
2020
+ "name": "",
2021
+ "type": "uint256"
2022
+ }
2023
+ ]
2024
+ },
2025
+ {
2026
+ "stateMutability": "view",
2027
+ "type": "function",
2028
+ "name": "previewMint",
2029
+ "inputs": [
2030
+ {
2031
+ "name": "_shares",
2032
+ "type": "uint256"
2033
+ }
2034
+ ],
2035
+ "outputs": [
2036
+ {
2037
+ "name": "",
2038
+ "type": "uint256"
2039
+ }
2040
+ ]
2041
+ },
2042
+ {
2043
+ "stateMutability": "nonpayable",
2044
+ "type": "function",
2045
+ "name": "mint",
2046
+ "inputs": [
2047
+ {
2048
+ "name": "_shares",
2049
+ "type": "uint256"
2050
+ }
2051
+ ],
2052
+ "outputs": [
2053
+ {
2054
+ "name": "",
2055
+ "type": "uint256"
2056
+ }
2057
+ ]
2058
+ },
2059
+ {
2060
+ "stateMutability": "nonpayable",
2061
+ "type": "function",
2062
+ "name": "mint",
2063
+ "inputs": [
2064
+ {
2065
+ "name": "_shares",
2066
+ "type": "uint256"
2067
+ },
2068
+ {
2069
+ "name": "_receiver",
2070
+ "type": "address"
2071
+ }
2072
+ ],
2073
+ "outputs": [
2074
+ {
2075
+ "name": "",
2076
+ "type": "uint256"
2077
+ }
2078
+ ]
2079
+ },
2080
+ {
2081
+ "stateMutability": "view",
2082
+ "type": "function",
2083
+ "name": "maxWithdraw",
2084
+ "inputs": [
2085
+ {
2086
+ "name": "_owner",
2087
+ "type": "address"
2088
+ }
2089
+ ],
2090
+ "outputs": [
2091
+ {
2092
+ "name": "",
2093
+ "type": "uint256"
2094
+ }
2095
+ ]
2096
+ },
2097
+ {
2098
+ "stateMutability": "view",
2099
+ "type": "function",
2100
+ "name": "previewWithdraw",
2101
+ "inputs": [
2102
+ {
2103
+ "name": "_assets",
2104
+ "type": "uint256"
2105
+ }
2106
+ ],
2107
+ "outputs": [
2108
+ {
2109
+ "name": "",
2110
+ "type": "uint256"
2111
+ }
2112
+ ]
2113
+ },
2114
+ {
2115
+ "stateMutability": "nonpayable",
2116
+ "type": "function",
2117
+ "name": "withdraw",
2118
+ "inputs": [
2119
+ {
2120
+ "name": "_assets",
2121
+ "type": "uint256"
2122
+ }
2123
+ ],
2124
+ "outputs": [
2125
+ {
2126
+ "name": "",
2127
+ "type": "uint256"
2128
+ }
2129
+ ]
2130
+ },
2131
+ {
2132
+ "stateMutability": "nonpayable",
2133
+ "type": "function",
2134
+ "name": "withdraw",
2135
+ "inputs": [
2136
+ {
2137
+ "name": "_assets",
2138
+ "type": "uint256"
2139
+ },
2140
+ {
2141
+ "name": "_receiver",
2142
+ "type": "address"
2143
+ }
2144
+ ],
2145
+ "outputs": [
2146
+ {
2147
+ "name": "",
2148
+ "type": "uint256"
2149
+ }
2150
+ ]
2151
+ },
2152
+ {
2153
+ "stateMutability": "nonpayable",
2154
+ "type": "function",
2155
+ "name": "withdraw",
2156
+ "inputs": [
2157
+ {
2158
+ "name": "_assets",
2159
+ "type": "uint256"
2160
+ },
2161
+ {
2162
+ "name": "_receiver",
2163
+ "type": "address"
2164
+ },
2165
+ {
2166
+ "name": "_owner",
2167
+ "type": "address"
2168
+ }
2169
+ ],
2170
+ "outputs": [
2171
+ {
2172
+ "name": "",
2173
+ "type": "uint256"
2174
+ }
2175
+ ]
2176
+ },
2177
+ {
2178
+ "stateMutability": "view",
2179
+ "type": "function",
2180
+ "name": "maxRedeem",
2181
+ "inputs": [
2182
+ {
2183
+ "name": "_owner",
2184
+ "type": "address"
2185
+ }
2186
+ ],
2187
+ "outputs": [
2188
+ {
2189
+ "name": "",
2190
+ "type": "uint256"
2191
+ }
2192
+ ]
2193
+ },
2194
+ {
2195
+ "stateMutability": "view",
2196
+ "type": "function",
2197
+ "name": "previewRedeem",
2198
+ "inputs": [
2199
+ {
2200
+ "name": "_shares",
2201
+ "type": "uint256"
2202
+ }
2203
+ ],
2204
+ "outputs": [
2205
+ {
2206
+ "name": "",
2207
+ "type": "uint256"
2208
+ }
2209
+ ]
2210
+ },
2211
+ {
2212
+ "stateMutability": "nonpayable",
2213
+ "type": "function",
2214
+ "name": "redeem",
2215
+ "inputs": [
2216
+ {
2217
+ "name": "_shares",
2218
+ "type": "uint256"
2219
+ }
2220
+ ],
2221
+ "outputs": [
2222
+ {
2223
+ "name": "",
2224
+ "type": "uint256"
2225
+ }
2226
+ ]
2227
+ },
2228
+ {
2229
+ "stateMutability": "nonpayable",
2230
+ "type": "function",
2231
+ "name": "redeem",
2232
+ "inputs": [
2233
+ {
2234
+ "name": "_shares",
2235
+ "type": "uint256"
2236
+ },
2237
+ {
2238
+ "name": "_receiver",
2239
+ "type": "address"
2240
+ }
2241
+ ],
2242
+ "outputs": [
2243
+ {
2244
+ "name": "",
2245
+ "type": "uint256"
2246
+ }
2247
+ ]
2248
+ },
2249
+ {
2250
+ "stateMutability": "nonpayable",
2251
+ "type": "function",
2252
+ "name": "redeem",
2253
+ "inputs": [
2254
+ {
2255
+ "name": "_shares",
2256
+ "type": "uint256"
2257
+ },
2258
+ {
2259
+ "name": "_receiver",
2260
+ "type": "address"
2261
+ },
2262
+ {
2263
+ "name": "_owner",
2264
+ "type": "address"
2265
+ }
2266
+ ],
2267
+ "outputs": [
2268
+ {
2269
+ "name": "",
2270
+ "type": "uint256"
2271
+ }
2272
+ ]
2273
+ },
2274
+ {
2275
+ "stateMutability": "nonpayable",
2276
+ "type": "function",
2277
+ "name": "redeemWithMinAmountOut",
2278
+ "inputs": [
2279
+ {
2280
+ "name": "_shares",
2281
+ "type": "uint256"
2282
+ },
2283
+ {
2284
+ "name": "_minAmountOut",
2285
+ "type": "uint256"
2286
+ }
2287
+ ],
2288
+ "outputs": [
2289
+ {
2290
+ "name": "",
2291
+ "type": "uint256"
2292
+ }
2293
+ ]
2294
+ },
2295
+ {
2296
+ "stateMutability": "nonpayable",
2297
+ "type": "function",
2298
+ "name": "redeemWithMinAmountOut",
2299
+ "inputs": [
2300
+ {
2301
+ "name": "_shares",
2302
+ "type": "uint256"
2303
+ },
2304
+ {
2305
+ "name": "_minAmountOut",
2306
+ "type": "uint256"
2307
+ },
2308
+ {
2309
+ "name": "_receiver",
2310
+ "type": "address"
2311
+ }
2312
+ ],
2313
+ "outputs": [
2314
+ {
2315
+ "name": "",
2316
+ "type": "uint256"
2317
+ }
2318
+ ]
2319
+ },
2320
+ {
2321
+ "stateMutability": "nonpayable",
2322
+ "type": "function",
2323
+ "name": "redeemWithMinAmountOut",
2324
+ "inputs": [
2325
+ {
2326
+ "name": "_shares",
2327
+ "type": "uint256"
2328
+ },
2329
+ {
2330
+ "name": "_minAmountOut",
2331
+ "type": "uint256"
2332
+ },
2333
+ {
2334
+ "name": "_receiver",
2335
+ "type": "address"
2336
+ },
2337
+ {
2338
+ "name": "_owner",
2339
+ "type": "address"
2340
+ }
2341
+ ],
2342
+ "outputs": [
2343
+ {
2344
+ "name": "",
2345
+ "type": "uint256"
2346
+ }
2347
+ ]
2348
+ },
2349
+ {
2350
+ "stateMutability": "view",
2351
+ "type": "function",
2352
+ "name": "convertToShares",
2353
+ "inputs": [
2354
+ {
2355
+ "name": "_assets",
2356
+ "type": "uint256"
2357
+ }
2358
+ ],
2359
+ "outputs": [
2360
+ {
2361
+ "name": "",
2362
+ "type": "uint256"
2363
+ }
2364
+ ]
2365
+ },
2366
+ {
2367
+ "stateMutability": "view",
2368
+ "type": "function",
2369
+ "name": "convertToSharesSafe",
2370
+ "inputs": [
2371
+ {
2372
+ "name": "_assets",
2373
+ "type": "uint256"
2374
+ }
2375
+ ],
2376
+ "outputs": [
2377
+ {
2378
+ "name": "",
2379
+ "type": "uint256"
2380
+ }
2381
+ ]
2382
+ },
2383
+ {
2384
+ "stateMutability": "view",
2385
+ "type": "function",
2386
+ "name": "convertToAssets",
2387
+ "inputs": [
2388
+ {
2389
+ "name": "_shares",
2390
+ "type": "uint256"
2391
+ }
2392
+ ],
2393
+ "outputs": [
2394
+ {
2395
+ "name": "",
2396
+ "type": "uint256"
2397
+ }
2398
+ ]
2399
+ },
2400
+ {
2401
+ "stateMutability": "view",
2402
+ "type": "function",
2403
+ "name": "convertToAssetsSafe",
2404
+ "inputs": [
2405
+ {
2406
+ "name": "_shares",
2407
+ "type": "uint256"
2408
+ }
2409
+ ],
2410
+ "outputs": [
2411
+ {
2412
+ "name": "",
2413
+ "type": "uint256"
2414
+ }
2415
+ ]
2416
+ },
2417
+ {
2418
+ "stateMutability": "nonpayable",
2419
+ "type": "function",
2420
+ "name": "sweepLeftovers",
2421
+ "inputs": [],
2422
+ "outputs": [
2423
+ {
2424
+ "name": "",
2425
+ "type": "uint256"
2426
+ }
2427
+ ]
2428
+ },
2429
+ {
2430
+ "stateMutability": "nonpayable",
2431
+ "type": "constructor",
2432
+ "inputs": [
2433
+ {
2434
+ "name": "_asset",
2435
+ "type": "address"
2436
+ },
2437
+ {
2438
+ "name": "_tokenName",
2439
+ "type": "string"
2440
+ },
2441
+ {
2442
+ "name": "_tokenSymbol",
2443
+ "type": "string"
2444
+ },
2445
+ {
2446
+ "name": "_undyHq",
2447
+ "type": "address"
2448
+ },
2449
+ {
2450
+ "name": "_collateralVaultToken",
2451
+ "type": "address"
2452
+ },
2453
+ {
2454
+ "name": "_collateralVaultTokenLegoId",
2455
+ "type": "uint256"
2456
+ },
2457
+ {
2458
+ "name": "_collateralVaultTokenRipeVaultId",
2459
+ "type": "uint256"
2460
+ },
2461
+ {
2462
+ "name": "_leverageVaultToken",
2463
+ "type": "address"
2464
+ },
2465
+ {
2466
+ "name": "_leverageVaultTokenLegoId",
2467
+ "type": "uint256"
2468
+ },
2469
+ {
2470
+ "name": "_leverageVaultTokenRipeVaultId",
2471
+ "type": "uint256"
2472
+ },
2473
+ {
2474
+ "name": "_usdc",
2475
+ "type": "address"
2476
+ },
2477
+ {
2478
+ "name": "_green",
2479
+ "type": "address"
2480
+ },
2481
+ {
2482
+ "name": "_savingsGreen",
2483
+ "type": "address"
2484
+ },
2485
+ {
2486
+ "name": "_minHqTimeLock",
2487
+ "type": "uint256"
2488
+ },
2489
+ {
2490
+ "name": "_maxHqTimeLock",
2491
+ "type": "uint256"
2492
+ },
2493
+ {
2494
+ "name": "_startingAgent",
2495
+ "type": "address"
2496
+ },
2497
+ {
2498
+ "name": "_levgVaultHelper",
2499
+ "type": "address"
2500
+ }
2501
+ ],
2502
+ "outputs": []
2503
+ }
2504
+ ];
2505
+ export const deployAddress = '0x936c3C493Dc45D0f4D2FA36C7640f3BCABd64B4B';
2506
+ function getRequest(method, args, contractAddressOrOptions) {
2507
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2508
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2509
+ const call = {
2510
+ contractName: 'LevgVault',
2511
+ method,
2512
+ args,
2513
+ address,
2514
+ deployAddress,
2515
+ defaultValue,
2516
+ getAbi: () => abi,
2517
+ with: (options) => {
2518
+ call.address = options.contractAddress;
2519
+ call.defaultValue = options.defaultValue;
2520
+ return call;
2521
+ },
2522
+ defaultTo: (defaultValue) => {
2523
+ call.defaultValue = defaultValue;
2524
+ return call;
2525
+ },
2526
+ at: (address) => {
2527
+ call.address = address;
2528
+ return call;
2529
+ },
2530
+ };
2531
+ return call;
2532
+ }
2533
+ export const call = {
2534
+ name: (...args) => getRequest('name', args),
2535
+ symbol: (...args) => getRequest('symbol', args),
2536
+ decimals: (...args) => getRequest('decimals', args),
2537
+ DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
2538
+ undyHq: (...args) => getRequest('undyHq', args),
2539
+ blacklisted: (...args) => getRequest('blacklisted', args),
2540
+ isPaused: (...args) => getRequest('isPaused', args),
2541
+ balanceOf: (...args) => getRequest('balanceOf', args),
2542
+ allowance: (...args) => getRequest('allowance', args),
2543
+ totalSupply: (...args) => getRequest('totalSupply', args),
2544
+ TOKEN_NAME: (...args) => getRequest('TOKEN_NAME', args),
2545
+ TOKEN_SYMBOL: (...args) => getRequest('TOKEN_SYMBOL', args),
2546
+ TOKEN_DECIMALS: (...args) => getRequest('TOKEN_DECIMALS', args),
2547
+ VERSION: (...args) => getRequest('VERSION', args),
2548
+ nonces: (...args) => getRequest('nonces', args),
2549
+ vaultToLegoId: (...args) => getRequest('vaultToLegoId', args),
2550
+ levgVaultHelper: (...args) => getRequest('levgVaultHelper', args),
2551
+ collateralAsset: (...args) => getRequest('collateralAsset', args),
2552
+ leverageAsset: (...args) => getRequest('leverageAsset', args),
2553
+ isRawAssetCollateral: (...args) => getRequest('isRawAssetCollateral', args),
2554
+ managers: (...args) => getRequest('managers', args),
2555
+ indexOfManager: (...args) => getRequest('indexOfManager', args),
2556
+ numManagers: (...args) => getRequest('numManagers', args),
2557
+ usdcSlippageAllowed: (...args) => getRequest('usdcSlippageAllowed', args),
2558
+ greenSlippageAllowed: (...args) => getRequest('greenSlippageAllowed', args),
2559
+ maxDebtRatio: (...args) => getRequest('maxDebtRatio', args),
2560
+ USDC: (...args) => getRequest('USDC', args),
2561
+ asset: (...args) => getRequest('asset', args),
2562
+ totalAssets: (...args) => getRequest('totalAssets', args),
2563
+ getTotalAssets: (...args) => getRequest('getTotalAssets', args),
2564
+ isLeveragedVault: (...args) => getRequest('isLeveragedVault', args),
2565
+ maxDeposit: (...args) => getRequest('maxDeposit', args),
2566
+ previewDeposit: (...args) => getRequest('previewDeposit', args),
2567
+ maxMint: (...args) => getRequest('maxMint', args),
2568
+ previewMint: (...args) => getRequest('previewMint', args),
2569
+ maxWithdraw: (...args) => getRequest('maxWithdraw', args),
2570
+ previewWithdraw: (...args) => getRequest('previewWithdraw', args),
2571
+ maxRedeem: (...args) => getRequest('maxRedeem', args),
2572
+ previewRedeem: (...args) => getRequest('previewRedeem', args),
2573
+ convertToShares: (...args) => getRequest('convertToShares', args),
2574
+ convertToSharesSafe: (...args) => getRequest('convertToSharesSafe', args),
2575
+ convertToAssets: (...args) => getRequest('convertToAssets', args),
2576
+ convertToAssetsSafe: (...args) => getRequest('convertToAssetsSafe', args),
2577
+ };
2578
+ function getMutation(functionName) {
2579
+ return {
2580
+ contractName: 'LevgVault',
2581
+ functionName,
2582
+ deployAddress,
2583
+ argsType: undefined,
2584
+ getAbi: () => abi,
2585
+ };
2586
+ }
2587
+ export const mutation = {
2588
+ transfer: getMutation('transfer'),
2589
+ transferFrom: getMutation('transferFrom'),
2590
+ approve: getMutation('approve'),
2591
+ increaseAllowance: getMutation('increaseAllowance'),
2592
+ decreaseAllowance: getMutation('decreaseAllowance'),
2593
+ burn: getMutation('burn'),
2594
+ permit: getMutation('permit'),
2595
+ setBlacklist: getMutation('setBlacklist'),
2596
+ burnBlacklistTokens: getMutation('burnBlacklistTokens'),
2597
+ pause: getMutation('pause'),
2598
+ depositForYield: getMutation('depositForYield'),
2599
+ withdrawFromYield: getMutation('withdrawFromYield'),
2600
+ swapTokens: getMutation('swapTokens'),
2601
+ addCollateral: getMutation('addCollateral'),
2602
+ removeCollateral: getMutation('removeCollateral'),
2603
+ borrow: getMutation('borrow'),
2604
+ repayDebt: getMutation('repayDebt'),
2605
+ claimIncentives: getMutation('claimIncentives'),
2606
+ setCollateralVault: getMutation('setCollateralVault'),
2607
+ setLeverageVault: getMutation('setLeverageVault'),
2608
+ setSlippagesAllowed: getMutation('setSlippagesAllowed'),
2609
+ setLevgVaultHelper: getMutation('setLevgVaultHelper'),
2610
+ setMaxDebtRatio: getMutation('setMaxDebtRatio'),
2611
+ addManager: getMutation('addManager'),
2612
+ removeManager: getMutation('removeManager'),
2613
+ deposit: getMutation('deposit'),
2614
+ depositWithMinAmountOut: getMutation('depositWithMinAmountOut'),
2615
+ mint: getMutation('mint'),
2616
+ withdraw: getMutation('withdraw'),
2617
+ redeem: getMutation('redeem'),
2618
+ redeemWithMinAmountOut: getMutation('redeemWithMinAmountOut'),
2619
+ sweepLeftovers: getMutation('sweepLeftovers'),
2620
+ };
2621
+ export function parseEvents(eventName, events) {
2622
+ return events.map((event) => {
2623
+ return {
2624
+ event,
2625
+ parsed: parseEventLogs({
2626
+ abi,
2627
+ eventName,
2628
+ logs: [event],
2629
+ }),
2630
+ };
2631
+ });
2632
+ }
2633
+ export function getEventTopic(eventName) {
2634
+ return encodeEventTopics({ abi, eventName })[0];
2635
+ }
2636
+ export function toSdk(deployAddress, publicClient, walletClient, addressResolver) {
2637
+ return {
2638
+ deployAddress,
2639
+ abi,
2640
+ events: {
2641
+ Deposit: { topic: getEventTopic('Deposit'), parse: (events) => parseEvents('Deposit', events) },
2642
+ Withdraw: { topic: getEventTopic('Withdraw'), parse: (events) => parseEvents('Withdraw', events) },
2643
+ LeftoversSwept: { topic: getEventTopic('LeftoversSwept'), parse: (events) => parseEvents('LeftoversSwept', events) },
2644
+ Transfer: { topic: getEventTopic('Transfer'), parse: (events) => parseEvents('Transfer', events) },
2645
+ Approval: { topic: getEventTopic('Approval'), parse: (events) => parseEvents('Approval', events) },
2646
+ BlacklistModified: { topic: getEventTopic('BlacklistModified'), parse: (events) => parseEvents('BlacklistModified', events) },
2647
+ TokenPauseModified: { topic: getEventTopic('TokenPauseModified'), parse: (events) => parseEvents('TokenPauseModified', events) },
2648
+ LevgVaultAction: { topic: getEventTopic('LevgVaultAction'), parse: (events) => parseEvents('LevgVaultAction', events) },
2649
+ CollateralVaultTokenSet: { topic: getEventTopic('CollateralVaultTokenSet'), parse: (events) => parseEvents('CollateralVaultTokenSet', events) },
2650
+ LeverageVaultTokenSet: { topic: getEventTopic('LeverageVaultTokenSet'), parse: (events) => parseEvents('LeverageVaultTokenSet', events) },
2651
+ SlippagesSet: { topic: getEventTopic('SlippagesSet'), parse: (events) => parseEvents('SlippagesSet', events) },
2652
+ LevgVaultHelperSet: { topic: getEventTopic('LevgVaultHelperSet'), parse: (events) => parseEvents('LevgVaultHelperSet', events) },
2653
+ MaxDebtRatioSet: { topic: getEventTopic('MaxDebtRatioSet'), parse: (events) => parseEvents('MaxDebtRatioSet', events) },
2654
+ },
2655
+ // Queries
2656
+ name: (...args) => singleQuery(publicClient, call.name(...args).at(deployAddress), {}, addressResolver),
2657
+ symbol: (...args) => singleQuery(publicClient, call.symbol(...args).at(deployAddress), {}, addressResolver),
2658
+ decimals: (...args) => singleQuery(publicClient, call.decimals(...args).at(deployAddress), {}, addressResolver),
2659
+ DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args).at(deployAddress), {}, addressResolver),
2660
+ undyHq: (...args) => singleQuery(publicClient, call.undyHq(...args).at(deployAddress), {}, addressResolver),
2661
+ blacklisted: (...args) => singleQuery(publicClient, call.blacklisted(...args).at(deployAddress), {}, addressResolver),
2662
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args).at(deployAddress), {}, addressResolver),
2663
+ balanceOf: (...args) => singleQuery(publicClient, call.balanceOf(...args).at(deployAddress), {}, addressResolver),
2664
+ allowance: (...args) => singleQuery(publicClient, call.allowance(...args).at(deployAddress), {}, addressResolver),
2665
+ totalSupply: (...args) => singleQuery(publicClient, call.totalSupply(...args).at(deployAddress), {}, addressResolver),
2666
+ TOKEN_NAME: (...args) => singleQuery(publicClient, call.TOKEN_NAME(...args).at(deployAddress), {}, addressResolver),
2667
+ TOKEN_SYMBOL: (...args) => singleQuery(publicClient, call.TOKEN_SYMBOL(...args).at(deployAddress), {}, addressResolver),
2668
+ TOKEN_DECIMALS: (...args) => singleQuery(publicClient, call.TOKEN_DECIMALS(...args).at(deployAddress), {}, addressResolver),
2669
+ VERSION: (...args) => singleQuery(publicClient, call.VERSION(...args).at(deployAddress), {}, addressResolver),
2670
+ nonces: (...args) => singleQuery(publicClient, call.nonces(...args).at(deployAddress), {}, addressResolver),
2671
+ vaultToLegoId: (...args) => singleQuery(publicClient, call.vaultToLegoId(...args).at(deployAddress), {}, addressResolver),
2672
+ levgVaultHelper: (...args) => singleQuery(publicClient, call.levgVaultHelper(...args).at(deployAddress), {}, addressResolver),
2673
+ collateralAsset: (...args) => singleQuery(publicClient, call.collateralAsset(...args).at(deployAddress), {}, addressResolver),
2674
+ leverageAsset: (...args) => singleQuery(publicClient, call.leverageAsset(...args).at(deployAddress), {}, addressResolver),
2675
+ isRawAssetCollateral: (...args) => singleQuery(publicClient, call.isRawAssetCollateral(...args).at(deployAddress), {}, addressResolver),
2676
+ managers: (...args) => singleQuery(publicClient, call.managers(...args).at(deployAddress), {}, addressResolver),
2677
+ indexOfManager: (...args) => singleQuery(publicClient, call.indexOfManager(...args).at(deployAddress), {}, addressResolver),
2678
+ numManagers: (...args) => singleQuery(publicClient, call.numManagers(...args).at(deployAddress), {}, addressResolver),
2679
+ usdcSlippageAllowed: (...args) => singleQuery(publicClient, call.usdcSlippageAllowed(...args).at(deployAddress), {}, addressResolver),
2680
+ greenSlippageAllowed: (...args) => singleQuery(publicClient, call.greenSlippageAllowed(...args).at(deployAddress), {}, addressResolver),
2681
+ maxDebtRatio: (...args) => singleQuery(publicClient, call.maxDebtRatio(...args).at(deployAddress), {}, addressResolver),
2682
+ USDC: (...args) => singleQuery(publicClient, call.USDC(...args).at(deployAddress), {}, addressResolver),
2683
+ asset: (...args) => singleQuery(publicClient, call.asset(...args).at(deployAddress), {}, addressResolver),
2684
+ totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args).at(deployAddress), {}, addressResolver),
2685
+ getTotalAssets: (...args) => singleQuery(publicClient, call.getTotalAssets(...args).at(deployAddress), {}, addressResolver),
2686
+ isLeveragedVault: (...args) => singleQuery(publicClient, call.isLeveragedVault(...args).at(deployAddress), {}, addressResolver),
2687
+ maxDeposit: (...args) => singleQuery(publicClient, call.maxDeposit(...args).at(deployAddress), {}, addressResolver),
2688
+ previewDeposit: (...args) => singleQuery(publicClient, call.previewDeposit(...args).at(deployAddress), {}, addressResolver),
2689
+ maxMint: (...args) => singleQuery(publicClient, call.maxMint(...args).at(deployAddress), {}, addressResolver),
2690
+ previewMint: (...args) => singleQuery(publicClient, call.previewMint(...args).at(deployAddress), {}, addressResolver),
2691
+ maxWithdraw: (...args) => singleQuery(publicClient, call.maxWithdraw(...args).at(deployAddress), {}, addressResolver),
2692
+ previewWithdraw: (...args) => singleQuery(publicClient, call.previewWithdraw(...args).at(deployAddress), {}, addressResolver),
2693
+ maxRedeem: (...args) => singleQuery(publicClient, call.maxRedeem(...args).at(deployAddress), {}, addressResolver),
2694
+ previewRedeem: (...args) => singleQuery(publicClient, call.previewRedeem(...args).at(deployAddress), {}, addressResolver),
2695
+ convertToShares: (...args) => singleQuery(publicClient, call.convertToShares(...args).at(deployAddress), {}, addressResolver),
2696
+ convertToSharesSafe: (...args) => singleQuery(publicClient, call.convertToSharesSafe(...args).at(deployAddress), {}, addressResolver),
2697
+ convertToAssets: (...args) => singleQuery(publicClient, call.convertToAssets(...args).at(deployAddress), {}, addressResolver),
2698
+ convertToAssetsSafe: (...args) => singleQuery(publicClient, call.convertToAssetsSafe(...args).at(deployAddress), {}, addressResolver),
2699
+ // Mutations
2700
+ transfer: (...args) => mutate(walletClient, mutation.transfer, { address: deployAddress, addressResolver })(...args),
2701
+ transferFrom: (...args) => mutate(walletClient, mutation.transferFrom, { address: deployAddress, addressResolver })(...args),
2702
+ approve: (...args) => mutate(walletClient, mutation.approve, { address: deployAddress, addressResolver })(...args),
2703
+ increaseAllowance: (...args) => mutate(walletClient, mutation.increaseAllowance, { address: deployAddress, addressResolver })(...args),
2704
+ decreaseAllowance: (...args) => mutate(walletClient, mutation.decreaseAllowance, { address: deployAddress, addressResolver })(...args),
2705
+ burn: (...args) => mutate(walletClient, mutation.burn, { address: deployAddress, addressResolver })(...args),
2706
+ permit: (...args) => mutate(walletClient, mutation.permit, { address: deployAddress, addressResolver })(...args),
2707
+ setBlacklist: (...args) => mutate(walletClient, mutation.setBlacklist, { address: deployAddress, addressResolver })(...args),
2708
+ burnBlacklistTokens: (...args) => mutate(walletClient, mutation.burnBlacklistTokens, { address: deployAddress, addressResolver })(...args),
2709
+ pause: (...args) => mutate(walletClient, mutation.pause, { address: deployAddress, addressResolver })(...args),
2710
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield, { address: deployAddress, addressResolver })(...args),
2711
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield, { address: deployAddress, addressResolver })(...args),
2712
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { address: deployAddress, addressResolver })(...args),
2713
+ addCollateral: (...args) => mutate(walletClient, mutation.addCollateral, { address: deployAddress, addressResolver })(...args),
2714
+ removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral, { address: deployAddress, addressResolver })(...args),
2715
+ borrow: (...args) => mutate(walletClient, mutation.borrow, { address: deployAddress, addressResolver })(...args),
2716
+ repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address: deployAddress, addressResolver })(...args),
2717
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives, { address: deployAddress, addressResolver })(...args),
2718
+ setCollateralVault: (...args) => mutate(walletClient, mutation.setCollateralVault, { address: deployAddress, addressResolver })(...args),
2719
+ setLeverageVault: (...args) => mutate(walletClient, mutation.setLeverageVault, { address: deployAddress, addressResolver })(...args),
2720
+ setSlippagesAllowed: (...args) => mutate(walletClient, mutation.setSlippagesAllowed, { address: deployAddress, addressResolver })(...args),
2721
+ setLevgVaultHelper: (...args) => mutate(walletClient, mutation.setLevgVaultHelper, { address: deployAddress, addressResolver })(...args),
2722
+ setMaxDebtRatio: (...args) => mutate(walletClient, mutation.setMaxDebtRatio, { address: deployAddress, addressResolver })(...args),
2723
+ addManager: (...args) => mutate(walletClient, mutation.addManager, { address: deployAddress, addressResolver })(...args),
2724
+ removeManager: (...args) => mutate(walletClient, mutation.removeManager, { address: deployAddress, addressResolver })(...args),
2725
+ deposit: (...args) => mutate(walletClient, mutation.deposit, { address: deployAddress, addressResolver })(...args),
2726
+ depositWithMinAmountOut: (...args) => mutate(walletClient, mutation.depositWithMinAmountOut, { address: deployAddress, addressResolver })(...args),
2727
+ mint: (...args) => mutate(walletClient, mutation.mint, { address: deployAddress, addressResolver })(...args),
2728
+ withdraw: (...args) => mutate(walletClient, mutation.withdraw, { address: deployAddress, addressResolver })(...args),
2729
+ redeem: (...args) => mutate(walletClient, mutation.redeem, { address: deployAddress, addressResolver })(...args),
2730
+ redeemWithMinAmountOut: (...args) => mutate(walletClient, mutation.redeemWithMinAmountOut, { address: deployAddress, addressResolver })(...args),
2731
+ sweepLeftovers: (...args) => mutate(walletClient, mutation.sweepLeftovers, { address: deployAddress, addressResolver })(...args),
2732
+ };
2733
+ }