@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.
Files changed (126) hide show
  1. package/contracts/SuperComposableYield/ISuperComposableYield.sol +2 -0
  2. package/contracts/SuperComposableYield/implementations/RewardManager.sol +35 -20
  3. package/contracts/SuperComposableYield/implementations/SCYBase.sol +39 -19
  4. package/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol +26 -14
  5. package/contracts/core/PendleBaseToken.sol +2 -2
  6. package/contracts/core/PendleMarket.sol +145 -61
  7. package/contracts/core/PendleMarketFactory.sol +30 -19
  8. package/contracts/core/{PendleOwnershipToken.sol → PendlePrincipalToken.sol} +14 -2
  9. package/contracts/core/PendleRouter.sol +23 -9
  10. package/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol +21 -20
  11. package/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol +22 -16
  12. package/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol +13 -13
  13. package/contracts/core/PendleSCYImpl/PendleStETHSCY.sol +107 -0
  14. package/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol +14 -15
  15. package/contracts/core/PendleYieldContractFactory.sol +29 -14
  16. package/contracts/core/PendleYieldToken.sol +130 -76
  17. package/contracts/core/RouterStatic.sol +16 -157
  18. package/contracts/core/actions/ActionCallback.sol +36 -18
  19. package/contracts/core/actions/ActionCore.sol +41 -88
  20. package/contracts/core/actions/ActionRedeem.sol +36 -0
  21. package/contracts/core/actions/ActionYT.sol +41 -59
  22. package/contracts/core/actions/base/{ActionSCYAndOTBase.sol → ActionSCYAndPTBase.sol} +59 -45
  23. package/contracts/core/actions/base/{ActionSCYAndYOBase.sol → ActionSCYAndPYBase.sol} +57 -19
  24. package/contracts/core/actions/base/ActionSCYAndYTBase.sol +31 -21
  25. package/contracts/interfaces/IPActionCore.sol +21 -28
  26. package/contracts/interfaces/IPActionRedeem.sol +17 -0
  27. package/contracts/interfaces/IPActionYT.sol +5 -12
  28. package/contracts/interfaces/IPAllAction.sol +2 -2
  29. package/contracts/interfaces/IPMarket.sol +33 -10
  30. package/contracts/interfaces/IPMarketAddRemoveCallback.sol +2 -2
  31. package/contracts/interfaces/IPMarketFactory.sol +3 -1
  32. package/contracts/interfaces/IPMarketSwapCallback.sol +1 -1
  33. package/contracts/interfaces/{IPOwnershipToken.sol → IPPrincipalToken.sol} +1 -1
  34. package/contracts/interfaces/IPRouterStatic.sol +7 -82
  35. package/contracts/interfaces/IPYieldContractFactory.sol +10 -2
  36. package/contracts/interfaces/IPYieldToken.sol +14 -5
  37. package/contracts/interfaces/IWstETH.sol +10 -0
  38. package/contracts/libraries/JoeLibrary.sol +1 -1
  39. package/contracts/libraries/math/LogExpMath.sol +1 -1
  40. package/contracts/libraries/math/MarketApproxLib.sol +128 -88
  41. package/contracts/libraries/math/MarketMathAux.sol +13 -13
  42. package/contracts/libraries/math/MarketMathCore.sol +62 -93
  43. package/contracts/libraries/math/Math.sol +14 -2
  44. package/contracts/periphery/PendleGovernanceManager.sol +5 -3
  45. package/package.json +3 -2
  46. package/typechain-types/ActionCallback.ts +5 -5
  47. package/typechain-types/ActionCore.ts +312 -234
  48. package/typechain-types/ActionRedeem.ts +125 -0
  49. package/typechain-types/ActionSCYAndPYBase.ts +223 -0
  50. package/typechain-types/ActionSCYAndYOBase.ts +129 -3
  51. package/typechain-types/ActionSCYAndYTBase.ts +149 -3
  52. package/typechain-types/ActionYT.ts +192 -94
  53. package/typechain-types/IPActionCore.ts +183 -231
  54. package/typechain-types/IPActionRedeem.ts +125 -0
  55. package/typechain-types/IPActionYT.ts +43 -91
  56. package/typechain-types/IPAllAction.ts +258 -321
  57. package/typechain-types/IPMarket.ts +150 -50
  58. package/typechain-types/IPMarketAddRemoveCallback.ts +10 -10
  59. package/typechain-types/IPMarketFactory.ts +28 -6
  60. package/typechain-types/IPMarketSwapCallback.ts +5 -5
  61. package/typechain-types/{IPOwnershipToken.ts → IPPrincipalToken.ts} +5 -5
  62. package/typechain-types/IPRouterStatic.ts +50 -530
  63. package/typechain-types/IPYieldContractFactory.ts +85 -19
  64. package/typechain-types/IPYieldToken.ts +138 -37
  65. package/typechain-types/ISuperComposableYield.ts +13 -0
  66. package/typechain-types/IWstETH.ts +149 -0
  67. package/typechain-types/PendleAaveV3SCY.ts +110 -0
  68. package/typechain-types/PendleBaseToken.ts +1 -1
  69. package/typechain-types/PendleBenQiErc20SCY.ts +55 -12
  70. package/typechain-types/PendleBtrflyScy.ts +27 -23
  71. package/typechain-types/PendleGovernanceManager.ts +5 -5
  72. package/typechain-types/PendleMarket.ts +197 -100
  73. package/typechain-types/PendleMarketFactory.ts +96 -34
  74. package/typechain-types/{PendleOwnershipToken.ts → PendlePrincipalToken.ts} +15 -6
  75. package/typechain-types/PendleRouter.ts +19 -0
  76. package/typechain-types/PendleRouterRedeemUpg.ts +125 -0
  77. package/typechain-types/PendleStEthSCY.ts +872 -0
  78. package/typechain-types/PendleYearnVaultScy.ts +27 -23
  79. package/typechain-types/PendleYieldContractFactory.ts +94 -28
  80. package/typechain-types/PendleYieldToken.ts +142 -57
  81. package/typechain-types/RewardManager.ts +21 -0
  82. package/typechain-types/RouterStatic.ts +50 -530
  83. package/typechain-types/SCYBase.ts +25 -0
  84. package/typechain-types/SCYBaseWithRewards.ts +64 -0
  85. package/typechain-types/factories/ActionCallback__factory.ts +2 -2
  86. package/typechain-types/factories/ActionCore__factory.ts +263 -79
  87. package/typechain-types/factories/ActionRedeem__factory.ts +105 -0
  88. package/typechain-types/factories/ActionSCYAndPYBase__factory.ts +200 -0
  89. package/typechain-types/factories/ActionSCYAndYOBase__factory.ts +148 -0
  90. package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +173 -0
  91. package/typechain-types/factories/ActionYT__factory.ts +265 -56
  92. package/typechain-types/factories/IPActionCore__factory.ts +114 -78
  93. package/typechain-types/factories/IPActionRedeem__factory.ts +70 -0
  94. package/typechain-types/factories/IPActionYT__factory.ts +90 -54
  95. package/typechain-types/factories/IPAllAction__factory.ts +254 -138
  96. package/typechain-types/factories/IPMarketAddRemoveCallback__factory.ts +2 -2
  97. package/typechain-types/factories/IPMarketFactory__factory.ts +26 -1
  98. package/typechain-types/factories/IPMarketSwapCallback__factory.ts +1 -1
  99. package/typechain-types/factories/IPMarket__factory.ts +125 -13
  100. package/typechain-types/factories/{IPOwnershipToken__factory.ts → IPPrincipalToken__factory.ts} +8 -8
  101. package/typechain-types/factories/IPRouterStatic__factory.ts +12 -628
  102. package/typechain-types/factories/IPYieldContractFactory__factory.ts +72 -2
  103. package/typechain-types/factories/IPYieldToken__factory.ts +93 -7
  104. package/typechain-types/factories/ISuperComposableYield__factory.ts +13 -0
  105. package/typechain-types/factories/IWstETH__factory.ts +74 -0
  106. package/typechain-types/factories/PendleAaveV3SCY__factory.ts +97 -3
  107. package/typechain-types/factories/PendleBaseToken__factory.ts +1 -1
  108. package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +62 -7
  109. package/typechain-types/factories/PendleBtrflyScy__factory.ts +42 -19
  110. package/typechain-types/factories/PendleGovernanceManager__factory.ts +2 -2
  111. package/typechain-types/factories/PendleMarketFactory__factory.ts +66 -15
  112. package/typechain-types/factories/PendleMarket__factory.ts +170 -53
  113. package/typechain-types/factories/PendlePrincipalToken__factory.ts +540 -0
  114. package/typechain-types/factories/PendleRouterRedeemUpg__factory.ts +112 -0
  115. package/typechain-types/factories/PendleRouter__factory.ts +23 -1
  116. package/typechain-types/factories/PendleStEthSCY__factory.ts +716 -0
  117. package/typechain-types/factories/PendleYearnVaultScy__factory.ts +41 -18
  118. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +75 -5
  119. package/typechain-types/factories/PendleYieldToken__factory.ts +102 -33
  120. package/typechain-types/factories/RewardManager__factory.ts +13 -0
  121. package/typechain-types/factories/RouterStatic__factory.ts +13 -629
  122. package/typechain-types/factories/SCYBaseWithRewards__factory.ts +60 -2
  123. package/typechain-types/factories/SCYBase__factory.ts +28 -2
  124. package/typechain-types/hardhat.d.ts +52 -16
  125. package/typechain-types/index.ts +14 -6
  126. 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: "otDesired",
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: "SCY",
68
+ name: "YT",
69
69
  type: "address",
