curvance 5.3.1 → 5.3.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.
@@ -1,484 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "contract ICentralRegistry",
6
- "name": "_centralRegistry",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "uint256",
11
- "name": "_stalenessMultiplier",
12
- "type": "uint256"
13
- }
14
- ],
15
- "stateMutability": "nonpayable",
16
- "type": "constructor"
17
- },
18
- {
19
- "inputs": [],
20
- "name": "OptimizerReader__InvalidMultiplier",
21
- "type": "error"
22
- },
23
- {
24
- "inputs": [],
25
- "name": "OptimizerReader__Unauthorized",
26
- "type": "error"
27
- },
28
- {
29
- "anonymous": false,
30
- "inputs": [
31
- {
32
- "indexed": false,
33
- "internalType": "uint256",
34
- "name": "oldMultiplier",
35
- "type": "uint256"
36
- },
37
- {
38
- "indexed": false,
39
- "internalType": "uint256",
40
- "name": "newMultiplier",
41
- "type": "uint256"
42
- }
43
- ],
44
- "name": "StalenessMultiplierUpdated",
45
- "type": "event"
46
- },
47
- {
48
- "inputs": [],
49
- "name": "CAP_BUFFER_BPS",
50
- "outputs": [
51
- {
52
- "internalType": "uint256",
53
- "name": "",
54
- "type": "uint256"
55
- }
56
- ],
57
- "stateMutability": "view",
58
- "type": "function"
59
- },
60
- {
61
- "inputs": [],
62
- "name": "ORACLE_MANAGER",
63
- "outputs": [
64
- {
65
- "internalType": "contract IOracleManager",
66
- "name": "",
67
- "type": "address"
68
- }
69
- ],
70
- "stateMutability": "view",
71
- "type": "function"
72
- },
73
- {
74
- "inputs": [],
75
- "name": "REBALANCE_CHUNKS",
76
- "outputs": [
77
- {
78
- "internalType": "uint256",
79
- "name": "",
80
- "type": "uint256"
81
- }
82
- ],
83
- "stateMutability": "view",
84
- "type": "function"
85
- },
86
- {
87
- "inputs": [],
88
- "name": "USD_THRESHOLD",
89
- "outputs": [
90
- {
91
- "internalType": "uint256",
92
- "name": "",
93
- "type": "uint256"
94
- }
95
- ],
96
- "stateMutability": "view",
97
- "type": "function"
98
- },
99
- {
100
- "inputs": [
101
- {
102
- "internalType": "address",
103
- "name": "account",
104
- "type": "address"
105
- },
106
- {
107
- "internalType": "address",
108
- "name": "cToken",
109
- "type": "address"
110
- },
111
- {
112
- "internalType": "uint256",
113
- "name": "timestamp",
114
- "type": "uint256"
115
- }
116
- ],
117
- "name": "assetsAtTimestamp",
118
- "outputs": [
119
- {
120
- "internalType": "uint256",
121
- "name": "assets",
122
- "type": "uint256"
123
- }
124
- ],
125
- "stateMutability": "view",
126
- "type": "function"
127
- },
128
- {
129
- "inputs": [],
130
- "name": "centralRegistry",
131
- "outputs": [
132
- {
133
- "internalType": "contract ICentralRegistry",
134
- "name": "",
135
- "type": "address"
136
- }
137
- ],
138
- "stateMutability": "view",
139
- "type": "function"
140
- },
141
- {
142
- "inputs": [
143
- {
144
- "internalType": "address",
145
- "name": "optimizer",
146
- "type": "address"
147
- }
148
- ],
149
- "name": "getOptimizerAPY",
150
- "outputs": [
151
- {
152
- "internalType": "uint256",
153
- "name": "apy",
154
- "type": "uint256"
155
- }
156
- ],
157
- "stateMutability": "view",
158
- "type": "function"
159
- },
160
- {
161
- "inputs": [
162
- {
163
- "internalType": "address[]",
164
- "name": "optimizers",
165
- "type": "address[]"
166
- }
167
- ],
168
- "name": "getOptimizerMarketData",
169
- "outputs": [
170
- {
171
- "components": [
172
- {
173
- "internalType": "address",
174
- "name": "_address",
175
- "type": "address"
176
- },
177
- {
178
- "internalType": "address",
179
- "name": "asset",
180
- "type": "address"
181
- },
182
- {
183
- "internalType": "uint256",
184
- "name": "totalAssets",
185
- "type": "uint256"
186
- },
187
- {
188
- "components": [
189
- {
190
- "internalType": "address",
191
- "name": "_address",
192
- "type": "address"
193
- },
194
- {
195
- "internalType": "uint256",
196
- "name": "allocatedAssets",
197
- "type": "uint256"
198
- },
199
- {
200
- "internalType": "uint256",
201
- "name": "liquidity",
202
- "type": "uint256"
203
- },
204
- {
205
- "internalType": "uint256",
206
- "name": "allocationCap",
207
- "type": "uint256"
208
- },
209
- {
210
- "internalType": "uint256",
211
- "name": "allocationCapUtilizationBps",
212
- "type": "uint256"
213
- }
214
- ],
215
- "internalType": "struct OptimizerReader.OptimizerCTokenData[]",
216
- "name": "markets",
217
- "type": "tuple[]"
218
- },
219
- {
220
- "internalType": "uint256",
221
- "name": "totalLiquidity",
222
- "type": "uint256"
223
- },
224
- {
225
- "internalType": "uint256",
226
- "name": "sharePrice",
227
- "type": "uint256"
228
- },
229
- {
230
- "internalType": "uint256",
231
- "name": "exchangeRateHighWatermark",
232
- "type": "uint256"
233
- },
234
- {
235
- "internalType": "uint256",
236
- "name": "performanceFee",
237
- "type": "uint256"
238
- },
239
- {
240
- "internalType": "uint256",
241
- "name": "numApprovedMarkets",
242
- "type": "uint256"
243
- },
244
- {
245
- "internalType": "uint256",
246
- "name": "apy",
247
- "type": "uint256"
248
- }
249
- ],
250
- "internalType": "struct OptimizerReader.OptimizerMarketData[]",
251
- "name": "data",
252
- "type": "tuple[]"
253
- }
254
- ],
255
- "stateMutability": "view",
256
- "type": "function"
257
- },
258
- {
259
- "inputs": [
260
- {
261
- "internalType": "address[]",
262
- "name": "optimizers",
263
- "type": "address[]"
264
- },
265
- {
266
- "internalType": "address",
267
- "name": "account",
268
- "type": "address"
269
- }
270
- ],
271
- "name": "getOptimizerUserData",
272
- "outputs": [
273
- {
274
- "components": [
275
- {
276
- "internalType": "address",
277
- "name": "_address",
278
- "type": "address"
279
- },
280
- {
281
- "internalType": "uint256",
282
- "name": "shareBalance",
283
- "type": "uint256"
284
- },
285
- {
286
- "internalType": "uint256",
287
- "name": "redeemable",
288
- "type": "uint256"
289
- }
290
- ],
291
- "internalType": "struct OptimizerReader.OptimizerUserData[]",
292
- "name": "data",
293
- "type": "tuple[]"
294
- }
295
- ],
296
- "stateMutability": "view",
297
- "type": "function"
298
- },
299
- {
300
- "inputs": [
301
- {
302
- "internalType": "address",
303
- "name": "optimizer",
304
- "type": "address"
305
- }
306
- ],
307
- "name": "isBad",
308
- "outputs": [
309
- {
310
- "internalType": "address[]",
311
- "name": "bad",
312
- "type": "address[]"
313
- }
314
- ],
315
- "stateMutability": "view",
316
- "type": "function"
317
- },
318
- {
319
- "inputs": [
320
- {
321
- "internalType": "address[]",
322
- "name": "optimizers",
323
- "type": "address[]"
324
- }
325
- ],
326
- "name": "multiIsBadCheck",
327
- "outputs": [
328
- {
329
- "internalType": "address[][]",
330
- "name": "badOptimizers",
331
- "type": "address[][]"
332
- }
333
- ],
334
- "stateMutability": "view",
335
- "type": "function"
336
- },
337
- {
338
- "inputs": [
339
- {
340
- "internalType": "address",
341
- "name": "optimizer",
342
- "type": "address"
343
- },
344
- {
345
- "internalType": "uint256",
346
- "name": "slippageBps",
347
- "type": "uint256"
348
- }
349
- ],
350
- "name": "optimalRebalance",
351
- "outputs": [
352
- {
353
- "components": [
354
- {
355
- "internalType": "contract IBorrowableCToken",
356
- "name": "cToken",
357
- "type": "address"
358
- },
359
- {
360
- "internalType": "int256",
361
- "name": "assetsOrBps",
362
- "type": "int256"
363
- }
364
- ],
365
- "internalType": "struct LendingOptimizer.ReallocationAction[]",
366
- "name": "actions",
367
- "type": "tuple[]"
368
- },
369
- {
370
- "components": [
371
- {
372
- "internalType": "address",
373
- "name": "cToken",
374
- "type": "address"
375
- },
376
- {
377
- "internalType": "uint256",
378
- "name": "minBps",
379
- "type": "uint256"
380
- },
381
- {
382
- "internalType": "uint256",
383
- "name": "maxBps",
384
- "type": "uint256"
385
- }
386
- ],
387
- "internalType": "struct LendingOptimizer.AllocationBound[]",
388
- "name": "bounds",
389
- "type": "tuple[]"
390
- }
391
- ],
392
- "stateMutability": "view",
393
- "type": "function"
394
- },
395
- {
396
- "inputs": [
397
- {
398
- "internalType": "address",
399
- "name": "optimizer",
400
- "type": "address"
401
- },
402
- {
403
- "internalType": "uint256",
404
- "name": "slippageBps",
405
- "type": "uint256"
406
- },
407
- {
408
- "internalType": "uint256",
409
- "name": "timestamp",
410
- "type": "uint256"
411
- }
412
- ],
413
- "name": "optimalRebalanceAt",
414
- "outputs": [
415
- {
416
- "components": [
417
- {
418
- "internalType": "contract IBorrowableCToken",
419
- "name": "cToken",
420
- "type": "address"
421
- },
422
- {
423
- "internalType": "int256",
424
- "name": "assetsOrBps",
425
- "type": "int256"
426
- }
427
- ],
428
- "internalType": "struct LendingOptimizer.ReallocationAction[]",
429
- "name": "actions",
430
- "type": "tuple[]"
431
- },
432
- {
433
- "components": [
434
- {
435
- "internalType": "address",
436
- "name": "cToken",
437
- "type": "address"
438
- },
439
- {
440
- "internalType": "uint256",
441
- "name": "minBps",
442
- "type": "uint256"
443
- },
444
- {
445
- "internalType": "uint256",
446
- "name": "maxBps",
447
- "type": "uint256"
448
- }
449
- ],
450
- "internalType": "struct LendingOptimizer.AllocationBound[]",
451
- "name": "bounds",
452
- "type": "tuple[]"
453
- }
454
- ],
455
- "stateMutability": "view",
456
- "type": "function"
457
- },
458
- {
459
- "inputs": [
460
- {
461
- "internalType": "uint256",
462
- "name": "newMultiplierBps",
463
- "type": "uint256"
464
- }
465
- ],
466
- "name": "setStalenessMultiplier",
467
- "outputs": [],
468
- "stateMutability": "nonpayable",
469
- "type": "function"
470
- },
471
- {
472
- "inputs": [],
473
- "name": "stalenessMultiplierBps",
474
- "outputs": [
475
- {
476
- "internalType": "uint256",
477
- "name": "",
478
- "type": "uint256"
479
- }
480
- ],
481
- "stateMutability": "view",
482
- "type": "function"
483
- }
484
- ]