@pendle/core-v2 0.5.1-beta-4 → 0.6.0
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/contracts/SuperComposableYield/ISuperComposableYield.sol +2 -0
- package/contracts/SuperComposableYield/implementations/RewardManager.sol +35 -20
- package/contracts/SuperComposableYield/implementations/SCYBase.sol +39 -19
- package/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol +26 -14
- package/contracts/core/PendleBaseToken.sol +2 -2
- package/contracts/core/PendleMarket.sol +145 -61
- package/contracts/core/PendleMarketFactory.sol +30 -19
- package/contracts/core/{PendleOwnershipToken.sol → PendlePrincipalToken.sol} +14 -2
- package/contracts/core/PendleRouter.sol +23 -9
- package/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol +21 -20
- package/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol +22 -16
- package/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol +13 -13
- package/contracts/core/PendleSCYImpl/PendleStETHSCY.sol +107 -0
- package/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol +14 -15
- package/contracts/core/PendleYieldContractFactory.sol +29 -14
- package/contracts/core/PendleYieldToken.sol +130 -76
- package/contracts/core/RouterStatic.sol +16 -157
- package/contracts/core/actions/ActionCallback.sol +36 -18
- package/contracts/core/actions/ActionCore.sol +41 -88
- package/contracts/core/actions/ActionRedeem.sol +36 -0
- package/contracts/core/actions/ActionYT.sol +41 -59
- package/contracts/core/actions/base/{ActionSCYAndOTBase.sol → ActionSCYAndPTBase.sol} +59 -45
- package/contracts/core/actions/base/{ActionSCYAndYOBase.sol → ActionSCYAndPYBase.sol} +57 -19
- package/contracts/core/actions/base/ActionSCYAndYTBase.sol +31 -21
- package/contracts/interfaces/IPActionCore.sol +21 -28
- package/contracts/interfaces/IPActionRedeem.sol +17 -0
- package/contracts/interfaces/IPActionYT.sol +5 -12
- package/contracts/interfaces/IPAllAction.sol +2 -2
- package/contracts/interfaces/IPMarket.sol +33 -10
- package/contracts/interfaces/IPMarketAddRemoveCallback.sol +2 -2
- package/contracts/interfaces/IPMarketFactory.sol +3 -1
- package/contracts/interfaces/IPMarketSwapCallback.sol +1 -1
- package/contracts/interfaces/{IPOwnershipToken.sol → IPPrincipalToken.sol} +1 -1
- package/contracts/interfaces/IPRouterStatic.sol +7 -82
- package/contracts/interfaces/IPYieldContractFactory.sol +10 -2
- package/contracts/interfaces/IPYieldToken.sol +14 -5
- package/contracts/interfaces/IWstETH.sol +10 -0
- package/contracts/libraries/JoeLibrary.sol +1 -1
- package/contracts/libraries/math/LogExpMath.sol +1 -1
- package/contracts/libraries/math/MarketApproxLib.sol +128 -88
- package/contracts/libraries/math/MarketMathAux.sol +13 -13
- package/contracts/libraries/math/MarketMathCore.sol +62 -93
- package/contracts/libraries/math/Math.sol +14 -2
- package/contracts/periphery/PendleGovernanceManager.sol +5 -3
- package/package.json +3 -2
- package/typechain-types/ActionCallback.ts +5 -5
- package/typechain-types/ActionCore.ts +312 -234
- package/typechain-types/ActionRedeem.ts +125 -0
- package/typechain-types/ActionSCYAndPYBase.ts +223 -0
- package/typechain-types/ActionSCYAndYOBase.ts +129 -3
- package/typechain-types/ActionSCYAndYTBase.ts +149 -3
- package/typechain-types/ActionYT.ts +192 -94
- package/typechain-types/IPActionCore.ts +183 -231
- package/typechain-types/IPActionRedeem.ts +125 -0
- package/typechain-types/IPActionYT.ts +43 -91
- package/typechain-types/IPAllAction.ts +258 -321
- package/typechain-types/IPMarket.ts +150 -50
- package/typechain-types/IPMarketAddRemoveCallback.ts +10 -10
- package/typechain-types/IPMarketFactory.ts +28 -6
- package/typechain-types/IPMarketSwapCallback.ts +5 -5
- package/typechain-types/{IPOwnershipToken.ts → IPPrincipalToken.ts} +5 -5
- package/typechain-types/IPRouterStatic.ts +50 -530
- package/typechain-types/IPYieldContractFactory.ts +85 -19
- package/typechain-types/IPYieldToken.ts +138 -37
- package/typechain-types/ISuperComposableYield.ts +13 -0
- package/typechain-types/IWstETH.ts +149 -0
- package/typechain-types/PendleAaveV3SCY.ts +110 -0
- package/typechain-types/PendleBaseToken.ts +1 -1
- package/typechain-types/PendleBenQiErc20SCY.ts +55 -12
- package/typechain-types/PendleBtrflyScy.ts +27 -23
- package/typechain-types/PendleGovernanceManager.ts +5 -5
- package/typechain-types/PendleMarket.ts +197 -100
- package/typechain-types/PendleMarketFactory.ts +96 -34
- package/typechain-types/{PendleOwnershipToken.ts → PendlePrincipalToken.ts} +15 -6
- package/typechain-types/PendleRouter.ts +19 -0
- package/typechain-types/PendleRouterRedeemUpg.ts +125 -0
- package/typechain-types/PendleStEthSCY.ts +872 -0
- package/typechain-types/PendleYearnVaultScy.ts +27 -23
- package/typechain-types/PendleYieldContractFactory.ts +94 -28
- package/typechain-types/PendleYieldToken.ts +142 -57
- package/typechain-types/RewardManager.ts +21 -0
- package/typechain-types/RouterStatic.ts +50 -530
- package/typechain-types/SCYBase.ts +25 -0
- package/typechain-types/SCYBaseWithRewards.ts +64 -0
- package/typechain-types/factories/ActionCallback__factory.ts +2 -2
- package/typechain-types/factories/ActionCore__factory.ts +263 -79
- package/typechain-types/factories/ActionRedeem__factory.ts +105 -0
- package/typechain-types/factories/ActionSCYAndPYBase__factory.ts +200 -0
- package/typechain-types/factories/ActionSCYAndYOBase__factory.ts +148 -0
- package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +173 -0
- package/typechain-types/factories/ActionYT__factory.ts +265 -56
- package/typechain-types/factories/IPActionCore__factory.ts +114 -78
- package/typechain-types/factories/IPActionRedeem__factory.ts +70 -0
- package/typechain-types/factories/IPActionYT__factory.ts +90 -54
- package/typechain-types/factories/IPAllAction__factory.ts +254 -138
- package/typechain-types/factories/IPMarketAddRemoveCallback__factory.ts +2 -2
- package/typechain-types/factories/IPMarketFactory__factory.ts +26 -1
- package/typechain-types/factories/IPMarketSwapCallback__factory.ts +1 -1
- package/typechain-types/factories/IPMarket__factory.ts +125 -13
- package/typechain-types/factories/{IPOwnershipToken__factory.ts → IPPrincipalToken__factory.ts} +8 -8
- package/typechain-types/factories/IPRouterStatic__factory.ts +12 -628
- package/typechain-types/factories/IPYieldContractFactory__factory.ts +72 -2
- package/typechain-types/factories/IPYieldToken__factory.ts +93 -7
- package/typechain-types/factories/ISuperComposableYield__factory.ts +13 -0
- package/typechain-types/factories/IWstETH__factory.ts +74 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +97 -3
- package/typechain-types/factories/PendleBaseToken__factory.ts +1 -1
- package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +62 -7
- package/typechain-types/factories/PendleBtrflyScy__factory.ts +42 -19
- package/typechain-types/factories/PendleGovernanceManager__factory.ts +2 -2
- package/typechain-types/factories/PendleMarketFactory__factory.ts +66 -15
- package/typechain-types/factories/PendleMarket__factory.ts +170 -53
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +540 -0
- package/typechain-types/factories/PendleRouterRedeemUpg__factory.ts +112 -0
- package/typechain-types/factories/PendleRouter__factory.ts +23 -1
- package/typechain-types/factories/PendleStEthSCY__factory.ts +716 -0
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +41 -18
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +75 -5
- package/typechain-types/factories/PendleYieldToken__factory.ts +102 -33
- package/typechain-types/factories/RewardManager__factory.ts +13 -0
- package/typechain-types/factories/RouterStatic__factory.ts +13 -629
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +60 -2
- package/typechain-types/factories/SCYBase__factory.ts +28 -2
- package/typechain-types/hardhat.d.ts +52 -16
- package/typechain-types/index.ts +14 -6
- package/typechain-types/factories/PendleOwnershipToken__factory.ts +0 -527
|
@@ -26,7 +26,7 @@ const _abi = [
|
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
internalType: "uint256",
|
|
29
|
-
name: "
|
|
29
|
+
name: "ptDesired",
|
|
30
30
|
type: "uint256",
|
|
31
31
|
},
|
|
32
32
|
{
|
|
@@ -65,12 +65,12 @@ const _abi = [
|
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
internalType: "address",
|
|
68
|
-
name: "
|
|
68
|
+
name: "YT",
|
|
69
69
|
type: "address",
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
internalType: "uint256",
|
|
73
|
-
name: "
|
|
73
|
+
name: "minPyOut",
|
|
74
74
|
type: "uint256",
|
|
75
75
|
},
|
|
76
76
|
{
|
|
@@ -84,7 +84,7 @@ const _abi = [
|
|
|
84
84
|
type: "address[]",
|
|
85
85
|
},
|
|
86
86
|
],
|
|
87
|
-
name: "
|
|
87
|
+
name: "mintPyFromRawToken",
|
|
88
88
|
outputs: [
|
|
89
89
|
{
|
|
90
90
|
internalType: "uint256",
|
|
@@ -104,12 +104,12 @@ const _abi = [
|
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
internalType: "address",
|
|
107
|
-
name: "
|
|
107
|
+
name: "SCY",
|
|
108
108
|
type: "address",
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
internalType: "uint256",
|
|
112
|
-
name: "
|
|
112
|
+
name: "minScyOut",
|
|
113
113
|
type: "uint256",
|
|
114
114
|
},
|
|
115
115
|
{
|
|
@@ -123,7 +123,7 @@ const _abi = [
|
|
|
123
123
|
type: "address[]",
|
|
124
124
|
},
|
|
125
125
|
],
|
|
126
|
-
name: "
|
|
126
|
+
name: "mintScyFromRawToken",
|
|
127
127
|
outputs: [
|
|
128
128
|
{
|
|
129
129
|
internalType: "uint256",
|
|
@@ -138,12 +138,12 @@ const _abi = [
|
|
|
138
138
|
inputs: [
|
|
139
139
|
{
|
|
140
140
|
internalType: "address",
|
|
141
|
-
name: "
|
|
141
|
+
name: "YT",
|
|
142
142
|
type: "address",
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
internalType: "uint256",
|
|
146
|
-
name: "
|
|
146
|
+
name: "netPyIn",
|
|
147
147
|
type: "uint256",
|
|
148
148
|
},
|
|
149
149
|
{
|
|
@@ -162,7 +162,7 @@ const _abi = [
|
|
|
162
162
|
type: "address[]",
|
|
163
163
|
},
|
|
164
164
|
],
|
|
165
|
-
name: "
|
|
165
|
+
name: "redeemPyToRawToken",
|
|
166
166
|
outputs: [
|
|
167
167
|
{
|
|
168
168
|
internalType: "uint256",
|
|
@@ -177,12 +177,12 @@ const _abi = [
|
|
|
177
177
|
inputs: [
|
|
178
178
|
{
|
|
179
179
|
internalType: "address",
|
|
180
|
-
name: "
|
|
180
|
+
name: "SCY",
|
|
181
181
|
type: "address",
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
internalType: "uint256",
|
|
185
|
-
name: "
|
|
185
|
+
name: "netScyIn",
|
|
186
186
|
type: "uint256",
|
|
187
187
|
},
|
|
188
188
|
{
|
|
@@ -201,7 +201,7 @@ const _abi = [
|
|
|
201
201
|
type: "address[]",
|
|
202
202
|
},
|
|
203
203
|
],
|
|
204
|
-
name: "
|
|
204
|
+
name: "redeemScyToRawToken",
|
|
205
205
|
outputs: [
|
|
206
206
|
{
|
|
207
207
|
internalType: "uint256",
|
|
@@ -236,7 +236,7 @@ const _abi = [
|
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
internalType: "uint256",
|
|
239
|
-
name: "
|
|
239
|
+
name: "ptOutMin",
|
|
240
240
|
type: "uint256",
|
|
241
241
|
},
|
|
242
242
|
],
|
|
@@ -260,7 +260,7 @@ const _abi = [
|
|
|
260
260
|
inputs: [
|
|
261
261
|
{
|
|
262
262
|
internalType: "uint256",
|
|
263
|
-
name: "
|
|
263
|
+
name: "exactPtIn",
|
|
264
264
|
type: "uint256",
|
|
265
265
|
},
|
|
266
266
|
{
|
|
@@ -284,7 +284,7 @@ const _abi = [
|
|
|
284
284
|
type: "uint256",
|
|
285
285
|
},
|
|
286
286
|
],
|
|
287
|
-
name: "
|
|
287
|
+
name: "swapExactPtForRawToken",
|
|
288
288
|
outputs: [
|
|
289
289
|
{
|
|
290
290
|
internalType: "uint256",
|
|
@@ -309,7 +309,7 @@ const _abi = [
|
|
|
309
309
|
},
|
|
310
310
|
{
|
|
311
311
|
internalType: "uint256",
|
|
312
|
-
name: "
|
|
312
|
+
name: "exactPtIn",
|
|
313
313
|
type: "uint256",
|
|
314
314
|
},
|
|
315
315
|
{
|
|
@@ -318,7 +318,7 @@ const _abi = [
|
|
|
318
318
|
type: "uint256",
|
|
319
319
|
},
|
|
320
320
|
],
|
|
321
|
-
name: "
|
|
321
|
+
name: "swapExactPtForScy",
|
|
322
322
|
outputs: [
|
|
323
323
|
{
|
|
324
324
|
internalType: "uint256",
|
|
@@ -352,31 +352,43 @@ const _abi = [
|
|
|
352
352
|
type: "address",
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
355
|
+
components: [
|
|
356
|
+
{
|
|
357
|
+
internalType: "uint256",
|
|
358
|
+
name: "guessMin",
|
|
359
|
+
type: "uint256",
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
internalType: "uint256",
|
|
363
|
+
name: "guessMax",
|
|
364
|
+
type: "uint256",
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
internalType: "uint256",
|
|
368
|
+
name: "guessOffchain",
|
|
369
|
+
type: "uint256",
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
internalType: "uint256",
|
|
373
|
+
name: "maxIteration",
|
|
374
|
+
type: "uint256",
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
internalType: "uint256",
|
|
378
|
+
name: "eps",
|
|
379
|
+
type: "uint256",
|
|
380
|
+
},
|
|
381
|
+
],
|
|
382
|
+
internalType: "struct ApproxParams",
|
|
383
|
+
name: "approx",
|
|
384
|
+
type: "tuple",
|
|
373
385
|
},
|
|
374
386
|
],
|
|
375
|
-
name: "
|
|
387
|
+
name: "swapExactRawTokenForPt",
|
|
376
388
|
outputs: [
|
|
377
389
|
{
|
|
378
390
|
internalType: "uint256",
|
|
379
|
-
name: "
|
|
391
|
+
name: "netPtOut",
|
|
380
392
|
type: "uint256",
|
|
381
393
|
},
|
|
382
394
|
],
|
|
@@ -401,27 +413,39 @@ const _abi = [
|
|
|
401
413
|
type: "uint256",
|
|
402
414
|
},
|
|
403
415
|
{
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
416
|
+
components: [
|
|
417
|
+
{
|
|
418
|
+
internalType: "uint256",
|
|
419
|
+
name: "guessMin",
|
|
420
|
+
type: "uint256",
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
internalType: "uint256",
|
|
424
|
+
name: "guessMax",
|
|
425
|
+
type: "uint256",
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
internalType: "uint256",
|
|
429
|
+
name: "guessOffchain",
|
|
430
|
+
type: "uint256",
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
internalType: "uint256",
|
|
434
|
+
name: "maxIteration",
|
|
435
|
+
type: "uint256",
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
internalType: "uint256",
|
|
439
|
+
name: "eps",
|
|
440
|
+
type: "uint256",
|
|
441
|
+
},
|
|
442
|
+
],
|
|
443
|
+
internalType: "struct ApproxParams",
|
|
444
|
+
name: "approx",
|
|
445
|
+
type: "tuple",
|
|
422
446
|
},
|
|
423
447
|
],
|
|
424
|
-
name: "
|
|
448
|
+
name: "swapExactScyForPt",
|
|
425
449
|
outputs: [
|
|
426
450
|
{
|
|
427
451
|
internalType: "uint256",
|
|
@@ -450,27 +474,39 @@ const _abi = [
|
|
|
450
474
|
type: "uint256",
|
|
451
475
|
},
|
|
452
476
|
{
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
477
|
+
components: [
|
|
478
|
+
{
|
|
479
|
+
internalType: "uint256",
|
|
480
|
+
name: "guessMin",
|
|
481
|
+
type: "uint256",
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
internalType: "uint256",
|
|
485
|
+
name: "guessMax",
|
|
486
|
+
type: "uint256",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
internalType: "uint256",
|
|
490
|
+
name: "guessOffchain",
|
|
491
|
+
type: "uint256",
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
internalType: "uint256",
|
|
495
|
+
name: "maxIteration",
|
|
496
|
+
type: "uint256",
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
internalType: "uint256",
|
|
500
|
+
name: "eps",
|
|
501
|
+
type: "uint256",
|
|
502
|
+
},
|
|
503
|
+
],
|
|
504
|
+
internalType: "struct ApproxParams",
|
|
505
|
+
name: "approx",
|
|
506
|
+
type: "tuple",
|
|
471
507
|
},
|
|
472
508
|
],
|
|
473
|
-
name: "
|
|
509
|
+
name: "swapPtForExactScy",
|
|
474
510
|
outputs: [
|
|
475
511
|
{
|
|
476
512
|
internalType: "uint256",
|
|
@@ -495,7 +531,7 @@ const _abi = [
|
|
|
495
531
|
},
|
|
496
532
|
{
|
|
497
533
|
internalType: "uint256",
|
|
498
|
-
name: "
|
|
534
|
+
name: "exactPtOut",
|
|
499
535
|
type: "uint256",
|
|
500
536
|
},
|
|
501
537
|
{
|
|
@@ -504,7 +540,7 @@ const _abi = [
|
|
|
504
540
|
type: "uint256",
|
|
505
541
|
},
|
|
506
542
|
],
|
|
507
|
-
name: "
|
|
543
|
+
name: "swapScyForExactPt",
|
|
508
544
|
outputs: [
|
|
509
545
|
{
|
|
510
546
|
internalType: "uint256",
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
IPActionRedeem,
|
|
9
|
+
IPActionRedeemInterface,
|
|
10
|
+
} from "../IPActionRedeem";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "address",
|
|
17
|
+
name: "user",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "address[]",
|
|
22
|
+
name: "scys",
|
|
23
|
+
type: "address[]",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
internalType: "address[]",
|
|
27
|
+
name: "yieldTokens",
|
|
28
|
+
type: "address[]",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
internalType: "address[]",
|
|
32
|
+
name: "",
|
|
33
|
+
type: "address[]",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "redeemDueIncome",
|
|
37
|
+
outputs: [
|
|
38
|
+
{
|
|
39
|
+
internalType: "uint256[][]",
|
|
40
|
+
name: "scyRewards",
|
|
41
|
+
type: "uint256[][]",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
internalType: "uint256[]",
|
|
45
|
+
name: "ytInterests",
|
|
46
|
+
type: "uint256[]",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
internalType: "uint256[][]",
|
|
50
|
+
name: "ytRewards",
|
|
51
|
+
type: "uint256[][]",
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
stateMutability: "nonpayable",
|
|
55
|
+
type: "function",
|
|
56
|
+
},
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
export class IPActionRedeem__factory {
|
|
60
|
+
static readonly abi = _abi;
|
|
61
|
+
static createInterface(): IPActionRedeemInterface {
|
|
62
|
+
return new utils.Interface(_abi) as IPActionRedeemInterface;
|
|
63
|
+
}
|
|
64
|
+
static connect(
|
|
65
|
+
address: string,
|
|
66
|
+
signerOrProvider: Signer | Provider
|
|
67
|
+
): IPActionRedeem {
|
|
68
|
+
return new Contract(address, _abi, signerOrProvider) as IPActionRedeem;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -30,24 +30,36 @@ const _abi = [
|
|
|
30
30
|
type: "address",
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
33
|
+
components: [
|
|
34
|
+
{
|
|
35
|
+
internalType: "uint256",
|
|
36
|
+
name: "guessMin",
|
|
37
|
+
type: "uint256",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
internalType: "uint256",
|
|
41
|
+
name: "guessMax",
|
|
42
|
+
type: "uint256",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
internalType: "uint256",
|
|
46
|
+
name: "guessOffchain",
|
|
47
|
+
type: "uint256",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
internalType: "uint256",
|
|
51
|
+
name: "maxIteration",
|
|
52
|
+
type: "uint256",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
internalType: "uint256",
|
|
56
|
+
name: "eps",
|
|
57
|
+
type: "uint256",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
internalType: "struct ApproxParams",
|
|
61
|
+
name: "approx",
|
|
62
|
+
type: "tuple",
|
|
51
63
|
},
|
|
52
64
|
],
|
|
53
65
|
name: "swapExactRawTokenForYt",
|
|
@@ -79,24 +91,36 @@ const _abi = [
|
|
|
79
91
|
type: "uint256",
|
|
80
92
|
},
|
|
81
93
|
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
94
|
+
components: [
|
|
95
|
+
{
|
|
96
|
+
internalType: "uint256",
|
|
97
|
+
name: "guessMin",
|
|
98
|
+
type: "uint256",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
internalType: "uint256",
|
|
102
|
+
name: "guessMax",
|
|
103
|
+
type: "uint256",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
internalType: "uint256",
|
|
107
|
+
name: "guessOffchain",
|
|
108
|
+
type: "uint256",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
internalType: "uint256",
|
|
112
|
+
name: "maxIteration",
|
|
113
|
+
type: "uint256",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
internalType: "uint256",
|
|
117
|
+
name: "eps",
|
|
118
|
+
type: "uint256",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
internalType: "struct ApproxParams",
|
|
122
|
+
name: "approx",
|
|
123
|
+
type: "tuple",
|
|
100
124
|
},
|
|
101
125
|
],
|
|
102
126
|
name: "swapExactScyForYt",
|
|
@@ -235,24 +259,36 @@ const _abi = [
|
|
|
235
259
|
type: "uint256",
|
|
236
260
|
},
|
|
237
261
|
{
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
262
|
+
components: [
|
|
263
|
+
{
|
|
264
|
+
internalType: "uint256",
|
|
265
|
+
name: "guessMin",
|
|
266
|
+
type: "uint256",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
internalType: "uint256",
|
|
270
|
+
name: "guessMax",
|
|
271
|
+
type: "uint256",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
internalType: "uint256",
|
|
275
|
+
name: "guessOffchain",
|
|
276
|
+
type: "uint256",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
internalType: "uint256",
|
|
280
|
+
name: "maxIteration",
|
|
281
|
+
type: "uint256",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
internalType: "uint256",
|
|
285
|
+
name: "eps",
|
|
286
|
+
type: "uint256",
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
internalType: "struct ApproxParams",
|
|
290
|
+
name: "approx",
|
|
291
|
+
type: "tuple",
|
|
256
292
|
},
|
|
257
293
|
],
|
|
258
294
|
name: "swapYtForExactScy",
|