@underscore-finance/sdk 1.2.20-next.0 → 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.
- package/AGENTS.md +28 -18
- package/abis.json +23476 -12295
- package/dist/contracts/Addys.d.ts +124 -0
- package/dist/contracts/Addys.d.ts.map +1 -0
- package/dist/contracts/Addys.js +134 -0
- package/dist/contracts/AgentSenderGeneric.d.ts +795 -153
- package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -1
- package/dist/contracts/AgentSenderGeneric.js +892 -97
- package/dist/contracts/AgentSenderSpecial.d.ts +127 -0
- package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -1
- package/dist/contracts/AgentSenderSpecial.js +139 -0
- package/dist/contracts/AgentSenderSpecialAdmin.d.ts +984 -0
- package/dist/contracts/AgentSenderSpecialAdmin.d.ts.map +1 -0
- package/dist/contracts/AgentSenderSpecialAdmin.js +1185 -0
- package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +1010 -75
- package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +1 -1
- package/dist/contracts/AgentSenderSpecialSigHelper.js +1240 -0
- package/dist/contracts/AgentWrapper.d.ts +164 -6
- package/dist/contracts/AgentWrapper.d.ts.map +1 -1
- package/dist/contracts/AgentWrapper.js +219 -6
- package/dist/contracts/ChequeBook.d.ts +360 -204
- package/dist/contracts/ChequeBook.d.ts.map +1 -1
- package/dist/contracts/ChequeBook.js +507 -298
- package/dist/contracts/DefaultsLocal.d.ts +320 -0
- package/dist/contracts/DefaultsLocal.d.ts.map +1 -0
- package/dist/contracts/DefaultsLocal.js +350 -0
- package/dist/contracts/ERC20.d.ts +552 -27
- package/dist/contracts/ERC20.d.ts.map +1 -1
- package/dist/contracts/ERC20.js +713 -66
- package/dist/contracts/EarnVault.d.ts +284 -255
- package/dist/contracts/EarnVault.d.ts.map +1 -1
- package/dist/contracts/EarnVault.js +488 -456
- package/dist/contracts/EarnVaultAgent.d.ts +127 -0
- package/dist/contracts/EarnVaultAgent.d.ts.map +1 -1
- package/dist/contracts/EarnVaultAgent.js +139 -0
- package/dist/contracts/EarnVaultWallet.d.ts +777 -0
- package/dist/contracts/EarnVaultWallet.d.ts.map +1 -0
- package/dist/contracts/EarnVaultWallet.js +987 -0
- package/dist/contracts/Erc20Token.d.ts +813 -0
- package/dist/contracts/Erc20Token.d.ts.map +1 -0
- package/dist/contracts/Erc20Token.js +1006 -0
- package/dist/contracts/HighCommand.d.ts +40 -0
- package/dist/contracts/HighCommand.d.ts.map +1 -1
- package/dist/contracts/HighCommand.js +45 -0
- package/dist/contracts/Kernel.d.ts +4 -0
- package/dist/contracts/Kernel.d.ts.map +1 -1
- package/dist/contracts/Kernel.js +4 -0
- package/dist/contracts/Ledger.d.ts +4 -75
- package/dist/contracts/Ledger.d.ts.map +1 -1
- package/dist/contracts/Ledger.js +4 -99
- package/dist/contracts/LevgVault.d.ts +299 -299
- package/dist/contracts/LevgVault.d.ts.map +1 -1
- package/dist/contracts/LevgVault.js +530 -530
- package/dist/contracts/LevgVaultAgent.d.ts +127 -69
- package/dist/contracts/LevgVaultAgent.d.ts.map +1 -1
- package/dist/contracts/LevgVaultAgent.js +134 -79
- package/dist/contracts/LevgVaultWallet.d.ts +1119 -0
- package/dist/contracts/LevgVaultWallet.d.ts.map +1 -0
- package/dist/contracts/LevgVaultWallet.js +1439 -0
- package/dist/contracts/LocalGov.d.ts +427 -0
- package/dist/contracts/LocalGov.d.ts.map +1 -0
- package/dist/contracts/LocalGov.js +507 -0
- package/dist/contracts/Migrator.d.ts +160 -0
- package/dist/contracts/Migrator.d.ts.map +1 -1
- package/dist/contracts/Migrator.js +187 -0
- package/dist/contracts/Ownership.d.ts +414 -0
- package/dist/contracts/Ownership.d.ts.map +1 -0
- package/dist/contracts/Ownership.js +472 -0
- package/dist/contracts/Paymaster.d.ts +119 -322
- package/dist/contracts/Paymaster.d.ts.map +1 -1
- package/dist/contracts/Paymaster.js +118 -404
- package/dist/contracts/Sentinel.d.ts +9 -6
- package/dist/contracts/Sentinel.d.ts.map +1 -1
- package/dist/contracts/Sentinel.js +8 -4
- package/dist/contracts/UndyToken.d.ts +821 -0
- package/dist/contracts/UndyToken.d.ts.map +1 -0
- package/dist/contracts/UndyToken.js +1017 -0
- package/dist/contracts/UserWalletConfig.d.ts +334 -317
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
- package/dist/contracts/UserWalletConfig.js +391 -371
- package/dist/contracts/UserWalletSignatureHelper.d.ts +1520 -514
- package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -1
- package/dist/contracts/UserWalletSignatureHelper.js +1906 -549
- package/dist/contracts/VaultErc20Token.d.ts +522 -0
- package/dist/contracts/VaultErc20Token.d.ts.map +1 -0
- package/dist/contracts/VaultErc20Token.js +658 -0
- package/dist/contracts/index.d.ts +10 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +10 -0
- package/dist/contracts/sdk.d.ts +20 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +20 -0
- package/package.json +1 -1
|
@@ -6,323 +6,326 @@ import { singleQuery, mutate } from '@dappql/async';
|
|
|
6
6
|
import { encodeEventTopics, parseEventLogs } from 'viem';
|
|
7
7
|
export const abi = [
|
|
8
8
|
{
|
|
9
|
-
"
|
|
9
|
+
"name": "Deposit",
|
|
10
10
|
"inputs": [
|
|
11
11
|
{
|
|
12
|
-
"indexed": true,
|
|
13
12
|
"name": "sender",
|
|
14
|
-
"type": "address"
|
|
13
|
+
"type": "address",
|
|
14
|
+
"indexed": true
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"indexed": true,
|
|
18
17
|
"name": "owner",
|
|
19
|
-
"type": "address"
|
|
18
|
+
"type": "address",
|
|
19
|
+
"indexed": true
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
"indexed": false,
|
|
23
22
|
"name": "assets",
|
|
24
|
-
"type": "uint256"
|
|
23
|
+
"type": "uint256",
|
|
24
|
+
"indexed": false
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"indexed": false,
|
|
28
27
|
"name": "shares",
|
|
29
|
-
"type": "uint256"
|
|
28
|
+
"type": "uint256",
|
|
29
|
+
"indexed": false
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
|
-
"
|
|
32
|
+
"anonymous": false,
|
|
33
33
|
"type": "event"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
"
|
|
36
|
+
"name": "Withdraw",
|
|
37
37
|
"inputs": [
|
|
38
38
|
{
|
|
39
|
-
"indexed": true,
|
|
40
39
|
"name": "sender",
|
|
41
|
-
"type": "address"
|
|
40
|
+
"type": "address",
|
|
41
|
+
"indexed": true
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
"indexed": true,
|
|
45
44
|
"name": "receiver",
|
|
46
|
-
"type": "address"
|
|
45
|
+
"type": "address",
|
|
46
|
+
"indexed": true
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
|
-
"indexed": true,
|
|
50
49
|
"name": "owner",
|
|
51
|
-
"type": "address"
|
|
50
|
+
"type": "address",
|
|
51
|
+
"indexed": true
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
"indexed": false,
|
|
55
54
|
"name": "assets",
|
|
56
|
-
"type": "uint256"
|
|
55
|
+
"type": "uint256",
|
|
56
|
+
"indexed": false
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
"indexed": false,
|
|
60
59
|
"name": "shares",
|
|
61
|
-
"type": "uint256"
|
|
60
|
+
"type": "uint256",
|
|
61
|
+
"indexed": false
|
|
62
62
|
}
|
|
63
63
|
],
|
|
64
|
-
"
|
|
64
|
+
"anonymous": false,
|
|
65
65
|
"type": "event"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
"
|
|
68
|
+
"name": "LeftoversSwept",
|
|
69
69
|
"inputs": [
|
|
70
70
|
{
|
|
71
|
-
"indexed": false,
|
|
72
71
|
"name": "amount",
|
|
73
|
-
"type": "uint256"
|
|
72
|
+
"type": "uint256",
|
|
73
|
+
"indexed": false
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
"indexed": true,
|
|
77
76
|
"name": "recipient",
|
|
78
|
-
"type": "address"
|
|
77
|
+
"type": "address",
|
|
78
|
+
"indexed": true
|
|
79
79
|
}
|
|
80
80
|
],
|
|
81
|
-
"
|
|
81
|
+
"anonymous": false,
|
|
82
82
|
"type": "event"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
|
-
"
|
|
85
|
+
"name": "Transfer",
|
|
86
86
|
"inputs": [
|
|
87
87
|
{
|
|
88
|
-
"indexed": true,
|
|
89
88
|
"name": "sender",
|
|
90
|
-
"type": "address"
|
|
89
|
+
"type": "address",
|
|
90
|
+
"indexed": true
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
"indexed": true,
|
|
94
93
|
"name": "recipient",
|
|
95
|
-
"type": "address"
|
|
94
|
+
"type": "address",
|
|
95
|
+
"indexed": true
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
"indexed": false,
|
|
99
98
|
"name": "amount",
|
|
100
|
-
"type": "uint256"
|
|
99
|
+
"type": "uint256",
|
|
100
|
+
"indexed": false
|
|
101
101
|
}
|
|
102
102
|
],
|
|
103
|
-
"
|
|
103
|
+
"anonymous": false,
|
|
104
104
|
"type": "event"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
"
|
|
107
|
+
"name": "Approval",
|
|
108
108
|
"inputs": [
|
|
109
109
|
{
|
|
110
|
-
"indexed": true,
|
|
111
110
|
"name": "owner",
|
|
112
|
-
"type": "address"
|
|
111
|
+
"type": "address",
|
|
112
|
+
"indexed": true
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
|
-
"indexed": true,
|
|
116
115
|
"name": "spender",
|
|
117
|
-
"type": "address"
|
|
116
|
+
"type": "address",
|
|
117
|
+
"indexed": true
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
"indexed": false,
|
|
121
120
|
"name": "amount",
|
|
122
|
-
"type": "uint256"
|
|
121
|
+
"type": "uint256",
|
|
122
|
+
"indexed": false
|
|
123
123
|
}
|
|
124
124
|
],
|
|
125
|
-
"
|
|
125
|
+
"anonymous": false,
|
|
126
126
|
"type": "event"
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
|
-
"
|
|
129
|
+
"name": "BlacklistModified",
|
|
130
130
|
"inputs": [
|
|
131
131
|
{
|
|
132
|
-
"indexed": true,
|
|
133
132
|
"name": "addr",
|
|
134
|
-
"type": "address"
|
|
133
|
+
"type": "address",
|
|
134
|
+
"indexed": true
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
|
-
"indexed": false,
|
|
138
137
|
"name": "isBlacklisted",
|
|
139
|
-
"type": "bool"
|
|
138
|
+
"type": "bool",
|
|
139
|
+
"indexed": false
|
|
140
140
|
}
|
|
141
141
|
],
|
|
142
|
-
"
|
|
142
|
+
"anonymous": false,
|
|
143
143
|
"type": "event"
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
"
|
|
146
|
+
"name": "TokenPauseModified",
|
|
147
147
|
"inputs": [
|
|
148
148
|
{
|
|
149
|
-
"indexed": false,
|
|
150
149
|
"name": "isPaused",
|
|
151
|
-
"type": "bool"
|
|
150
|
+
"type": "bool",
|
|
151
|
+
"indexed": false
|
|
152
152
|
}
|
|
153
153
|
],
|
|
154
|
-
"
|
|
154
|
+
"anonymous": false,
|
|
155
155
|
"type": "event"
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
|
-
"
|
|
158
|
+
"name": "LevgVaultAction",
|
|
159
159
|
"inputs": [
|
|
160
160
|
{
|
|
161
|
-
"indexed": false,
|
|
162
161
|
"name": "op",
|
|
163
|
-
"type": "uint8"
|
|
162
|
+
"type": "uint8",
|
|
163
|
+
"indexed": false
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
|
-
"indexed": true,
|
|
167
166
|
"name": "asset1",
|
|
168
|
-
"type": "address"
|
|
167
|
+
"type": "address",
|
|
168
|
+
"indexed": true
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
|
-
"indexed": true,
|
|
172
171
|
"name": "asset2",
|
|
173
|
-
"type": "address"
|
|
172
|
+
"type": "address",
|
|
173
|
+
"indexed": true
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
|
-
"indexed": false,
|
|
177
176
|
"name": "amount1",
|
|
178
|
-
"type": "uint256"
|
|
177
|
+
"type": "uint256",
|
|
178
|
+
"indexed": false
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
|
-
"indexed": false,
|
|
182
181
|
"name": "amount2",
|
|
183
|
-
"type": "uint256"
|
|
182
|
+
"type": "uint256",
|
|
183
|
+
"indexed": false
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
|
-
"indexed": false,
|
|
187
186
|
"name": "usdValue",
|
|
188
|
-
"type": "uint256"
|
|
187
|
+
"type": "uint256",
|
|
188
|
+
"indexed": false
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
|
-
"indexed": false,
|
|
192
191
|
"name": "legoId",
|
|
193
|
-
"type": "uint256"
|
|
192
|
+
"type": "uint256",
|
|
193
|
+
"indexed": false
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
|
-
"indexed": true,
|
|
197
196
|
"name": "signer",
|
|
198
|
-
"type": "address"
|
|
197
|
+
"type": "address",
|
|
198
|
+
"indexed": true
|
|
199
199
|
}
|
|
200
200
|
],
|
|
201
|
-
"
|
|
201
|
+
"anonymous": false,
|
|
202
202
|
"type": "event"
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
|
-
"
|
|
205
|
+
"name": "CollateralVaultTokenSet",
|
|
206
206
|
"inputs": [
|
|
207
207
|
{
|
|
208
|
-
"indexed": true,
|
|
209
208
|
"name": "collateralVaultToken",
|
|
210
|
-
"type": "address"
|
|
209
|
+
"type": "address",
|
|
210
|
+
"indexed": true
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
"indexed": false,
|
|
214
213
|
"name": "legoId",
|
|
215
|
-
"type": "uint256"
|
|
214
|
+
"type": "uint256",
|
|
215
|
+
"indexed": false
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
"indexed": false,
|
|
219
218
|
"name": "ripeVaultId",
|
|
220
|
-
"type": "uint256"
|
|
219
|
+
"type": "uint256",
|
|
220
|
+
"indexed": false
|
|
221
221
|
}
|
|
222
222
|
],
|
|
223
|
-
"
|
|
223
|
+
"anonymous": false,
|
|
224
224
|
"type": "event"
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
|
-
"
|
|
227
|
+
"name": "LeverageVaultTokenSet",
|
|
228
228
|
"inputs": [
|
|
229
229
|
{
|
|
230
|
-
"indexed": true,
|
|
231
230
|
"name": "leverageVaultToken",
|
|
232
|
-
"type": "address"
|
|
231
|
+
"type": "address",
|
|
232
|
+
"indexed": true
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
|
-
"indexed": false,
|
|
236
235
|
"name": "legoId",
|
|
237
|
-
"type": "uint256"
|
|
236
|
+
"type": "uint256",
|
|
237
|
+
"indexed": false
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
|
-
"indexed": false,
|
|
241
240
|
"name": "ripeVaultId",
|
|
242
|
-
"type": "uint256"
|
|
241
|
+
"type": "uint256",
|
|
242
|
+
"indexed": false
|
|
243
243
|
}
|
|
244
244
|
],
|
|
245
|
-
"
|
|
245
|
+
"anonymous": false,
|
|
246
246
|
"type": "event"
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
|
-
"
|
|
249
|
+
"name": "SlippagesSet",
|
|
250
250
|
"inputs": [
|
|
251
251
|
{
|
|
252
|
-
"indexed": false,
|
|
253
252
|
"name": "usdcSlippage",
|
|
254
|
-
"type": "uint256"
|
|
253
|
+
"type": "uint256",
|
|
254
|
+
"indexed": false
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
|
-
"indexed": false,
|
|
258
257
|
"name": "greenSlippage",
|
|
259
|
-
"type": "uint256"
|
|
258
|
+
"type": "uint256",
|
|
259
|
+
"indexed": false
|
|
260
260
|
}
|
|
261
261
|
],
|
|
262
|
-
"
|
|
262
|
+
"anonymous": false,
|
|
263
263
|
"type": "event"
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
|
-
"
|
|
266
|
+
"name": "LevgVaultHelperSet",
|
|
267
267
|
"inputs": [
|
|
268
268
|
{
|
|
269
|
-
"indexed": true,
|
|
270
269
|
"name": "levgVaultHelper",
|
|
271
|
-
"type": "address"
|
|
270
|
+
"type": "address",
|
|
271
|
+
"indexed": true
|
|
272
272
|
}
|
|
273
273
|
],
|
|
274
|
-
"
|
|
274
|
+
"anonymous": false,
|
|
275
275
|
"type": "event"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
|
-
"
|
|
278
|
+
"name": "MaxDebtRatioSet",
|
|
279
279
|
"inputs": [
|
|
280
280
|
{
|
|
281
|
-
"indexed": false,
|
|
282
281
|
"name": "maxDebtRatio",
|
|
283
|
-
"type": "uint256"
|
|
282
|
+
"type": "uint256",
|
|
283
|
+
"indexed": false
|
|
284
284
|
}
|
|
285
285
|
],
|
|
286
|
-
"
|
|
286
|
+
"anonymous": false,
|
|
287
287
|
"type": "event"
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
|
-
"
|
|
290
|
+
"stateMutability": "view",
|
|
291
|
+
"type": "function",
|
|
291
292
|
"name": "name",
|
|
293
|
+
"inputs": [],
|
|
292
294
|
"outputs": [
|
|
293
295
|
{
|
|
294
296
|
"name": "",
|
|
295
297
|
"type": "string"
|
|
296
298
|
}
|
|
297
|
-
]
|
|
298
|
-
"stateMutability": "view",
|
|
299
|
-
"type": "function"
|
|
299
|
+
]
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
|
-
"
|
|
302
|
+
"stateMutability": "view",
|
|
303
|
+
"type": "function",
|
|
303
304
|
"name": "symbol",
|
|
305
|
+
"inputs": [],
|
|
304
306
|
"outputs": [
|
|
305
307
|
{
|
|
306
308
|
"name": "",
|
|
307
309
|
"type": "string"
|
|
308
310
|
}
|
|
309
|
-
]
|
|
310
|
-
"stateMutability": "view",
|
|
311
|
-
"type": "function"
|
|
311
|
+
]
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
|
-
"
|
|
314
|
+
"stateMutability": "view",
|
|
315
|
+
"type": "function",
|
|
315
316
|
"name": "decimals",
|
|
317
|
+
"inputs": [],
|
|
316
318
|
"outputs": [
|
|
317
319
|
{
|
|
318
320
|
"name": "",
|
|
319
321
|
"type": "uint8"
|
|
320
322
|
}
|
|
321
|
-
]
|
|
322
|
-
"stateMutability": "view",
|
|
323
|
-
"type": "function"
|
|
323
|
+
]
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
|
+
"stateMutability": "nonpayable",
|
|
327
|
+
"type": "function",
|
|
328
|
+
"name": "transfer",
|
|
326
329
|
"inputs": [
|
|
327
330
|
{
|
|
328
331
|
"name": "_recipient",
|
|
@@ -333,17 +336,17 @@ export const abi = [
|
|
|
333
336
|
"type": "uint256"
|
|
334
337
|
}
|
|
335
338
|
],
|
|
336
|
-
"name": "transfer",
|
|
337
339
|
"outputs": [
|
|
338
340
|
{
|
|
339
341
|
"name": "",
|
|
340
342
|
"type": "bool"
|
|
341
343
|
}
|
|
342
|
-
]
|
|
343
|
-
"stateMutability": "nonpayable",
|
|
344
|
-
"type": "function"
|
|
344
|
+
]
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
|
+
"stateMutability": "nonpayable",
|
|
348
|
+
"type": "function",
|
|
349
|
+
"name": "transferFrom",
|
|
347
350
|
"inputs": [
|
|
348
351
|
{
|
|
349
352
|
"name": "_sender",
|
|
@@ -358,17 +361,17 @@ export const abi = [
|
|
|
358
361
|
"type": "uint256"
|
|
359
362
|
}
|
|
360
363
|
],
|
|
361
|
-
"name": "transferFrom",
|
|
362
364
|
"outputs": [
|
|
363
365
|
{
|
|
364
366
|
"name": "",
|
|
365
367
|
"type": "bool"
|
|
366
368
|
}
|
|
367
|
-
]
|
|
368
|
-
"stateMutability": "nonpayable",
|
|
369
|
-
"type": "function"
|
|
369
|
+
]
|
|
370
370
|
},
|
|
371
371
|
{
|
|
372
|
+
"stateMutability": "nonpayable",
|
|
373
|
+
"type": "function",
|
|
374
|
+
"name": "approve",
|
|
372
375
|
"inputs": [
|
|
373
376
|
{
|
|
374
377
|
"name": "_spender",
|
|
@@ -379,17 +382,17 @@ export const abi = [
|
|
|
379
382
|
"type": "uint256"
|
|
380
383
|
}
|
|
381
384
|
],
|
|
382
|
-
"name": "approve",
|
|
383
385
|
"outputs": [
|
|
384
386
|
{
|
|
385
387
|
"name": "",
|
|
386
388
|
"type": "bool"
|
|
387
389
|
}
|
|
388
|
-
]
|
|
389
|
-
"stateMutability": "nonpayable",
|
|
390
|
-
"type": "function"
|
|
390
|
+
]
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
|
+
"stateMutability": "nonpayable",
|
|
394
|
+
"type": "function",
|
|
395
|
+
"name": "increaseAllowance",
|
|
393
396
|
"inputs": [
|
|
394
397
|
{
|
|
395
398
|
"name": "_spender",
|
|
@@ -400,17 +403,17 @@ export const abi = [
|
|
|
400
403
|
"type": "uint256"
|
|
401
404
|
}
|
|
402
405
|
],
|
|
403
|
-
"name": "increaseAllowance",
|
|
404
406
|
"outputs": [
|
|
405
407
|
{
|
|
406
408
|
"name": "",
|
|
407
409
|
"type": "bool"
|
|
408
410
|
}
|
|
409
|
-
]
|
|
410
|
-
"stateMutability": "nonpayable",
|
|
411
|
-
"type": "function"
|
|
411
|
+
]
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
|
+
"stateMutability": "nonpayable",
|
|
415
|
+
"type": "function",
|
|
416
|
+
"name": "decreaseAllowance",
|
|
414
417
|
"inputs": [
|
|
415
418
|
{
|
|
416
419
|
"name": "_spender",
|
|
@@ -421,46 +424,46 @@ export const abi = [
|
|
|
421
424
|
"type": "uint256"
|
|
422
425
|
}
|
|
423
426
|
],
|
|
424
|
-
"name": "decreaseAllowance",
|
|
425
427
|
"outputs": [
|
|
426
428
|
{
|
|
427
429
|
"name": "",
|
|
428
430
|
"type": "bool"
|
|
429
431
|
}
|
|
430
|
-
]
|
|
431
|
-
"stateMutability": "nonpayable",
|
|
432
|
-
"type": "function"
|
|
432
|
+
]
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
|
+
"stateMutability": "nonpayable",
|
|
436
|
+
"type": "function",
|
|
437
|
+
"name": "burn",
|
|
435
438
|
"inputs": [
|
|
436
439
|
{
|
|
437
440
|
"name": "_amount",
|
|
438
441
|
"type": "uint256"
|
|
439
442
|
}
|
|
440
443
|
],
|
|
441
|
-
"name": "burn",
|
|
442
444
|
"outputs": [
|
|
443
445
|
{
|
|
444
446
|
"name": "",
|
|
445
447
|
"type": "bool"
|
|
446
448
|
}
|
|
447
|
-
]
|
|
448
|
-
"stateMutability": "nonpayable",
|
|
449
|
-
"type": "function"
|
|
449
|
+
]
|
|
450
450
|
},
|
|
451
451
|
{
|
|
452
|
-
"
|
|
452
|
+
"stateMutability": "view",
|
|
453
|
+
"type": "function",
|
|
453
454
|
"name": "DOMAIN_SEPARATOR",
|
|
455
|
+
"inputs": [],
|
|
454
456
|
"outputs": [
|
|
455
457
|
{
|
|
456
458
|
"name": "",
|
|
457
459
|
"type": "bytes32"
|
|
458
460
|
}
|
|
459
|
-
]
|
|
460
|
-
"stateMutability": "view",
|
|
461
|
-
"type": "function"
|
|
461
|
+
]
|
|
462
462
|
},
|
|
463
463
|
{
|
|
464
|
+
"stateMutability": "nonpayable",
|
|
465
|
+
"type": "function",
|
|
466
|
+
"name": "permit",
|
|
464
467
|
"inputs": [
|
|
465
468
|
{
|
|
466
469
|
"name": "_owner",
|
|
@@ -483,17 +486,17 @@ export const abi = [
|
|
|
483
486
|
"type": "bytes"
|
|
484
487
|
}
|
|
485
488
|
],
|
|
486
|
-
"name": "permit",
|
|
487
489
|
"outputs": [
|
|
488
490
|
{
|
|
489
491
|
"name": "",
|
|
490
492
|
"type": "bool"
|
|
491
493
|
}
|
|
492
|
-
]
|
|
493
|
-
"stateMutability": "nonpayable",
|
|
494
|
-
"type": "function"
|
|
494
|
+
]
|
|
495
495
|
},
|
|
496
496
|
{
|
|
497
|
+
"stateMutability": "nonpayable",
|
|
498
|
+
"type": "function",
|
|
499
|
+
"name": "setBlacklist",
|
|
497
500
|
"inputs": [
|
|
498
501
|
{
|
|
499
502
|
"name": "_addr",
|
|
@@ -504,34 +507,34 @@ export const abi = [
|
|
|
504
507
|
"type": "bool"
|
|
505
508
|
}
|
|
506
509
|
],
|
|
507
|
-
"name": "setBlacklist",
|
|
508
510
|
"outputs": [
|
|
509
511
|
{
|
|
510
512
|
"name": "",
|
|
511
513
|
"type": "bool"
|
|
512
514
|
}
|
|
513
|
-
]
|
|
514
|
-
"stateMutability": "nonpayable",
|
|
515
|
-
"type": "function"
|
|
515
|
+
]
|
|
516
516
|
},
|
|
517
517
|
{
|
|
518
|
+
"stateMutability": "nonpayable",
|
|
519
|
+
"type": "function",
|
|
520
|
+
"name": "burnBlacklistTokens",
|
|
518
521
|
"inputs": [
|
|
519
522
|
{
|
|
520
523
|
"name": "_addr",
|
|
521
524
|
"type": "address"
|
|
522
525
|
}
|
|
523
526
|
],
|
|
524
|
-
"name": "burnBlacklistTokens",
|
|
525
527
|
"outputs": [
|
|
526
528
|
{
|
|
527
529
|
"name": "",
|
|
528
530
|
"type": "bool"
|
|
529
531
|
}
|
|
530
|
-
]
|
|
531
|
-
"stateMutability": "nonpayable",
|
|
532
|
-
"type": "function"
|
|
532
|
+
]
|
|
533
533
|
},
|
|
534
534
|
{
|
|
535
|
+
"stateMutability": "nonpayable",
|
|
536
|
+
"type": "function",
|
|
537
|
+
"name": "burnBlacklistTokens",
|
|
535
538
|
"inputs": [
|
|
536
539
|
{
|
|
537
540
|
"name": "_addr",
|
|
@@ -542,87 +545,87 @@ export const abi = [
|
|
|
542
545
|
"type": "uint256"
|
|
543
546
|
}
|
|
544
547
|
],
|
|
545
|
-
"name": "burnBlacklistTokens",
|
|
546
548
|
"outputs": [
|
|
547
549
|
{
|
|
548
550
|
"name": "",
|
|
549
551
|
"type": "bool"
|
|
550
552
|
}
|
|
551
|
-
]
|
|
552
|
-
"stateMutability": "nonpayable",
|
|
553
|
-
"type": "function"
|
|
553
|
+
]
|
|
554
554
|
},
|
|
555
555
|
{
|
|
556
|
+
"stateMutability": "nonpayable",
|
|
557
|
+
"type": "function",
|
|
558
|
+
"name": "pause",
|
|
556
559
|
"inputs": [
|
|
557
560
|
{
|
|
558
561
|
"name": "_shouldPause",
|
|
559
562
|
"type": "bool"
|
|
560
563
|
}
|
|
561
564
|
],
|
|
562
|
-
"
|
|
563
|
-
"outputs": [],
|
|
564
|
-
"stateMutability": "nonpayable",
|
|
565
|
-
"type": "function"
|
|
565
|
+
"outputs": []
|
|
566
566
|
},
|
|
567
567
|
{
|
|
568
|
-
"
|
|
568
|
+
"stateMutability": "view",
|
|
569
|
+
"type": "function",
|
|
569
570
|
"name": "undyHq",
|
|
571
|
+
"inputs": [],
|
|
570
572
|
"outputs": [
|
|
571
573
|
{
|
|
572
574
|
"name": "",
|
|
573
575
|
"type": "address"
|
|
574
576
|
}
|
|
575
|
-
]
|
|
576
|
-
"stateMutability": "view",
|
|
577
|
-
"type": "function"
|
|
577
|
+
]
|
|
578
578
|
},
|
|
579
579
|
{
|
|
580
|
+
"stateMutability": "view",
|
|
581
|
+
"type": "function",
|
|
582
|
+
"name": "blacklisted",
|
|
580
583
|
"inputs": [
|
|
581
584
|
{
|
|
582
585
|
"name": "arg0",
|
|
583
586
|
"type": "address"
|
|
584
587
|
}
|
|
585
588
|
],
|
|
586
|
-
"name": "blacklisted",
|
|
587
589
|
"outputs": [
|
|
588
590
|
{
|
|
589
591
|
"name": "",
|
|
590
592
|
"type": "bool"
|
|
591
593
|
}
|
|
592
|
-
]
|
|
593
|
-
"stateMutability": "view",
|
|
594
|
-
"type": "function"
|
|
594
|
+
]
|
|
595
595
|
},
|
|
596
596
|
{
|
|
597
|
-
"
|
|
597
|
+
"stateMutability": "view",
|
|
598
|
+
"type": "function",
|
|
598
599
|
"name": "isPaused",
|
|
600
|
+
"inputs": [],
|
|
599
601
|
"outputs": [
|
|
600
602
|
{
|
|
601
603
|
"name": "",
|
|
602
604
|
"type": "bool"
|
|
603
605
|
}
|
|
604
|
-
]
|
|
605
|
-
"stateMutability": "view",
|
|
606
|
-
"type": "function"
|
|
606
|
+
]
|
|
607
607
|
},
|
|
608
608
|
{
|
|
609
|
+
"stateMutability": "view",
|
|
610
|
+
"type": "function",
|
|
611
|
+
"name": "balanceOf",
|
|
609
612
|
"inputs": [
|
|
610
613
|
{
|
|
611
614
|
"name": "arg0",
|
|
612
615
|
"type": "address"
|
|
613
616
|
}
|
|
614
617
|
],
|
|
615
|
-
"name": "balanceOf",
|
|
616
618
|
"outputs": [
|
|
617
619
|
{
|
|
618
620
|
"name": "",
|
|
619
621
|
"type": "uint256"
|
|
620
622
|
}
|
|
621
|
-
]
|
|
622
|
-
"stateMutability": "view",
|
|
623
|
-
"type": "function"
|
|
623
|
+
]
|
|
624
624
|
},
|
|
625
625
|
{
|
|
626
|
+
"stateMutability": "view",
|
|
627
|
+
"type": "function",
|
|
628
|
+
"name": "allowance",
|
|
626
629
|
"inputs": [
|
|
627
630
|
{
|
|
628
631
|
"name": "arg0",
|
|
@@ -633,94 +636,94 @@ export const abi = [
|
|
|
633
636
|
"type": "address"
|
|
634
637
|
}
|
|
635
638
|
],
|
|
636
|
-
"name": "allowance",
|
|
637
639
|
"outputs": [
|
|
638
640
|
{
|
|
639
641
|
"name": "",
|
|
640
642
|
"type": "uint256"
|
|
641
643
|
}
|
|
642
|
-
]
|
|
643
|
-
"stateMutability": "view",
|
|
644
|
-
"type": "function"
|
|
644
|
+
]
|
|
645
645
|
},
|
|
646
646
|
{
|
|
647
|
-
"
|
|
647
|
+
"stateMutability": "view",
|
|
648
|
+
"type": "function",
|
|
648
649
|
"name": "totalSupply",
|
|
650
|
+
"inputs": [],
|
|
649
651
|
"outputs": [
|
|
650
652
|
{
|
|
651
653
|
"name": "",
|
|
652
654
|
"type": "uint256"
|
|
653
655
|
}
|
|
654
|
-
]
|
|
655
|
-
"stateMutability": "view",
|
|
656
|
-
"type": "function"
|
|
656
|
+
]
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
|
-
"
|
|
659
|
+
"stateMutability": "view",
|
|
660
|
+
"type": "function",
|
|
660
661
|
"name": "TOKEN_NAME",
|
|
662
|
+
"inputs": [],
|
|
661
663
|
"outputs": [
|
|
662
664
|
{
|
|
663
665
|
"name": "",
|
|
664
666
|
"type": "string"
|
|
665
667
|
}
|
|
666
|
-
]
|
|
667
|
-
"stateMutability": "view",
|
|
668
|
-
"type": "function"
|
|
668
|
+
]
|
|
669
669
|
},
|
|
670
670
|
{
|
|
671
|
-
"
|
|
671
|
+
"stateMutability": "view",
|
|
672
|
+
"type": "function",
|
|
672
673
|
"name": "TOKEN_SYMBOL",
|
|
674
|
+
"inputs": [],
|
|
673
675
|
"outputs": [
|
|
674
676
|
{
|
|
675
677
|
"name": "",
|
|
676
678
|
"type": "string"
|
|
677
679
|
}
|
|
678
|
-
]
|
|
679
|
-
"stateMutability": "view",
|
|
680
|
-
"type": "function"
|
|
680
|
+
]
|
|
681
681
|
},
|
|
682
682
|
{
|
|
683
|
-
"
|
|
683
|
+
"stateMutability": "view",
|
|
684
|
+
"type": "function",
|
|
684
685
|
"name": "TOKEN_DECIMALS",
|
|
686
|
+
"inputs": [],
|
|
685
687
|
"outputs": [
|
|
686
688
|
{
|
|
687
689
|
"name": "",
|
|
688
690
|
"type": "uint8"
|
|
689
691
|
}
|
|
690
|
-
]
|
|
691
|
-
"stateMutability": "view",
|
|
692
|
-
"type": "function"
|
|
692
|
+
]
|
|
693
693
|
},
|
|
694
694
|
{
|
|
695
|
-
"
|
|
695
|
+
"stateMutability": "view",
|
|
696
|
+
"type": "function",
|
|
696
697
|
"name": "VERSION",
|
|
698
|
+
"inputs": [],
|
|
697
699
|
"outputs": [
|
|
698
700
|
{
|
|
699
701
|
"name": "",
|
|
700
702
|
"type": "string"
|
|
701
703
|
}
|
|
702
|
-
]
|
|
703
|
-
"stateMutability": "view",
|
|
704
|
-
"type": "function"
|
|
704
|
+
]
|
|
705
705
|
},
|
|
706
706
|
{
|
|
707
|
+
"stateMutability": "view",
|
|
708
|
+
"type": "function",
|
|
709
|
+
"name": "nonces",
|
|
707
710
|
"inputs": [
|
|
708
711
|
{
|
|
709
712
|
"name": "arg0",
|
|
710
713
|
"type": "address"
|
|
711
714
|
}
|
|
712
715
|
],
|
|
713
|
-
"name": "nonces",
|
|
714
716
|
"outputs": [
|
|
715
717
|
{
|
|
716
718
|
"name": "",
|
|
717
719
|
"type": "uint256"
|
|
718
720
|
}
|
|
719
|
-
]
|
|
720
|
-
"stateMutability": "view",
|
|
721
|
-
"type": "function"
|
|
721
|
+
]
|
|
722
722
|
},
|
|
723
723
|
{
|
|
724
|
+
"stateMutability": "nonpayable",
|
|
725
|
+
"type": "function",
|
|
726
|
+
"name": "depositForYield",
|
|
724
727
|
"inputs": [
|
|
725
728
|
{
|
|
726
729
|
"name": "_legoId",
|
|
@@ -731,7 +734,6 @@ export const abi = [
|
|
|
731
734
|
"type": "address"
|
|
732
735
|
}
|
|
733
736
|
],
|
|
734
|
-
"name": "depositForYield",
|
|
735
737
|
"outputs": [
|
|
736
738
|
{
|
|
737
739
|
"name": "",
|
|
@@ -749,11 +751,12 @@ export const abi = [
|
|
|
749
751
|
"name": "",
|
|
750
752
|
"type": "uint256"
|
|
751
753
|
}
|
|
752
|
-
]
|
|
753
|
-
"stateMutability": "nonpayable",
|
|
754
|
-
"type": "function"
|
|
754
|
+
]
|
|
755
755
|
},
|
|
756
756
|
{
|
|
757
|
+
"stateMutability": "nonpayable",
|
|
758
|
+
"type": "function",
|
|
759
|
+
"name": "depositForYield",
|
|
757
760
|
"inputs": [
|
|
758
761
|
{
|
|
759
762
|
"name": "_legoId",
|
|
@@ -768,7 +771,6 @@ export const abi = [
|
|
|
768
771
|
"type": "address"
|
|
769
772
|
}
|
|
770
773
|
],
|
|
771
|
-
"name": "depositForYield",
|
|
772
774
|
"outputs": [
|
|
773
775
|
{
|
|
774
776
|
"name": "",
|
|
@@ -786,11 +788,12 @@ export const abi = [
|
|
|
786
788
|
"name": "",
|
|
787
789
|
"type": "uint256"
|
|
788
790
|
}
|
|
789
|
-
]
|
|
790
|
-
"stateMutability": "nonpayable",
|
|
791
|
-
"type": "function"
|
|
791
|
+
]
|
|
792
792
|
},
|
|
793
793
|
{
|
|
794
|
+
"stateMutability": "nonpayable",
|
|
795
|
+
"type": "function",
|
|
796
|
+
"name": "depositForYield",
|
|
794
797
|
"inputs": [
|
|
795
798
|
{
|
|
796
799
|
"name": "_legoId",
|
|
@@ -809,7 +812,6 @@ export const abi = [
|
|
|
809
812
|
"type": "uint256"
|
|
810
813
|
}
|
|
811
814
|
],
|
|
812
|
-
"name": "depositForYield",
|
|
813
815
|
"outputs": [
|
|
814
816
|
{
|
|
815
817
|
"name": "",
|
|
@@ -827,11 +829,12 @@ export const abi = [
|
|
|
827
829
|
"name": "",
|
|
828
830
|
"type": "uint256"
|
|
829
831
|
}
|
|
830
|
-
]
|
|
831
|
-
"stateMutability": "nonpayable",
|
|
832
|
-
"type": "function"
|
|
832
|
+
]
|
|
833
833
|
},
|
|
834
834
|
{
|
|
835
|
+
"stateMutability": "nonpayable",
|
|
836
|
+
"type": "function",
|
|
837
|
+
"name": "depositForYield",
|
|
835
838
|
"inputs": [
|
|
836
839
|
{
|
|
837
840
|
"name": "_legoId",
|
|
@@ -854,7 +857,6 @@ export const abi = [
|
|
|
854
857
|
"type": "bytes32"
|
|
855
858
|
}
|
|
856
859
|
],
|
|
857
|
-
"name": "depositForYield",
|
|
858
860
|
"outputs": [
|
|
859
861
|
{
|
|
860
862
|
"name": "",
|
|
@@ -872,11 +874,12 @@ export const abi = [
|
|
|
872
874
|
"name": "",
|
|
873
875
|
"type": "uint256"
|
|
874
876
|
}
|
|
875
|
-
]
|
|
876
|
-
"stateMutability": "nonpayable",
|
|
877
|
-
"type": "function"
|
|
877
|
+
]
|
|
878
878
|
},
|
|
879
879
|
{
|
|
880
|
+
"stateMutability": "nonpayable",
|
|
881
|
+
"type": "function",
|
|
882
|
+
"name": "withdrawFromYield",
|
|
880
883
|
"inputs": [
|
|
881
884
|
{
|
|
882
885
|
"name": "_legoId",
|
|
@@ -887,7 +890,6 @@ export const abi = [
|
|
|
887
890
|
"type": "address"
|
|
888
891
|
}
|
|
889
892
|
],
|
|
890
|
-
"name": "withdrawFromYield",
|
|
891
893
|
"outputs": [
|
|
892
894
|
{
|
|
893
895
|
"name": "",
|
|
@@ -905,11 +907,12 @@ export const abi = [
|
|
|
905
907
|
"name": "",
|
|
906
908
|
"type": "uint256"
|
|
907
909
|
}
|
|
908
|
-
]
|
|
909
|
-
"stateMutability": "nonpayable",
|
|
910
|
-
"type": "function"
|
|
910
|
+
]
|
|
911
911
|
},
|
|
912
912
|
{
|
|
913
|
+
"stateMutability": "nonpayable",
|
|
914
|
+
"type": "function",
|
|
915
|
+
"name": "withdrawFromYield",
|
|
913
916
|
"inputs": [
|
|
914
917
|
{
|
|
915
918
|
"name": "_legoId",
|
|
@@ -924,7 +927,6 @@ export const abi = [
|
|
|
924
927
|
"type": "uint256"
|
|
925
928
|
}
|
|
926
929
|
],
|
|
927
|
-
"name": "withdrawFromYield",
|
|
928
930
|
"outputs": [
|
|
929
931
|
{
|
|
930
932
|
"name": "",
|
|
@@ -942,11 +944,12 @@ export const abi = [
|
|
|
942
944
|
"name": "",
|
|
943
945
|
"type": "uint256"
|
|
944
946
|
}
|
|
945
|
-
]
|
|
946
|
-
"stateMutability": "nonpayable",
|
|
947
|
-
"type": "function"
|
|
947
|
+
]
|
|
948
948
|
},
|
|
949
949
|
{
|
|
950
|
+
"stateMutability": "nonpayable",
|
|
951
|
+
"type": "function",
|
|
952
|
+
"name": "withdrawFromYield",
|
|
950
953
|
"inputs": [
|
|
951
954
|
{
|
|
952
955
|
"name": "_legoId",
|
|
@@ -965,7 +968,6 @@ export const abi = [
|
|
|
965
968
|
"type": "bytes32"
|
|
966
969
|
}
|
|
967
970
|
],
|
|
968
|
-
"name": "withdrawFromYield",
|
|
969
971
|
"outputs": [
|
|
970
972
|
{
|
|
971
973
|
"name": "",
|
|
@@ -983,11 +985,12 @@ export const abi = [
|
|
|
983
985
|
"name": "",
|
|
984
986
|
"type": "uint256"
|
|
985
987
|
}
|
|
986
|
-
]
|
|
987
|
-
"stateMutability": "nonpayable",
|
|
988
|
-
"type": "function"
|
|
988
|
+
]
|
|
989
989
|
},
|
|
990
990
|
{
|
|
991
|
+
"stateMutability": "nonpayable",
|
|
992
|
+
"type": "function",
|
|
993
|
+
"name": "withdrawFromYield",
|
|
991
994
|
"inputs": [
|
|
992
995
|
{
|
|
993
996
|
"name": "_legoId",
|
|
@@ -1010,7 +1013,6 @@ export const abi = [
|
|
|
1010
1013
|
"type": "bool"
|
|
1011
1014
|
}
|
|
1012
1015
|
],
|
|
1013
|
-
"name": "withdrawFromYield",
|
|
1014
1016
|
"outputs": [
|
|
1015
1017
|
{
|
|
1016
1018
|
"name": "",
|
|
@@ -1028,13 +1030,16 @@ export const abi = [
|
|
|
1028
1030
|
"name": "",
|
|
1029
1031
|
"type": "uint256"
|
|
1030
1032
|
}
|
|
1031
|
-
]
|
|
1032
|
-
"stateMutability": "nonpayable",
|
|
1033
|
-
"type": "function"
|
|
1033
|
+
]
|
|
1034
1034
|
},
|
|
1035
1035
|
{
|
|
1036
|
+
"stateMutability": "nonpayable",
|
|
1037
|
+
"type": "function",
|
|
1038
|
+
"name": "swapTokens",
|
|
1036
1039
|
"inputs": [
|
|
1037
1040
|
{
|
|
1041
|
+
"name": "_instructions",
|
|
1042
|
+
"type": "tuple[]",
|
|
1038
1043
|
"components": [
|
|
1039
1044
|
{
|
|
1040
1045
|
"name": "legoId",
|
|
@@ -1056,12 +1061,9 @@ export const abi = [
|
|
|
1056
1061
|
"name": "poolPath",
|
|
1057
1062
|
"type": "address[]"
|
|
1058
1063
|
}
|
|
1059
|
-
]
|
|
1060
|
-
"name": "_instructions",
|
|
1061
|
-
"type": "tuple[]"
|
|
1064
|
+
]
|
|
1062
1065
|
}
|
|
1063
1066
|
],
|
|
1064
|
-
"name": "swapTokens",
|
|
1065
1067
|
"outputs": [
|
|
1066
1068
|
{
|
|
1067
1069
|
"name": "",
|
|
@@ -1083,11 +1085,12 @@ export const abi = [
|
|
|
1083
1085
|
"name": "",
|
|
1084
1086
|
"type": "uint256"
|
|
1085
1087
|
}
|
|
1086
|
-
]
|
|
1087
|
-
"stateMutability": "nonpayable",
|
|
1088
|
-
"type": "function"
|
|
1088
|
+
]
|
|
1089
1089
|
},
|
|
1090
1090
|
{
|
|
1091
|
+
"stateMutability": "nonpayable",
|
|
1092
|
+
"type": "function",
|
|
1093
|
+
"name": "addCollateral",
|
|
1091
1094
|
"inputs": [
|
|
1092
1095
|
{
|
|
1093
1096
|
"name": "_legoId",
|
|
@@ -1098,7 +1101,6 @@ export const abi = [
|
|
|
1098
1101
|
"type": "address"
|
|
1099
1102
|
}
|
|
1100
1103
|
],
|
|
1101
|
-
"name": "addCollateral",
|
|
1102
1104
|
"outputs": [
|
|
1103
1105
|
{
|
|
1104
1106
|
"name": "",
|
|
@@ -1108,11 +1110,12 @@ export const abi = [
|
|
|
1108
1110
|
"name": "",
|
|
1109
1111
|
"type": "uint256"
|
|
1110
1112
|
}
|
|
1111
|
-
]
|
|
1112
|
-
"stateMutability": "nonpayable",
|
|
1113
|
-
"type": "function"
|
|
1113
|
+
]
|
|
1114
1114
|
},
|
|
1115
1115
|
{
|
|
1116
|
+
"stateMutability": "nonpayable",
|
|
1117
|
+
"type": "function",
|
|
1118
|
+
"name": "addCollateral",
|
|
1116
1119
|
"inputs": [
|
|
1117
1120
|
{
|
|
1118
1121
|
"name": "_legoId",
|
|
@@ -1127,7 +1130,6 @@ export const abi = [
|
|
|
1127
1130
|
"type": "uint256"
|
|
1128
1131
|
}
|
|
1129
1132
|
],
|
|
1130
|
-
"name": "addCollateral",
|
|
1131
1133
|
"outputs": [
|
|
1132
1134
|
{
|
|
1133
1135
|
"name": "",
|
|
@@ -1137,11 +1139,12 @@ export const abi = [
|
|
|
1137
1139
|
"name": "",
|
|
1138
1140
|
"type": "uint256"
|
|
1139
1141
|
}
|
|
1140
|
-
]
|
|
1141
|
-
"stateMutability": "nonpayable",
|
|
1142
|
-
"type": "function"
|
|
1142
|
+
]
|
|
1143
1143
|
},
|
|
1144
1144
|
{
|
|
1145
|
+
"stateMutability": "nonpayable",
|
|
1146
|
+
"type": "function",
|
|
1147
|
+
"name": "addCollateral",
|
|
1145
1148
|
"inputs": [
|
|
1146
1149
|
{
|
|
1147
1150
|
"name": "_legoId",
|
|
@@ -1160,7 +1163,6 @@ export const abi = [
|
|
|
1160
1163
|
"type": "bytes32"
|
|
1161
1164
|
}
|
|
1162
1165
|
],
|
|
1163
|
-
"name": "addCollateral",
|
|
1164
1166
|
"outputs": [
|
|
1165
1167
|
{
|
|
1166
1168
|
"name": "",
|
|
@@ -1170,11 +1172,12 @@ export const abi = [
|
|
|
1170
1172
|
"name": "",
|
|
1171
1173
|
"type": "uint256"
|
|
1172
1174
|
}
|
|
1173
|
-
]
|
|
1174
|
-
"stateMutability": "nonpayable",
|
|
1175
|
-
"type": "function"
|
|
1175
|
+
]
|
|
1176
1176
|
},
|
|
1177
1177
|
{
|
|
1178
|
+
"stateMutability": "nonpayable",
|
|
1179
|
+
"type": "function",
|
|
1180
|
+
"name": "removeCollateral",
|
|
1178
1181
|
"inputs": [
|
|
1179
1182
|
{
|
|
1180
1183
|
"name": "_legoId",
|
|
@@ -1185,7 +1188,6 @@ export const abi = [
|
|
|
1185
1188
|
"type": "address"
|
|
1186
1189
|
}
|
|
1187
1190
|
],
|
|
1188
|
-
"name": "removeCollateral",
|
|
1189
1191
|
"outputs": [
|
|
1190
1192
|
{
|
|
1191
1193
|
"name": "",
|
|
@@ -1195,11 +1197,12 @@ export const abi = [
|
|
|
1195
1197
|
"name": "",
|
|
1196
1198
|
"type": "uint256"
|
|
1197
1199
|
}
|
|
1198
|
-
]
|
|
1199
|
-
"stateMutability": "nonpayable",
|
|
1200
|
-
"type": "function"
|
|
1200
|
+
]
|
|
1201
1201
|
},
|
|
1202
1202
|
{
|
|
1203
|
+
"stateMutability": "nonpayable",
|
|
1204
|
+
"type": "function",
|
|
1205
|
+
"name": "removeCollateral",
|
|
1203
1206
|
"inputs": [
|
|
1204
1207
|
{
|
|
1205
1208
|
"name": "_legoId",
|
|
@@ -1214,7 +1217,6 @@ export const abi = [
|
|
|
1214
1217
|
"type": "uint256"
|
|
1215
1218
|
}
|
|
1216
1219
|
],
|
|
1217
|
-
"name": "removeCollateral",
|
|
1218
1220
|
"outputs": [
|
|
1219
1221
|
{
|
|
1220
1222
|
"name": "",
|
|
@@ -1224,11 +1226,12 @@ export const abi = [
|
|
|
1224
1226
|
"name": "",
|
|
1225
1227
|
"type": "uint256"
|
|
1226
1228
|
}
|
|
1227
|
-
]
|
|
1228
|
-
"stateMutability": "nonpayable",
|
|
1229
|
-
"type": "function"
|
|
1229
|
+
]
|
|
1230
1230
|
},
|
|
1231
1231
|
{
|
|
1232
|
+
"stateMutability": "nonpayable",
|
|
1233
|
+
"type": "function",
|
|
1234
|
+
"name": "removeCollateral",
|
|
1232
1235
|
"inputs": [
|
|
1233
1236
|
{
|
|
1234
1237
|
"name": "_legoId",
|
|
@@ -1247,7 +1250,6 @@ export const abi = [
|
|
|
1247
1250
|
"type": "bytes32"
|
|
1248
1251
|
}
|
|
1249
1252
|
],
|
|
1250
|
-
"name": "removeCollateral",
|
|
1251
1253
|
"outputs": [
|
|
1252
1254
|
{
|
|
1253
1255
|
"name": "",
|
|
@@ -1257,11 +1259,12 @@ export const abi = [
|
|
|
1257
1259
|
"name": "",
|
|
1258
1260
|
"type": "uint256"
|
|
1259
1261
|
}
|
|
1260
|
-
]
|
|
1261
|
-
"stateMutability": "nonpayable",
|
|
1262
|
-
"type": "function"
|
|
1262
|
+
]
|
|
1263
1263
|
},
|
|
1264
1264
|
{
|
|
1265
|
+
"stateMutability": "nonpayable",
|
|
1266
|
+
"type": "function",
|
|
1267
|
+
"name": "borrow",
|
|
1265
1268
|
"inputs": [
|
|
1266
1269
|
{
|
|
1267
1270
|
"name": "_legoId",
|
|
@@ -1272,7 +1275,6 @@ export const abi = [
|
|
|
1272
1275
|
"type": "address"
|
|
1273
1276
|
}
|
|
1274
1277
|
],
|
|
1275
|
-
"name": "borrow",
|
|
1276
1278
|
"outputs": [
|
|
1277
1279
|
{
|
|
1278
1280
|
"name": "",
|
|
@@ -1282,11 +1284,12 @@ export const abi = [
|
|
|
1282
1284
|
"name": "",
|
|
1283
1285
|
"type": "uint256"
|
|
1284
1286
|
}
|
|
1285
|
-
]
|
|
1286
|
-
"stateMutability": "nonpayable",
|
|
1287
|
-
"type": "function"
|
|
1287
|
+
]
|
|
1288
1288
|
},
|
|
1289
1289
|
{
|
|
1290
|
+
"stateMutability": "nonpayable",
|
|
1291
|
+
"type": "function",
|
|
1292
|
+
"name": "borrow",
|
|
1290
1293
|
"inputs": [
|
|
1291
1294
|
{
|
|
1292
1295
|
"name": "_legoId",
|
|
@@ -1301,7 +1304,6 @@ export const abi = [
|
|
|
1301
1304
|
"type": "uint256"
|
|
1302
1305
|
}
|
|
1303
1306
|
],
|
|
1304
|
-
"name": "borrow",
|
|
1305
1307
|
"outputs": [
|
|
1306
1308
|
{
|
|
1307
1309
|
"name": "",
|
|
@@ -1311,11 +1313,12 @@ export const abi = [
|
|
|
1311
1313
|
"name": "",
|
|
1312
1314
|
"type": "uint256"
|
|
1313
1315
|
}
|
|
1314
|
-
]
|
|
1315
|
-
"stateMutability": "nonpayable",
|
|
1316
|
-
"type": "function"
|
|
1316
|
+
]
|
|
1317
1317
|
},
|
|
1318
1318
|
{
|
|
1319
|
+
"stateMutability": "nonpayable",
|
|
1320
|
+
"type": "function",
|
|
1321
|
+
"name": "borrow",
|
|
1319
1322
|
"inputs": [
|
|
1320
1323
|
{
|
|
1321
1324
|
"name": "_legoId",
|
|
@@ -1334,7 +1337,6 @@ export const abi = [
|
|
|
1334
1337
|
"type": "bytes32"
|
|
1335
1338
|
}
|
|
1336
1339
|
],
|
|
1337
|
-
"name": "borrow",
|
|
1338
1340
|
"outputs": [
|
|
1339
1341
|
{
|
|
1340
1342
|
"name": "",
|
|
@@ -1344,11 +1346,12 @@ export const abi = [
|
|
|
1344
1346
|
"name": "",
|
|
1345
1347
|
"type": "uint256"
|
|
1346
1348
|
}
|
|
1347
|
-
]
|
|
1348
|
-
"stateMutability": "nonpayable",
|
|
1349
|
-
"type": "function"
|
|
1349
|
+
]
|
|
1350
1350
|
},
|
|
1351
1351
|
{
|
|
1352
|
+
"stateMutability": "nonpayable",
|
|
1353
|
+
"type": "function",
|
|
1354
|
+
"name": "repayDebt",
|
|
1352
1355
|
"inputs": [
|
|
1353
1356
|
{
|
|
1354
1357
|
"name": "_legoId",
|
|
@@ -1359,7 +1362,6 @@ export const abi = [
|
|
|
1359
1362
|
"type": "address"
|
|
1360
1363
|
}
|
|
1361
1364
|
],
|
|
1362
|
-
"name": "repayDebt",
|
|
1363
1365
|
"outputs": [
|
|
1364
1366
|
{
|
|
1365
1367
|
"name": "",
|
|
@@ -1369,11 +1371,12 @@ export const abi = [
|
|
|
1369
1371
|
"name": "",
|
|
1370
1372
|
"type": "uint256"
|
|
1371
1373
|
}
|
|
1372
|
-
]
|
|
1373
|
-
"stateMutability": "nonpayable",
|
|
1374
|
-
"type": "function"
|
|
1374
|
+
]
|
|
1375
1375
|
},
|
|
1376
1376
|
{
|
|
1377
|
+
"stateMutability": "nonpayable",
|
|
1378
|
+
"type": "function",
|
|
1379
|
+
"name": "repayDebt",
|
|
1377
1380
|
"inputs": [
|
|
1378
1381
|
{
|
|
1379
1382
|
"name": "_legoId",
|
|
@@ -1388,7 +1391,6 @@ export const abi = [
|
|
|
1388
1391
|
"type": "uint256"
|
|
1389
1392
|
}
|
|
1390
1393
|
],
|
|
1391
|
-
"name": "repayDebt",
|
|
1392
1394
|
"outputs": [
|
|
1393
1395
|
{
|
|
1394
1396
|
"name": "",
|
|
@@ -1398,11 +1400,12 @@ export const abi = [
|
|
|
1398
1400
|
"name": "",
|
|
1399
1401
|
"type": "uint256"
|
|
1400
1402
|
}
|
|
1401
|
-
]
|
|
1402
|
-
"stateMutability": "nonpayable",
|
|
1403
|
-
"type": "function"
|
|
1403
|
+
]
|
|
1404
1404
|
},
|
|
1405
1405
|
{
|
|
1406
|
+
"stateMutability": "nonpayable",
|
|
1407
|
+
"type": "function",
|
|
1408
|
+
"name": "repayDebt",
|
|
1406
1409
|
"inputs": [
|
|
1407
1410
|
{
|
|
1408
1411
|
"name": "_legoId",
|
|
@@ -1421,7 +1424,6 @@ export const abi = [
|
|
|
1421
1424
|
"type": "bytes32"
|
|
1422
1425
|
}
|
|
1423
1426
|
],
|
|
1424
|
-
"name": "repayDebt",
|
|
1425
1427
|
"outputs": [
|
|
1426
1428
|
{
|
|
1427
1429
|
"name": "",
|
|
@@ -1431,18 +1433,18 @@ export const abi = [
|
|
|
1431
1433
|
"name": "",
|
|
1432
1434
|
"type": "uint256"
|
|
1433
1435
|
}
|
|
1434
|
-
]
|
|
1435
|
-
"stateMutability": "nonpayable",
|
|
1436
|
-
"type": "function"
|
|
1436
|
+
]
|
|
1437
1437
|
},
|
|
1438
1438
|
{
|
|
1439
|
+
"stateMutability": "nonpayable",
|
|
1440
|
+
"type": "function",
|
|
1441
|
+
"name": "claimIncentives",
|
|
1439
1442
|
"inputs": [
|
|
1440
1443
|
{
|
|
1441
1444
|
"name": "_legoId",
|
|
1442
1445
|
"type": "uint256"
|
|
1443
1446
|
}
|
|
1444
1447
|
],
|
|
1445
|
-
"name": "claimIncentives",
|
|
1446
1448
|
"outputs": [
|
|
1447
1449
|
{
|
|
1448
1450
|
"name": "",
|
|
@@ -1452,11 +1454,12 @@ export const abi = [
|
|
|
1452
1454
|
"name": "",
|
|
1453
1455
|
"type": "uint256"
|
|
1454
1456
|
}
|
|
1455
|
-
]
|
|
1456
|
-
"stateMutability": "nonpayable",
|
|
1457
|
-
"type": "function"
|
|
1457
|
+
]
|
|
1458
1458
|
},
|
|
1459
1459
|
{
|
|
1460
|
+
"stateMutability": "nonpayable",
|
|
1461
|
+
"type": "function",
|
|
1462
|
+
"name": "claimIncentives",
|
|
1460
1463
|
"inputs": [
|
|
1461
1464
|
{
|
|
1462
1465
|
"name": "_legoId",
|
|
@@ -1467,7 +1470,6 @@ export const abi = [
|
|
|
1467
1470
|
"type": "address"
|
|
1468
1471
|
}
|
|
1469
1472
|
],
|
|
1470
|
-
"name": "claimIncentives",
|
|
1471
1473
|
"outputs": [
|
|
1472
1474
|
{
|
|
1473
1475
|
"name": "",
|
|
@@ -1477,11 +1479,12 @@ export const abi = [
|
|
|
1477
1479
|
"name": "",
|
|
1478
1480
|
"type": "uint256"
|
|
1479
1481
|
}
|
|
1480
|
-
]
|
|
1481
|
-
"stateMutability": "nonpayable",
|
|
1482
|
-
"type": "function"
|
|
1482
|
+
]
|
|
1483
1483
|
},
|
|
1484
1484
|
{
|
|
1485
|
+
"stateMutability": "nonpayable",
|
|
1486
|
+
"type": "function",
|
|
1487
|
+
"name": "claimIncentives",
|
|
1485
1488
|
"inputs": [
|
|
1486
1489
|
{
|
|
1487
1490
|
"name": "_legoId",
|
|
@@ -1496,7 +1499,6 @@ export const abi = [
|
|
|
1496
1499
|
"type": "uint256"
|
|
1497
1500
|
}
|
|
1498
1501
|
],
|
|
1499
|
-
"name": "claimIncentives",
|
|
1500
1502
|
"outputs": [
|
|
1501
1503
|
{
|
|
1502
1504
|
"name": "",
|
|
@@ -1506,11 +1508,12 @@ export const abi = [
|
|
|
1506
1508
|
"name": "",
|
|
1507
1509
|
"type": "uint256"
|
|
1508
1510
|
}
|
|
1509
|
-
]
|
|
1510
|
-
"stateMutability": "nonpayable",
|
|
1511
|
-
"type": "function"
|
|
1511
|
+
]
|
|
1512
1512
|
},
|
|
1513
1513
|
{
|
|
1514
|
+
"stateMutability": "nonpayable",
|
|
1515
|
+
"type": "function",
|
|
1516
|
+
"name": "claimIncentives",
|
|
1514
1517
|
"inputs": [
|
|
1515
1518
|
{
|
|
1516
1519
|
"name": "_legoId",
|
|
@@ -1529,7 +1532,6 @@ export const abi = [
|
|
|
1529
1532
|
"type": "bytes32[]"
|
|
1530
1533
|
}
|
|
1531
1534
|
],
|
|
1532
|
-
"name": "claimIncentives",
|
|
1533
1535
|
"outputs": [
|
|
1534
1536
|
{
|
|
1535
1537
|
"name": "",
|
|
@@ -1539,11 +1541,12 @@ export const abi = [
|
|
|
1539
1541
|
"name": "",
|
|
1540
1542
|
"type": "uint256"
|
|
1541
1543
|
}
|
|
1542
|
-
]
|
|
1543
|
-
"stateMutability": "nonpayable",
|
|
1544
|
-
"type": "function"
|
|
1544
|
+
]
|
|
1545
1545
|
},
|
|
1546
1546
|
{
|
|
1547
|
+
"stateMutability": "nonpayable",
|
|
1548
|
+
"type": "function",
|
|
1549
|
+
"name": "setCollateralVault",
|
|
1547
1550
|
"inputs": [
|
|
1548
1551
|
{
|
|
1549
1552
|
"name": "_vaultToken",
|
|
@@ -1562,12 +1565,12 @@ export const abi = [
|
|
|
1562
1565
|
"type": "bool"
|
|
1563
1566
|
}
|
|
1564
1567
|
],
|
|
1565
|
-
"
|
|
1566
|
-
"outputs": [],
|
|
1567
|
-
"stateMutability": "nonpayable",
|
|
1568
|
-
"type": "function"
|
|
1568
|
+
"outputs": []
|
|
1569
1569
|
},
|
|
1570
1570
|
{
|
|
1571
|
+
"stateMutability": "nonpayable",
|
|
1572
|
+
"type": "function",
|
|
1573
|
+
"name": "setLeverageVault",
|
|
1571
1574
|
"inputs": [
|
|
1572
1575
|
{
|
|
1573
1576
|
"name": "_vaultToken",
|
|
@@ -1586,12 +1589,12 @@ export const abi = [
|
|
|
1586
1589
|
"type": "bool"
|
|
1587
1590
|
}
|
|
1588
1591
|
],
|
|
1589
|
-
"
|
|
1590
|
-
"outputs": [],
|
|
1591
|
-
"stateMutability": "nonpayable",
|
|
1592
|
-
"type": "function"
|
|
1592
|
+
"outputs": []
|
|
1593
1593
|
},
|
|
1594
1594
|
{
|
|
1595
|
+
"stateMutability": "nonpayable",
|
|
1596
|
+
"type": "function",
|
|
1597
|
+
"name": "setSlippagesAllowed",
|
|
1595
1598
|
"inputs": [
|
|
1596
1599
|
{
|
|
1597
1600
|
"name": "_usdcSlippage",
|
|
@@ -1602,93 +1605,94 @@ export const abi = [
|
|
|
1602
1605
|
"type": "uint256"
|
|
1603
1606
|
}
|
|
1604
1607
|
],
|
|
1605
|
-
"
|
|
1606
|
-
"outputs": [],
|
|
1607
|
-
"stateMutability": "nonpayable",
|
|
1608
|
-
"type": "function"
|
|
1608
|
+
"outputs": []
|
|
1609
1609
|
},
|
|
1610
1610
|
{
|
|
1611
|
+
"stateMutability": "nonpayable",
|
|
1612
|
+
"type": "function",
|
|
1613
|
+
"name": "setLevgVaultHelper",
|
|
1611
1614
|
"inputs": [
|
|
1612
1615
|
{
|
|
1613
1616
|
"name": "_levgVaultHelper",
|
|
1614
1617
|
"type": "address"
|
|
1615
1618
|
}
|
|
1616
1619
|
],
|
|
1617
|
-
"
|
|
1618
|
-
"outputs": [],
|
|
1619
|
-
"stateMutability": "nonpayable",
|
|
1620
|
-
"type": "function"
|
|
1620
|
+
"outputs": []
|
|
1621
1621
|
},
|
|
1622
1622
|
{
|
|
1623
|
+
"stateMutability": "nonpayable",
|
|
1624
|
+
"type": "function",
|
|
1625
|
+
"name": "setMaxDebtRatio",
|
|
1623
1626
|
"inputs": [
|
|
1624
1627
|
{
|
|
1625
1628
|
"name": "_ratio",
|
|
1626
1629
|
"type": "uint256"
|
|
1627
1630
|
}
|
|
1628
1631
|
],
|
|
1629
|
-
"
|
|
1630
|
-
"outputs": [],
|
|
1631
|
-
"stateMutability": "nonpayable",
|
|
1632
|
-
"type": "function"
|
|
1632
|
+
"outputs": []
|
|
1633
1633
|
},
|
|
1634
1634
|
{
|
|
1635
|
+
"stateMutability": "nonpayable",
|
|
1636
|
+
"type": "function",
|
|
1637
|
+
"name": "addManager",
|
|
1635
1638
|
"inputs": [
|
|
1636
1639
|
{
|
|
1637
1640
|
"name": "_manager",
|
|
1638
1641
|
"type": "address"
|
|
1639
1642
|
}
|
|
1640
1643
|
],
|
|
1641
|
-
"
|
|
1642
|
-
"outputs": [],
|
|
1643
|
-
"stateMutability": "nonpayable",
|
|
1644
|
-
"type": "function"
|
|
1644
|
+
"outputs": []
|
|
1645
1645
|
},
|
|
1646
1646
|
{
|
|
1647
|
+
"stateMutability": "nonpayable",
|
|
1648
|
+
"type": "function",
|
|
1649
|
+
"name": "removeManager",
|
|
1647
1650
|
"inputs": [
|
|
1648
1651
|
{
|
|
1649
1652
|
"name": "_manager",
|
|
1650
1653
|
"type": "address"
|
|
1651
1654
|
}
|
|
1652
1655
|
],
|
|
1653
|
-
"
|
|
1654
|
-
"outputs": [],
|
|
1655
|
-
"stateMutability": "nonpayable",
|
|
1656
|
-
"type": "function"
|
|
1656
|
+
"outputs": []
|
|
1657
1657
|
},
|
|
1658
1658
|
{
|
|
1659
|
+
"stateMutability": "view",
|
|
1660
|
+
"type": "function",
|
|
1661
|
+
"name": "vaultToLegoId",
|
|
1659
1662
|
"inputs": [
|
|
1660
1663
|
{
|
|
1661
1664
|
"name": "arg0",
|
|
1662
1665
|
"type": "address"
|
|
1663
1666
|
}
|
|
1664
1667
|
],
|
|
1665
|
-
"name": "vaultToLegoId",
|
|
1666
1668
|
"outputs": [
|
|
1667
1669
|
{
|
|
1668
1670
|
"name": "",
|
|
1669
1671
|
"type": "uint256"
|
|
1670
1672
|
}
|
|
1671
|
-
]
|
|
1672
|
-
"stateMutability": "view",
|
|
1673
|
-
"type": "function"
|
|
1673
|
+
]
|
|
1674
1674
|
},
|
|
1675
1675
|
{
|
|
1676
|
-
"
|
|
1676
|
+
"stateMutability": "view",
|
|
1677
|
+
"type": "function",
|
|
1677
1678
|
"name": "levgVaultHelper",
|
|
1679
|
+
"inputs": [],
|
|
1678
1680
|
"outputs": [
|
|
1679
1681
|
{
|
|
1680
1682
|
"name": "",
|
|
1681
1683
|
"type": "address"
|
|
1682
1684
|
}
|
|
1683
|
-
]
|
|
1684
|
-
"stateMutability": "view",
|
|
1685
|
-
"type": "function"
|
|
1685
|
+
]
|
|
1686
1686
|
},
|
|
1687
1687
|
{
|
|
1688
|
-
"
|
|
1688
|
+
"stateMutability": "view",
|
|
1689
|
+
"type": "function",
|
|
1689
1690
|
"name": "collateralAsset",
|
|
1691
|
+
"inputs": [],
|
|
1690
1692
|
"outputs": [
|
|
1691
1693
|
{
|
|
1694
|
+
"name": "",
|
|
1695
|
+
"type": "tuple",
|
|
1692
1696
|
"components": [
|
|
1693
1697
|
{
|
|
1694
1698
|
"name": "vaultToken",
|
|
@@ -1698,19 +1702,19 @@ export const abi = [
|
|
|
1698
1702
|
"name": "ripeVaultId",
|
|
1699
1703
|
"type": "uint256"
|
|
1700
1704
|
}
|
|
1701
|
-
]
|
|
1702
|
-
"name": "",
|
|
1703
|
-
"type": "tuple"
|
|
1705
|
+
]
|
|
1704
1706
|
}
|
|
1705
|
-
]
|
|
1706
|
-
"stateMutability": "view",
|
|
1707
|
-
"type": "function"
|
|
1707
|
+
]
|
|
1708
1708
|
},
|
|
1709
1709
|
{
|
|
1710
|
-
"
|
|
1710
|
+
"stateMutability": "view",
|
|
1711
|
+
"type": "function",
|
|
1711
1712
|
"name": "leverageAsset",
|
|
1713
|
+
"inputs": [],
|
|
1712
1714
|
"outputs": [
|
|
1713
1715
|
{
|
|
1716
|
+
"name": "",
|
|
1717
|
+
"type": "tuple",
|
|
1714
1718
|
"components": [
|
|
1715
1719
|
{
|
|
1716
1720
|
"name": "vaultToken",
|
|
@@ -1720,225 +1724,224 @@ export const abi = [
|
|
|
1720
1724
|
"name": "ripeVaultId",
|
|
1721
1725
|
"type": "uint256"
|
|
1722
1726
|
}
|
|
1723
|
-
]
|
|
1724
|
-
"name": "",
|
|
1725
|
-
"type": "tuple"
|
|
1727
|
+
]
|
|
1726
1728
|
}
|
|
1727
|
-
]
|
|
1729
|
+
]
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1728
1732
|
"stateMutability": "view",
|
|
1729
|
-
"type": "function"
|
|
1733
|
+
"type": "function",
|
|
1734
|
+
"name": "isRawAssetCollateral",
|
|
1735
|
+
"inputs": [],
|
|
1736
|
+
"outputs": [
|
|
1737
|
+
{
|
|
1738
|
+
"name": "",
|
|
1739
|
+
"type": "bool"
|
|
1740
|
+
}
|
|
1741
|
+
]
|
|
1730
1742
|
},
|
|
1731
1743
|
{
|
|
1744
|
+
"stateMutability": "view",
|
|
1745
|
+
"type": "function",
|
|
1746
|
+
"name": "managers",
|
|
1732
1747
|
"inputs": [
|
|
1733
1748
|
{
|
|
1734
1749
|
"name": "arg0",
|
|
1735
1750
|
"type": "uint256"
|
|
1736
1751
|
}
|
|
1737
1752
|
],
|
|
1738
|
-
"name": "managers",
|
|
1739
1753
|
"outputs": [
|
|
1740
1754
|
{
|
|
1741
1755
|
"name": "",
|
|
1742
1756
|
"type": "address"
|
|
1743
1757
|
}
|
|
1744
|
-
]
|
|
1745
|
-
"stateMutability": "view",
|
|
1746
|
-
"type": "function"
|
|
1758
|
+
]
|
|
1747
1759
|
},
|
|
1748
1760
|
{
|
|
1761
|
+
"stateMutability": "view",
|
|
1762
|
+
"type": "function",
|
|
1763
|
+
"name": "indexOfManager",
|
|
1749
1764
|
"inputs": [
|
|
1750
1765
|
{
|
|
1751
1766
|
"name": "arg0",
|
|
1752
1767
|
"type": "address"
|
|
1753
1768
|
}
|
|
1754
1769
|
],
|
|
1755
|
-
"name": "indexOfManager",
|
|
1756
1770
|
"outputs": [
|
|
1757
1771
|
{
|
|
1758
1772
|
"name": "",
|
|
1759
1773
|
"type": "uint256"
|
|
1760
1774
|
}
|
|
1761
|
-
]
|
|
1762
|
-
"stateMutability": "view",
|
|
1763
|
-
"type": "function"
|
|
1775
|
+
]
|
|
1764
1776
|
},
|
|
1765
1777
|
{
|
|
1766
|
-
"inputs": [],
|
|
1767
|
-
"name": "numManagers",
|
|
1768
|
-
"outputs": [
|
|
1769
|
-
{
|
|
1770
|
-
"name": "",
|
|
1771
|
-
"type": "uint256"
|
|
1772
|
-
}
|
|
1773
|
-
],
|
|
1774
1778
|
"stateMutability": "view",
|
|
1775
|
-
"type": "function"
|
|
1776
|
-
|
|
1777
|
-
{
|
|
1779
|
+
"type": "function",
|
|
1780
|
+
"name": "numManagers",
|
|
1778
1781
|
"inputs": [],
|
|
1779
|
-
"name": "usdcSlippageAllowed",
|
|
1780
1782
|
"outputs": [
|
|
1781
1783
|
{
|
|
1782
1784
|
"name": "",
|
|
1783
1785
|
"type": "uint256"
|
|
1784
1786
|
}
|
|
1785
|
-
]
|
|
1786
|
-
"stateMutability": "view",
|
|
1787
|
-
"type": "function"
|
|
1787
|
+
]
|
|
1788
1788
|
},
|
|
1789
1789
|
{
|
|
1790
|
+
"stateMutability": "view",
|
|
1791
|
+
"type": "function",
|
|
1792
|
+
"name": "usdcSlippageAllowed",
|
|
1790
1793
|
"inputs": [],
|
|
1791
|
-
"name": "greenSlippageAllowed",
|
|
1792
1794
|
"outputs": [
|
|
1793
1795
|
{
|
|
1794
1796
|
"name": "",
|
|
1795
1797
|
"type": "uint256"
|
|
1796
1798
|
}
|
|
1797
|
-
]
|
|
1798
|
-
"stateMutability": "view",
|
|
1799
|
-
"type": "function"
|
|
1799
|
+
]
|
|
1800
1800
|
},
|
|
1801
1801
|
{
|
|
1802
|
+
"stateMutability": "view",
|
|
1803
|
+
"type": "function",
|
|
1804
|
+
"name": "greenSlippageAllowed",
|
|
1802
1805
|
"inputs": [],
|
|
1803
|
-
"name": "maxDebtRatio",
|
|
1804
1806
|
"outputs": [
|
|
1805
1807
|
{
|
|
1806
1808
|
"name": "",
|
|
1807
1809
|
"type": "uint256"
|
|
1808
1810
|
}
|
|
1809
|
-
]
|
|
1810
|
-
"stateMutability": "view",
|
|
1811
|
-
"type": "function"
|
|
1811
|
+
]
|
|
1812
1812
|
},
|
|
1813
1813
|
{
|
|
1814
|
+
"stateMutability": "view",
|
|
1815
|
+
"type": "function",
|
|
1816
|
+
"name": "maxDebtRatio",
|
|
1814
1817
|
"inputs": [],
|
|
1815
|
-
"name": "netUserCapital",
|
|
1816
1818
|
"outputs": [
|
|
1817
1819
|
{
|
|
1818
1820
|
"name": "",
|
|
1819
1821
|
"type": "uint256"
|
|
1820
1822
|
}
|
|
1821
|
-
]
|
|
1822
|
-
"stateMutability": "view",
|
|
1823
|
-
"type": "function"
|
|
1823
|
+
]
|
|
1824
1824
|
},
|
|
1825
1825
|
{
|
|
1826
|
-
"
|
|
1826
|
+
"stateMutability": "view",
|
|
1827
|
+
"type": "function",
|
|
1827
1828
|
"name": "USDC",
|
|
1829
|
+
"inputs": [],
|
|
1828
1830
|
"outputs": [
|
|
1829
1831
|
{
|
|
1830
1832
|
"name": "",
|
|
1831
1833
|
"type": "address"
|
|
1832
1834
|
}
|
|
1833
|
-
]
|
|
1834
|
-
"stateMutability": "view",
|
|
1835
|
-
"type": "function"
|
|
1835
|
+
]
|
|
1836
1836
|
},
|
|
1837
1837
|
{
|
|
1838
|
-
"
|
|
1838
|
+
"stateMutability": "view",
|
|
1839
|
+
"type": "function",
|
|
1839
1840
|
"name": "asset",
|
|
1841
|
+
"inputs": [],
|
|
1840
1842
|
"outputs": [
|
|
1841
1843
|
{
|
|
1842
1844
|
"name": "",
|
|
1843
1845
|
"type": "address"
|
|
1844
1846
|
}
|
|
1845
|
-
]
|
|
1846
|
-
"stateMutability": "view",
|
|
1847
|
-
"type": "function"
|
|
1847
|
+
]
|
|
1848
1848
|
},
|
|
1849
1849
|
{
|
|
1850
|
-
"
|
|
1850
|
+
"stateMutability": "view",
|
|
1851
|
+
"type": "function",
|
|
1851
1852
|
"name": "totalAssets",
|
|
1853
|
+
"inputs": [],
|
|
1852
1854
|
"outputs": [
|
|
1853
1855
|
{
|
|
1854
1856
|
"name": "",
|
|
1855
1857
|
"type": "uint256"
|
|
1856
1858
|
}
|
|
1857
|
-
]
|
|
1858
|
-
"stateMutability": "view",
|
|
1859
|
-
"type": "function"
|
|
1859
|
+
]
|
|
1860
1860
|
},
|
|
1861
1861
|
{
|
|
1862
|
+
"stateMutability": "view",
|
|
1863
|
+
"type": "function",
|
|
1864
|
+
"name": "getTotalAssets",
|
|
1862
1865
|
"inputs": [
|
|
1863
1866
|
{
|
|
1864
1867
|
"name": "_shouldGetMax",
|
|
1865
1868
|
"type": "bool"
|
|
1866
1869
|
}
|
|
1867
1870
|
],
|
|
1868
|
-
"name": "getTotalAssets",
|
|
1869
1871
|
"outputs": [
|
|
1870
1872
|
{
|
|
1871
1873
|
"name": "",
|
|
1872
1874
|
"type": "uint256"
|
|
1873
1875
|
}
|
|
1874
|
-
]
|
|
1875
|
-
"stateMutability": "view",
|
|
1876
|
-
"type": "function"
|
|
1876
|
+
]
|
|
1877
1877
|
},
|
|
1878
1878
|
{
|
|
1879
|
-
"
|
|
1879
|
+
"stateMutability": "view",
|
|
1880
|
+
"type": "function",
|
|
1880
1881
|
"name": "isLeveragedVault",
|
|
1882
|
+
"inputs": [],
|
|
1881
1883
|
"outputs": [
|
|
1882
1884
|
{
|
|
1883
1885
|
"name": "",
|
|
1884
1886
|
"type": "bool"
|
|
1885
1887
|
}
|
|
1886
|
-
]
|
|
1887
|
-
"stateMutability": "view",
|
|
1888
|
-
"type": "function"
|
|
1888
|
+
]
|
|
1889
1889
|
},
|
|
1890
1890
|
{
|
|
1891
|
+
"stateMutability": "view",
|
|
1892
|
+
"type": "function",
|
|
1893
|
+
"name": "maxDeposit",
|
|
1891
1894
|
"inputs": [
|
|
1892
1895
|
{
|
|
1893
1896
|
"name": "_receiver",
|
|
1894
1897
|
"type": "address"
|
|
1895
1898
|
}
|
|
1896
1899
|
],
|
|
1897
|
-
"name": "maxDeposit",
|
|
1898
1900
|
"outputs": [
|
|
1899
1901
|
{
|
|
1900
1902
|
"name": "",
|
|
1901
1903
|
"type": "uint256"
|
|
1902
1904
|
}
|
|
1903
|
-
]
|
|
1904
|
-
"stateMutability": "view",
|
|
1905
|
-
"type": "function"
|
|
1905
|
+
]
|
|
1906
1906
|
},
|
|
1907
1907
|
{
|
|
1908
|
+
"stateMutability": "view",
|
|
1909
|
+
"type": "function",
|
|
1910
|
+
"name": "previewDeposit",
|
|
1908
1911
|
"inputs": [
|
|
1909
1912
|
{
|
|
1910
1913
|
"name": "_assets",
|
|
1911
1914
|
"type": "uint256"
|
|
1912
1915
|
}
|
|
1913
1916
|
],
|
|
1914
|
-
"name": "previewDeposit",
|
|
1915
1917
|
"outputs": [
|
|
1916
1918
|
{
|
|
1917
1919
|
"name": "",
|
|
1918
1920
|
"type": "uint256"
|
|
1919
1921
|
}
|
|
1920
|
-
]
|
|
1921
|
-
"stateMutability": "view",
|
|
1922
|
-
"type": "function"
|
|
1922
|
+
]
|
|
1923
1923
|
},
|
|
1924
1924
|
{
|
|
1925
|
+
"stateMutability": "nonpayable",
|
|
1926
|
+
"type": "function",
|
|
1927
|
+
"name": "deposit",
|
|
1925
1928
|
"inputs": [
|
|
1926
1929
|
{
|
|
1927
1930
|
"name": "_assets",
|
|
1928
1931
|
"type": "uint256"
|
|
1929
1932
|
}
|
|
1930
1933
|
],
|
|
1931
|
-
"name": "deposit",
|
|
1932
1934
|
"outputs": [
|
|
1933
1935
|
{
|
|
1934
1936
|
"name": "",
|
|
1935
1937
|
"type": "uint256"
|
|
1936
1938
|
}
|
|
1937
|
-
]
|
|
1938
|
-
"stateMutability": "nonpayable",
|
|
1939
|
-
"type": "function"
|
|
1939
|
+
]
|
|
1940
1940
|
},
|
|
1941
1941
|
{
|
|
1942
|
+
"stateMutability": "nonpayable",
|
|
1943
|
+
"type": "function",
|
|
1944
|
+
"name": "deposit",
|
|
1942
1945
|
"inputs": [
|
|
1943
1946
|
{
|
|
1944
1947
|
"name": "_assets",
|
|
@@ -1949,17 +1952,17 @@ export const abi = [
|
|
|
1949
1952
|
"type": "address"
|
|
1950
1953
|
}
|
|
1951
1954
|
],
|
|
1952
|
-
"name": "deposit",
|
|
1953
1955
|
"outputs": [
|
|
1954
1956
|
{
|
|
1955
1957
|
"name": "",
|
|
1956
1958
|
"type": "uint256"
|
|
1957
1959
|
}
|
|
1958
|
-
]
|
|
1959
|
-
"stateMutability": "nonpayable",
|
|
1960
|
-
"type": "function"
|
|
1960
|
+
]
|
|
1961
1961
|
},
|
|
1962
1962
|
{
|
|
1963
|
+
"stateMutability": "nonpayable",
|
|
1964
|
+
"type": "function",
|
|
1965
|
+
"name": "depositWithMinAmountOut",
|
|
1963
1966
|
"inputs": [
|
|
1964
1967
|
{
|
|
1965
1968
|
"name": "_assets",
|
|
@@ -1970,17 +1973,17 @@ export const abi = [
|
|
|
1970
1973
|
"type": "uint256"
|
|
1971
1974
|
}
|
|
1972
1975
|
],
|
|
1973
|
-
"name": "depositWithMinAmountOut",
|
|
1974
1976
|
"outputs": [
|
|
1975
1977
|
{
|
|
1976
1978
|
"name": "",
|
|
1977
1979
|
"type": "uint256"
|
|
1978
1980
|
}
|
|
1979
|
-
]
|
|
1980
|
-
"stateMutability": "nonpayable",
|
|
1981
|
-
"type": "function"
|
|
1981
|
+
]
|
|
1982
1982
|
},
|
|
1983
1983
|
{
|
|
1984
|
+
"stateMutability": "nonpayable",
|
|
1985
|
+
"type": "function",
|
|
1986
|
+
"name": "depositWithMinAmountOut",
|
|
1984
1987
|
"inputs": [
|
|
1985
1988
|
{
|
|
1986
1989
|
"name": "_assets",
|
|
@@ -1995,68 +1998,68 @@ export const abi = [
|
|
|
1995
1998
|
"type": "address"
|
|
1996
1999
|
}
|
|
1997
2000
|
],
|
|
1998
|
-
"name": "depositWithMinAmountOut",
|
|
1999
2001
|
"outputs": [
|
|
2000
2002
|
{
|
|
2001
2003
|
"name": "",
|
|
2002
2004
|
"type": "uint256"
|
|
2003
2005
|
}
|
|
2004
|
-
]
|
|
2005
|
-
"stateMutability": "nonpayable",
|
|
2006
|
-
"type": "function"
|
|
2006
|
+
]
|
|
2007
2007
|
},
|
|
2008
2008
|
{
|
|
2009
|
+
"stateMutability": "view",
|
|
2010
|
+
"type": "function",
|
|
2011
|
+
"name": "maxMint",
|
|
2009
2012
|
"inputs": [
|
|
2010
2013
|
{
|
|
2011
2014
|
"name": "_receiver",
|
|
2012
2015
|
"type": "address"
|
|
2013
2016
|
}
|
|
2014
2017
|
],
|
|
2015
|
-
"name": "maxMint",
|
|
2016
2018
|
"outputs": [
|
|
2017
2019
|
{
|
|
2018
2020
|
"name": "",
|
|
2019
2021
|
"type": "uint256"
|
|
2020
2022
|
}
|
|
2021
|
-
]
|
|
2022
|
-
"stateMutability": "view",
|
|
2023
|
-
"type": "function"
|
|
2023
|
+
]
|
|
2024
2024
|
},
|
|
2025
2025
|
{
|
|
2026
|
+
"stateMutability": "view",
|
|
2027
|
+
"type": "function",
|
|
2028
|
+
"name": "previewMint",
|
|
2026
2029
|
"inputs": [
|
|
2027
2030
|
{
|
|
2028
2031
|
"name": "_shares",
|
|
2029
2032
|
"type": "uint256"
|
|
2030
2033
|
}
|
|
2031
2034
|
],
|
|
2032
|
-
"name": "previewMint",
|
|
2033
2035
|
"outputs": [
|
|
2034
2036
|
{
|
|
2035
2037
|
"name": "",
|
|
2036
2038
|
"type": "uint256"
|
|
2037
2039
|
}
|
|
2038
|
-
]
|
|
2039
|
-
"stateMutability": "view",
|
|
2040
|
-
"type": "function"
|
|
2040
|
+
]
|
|
2041
2041
|
},
|
|
2042
2042
|
{
|
|
2043
|
+
"stateMutability": "nonpayable",
|
|
2044
|
+
"type": "function",
|
|
2045
|
+
"name": "mint",
|
|
2043
2046
|
"inputs": [
|
|
2044
2047
|
{
|
|
2045
2048
|
"name": "_shares",
|
|
2046
2049
|
"type": "uint256"
|
|
2047
2050
|
}
|
|
2048
2051
|
],
|
|
2049
|
-
"name": "mint",
|
|
2050
2052
|
"outputs": [
|
|
2051
2053
|
{
|
|
2052
2054
|
"name": "",
|
|
2053
2055
|
"type": "uint256"
|
|
2054
2056
|
}
|
|
2055
|
-
]
|
|
2056
|
-
"stateMutability": "nonpayable",
|
|
2057
|
-
"type": "function"
|
|
2057
|
+
]
|
|
2058
2058
|
},
|
|
2059
2059
|
{
|
|
2060
|
+
"stateMutability": "nonpayable",
|
|
2061
|
+
"type": "function",
|
|
2062
|
+
"name": "mint",
|
|
2060
2063
|
"inputs": [
|
|
2061
2064
|
{
|
|
2062
2065
|
"name": "_shares",
|
|
@@ -2067,68 +2070,68 @@ export const abi = [
|
|
|
2067
2070
|
"type": "address"
|
|
2068
2071
|
}
|
|
2069
2072
|
],
|
|
2070
|
-
"name": "mint",
|
|
2071
2073
|
"outputs": [
|
|
2072
2074
|
{
|
|
2073
2075
|
"name": "",
|
|
2074
2076
|
"type": "uint256"
|
|
2075
2077
|
}
|
|
2076
|
-
]
|
|
2077
|
-
"stateMutability": "nonpayable",
|
|
2078
|
-
"type": "function"
|
|
2078
|
+
]
|
|
2079
2079
|
},
|
|
2080
2080
|
{
|
|
2081
|
+
"stateMutability": "view",
|
|
2082
|
+
"type": "function",
|
|
2083
|
+
"name": "maxWithdraw",
|
|
2081
2084
|
"inputs": [
|
|
2082
2085
|
{
|
|
2083
2086
|
"name": "_owner",
|
|
2084
2087
|
"type": "address"
|
|
2085
2088
|
}
|
|
2086
2089
|
],
|
|
2087
|
-
"name": "maxWithdraw",
|
|
2088
2090
|
"outputs": [
|
|
2089
2091
|
{
|
|
2090
2092
|
"name": "",
|
|
2091
2093
|
"type": "uint256"
|
|
2092
2094
|
}
|
|
2093
|
-
]
|
|
2094
|
-
"stateMutability": "view",
|
|
2095
|
-
"type": "function"
|
|
2095
|
+
]
|
|
2096
2096
|
},
|
|
2097
2097
|
{
|
|
2098
|
+
"stateMutability": "view",
|
|
2099
|
+
"type": "function",
|
|
2100
|
+
"name": "previewWithdraw",
|
|
2098
2101
|
"inputs": [
|
|
2099
2102
|
{
|
|
2100
2103
|
"name": "_assets",
|
|
2101
2104
|
"type": "uint256"
|
|
2102
2105
|
}
|
|
2103
2106
|
],
|
|
2104
|
-
"name": "previewWithdraw",
|
|
2105
2107
|
"outputs": [
|
|
2106
2108
|
{
|
|
2107
2109
|
"name": "",
|
|
2108
2110
|
"type": "uint256"
|
|
2109
2111
|
}
|
|
2110
|
-
]
|
|
2111
|
-
"stateMutability": "view",
|
|
2112
|
-
"type": "function"
|
|
2112
|
+
]
|
|
2113
2113
|
},
|
|
2114
2114
|
{
|
|
2115
|
+
"stateMutability": "nonpayable",
|
|
2116
|
+
"type": "function",
|
|
2117
|
+
"name": "withdraw",
|
|
2115
2118
|
"inputs": [
|
|
2116
2119
|
{
|
|
2117
2120
|
"name": "_assets",
|
|
2118
2121
|
"type": "uint256"
|
|
2119
2122
|
}
|
|
2120
2123
|
],
|
|
2121
|
-
"name": "withdraw",
|
|
2122
2124
|
"outputs": [
|
|
2123
2125
|
{
|
|
2124
2126
|
"name": "",
|
|
2125
2127
|
"type": "uint256"
|
|
2126
2128
|
}
|
|
2127
|
-
]
|
|
2128
|
-
"stateMutability": "nonpayable",
|
|
2129
|
-
"type": "function"
|
|
2129
|
+
]
|
|
2130
2130
|
},
|
|
2131
2131
|
{
|
|
2132
|
+
"stateMutability": "nonpayable",
|
|
2133
|
+
"type": "function",
|
|
2134
|
+
"name": "withdraw",
|
|
2132
2135
|
"inputs": [
|
|
2133
2136
|
{
|
|
2134
2137
|
"name": "_assets",
|
|
@@ -2139,17 +2142,17 @@ export const abi = [
|
|
|
2139
2142
|
"type": "address"
|
|
2140
2143
|
}
|
|
2141
2144
|
],
|
|
2142
|
-
"name": "withdraw",
|
|
2143
2145
|
"outputs": [
|
|
2144
2146
|
{
|
|
2145
2147
|
"name": "",
|
|
2146
2148
|
"type": "uint256"
|
|
2147
2149
|
}
|
|
2148
|
-
]
|
|
2149
|
-
"stateMutability": "nonpayable",
|
|
2150
|
-
"type": "function"
|
|
2150
|
+
]
|
|
2151
2151
|
},
|
|
2152
2152
|
{
|
|
2153
|
+
"stateMutability": "nonpayable",
|
|
2154
|
+
"type": "function",
|
|
2155
|
+
"name": "withdraw",
|
|
2153
2156
|
"inputs": [
|
|
2154
2157
|
{
|
|
2155
2158
|
"name": "_assets",
|
|
@@ -2164,68 +2167,68 @@ export const abi = [
|
|
|
2164
2167
|
"type": "address"
|
|
2165
2168
|
}
|
|
2166
2169
|
],
|
|
2167
|
-
"name": "withdraw",
|
|
2168
2170
|
"outputs": [
|
|
2169
2171
|
{
|
|
2170
2172
|
"name": "",
|
|
2171
2173
|
"type": "uint256"
|
|
2172
2174
|
}
|
|
2173
|
-
]
|
|
2174
|
-
"stateMutability": "nonpayable",
|
|
2175
|
-
"type": "function"
|
|
2175
|
+
]
|
|
2176
2176
|
},
|
|
2177
2177
|
{
|
|
2178
|
+
"stateMutability": "view",
|
|
2179
|
+
"type": "function",
|
|
2180
|
+
"name": "maxRedeem",
|
|
2178
2181
|
"inputs": [
|
|
2179
2182
|
{
|
|
2180
2183
|
"name": "_owner",
|
|
2181
2184
|
"type": "address"
|
|
2182
2185
|
}
|
|
2183
2186
|
],
|
|
2184
|
-
"name": "maxRedeem",
|
|
2185
2187
|
"outputs": [
|
|
2186
2188
|
{
|
|
2187
2189
|
"name": "",
|
|
2188
2190
|
"type": "uint256"
|
|
2189
2191
|
}
|
|
2190
|
-
]
|
|
2191
|
-
"stateMutability": "view",
|
|
2192
|
-
"type": "function"
|
|
2192
|
+
]
|
|
2193
2193
|
},
|
|
2194
2194
|
{
|
|
2195
|
+
"stateMutability": "view",
|
|
2196
|
+
"type": "function",
|
|
2197
|
+
"name": "previewRedeem",
|
|
2195
2198
|
"inputs": [
|
|
2196
2199
|
{
|
|
2197
2200
|
"name": "_shares",
|
|
2198
2201
|
"type": "uint256"
|
|
2199
2202
|
}
|
|
2200
2203
|
],
|
|
2201
|
-
"name": "previewRedeem",
|
|
2202
2204
|
"outputs": [
|
|
2203
2205
|
{
|
|
2204
2206
|
"name": "",
|
|
2205
2207
|
"type": "uint256"
|
|
2206
2208
|
}
|
|
2207
|
-
]
|
|
2208
|
-
"stateMutability": "view",
|
|
2209
|
-
"type": "function"
|
|
2209
|
+
]
|
|
2210
2210
|
},
|
|
2211
2211
|
{
|
|
2212
|
+
"stateMutability": "nonpayable",
|
|
2213
|
+
"type": "function",
|
|
2214
|
+
"name": "redeem",
|
|
2212
2215
|
"inputs": [
|
|
2213
2216
|
{
|
|
2214
2217
|
"name": "_shares",
|
|
2215
2218
|
"type": "uint256"
|
|
2216
2219
|
}
|
|
2217
2220
|
],
|
|
2218
|
-
"name": "redeem",
|
|
2219
2221
|
"outputs": [
|
|
2220
2222
|
{
|
|
2221
2223
|
"name": "",
|
|
2222
2224
|
"type": "uint256"
|
|
2223
2225
|
}
|
|
2224
|
-
]
|
|
2225
|
-
"stateMutability": "nonpayable",
|
|
2226
|
-
"type": "function"
|
|
2226
|
+
]
|
|
2227
2227
|
},
|
|
2228
2228
|
{
|
|
2229
|
+
"stateMutability": "nonpayable",
|
|
2230
|
+
"type": "function",
|
|
2231
|
+
"name": "redeem",
|
|
2229
2232
|
"inputs": [
|
|
2230
2233
|
{
|
|
2231
2234
|
"name": "_shares",
|
|
@@ -2236,17 +2239,17 @@ export const abi = [
|
|
|
2236
2239
|
"type": "address"
|
|
2237
2240
|
}
|
|
2238
2241
|
],
|
|
2239
|
-
"name": "redeem",
|
|
2240
2242
|
"outputs": [
|
|
2241
2243
|
{
|
|
2242
2244
|
"name": "",
|
|
2243
2245
|
"type": "uint256"
|
|
2244
2246
|
}
|
|
2245
|
-
]
|
|
2246
|
-
"stateMutability": "nonpayable",
|
|
2247
|
-
"type": "function"
|
|
2247
|
+
]
|
|
2248
2248
|
},
|
|
2249
2249
|
{
|
|
2250
|
+
"stateMutability": "nonpayable",
|
|
2251
|
+
"type": "function",
|
|
2252
|
+
"name": "redeem",
|
|
2250
2253
|
"inputs": [
|
|
2251
2254
|
{
|
|
2252
2255
|
"name": "_shares",
|
|
@@ -2261,17 +2264,17 @@ export const abi = [
|
|
|
2261
2264
|
"type": "address"
|
|
2262
2265
|
}
|
|
2263
2266
|
],
|
|
2264
|
-
"name": "redeem",
|
|
2265
2267
|
"outputs": [
|
|
2266
2268
|
{
|
|
2267
2269
|
"name": "",
|
|
2268
2270
|
"type": "uint256"
|
|
2269
2271
|
}
|
|
2270
|
-
]
|
|
2271
|
-
"stateMutability": "nonpayable",
|
|
2272
|
-
"type": "function"
|
|
2272
|
+
]
|
|
2273
2273
|
},
|
|
2274
2274
|
{
|
|
2275
|
+
"stateMutability": "nonpayable",
|
|
2276
|
+
"type": "function",
|
|
2277
|
+
"name": "redeemWithMinAmountOut",
|
|
2275
2278
|
"inputs": [
|
|
2276
2279
|
{
|
|
2277
2280
|
"name": "_shares",
|
|
@@ -2282,17 +2285,17 @@ export const abi = [
|
|
|
2282
2285
|
"type": "uint256"
|
|
2283
2286
|
}
|
|
2284
2287
|
],
|
|
2285
|
-
"name": "redeemWithMinAmountOut",
|
|
2286
2288
|
"outputs": [
|
|
2287
2289
|
{
|
|
2288
2290
|
"name": "",
|
|
2289
2291
|
"type": "uint256"
|
|
2290
2292
|
}
|
|
2291
|
-
]
|
|
2292
|
-
"stateMutability": "nonpayable",
|
|
2293
|
-
"type": "function"
|
|
2293
|
+
]
|
|
2294
2294
|
},
|
|
2295
2295
|
{
|
|
2296
|
+
"stateMutability": "nonpayable",
|
|
2297
|
+
"type": "function",
|
|
2298
|
+
"name": "redeemWithMinAmountOut",
|
|
2296
2299
|
"inputs": [
|
|
2297
2300
|
{
|
|
2298
2301
|
"name": "_shares",
|
|
@@ -2307,17 +2310,17 @@ export const abi = [
|
|
|
2307
2310
|
"type": "address"
|
|
2308
2311
|
}
|
|
2309
2312
|
],
|
|
2310
|
-
"name": "redeemWithMinAmountOut",
|
|
2311
2313
|
"outputs": [
|
|
2312
2314
|
{
|
|
2313
2315
|
"name": "",
|
|
2314
2316
|
"type": "uint256"
|
|
2315
2317
|
}
|
|
2316
|
-
]
|
|
2317
|
-
"stateMutability": "nonpayable",
|
|
2318
|
-
"type": "function"
|
|
2318
|
+
]
|
|
2319
2319
|
},
|
|
2320
2320
|
{
|
|
2321
|
+
"stateMutability": "nonpayable",
|
|
2322
|
+
"type": "function",
|
|
2323
|
+
"name": "redeemWithMinAmountOut",
|
|
2321
2324
|
"inputs": [
|
|
2322
2325
|
{
|
|
2323
2326
|
"name": "_shares",
|
|
@@ -2336,97 +2339,96 @@ export const abi = [
|
|
|
2336
2339
|
"type": "address"
|
|
2337
2340
|
}
|
|
2338
2341
|
],
|
|
2339
|
-
"name": "redeemWithMinAmountOut",
|
|
2340
2342
|
"outputs": [
|
|
2341
2343
|
{
|
|
2342
2344
|
"name": "",
|
|
2343
2345
|
"type": "uint256"
|
|
2344
2346
|
}
|
|
2345
|
-
]
|
|
2346
|
-
"stateMutability": "nonpayable",
|
|
2347
|
-
"type": "function"
|
|
2347
|
+
]
|
|
2348
2348
|
},
|
|
2349
2349
|
{
|
|
2350
|
+
"stateMutability": "view",
|
|
2351
|
+
"type": "function",
|
|
2352
|
+
"name": "convertToShares",
|
|
2350
2353
|
"inputs": [
|
|
2351
2354
|
{
|
|
2352
2355
|
"name": "_assets",
|
|
2353
2356
|
"type": "uint256"
|
|
2354
2357
|
}
|
|
2355
2358
|
],
|
|
2356
|
-
"name": "convertToShares",
|
|
2357
2359
|
"outputs": [
|
|
2358
2360
|
{
|
|
2359
2361
|
"name": "",
|
|
2360
2362
|
"type": "uint256"
|
|
2361
2363
|
}
|
|
2362
|
-
]
|
|
2363
|
-
"stateMutability": "view",
|
|
2364
|
-
"type": "function"
|
|
2364
|
+
]
|
|
2365
2365
|
},
|
|
2366
2366
|
{
|
|
2367
|
+
"stateMutability": "view",
|
|
2368
|
+
"type": "function",
|
|
2369
|
+
"name": "convertToSharesSafe",
|
|
2367
2370
|
"inputs": [
|
|
2368
2371
|
{
|
|
2369
2372
|
"name": "_assets",
|
|
2370
2373
|
"type": "uint256"
|
|
2371
2374
|
}
|
|
2372
2375
|
],
|
|
2373
|
-
"name": "convertToSharesSafe",
|
|
2374
2376
|
"outputs": [
|
|
2375
2377
|
{
|
|
2376
2378
|
"name": "",
|
|
2377
2379
|
"type": "uint256"
|
|
2378
2380
|
}
|
|
2379
|
-
]
|
|
2380
|
-
"stateMutability": "view",
|
|
2381
|
-
"type": "function"
|
|
2381
|
+
]
|
|
2382
2382
|
},
|
|
2383
2383
|
{
|
|
2384
|
+
"stateMutability": "view",
|
|
2385
|
+
"type": "function",
|
|
2386
|
+
"name": "convertToAssets",
|
|
2384
2387
|
"inputs": [
|
|
2385
2388
|
{
|
|
2386
2389
|
"name": "_shares",
|
|
2387
2390
|
"type": "uint256"
|
|
2388
2391
|
}
|
|
2389
2392
|
],
|
|
2390
|
-
"name": "convertToAssets",
|
|
2391
2393
|
"outputs": [
|
|
2392
2394
|
{
|
|
2393
2395
|
"name": "",
|
|
2394
2396
|
"type": "uint256"
|
|
2395
2397
|
}
|
|
2396
|
-
]
|
|
2397
|
-
"stateMutability": "view",
|
|
2398
|
-
"type": "function"
|
|
2398
|
+
]
|
|
2399
2399
|
},
|
|
2400
2400
|
{
|
|
2401
|
+
"stateMutability": "view",
|
|
2402
|
+
"type": "function",
|
|
2403
|
+
"name": "convertToAssetsSafe",
|
|
2401
2404
|
"inputs": [
|
|
2402
2405
|
{
|
|
2403
2406
|
"name": "_shares",
|
|
2404
2407
|
"type": "uint256"
|
|
2405
2408
|
}
|
|
2406
2409
|
],
|
|
2407
|
-
"name": "convertToAssetsSafe",
|
|
2408
2410
|
"outputs": [
|
|
2409
2411
|
{
|
|
2410
2412
|
"name": "",
|
|
2411
2413
|
"type": "uint256"
|
|
2412
2414
|
}
|
|
2413
|
-
]
|
|
2414
|
-
"stateMutability": "view",
|
|
2415
|
-
"type": "function"
|
|
2415
|
+
]
|
|
2416
2416
|
},
|
|
2417
2417
|
{
|
|
2418
|
-
"
|
|
2418
|
+
"stateMutability": "nonpayable",
|
|
2419
|
+
"type": "function",
|
|
2419
2420
|
"name": "sweepLeftovers",
|
|
2421
|
+
"inputs": [],
|
|
2420
2422
|
"outputs": [
|
|
2421
2423
|
{
|
|
2422
2424
|
"name": "",
|
|
2423
2425
|
"type": "uint256"
|
|
2424
2426
|
}
|
|
2425
|
-
]
|
|
2426
|
-
"stateMutability": "nonpayable",
|
|
2427
|
-
"type": "function"
|
|
2427
|
+
]
|
|
2428
2428
|
},
|
|
2429
2429
|
{
|
|
2430
|
+
"stateMutability": "nonpayable",
|
|
2431
|
+
"type": "constructor",
|
|
2430
2432
|
"inputs": [
|
|
2431
2433
|
{
|
|
2432
2434
|
"name": "_asset",
|
|
@@ -2497,9 +2499,7 @@ export const abi = [
|
|
|
2497
2499
|
"type": "address"
|
|
2498
2500
|
}
|
|
2499
2501
|
],
|
|
2500
|
-
"outputs": []
|
|
2501
|
-
"stateMutability": "nonpayable",
|
|
2502
|
-
"type": "constructor"
|
|
2502
|
+
"outputs": []
|
|
2503
2503
|
}
|
|
2504
2504
|
];
|
|
2505
2505
|
export const deployAddress = '0x936c3C493Dc45D0f4D2FA36C7640f3BCABd64B4B';
|
|
@@ -2550,13 +2550,13 @@ export const call = {
|
|
|
2550
2550
|
levgVaultHelper: (...args) => getRequest('levgVaultHelper', args),
|
|
2551
2551
|
collateralAsset: (...args) => getRequest('collateralAsset', args),
|
|
2552
2552
|
leverageAsset: (...args) => getRequest('leverageAsset', args),
|
|
2553
|
+
isRawAssetCollateral: (...args) => getRequest('isRawAssetCollateral', args),
|
|
2553
2554
|
managers: (...args) => getRequest('managers', args),
|
|
2554
2555
|
indexOfManager: (...args) => getRequest('indexOfManager', args),
|
|
2555
2556
|
numManagers: (...args) => getRequest('numManagers', args),
|
|
2556
2557
|
usdcSlippageAllowed: (...args) => getRequest('usdcSlippageAllowed', args),
|
|
2557
2558
|
greenSlippageAllowed: (...args) => getRequest('greenSlippageAllowed', args),
|
|
2558
2559
|
maxDebtRatio: (...args) => getRequest('maxDebtRatio', args),
|
|
2559
|
-
netUserCapital: (...args) => getRequest('netUserCapital', args),
|
|
2560
2560
|
USDC: (...args) => getRequest('USDC', args),
|
|
2561
2561
|
asset: (...args) => getRequest('asset', args),
|
|
2562
2562
|
totalAssets: (...args) => getRequest('totalAssets', args),
|
|
@@ -2672,13 +2672,13 @@ export function toSdk(deployAddress, publicClient, walletClient, addressResolver
|
|
|
2672
2672
|
levgVaultHelper: (...args) => singleQuery(publicClient, call.levgVaultHelper(...args).at(deployAddress), {}, addressResolver),
|
|
2673
2673
|
collateralAsset: (...args) => singleQuery(publicClient, call.collateralAsset(...args).at(deployAddress), {}, addressResolver),
|
|
2674
2674
|
leverageAsset: (...args) => singleQuery(publicClient, call.leverageAsset(...args).at(deployAddress), {}, addressResolver),
|
|
2675
|
+
isRawAssetCollateral: (...args) => singleQuery(publicClient, call.isRawAssetCollateral(...args).at(deployAddress), {}, addressResolver),
|
|
2675
2676
|
managers: (...args) => singleQuery(publicClient, call.managers(...args).at(deployAddress), {}, addressResolver),
|
|
2676
2677
|
indexOfManager: (...args) => singleQuery(publicClient, call.indexOfManager(...args).at(deployAddress), {}, addressResolver),
|
|
2677
2678
|
numManagers: (...args) => singleQuery(publicClient, call.numManagers(...args).at(deployAddress), {}, addressResolver),
|
|
2678
2679
|
usdcSlippageAllowed: (...args) => singleQuery(publicClient, call.usdcSlippageAllowed(...args).at(deployAddress), {}, addressResolver),
|
|
2679
2680
|
greenSlippageAllowed: (...args) => singleQuery(publicClient, call.greenSlippageAllowed(...args).at(deployAddress), {}, addressResolver),
|
|
2680
2681
|
maxDebtRatio: (...args) => singleQuery(publicClient, call.maxDebtRatio(...args).at(deployAddress), {}, addressResolver),
|
|
2681
|
-
netUserCapital: (...args) => singleQuery(publicClient, call.netUserCapital(...args).at(deployAddress), {}, addressResolver),
|
|
2682
2682
|
USDC: (...args) => singleQuery(publicClient, call.USDC(...args).at(deployAddress), {}, addressResolver),
|
|
2683
2683
|
asset: (...args) => singleQuery(publicClient, call.asset(...args).at(deployAddress), {}, addressResolver),
|
|
2684
2684
|
totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args).at(deployAddress), {}, addressResolver),
|