70
70
  },
71
71
  {
72
72
  internalType: "uint256",
73
- name: "minScyOut",
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: "mintScyFromRawToken",
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: "YT",
107
+ name: "SCY",
108
108
  type: "address",
109
109
  },
110
110
  {
111
111
  internalType: "uint256",
112
- name: "minYoOut",
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: "mintYoFromRawToken",
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: "SCY",
141
+ name: "YT",
142
142
  type: "address",
143
143
  },
144
144
  {
145
145
  internalType: "uint256",
146
- name: "netScyIn",
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: "redeemScyToRawToken",
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: "YT",
180
+ name: "SCY",
181
181
  type: "address",
182
182
  },
183
183
  {
184
184
  internalType: "uint256",
185
- name: "netYoIn",
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: "redeemYoToRawToken",
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: "otOutMin",
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: "exactOtIn",
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: "swapExactOtForRawToken",
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: "exactOtIn",
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: "swapExactOtForScy",
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
- internalType: "uint256",
356
- name: "otOutguessMin",
357
- type: "uint256",
358
- },
359
- {
360
- internalType: "uint256",
361
- name: "otOutguessMax",
362
- type: "uint256",
363
- },
364
- {
365
- internalType: "uint256",
366
- name: "maxIteration",
367
- type: "uint256",
368
- },
369
- {
370
- internalType: "uint256",
371
- name: "eps",
372
- type: "uint256",
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: "swapExactRawTokenForOt",
387
+ name: "swapExactRawTokenForPt",
376
388
  outputs: [
377
389
  {
378
390
  internalType: "uint256",
379
- name: "netOtOut",
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
- internalType: "uint256",
405
- name: "otOutguessMin",
406
- type: "uint256",
407
- },
408
- {
409
- internalType: "uint256",
410
- name: "otOutguessMax",
411
- type: "uint256",
412
- },
413
- {
414
- internalType: "uint256",
415
- name: "maxIteration",
416
- type: "uint256",
417
- },
418
- {
419
- internalType: "uint256",
420
- name: "eps",
421
- type: "uint256",
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: "swapExactScyForOt",
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
- internalType: "uint256",
454
- name: "otInGuessMin",
455
- type: "uint256",
456
- },
457
- {
458
- internalType: "uint256",
459
- name: "otInGuessMax",
460
- type: "uint256",
461
- },
462
- {
463
- internalType: "uint256",
464
- name: "maxIteration",
465
- type: "uint256",
466
- },
467
- {
468
- internalType: "uint256",
469
- name: "eps",
470
- type: "uint256",
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: "swapOtForExactScy",
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: "exactOtOut",
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: "swapScyForExactOt",
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
- internalType: "uint256",
34
- name: "netYtOutGuessMin",
35
- type: "uint256",
36
- },
37
- {
38
- internalType: "uint256",
39
- name: "netYtOutGuessMax",
40
- type: "uint256",
41
- },
42
- {
43
- internalType: "uint256",
44
- name: "maxIteration",
45
- type: "uint256",
46
- },
47
- {
48
- internalType: "uint256",
49
- name: "eps",
50
- type: "uint256",
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
- internalType: "uint256",
83
- name: "netYtOutGuessMin",
84
- type: "uint256",
85
- },
86
- {
87
- internalType: "uint256",
88
- name: "netYtOutGuessMax",
89
- type: "uint256",
90
- },
91
- {
92
- internalType: "uint256",
93
- name: "maxIteration",
94
- type: "uint256",
95
- },
96
- {
97
- internalType: "uint256",
98
- name: "eps",
99
- type: "uint256",
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
- internalType: "uint256",
239
- name: "netYtInGuessMin",
240
- type: "uint256",
241
- },
242
- {
243
- internalType: "uint256",
244
- name: "netYtInGuessMax",
245
- type: "uint256",
246
- },
247
- {
248
- internalType: "uint256",
249
- name: "maxIteration",
250
- type: "uint256",
251
- },
252
- {
253
- internalType: "uint256",
254
- name: "eps",
255
- type: "uint256",
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",