@pendle/core-v2 2.3.2-mainnet → 2.4.0-mainnet

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 (56) hide show
  1. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSY.sol/PendleAuraWethAnkrethSY.dbg.json +1 -1
  2. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  3. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  4. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  6. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  7. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  8. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  9. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  10. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  11. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  12. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  13. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  14. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  15. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  16. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  17. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  18. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  19. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  20. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  21. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
  22. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  23. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.dbg.json +1 -1
  24. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.dbg.json +1 -1
  25. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
  26. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol/IExecutorHelper1.dbg.json +1 -1
  27. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol/IExecutorHelper2.dbg.json +1 -1
  28. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IHashflow.sol/IHashflow.dbg.json +1 -1
  29. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
  30. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/KyberHelperArbitrum.sol/KyberHelperArbitrum.dbg.json +1 -1
  31. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol/ScaleDataHelperArbitrum.dbg.json +1 -1
  32. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
  33. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +1 -1
  34. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol/IHashflow.dbg.json +1 -1
  35. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
  36. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol/KyberHelperEthereum.dbg.json +1 -1
  37. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol/ScaleDataHelperEthereum.dbg.json +1 -1
  38. package/deployments/1-core.json +1 -1
  39. package/deployments/1-markets/STARGATE-USDT-27JUNE2024-ETHEREUM.json +10 -0
  40. package/deployments/1-markets/STETH-26DEC2024.json +10 -0
  41. package/deployments/42161-core.json +1 -1
  42. package/deployments/42161-markets/STARGATE-USDT-27JUNE2024-ARBITRUM.json +10 -0
  43. package/package.json +1 -1
  44. package/typechain-types/IChainlinkAggregator.ts +246 -0
  45. package/typechain-types/IPLiquidityMigrator.ts +565 -0
  46. package/typechain-types/PendleRouterHelper.ts +647 -0
  47. package/typechain-types/PtFraxUsdcOracle.ts +176 -0
  48. package/typechain-types/PtStETHOracle.ts +163 -0
  49. package/typechain-types/factories/IChainlinkAggregator__factory.ts +170 -0
  50. package/typechain-types/factories/IPLiquidityMigrator__factory.ts +677 -0
  51. package/typechain-types/factories/PendleRouterHelper__factory.ts +841 -0
  52. package/typechain-types/factories/PendleSwapAggregator__factory.ts +1 -1
  53. package/typechain-types/factories/PtFraxUsdcOracle__factory.ts +226 -0
  54. package/typechain-types/factories/PtStETHOracle__factory.ts +201 -0
  55. package/typechain-types/hardhat.d.ts +18 -0
  56. package/typechain-types/index.ts +4 -0
@@ -0,0 +1,841 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type {
7
+ PendleRouterHelper,
8
+ PendleRouterHelperInterface,
9
+ } from "../PendleRouterHelper";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "_ROUTER",
17
+ type: "address",
18
+ },
19
+ {
20
+ internalType: "address",
21
+ name: "_WETH",
22
+ type: "address",
23
+ },
24
+ ],
25
+ stateMutability: "nonpayable",
26
+ type: "constructor",
27
+ },
28
+ {
29
+ anonymous: false,
30
+ inputs: [
31
+ {
32
+ indexed: true,
33
+ internalType: "address",
34
+ name: "fromMarket",
35
+ type: "address",
36
+ },
37
+ {
38
+ indexed: true,
39
+ internalType: "address",
40
+ name: "toMarket",
41
+ type: "address",
42
+ },
43
+ {
44
+ indexed: true,
45
+ internalType: "address",
46
+ name: "user",
47
+ type: "address",
48
+ },
49
+ {
50
+ indexed: false,
51
+ internalType: "uint256",
52
+ name: "netLpToRemove",
53
+ type: "uint256",
54
+ },
55
+ {
56
+ indexed: false,
57
+ internalType: "uint256",
58
+ name: "netLpOut",
59
+ type: "uint256",
60
+ },
61
+ {
62
+ indexed: false,
63
+ internalType: "uint256",
64
+ name: "netYtOut",
65
+ type: "uint256",
66
+ },
67
+ ],
68
+ name: "MigrateDifferentSyKeepYt",
69
+ type: "event",
70
+ },
71
+ {
72
+ anonymous: false,
73
+ inputs: [
74
+ {
75
+ indexed: true,
76
+ internalType: "address",
77
+ name: "fromMarket",
78
+ type: "address",
79
+ },
80
+ {
81
+ indexed: true,
82
+ internalType: "address",
83
+ name: "toMarket",
84
+ type: "address",
85
+ },
86
+ {
87
+ indexed: true,
88
+ internalType: "address",
89
+ name: "user",
90
+ type: "address",
91
+ },
92
+ {
93
+ indexed: false,
94
+ internalType: "uint256",
95
+ name: "netLpToRemove",
96
+ type: "uint256",
97
+ },
98
+ {
99
+ indexed: false,
100
+ internalType: "uint256",
101
+ name: "netLpOut",
102
+ type: "uint256",
103
+ },
104
+ ],
105
+ name: "MigrateDifferentSyNormal",
106
+ type: "event",
107
+ },
108
+ {
109
+ anonymous: false,
110
+ inputs: [
111
+ {
112
+ indexed: true,
113
+ internalType: "address",
114
+ name: "fromMarket",
115
+ type: "address",
116
+ },
117
+ {
118
+ indexed: true,
119
+ internalType: "address",
120
+ name: "toMarket",
121
+ type: "address",
122
+ },
123
+ {
124
+ indexed: true,
125
+ internalType: "address",
126
+ name: "user",
127
+ type: "address",
128
+ },
129
+ {
130
+ indexed: false,
131
+ internalType: "uint256",
132
+ name: "netLpToRemove",
133
+ type: "uint256",
134
+ },
135
+ {
136
+ indexed: false,
137
+ internalType: "uint256",
138
+ name: "netLpOut",
139
+ type: "uint256",
140
+ },
141
+ {
142
+ indexed: false,
143
+ internalType: "uint256",
144
+ name: "netYtOut",
145
+ type: "uint256",
146
+ },
147
+ ],
148
+ name: "MigrateSameSyKeepYt",
149
+ type: "event",
150
+ },
151
+ {
152
+ anonymous: false,
153
+ inputs: [
154
+ {
155
+ indexed: true,
156
+ internalType: "address",
157
+ name: "fromMarket",
158
+ type: "address",
159
+ },
160
+ {
161
+ indexed: true,
162
+ internalType: "address",
163
+ name: "toMarket",
164
+ type: "address",
165
+ },
166
+ {
167
+ indexed: true,
168
+ internalType: "address",
169
+ name: "user",
170
+ type: "address",
171
+ },
172
+ {
173
+ indexed: false,
174
+ internalType: "uint256",
175
+ name: "netLpToRemove",
176
+ type: "uint256",
177
+ },
178
+ {
179
+ indexed: false,
180
+ internalType: "uint256",
181
+ name: "netLpOut",
182
+ type: "uint256",
183
+ },
184
+ ],
185
+ name: "MigrateSameSyNormal",
186
+ type: "event",
187
+ },
188
+ {
189
+ inputs: [
190
+ {
191
+ internalType: "address",
192
+ name: "receiver",
193
+ type: "address",
194
+ },
195
+ {
196
+ internalType: "address",
197
+ name: "market",
198
+ type: "address",
199
+ },
200
+ {
201
+ internalType: "uint256",
202
+ name: "minLpOut",
203
+ type: "uint256",
204
+ },
205
+ {
206
+ internalType: "uint256",
207
+ name: "minYtOut",
208
+ type: "uint256",
209
+ },
210
+ {
211
+ components: [
212
+ {
213
+ internalType: "address",
214
+ name: "tokenIn",
215
+ type: "address",
216
+ },
217
+ {
218
+ internalType: "uint256",
219
+ name: "netTokenIn",
220
+ type: "uint256",
221
+ },
222
+ {
223
+ internalType: "address",
224
+ name: "tokenMintSy",
225
+ type: "address",
226
+ },
227
+ {
228
+ internalType: "address",
229
+ name: "bulk",
230
+ type: "address",
231
+ },
232
+ {
233
+ internalType: "address",
234
+ name: "pendleSwap",
235
+ type: "address",
236
+ },
237
+ {
238
+ components: [
239
+ {
240
+ internalType: "enum SwapType",
241
+ name: "swapType",
242
+ type: "uint8",
243
+ },
244
+ {
245
+ internalType: "address",
246
+ name: "extRouter",
247
+ type: "address",
248
+ },
249
+ {
250
+ internalType: "bytes",
251
+ name: "extCalldata",
252
+ type: "bytes",
253
+ },
254
+ {
255
+ internalType: "bool",
256
+ name: "needScale",
257
+ type: "bool",
258
+ },
259
+ ],
260
+ internalType: "struct SwapData",
261
+ name: "swapData",
262
+ type: "tuple",
263
+ },
264
+ ],
265
+ internalType: "struct TokenInput",
266
+ name: "input",
267
+ type: "tuple",
268
+ },
269
+ ],
270
+ name: "addLiquiditySingleTokenKeepYtWithEth",
271
+ outputs: [
272
+ {
273
+ internalType: "uint256",
274
+ name: "netLpOut",
275
+ type: "uint256",
276
+ },
277
+ {
278
+ internalType: "uint256",
279
+ name: "netYtOut",
280
+ type: "uint256",
281
+ },
282
+ ],
283
+ stateMutability: "payable",
284
+ type: "function",
285
+ },
286
+ {
287
+ inputs: [
288
+ {
289
+ components: [
290
+ {
291
+ internalType: "address",
292
+ name: "market",
293
+ type: "address",
294
+ },
295
+ {
296
+ internalType: "uint256",
297
+ name: "netLpToRemove",
298
+ type: "uint256",
299
+ },
300
+ {
301
+ internalType: "bool",
302
+ name: "doRedeemRewards",
303
+ type: "bool",
304
+ },
305
+ {
306
+ components: [
307
+ {
308
+ internalType: "address",
309
+ name: "tokenOut",
310
+ type: "address",
311
+ },
312
+ {
313
+ internalType: "uint256",
314
+ name: "minTokenOut",
315
+ type: "uint256",
316
+ },
317
+ {
318
+ internalType: "address",
319
+ name: "tokenRedeemSy",
320
+ type: "address",
321
+ },
322
+ {
323
+ internalType: "address",
324
+ name: "bulk",
325
+ type: "address",
326
+ },
327
+ {
328
+ internalType: "address",
329
+ name: "pendleSwap",
330
+ type: "address",
331
+ },
332
+ {
333
+ components: [
334
+ {
335
+ internalType: "enum SwapType",
336
+ name: "swapType",
337
+ type: "uint8",
338
+ },
339
+ {
340
+ internalType: "address",
341
+ name: "extRouter",
342
+ type: "address",
343
+ },
344
+ {
345
+ internalType: "bytes",
346
+ name: "extCalldata",
347
+ type: "bytes",
348
+ },
349
+ {
350
+ internalType: "bool",
351
+ name: "needScale",
352
+ type: "bool",
353
+ },
354
+ ],
355
+ internalType: "struct SwapData",
356
+ name: "swapData",
357
+ type: "tuple",
358
+ },
359
+ ],
360
+ internalType: "struct TokenOutput",
361
+ name: "output",
362
+ type: "tuple",
363
+ },
364
+ ],
365
+ internalType:
366
+ "struct IPLiquidityMigrator.RemoveLiquiditySingleTokenStruct",
367
+ name: "fromMarket",
368
+ type: "tuple",
369
+ },
370
+ {
371
+ components: [
372
+ {
373
+ internalType: "address",
374
+ name: "market",
375
+ type: "address",
376
+ },
377
+ {
378
+ internalType: "uint256",
379
+ name: "minLpOut",
380
+ type: "uint256",
381
+ },
382
+ {
383
+ internalType: "uint256",
384
+ name: "minYtOut",
385
+ type: "uint256",
386
+ },
387
+ {
388
+ internalType: "address",
389
+ name: "bulk",
390
+ type: "address",
391
+ },
392
+ ],
393
+ internalType:
394
+ "struct IPLiquidityMigrator.AddLiquiditySingleTokenKeepYtStruct",
395
+ name: "toMarket",
396
+ type: "tuple",
397
+ },
398
+ ],
399
+ name: "migrateDifferentSyKeepYt",
400
+ outputs: [
401
+ {
402
+ internalType: "uint256",
403
+ name: "netLpOut",
404
+ type: "uint256",
405
+ },
406
+ {
407
+ internalType: "uint256",
408
+ name: "netYtOut",
409
+ type: "uint256",
410
+ },
411
+ {
412
+ internalType: "uint256",
413
+ name: "netTokenZapIn",
414
+ type: "uint256",
415
+ },
416
+ {
417
+ internalType: "uint256",
418
+ name: "netSyFeeOfRemove",
419
+ type: "uint256",
420
+ },
421
+ ],
422
+ stateMutability: "nonpayable",
423
+ type: "function",
424
+ },
425
+ {
426
+ inputs: [
427
+ {
428
+ components: [
429
+ {
430
+ internalType: "address",
431
+ name: "market",
432
+ type: "address",
433
+ },
434
+ {
435
+ internalType: "uint256",
436
+ name: "netLpToRemove",
437
+ type: "uint256",
438
+ },
439
+ {
440
+ internalType: "bool",
441
+ name: "doRedeemRewards",
442
+ type: "bool",
443
+ },
444
+ {
445
+ components: [
446
+ {
447
+ internalType: "address",
448
+ name: "tokenOut",
449
+ type: "address",
450
+ },
451
+ {
452
+ internalType: "uint256",
453
+ name: "minTokenOut",
454
+ type: "uint256",
455
+ },
456
+ {
457
+ internalType: "address",
458
+ name: "tokenRedeemSy",
459
+ type: "address",
460
+ },
461
+ {
462
+ internalType: "address",
463
+ name: "bulk",
464
+ type: "address",
465
+ },
466
+ {
467
+ internalType: "address",
468
+ name: "pendleSwap",
469
+ type: "address",
470
+ },
471
+ {
472
+ components: [
473
+ {
474
+ internalType: "enum SwapType",
475
+ name: "swapType",
476
+ type: "uint8",
477
+ },
478
+ {
479
+ internalType: "address",
480
+ name: "extRouter",
481
+ type: "address",
482
+ },
483
+ {
484
+ internalType: "bytes",
485
+ name: "extCalldata",
486
+ type: "bytes",
487
+ },
488
+ {
489
+ internalType: "bool",
490
+ name: "needScale",
491
+ type: "bool",
492
+ },
493
+ ],
494
+ internalType: "struct SwapData",
495
+ name: "swapData",
496
+ type: "tuple",
497
+ },
498
+ ],
499
+ internalType: "struct TokenOutput",
500
+ name: "output",
501
+ type: "tuple",
502
+ },
503
+ ],
504
+ internalType:
505
+ "struct IPLiquidityMigrator.RemoveLiquiditySingleTokenStruct",
506
+ name: "fromMarket",
507
+ type: "tuple",
508
+ },
509
+ {
510
+ components: [
511
+ {
512
+ internalType: "address",
513
+ name: "market",
514
+ type: "address",
515
+ },
516
+ {
517
+ internalType: "uint256",
518
+ name: "minLpOut",
519
+ type: "uint256",
520
+ },
521
+ {
522
+ internalType: "uint256",
523
+ name: "guessNetTokenIn",
524
+ type: "uint256",
525
+ },
526
+ {
527
+ components: [
528
+ {
529
+ internalType: "uint256",
530
+ name: "guessMin",
531
+ type: "uint256",
532
+ },
533
+ {
534
+ internalType: "uint256",
535
+ name: "guessMax",
536
+ type: "uint256",
537
+ },
538
+ {
539
+ internalType: "uint256",
540
+ name: "guessOffchain",
541
+ type: "uint256",
542
+ },
543
+ {
544
+ internalType: "uint256",
545
+ name: "maxIteration",
546
+ type: "uint256",
547
+ },
548
+ {
549
+ internalType: "uint256",
550
+ name: "eps",
551
+ type: "uint256",
552
+ },
553
+ ],
554
+ internalType: "struct ApproxParams",
555
+ name: "guessPtReceivedFromSy",
556
+ type: "tuple",
557
+ },
558
+ {
559
+ internalType: "address",
560
+ name: "bulk",
561
+ type: "address",
562
+ },
563
+ ],
564
+ internalType:
565
+ "struct IPLiquidityMigrator.AddLiquiditySingleTokenStruct",
566
+ name: "toMarket",
567
+ type: "tuple",
568
+ },
569
+ ],
570
+ name: "migrateDifferentSyNormal",
571
+ outputs: [
572
+ {
573
+ internalType: "uint256",
574
+ name: "netLpOut",
575
+ type: "uint256",
576
+ },
577
+ {
578
+ internalType: "uint256",
579
+ name: "netTokenZapIn",
580
+ type: "uint256",
581
+ },
582
+ {
583
+ internalType: "uint256",
584
+ name: "netSyFeeOfRemove",
585
+ type: "uint256",
586
+ },
587
+ {
588
+ internalType: "uint256",
589
+ name: "netSyFeeOfAdd",
590
+ type: "uint256",
591
+ },
592
+ ],
593
+ stateMutability: "nonpayable",
594
+ type: "function",
595
+ },
596
+ {
597
+ inputs: [
598
+ {
599
+ components: [
600
+ {
601
+ internalType: "address",
602
+ name: "market",
603
+ type: "address",
604
+ },
605
+ {
606
+ internalType: "uint256",
607
+ name: "netLpToRemove",
608
+ type: "uint256",
609
+ },
610
+ {
611
+ internalType: "bool",
612
+ name: "doRedeemRewards",
613
+ type: "bool",
614
+ },
615
+ ],
616
+ internalType:
617
+ "struct IPLiquidityMigrator.RemoveLiquiditySingleSyStruct",
618
+ name: "fromMarket",
619
+ type: "tuple",
620
+ },
621
+ {
622
+ components: [
623
+ {
624
+ internalType: "address",
625
+ name: "market",
626
+ type: "address",
627
+ },
628
+ {
629
+ internalType: "uint256",
630
+ name: "minLpOut",
631
+ type: "uint256",
632
+ },
633
+ {
634
+ internalType: "uint256",
635
+ name: "minYtOut",
636
+ type: "uint256",
637
+ },
638
+ ],
639
+ internalType:
640
+ "struct IPLiquidityMigrator.AddLiquiditySingleSyKeepYtStruct",
641
+ name: "toMarket",
642
+ type: "tuple",
643
+ },
644
+ ],
645
+ name: "migrateSameSyKeepYt",
646
+ outputs: [
647
+ {
648
+ internalType: "uint256",
649
+ name: "netLpOut",
650
+ type: "uint256",
651
+ },
652
+ {
653
+ internalType: "uint256",
654
+ name: "netYtOut",
655
+ type: "uint256",
656
+ },
657
+ {
658
+ internalType: "uint256",
659
+ name: "netSyMigrated",
660
+ type: "uint256",
661
+ },
662
+ {
663
+ internalType: "uint256",
664
+ name: "netSyFeeOfRemove",
665
+ type: "uint256",
666
+ },
667
+ ],
668
+ stateMutability: "nonpayable",
669
+ type: "function",
670
+ },
671
+ {
672
+ inputs: [
673
+ {
674
+ components: [
675
+ {
676
+ internalType: "address",
677
+ name: "market",
678
+ type: "address",
679
+ },
680
+ {
681
+ internalType: "uint256",
682
+ name: "netLpToRemove",
683
+ type: "uint256",
684
+ },
685
+ {
686
+ internalType: "bool",
687
+ name: "doRedeemRewards",
688
+ type: "bool",
689
+ },
690
+ ],
691
+ internalType:
692
+ "struct IPLiquidityMigrator.RemoveLiquiditySingleSyStruct",
693
+ name: "fromMarket",
694
+ type: "tuple",
695
+ },
696
+ {
697
+ components: [
698
+ {
699
+ internalType: "address",
700
+ name: "market",
701
+ type: "address",
702
+ },
703
+ {
704
+ internalType: "uint256",
705
+ name: "minLpOut",
706
+ type: "uint256",
707
+ },
708
+ {
709
+ internalType: "uint256",
710
+ name: "guessNetSyIn",
711
+ type: "uint256",
712
+ },
713
+ {
714
+ components: [
715
+ {
716
+ internalType: "uint256",
717
+ name: "guessMin",
718
+ type: "uint256",
719
+ },
720
+ {
721
+ internalType: "uint256",
722
+ name: "guessMax",
723
+ type: "uint256",
724
+ },
725
+ {
726
+ internalType: "uint256",
727
+ name: "guessOffchain",
728
+ type: "uint256",
729
+ },
730
+ {
731
+ internalType: "uint256",
732
+ name: "maxIteration",
733
+ type: "uint256",
734
+ },
735
+ {
736
+ internalType: "uint256",
737
+ name: "eps",
738
+ type: "uint256",
739
+ },
740
+ ],
741
+ internalType: "struct ApproxParams",
742
+ name: "guessPtReceivedFromSy",
743
+ type: "tuple",
744
+ },
745
+ ],
746
+ internalType: "struct IPLiquidityMigrator.AddLiquiditySingleSyStruct",
747
+ name: "toMarket",
748
+ type: "tuple",
749
+ },
750
+ ],
751
+ name: "migrateSameSyNormal",
752
+ outputs: [
753
+ {
754
+ internalType: "uint256",
755
+ name: "netLpOut",
756
+ type: "uint256",
757
+ },
758
+ {
759
+ internalType: "uint256",
760
+ name: "netSyMigrated",
761
+ type: "uint256",
762
+ },
763
+ {
764
+ internalType: "uint256",
765
+ name: "netSyFeeOfRemove",
766
+ type: "uint256",
767
+ },
768
+ {
769
+ internalType: "uint256",
770
+ name: "netSyFeeOfAdd",
771
+ type: "uint256",
772
+ },
773
+ ],
774
+ stateMutability: "nonpayable",
775
+ type: "function",
776
+ },
777
+ {
778
+ stateMutability: "payable",
779
+ type: "receive",
780
+ },
781
+ ];
782
+
783
+ const _bytecode =
784
+ "0x60c06040523480156200001157600080fd5b5060405162001cd738038062001cd7833981016040819052620000349162000069565b6001600160a01b039182166080521660a052620000a1565b80516001600160a01b03811681146200006457600080fd5b919050565b600080604083850312156200007d57600080fd5b62000088836200004c565b915062000098602084016200004c565b90509250929050565b60805160a051611ba762000130600039600081816102f9015281816103230152818161088101526108a90152600081816103440152818161037f015281816104e601528181610514015281816106e3015281816107110152818161080a015281816108d401528181610902015281816109f801528181610a2601528181610c370152610c650152611ba76000f3fe60806040526004361061004e5760003560e01c80630ad501961461005a57806314b85a4b1461009f5780632ef6d1c9146100bf578063af0b5331146100df578063cbcc90401461010757600080fd5b3661005557005b600080fd5b34801561006657600080fd5b5061007a6100753660046112b7565b610127565b6040805194855260208501939093529183015260608201526080015b60405180910390f35b3480156100ab57600080fd5b5061007a6100ba3660046112fe565b6101bf565b3480156100cb57600080fd5b5061007a6100da366004611343565b610261565b6100f26100ed36600461139d565b6102ef565b60408051928352602083019190915201610096565b34801561011357600080fd5b5061007a610122366004611419565b61040c565b600080600080610136866104b5565b90925090506101458583610667565b9094509250336101586020870187611474565b6001600160a01b031661016e6020890189611474565b6001600160a01b03167faf6dca616e79396f39fcb576a69ef8d3fb0c4caaf645e5d929ef3d6b08f65022896020013588886040516101ae93929190611491565b60405180910390a492959194509250565b6000806000806101ce866107dd565b90925090506101f8856101e460608901896114a7565b6101f2906020810190611474565b8461086e565b90945092503361020b6020870187611474565b6001600160a01b03166102216020890189611474565b6001600160a01b03167ff565eb0e0c861782c25cf31e93e390da6a56998e84c1548acbc928d29d7ee24a896020013588886040516101ae93929190611491565b600080600080610270866104b5565b909350915061027f858461097c565b9094509050336102926020870187611474565b6001600160a01b03166102a86020890189611474565b6001600160a01b03167f6a25562572697a334d713ccc48674406a31caf524663da2d775175665a55d9688960200135886040516101ae929190918252602082015260400190565b60008061031e60007f000000000000000000000000000000000000000000000000000000000000000034610a91565b6103687f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610b58565b604051636fde40a760e11b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063dfbc814e906103bc908a908a908a908a908a90600401611674565b60408051808303816000875af11580156103da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103fe91906116ae565b909890975095505050505050565b60008060008061041b866107dd565b90935091506104458561043160608901896114a7565b61043f906020810190611474565b85610c1c565b9094509050336104586020870187611474565b6001600160a01b031661046e6020890189611474565b6001600160a01b03167fbf87379fee2f51a4dad77f8f8a1063ab5a619e4958dd9d362f5e79592acd4dd88960200135886040516101ae929190918252602082015260400190565b6000806104d46104c86020850185611474565b33308660200135610d38565b61050a6104e46020850185611474565b7f0000000000000000000000000000000000000000000000000000000000000000610b58565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663178d29d3306105476020870187611474565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260208601356044820152600060648201526084015b60408051808303816000875af11580156105a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c991906116ae565b90925090506105de60608401604085016116d2565b15610662576105f06020840184611474565b604051639262187b60e01b81523360048201526001600160a01b039190911690639262187b906024016000604051808303816000875af1158015610638573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106609190810190611735565b505b915091565b600080806106786020860186611474565b6001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156106b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d991906117da565b50509050610707817f0000000000000000000000000000000000000000000000000000000000000000610b58565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663844384aa336107446020890189611474565b604080516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820188905260208901356064830152880135608482015260a4015b60408051808303816000875af11580156107ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d191906116ae565b90969095509350505050565b6000806107f06104c86020850185611474565b6108006104e46020850185611474565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663690807ad3061083d6020870187611474565b602087013561084f60608901896114a7565b6040518563ffffffff1660e01b81526004016105879493929190611827565b6000806001600160a01b0384166108ce577f000000000000000000000000000000000000000000000000000000000000000093506108ce60007f000000000000000000000000000000000000000000000000000000000000000085610a91565b6108f8847f0000000000000000000000000000000000000000000000000000000000000000610b58565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663dfbc814e336109356020890189611474565b8860200135896040013561095c8a8a8d60600160208101906109579190611474565b610d59565b6040518663ffffffff1660e01b815260040161078f95949392919061194e565b6000808061098d6020860186611474565b6001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156109ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ee91906117da565b50509050610a1c817f0000000000000000000000000000000000000000000000000000000000000000610b58565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663409c7a8933610a596020890189611474565b878960200135610a718b6060018c604001358c610dd6565b6040518663ffffffff1660e01b815260040161078f9594939291906119b8565b6001600160a01b038316610af857816001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610ada57600080fd5b505af1158015610aee573d6000803e3d6000fd5b5050505050505050565b604051632e1a7d4d60e01b8152600481018290526001600160a01b03841690632e1a7d4d90602401600060405180830381600087803b158015610b3a57600080fd5b505af1158015610b4e573d6000803e3d6000fd5b505050505b505050565b6001600160a01b038216610b6a575050565b610b7c60026001600160601b03611a02565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526001600160601b03929092169184169063dd62ed3e90604401602060405180830381865afa158015610bd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf99190611a28565b1015610c1857610c0b82826000610eff565b610c188282600019610eff565b5050565b600080806001600160a01b038516610c315750825b610c5b857f0000000000000000000000000000000000000000000000000000000000000000610b58565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663015491d18233610c9960208b018b611474565b8a60200135610cb08c6060018d604001358c610dd6565b610cc98c8c8f6101000160208101906109579190611474565b6040518763ffffffff1660e01b8152600401610ce9959493929190611a41565b604080518083038185885af1158015610d06573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610d2b91906116ae565b9097909650945050505050565b8015610d5357610d536001600160a01b038516848484611009565b50505050565b610dac6040805160c081018252600080825260208083018290528284018290526060808401839052608080850184905285519081018652838152918201839052938101849052928301529060a082015290565b6001600160a01b0380851660408301819052825260208201849052821660608201525b9392505050565b610e086040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b8360400135600003610e7f578335158015610e2857506000198460200135145b610e695760405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420677565737360981b60448201526064015b60405180910390fd5b610e7836859003850185611a81565b9050610dcf565b6040805160a081019091528084610e97858835611af0565b610ea19190611b1b565b815260200184848760200135610eb79190611af0565b610ec19190611b1b565b815260200184610ed5856040890135611af0565b610edf9190611b1b565b815260200185606001358152602001856080013581525090509392505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b1790529151600092839290871691610f5b9190611b2f565b6000604051808303816000865af19150503d8060008114610f98576040519150601f19603f3d011682016040523d82523d6000602084013e610f9d565b606091505b5091509150818015610fc7575080511580610fc7575080806020019051810190610fc79190611b41565b6110025760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b6044820152606401610e60565b5050505050565b604080516001600160a01b038581166024830152848116604483015260648083018590528351808403909101815260849092018352602080830180516001600160e01b03166323b872dd60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610d53928792916000916110a191851690849061111e565b805190915015610b5357808060200190518101906110bf9190611b41565b610b535760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610e60565b606061112d8484600085611135565b949350505050565b6060824710156111965760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610e60565b6001600160a01b0385163b6111ed5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e60565b600080866001600160a01b031685876040516112099190611b2f565b60006040518083038185875af1925050503d8060008114611246576040519150601f19603f3d011682016040523d82523d6000602084013e61124b565b606091505b509150915061125b828286611266565b979650505050505050565b60608315611275575081610dcf565b8251156112855782518084602001fd5b8160405162461bcd60e51b8152600401610e609190611b5e565b6000606082840312156112b157600080fd5b50919050565b60008060c083850312156112ca57600080fd5b6112d4848461129f565b91506112e3846060850161129f565b90509250929050565b6000608082840312156112b157600080fd5b60008060a0838503121561131157600080fd5b82356001600160401b0381111561132757600080fd5b611333858286016112ec565b9250506112e384602085016112ec565b60008082840361016081121561135857600080fd5b611362858561129f565b9250610100605f198201121561137757600080fd5b506060830190509250929050565b6001600160a01b038116811461139a57600080fd5b50565b600080600080600060a086880312156113b557600080fd5b85356113c081611385565b945060208601356113d081611385565b9350604086013592506060860135915060808601356001600160401b038111156113f957600080fd5b860160c0818903121561140b57600080fd5b809150509295509295909350565b60008082840361014081121561142e57600080fd5b83356001600160401b0381111561144457600080fd5b611450868287016112ec565b935050610120601f198201121561146657600080fd5b506020830190509250929050565b60006020828403121561148657600080fd5b8135610dcf81611385565b9283526020830191909152604082015260600190565b6000823560be198336030181126114bd57600080fd5b9190910192915050565b600481106114e557634e487b7160e01b600052602160045260246000fd5b9052565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b801515811461139a57600080fd5b803561152b81611512565b919050565b600081356004811061154157600080fd5b61154b84826114c7565b50602082013561155a81611385565b6001600160a01b03166020840152604082013536839003601e1901811261158057600080fd5b82016020810190356001600160401b0381111561159c57600080fd5b8036038213156115ab57600080fd5b608060408601526115c06080860182846114e9565b9150506115cf60608401611520565b8015156060860152509392505050565b600081356115ec81611385565b6001600160a01b0390811684526020838101359085015260408301359061161282611385565b908116604085015260608301359061162982611385565b908116606085015260808301359061164082611385565b16608084015260a082013536839003607e1901811261165e57600080fd5b60c060a085015261112d60c08501848301611530565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061125b908301846115df565b600080604083850312156116c157600080fd5b505080516020909101519092909150565b6000602082840312156116e457600080fd5b8135610dcf81611512565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561172d5761172d6116ef565b604052919050565b6000602080838503121561174857600080fd5b82516001600160401b038082111561175f57600080fd5b818501915085601f83011261177357600080fd5b815181811115611785576117856116ef565b8060051b9150611796848301611705565b81815291830184019184810190888411156117b057600080fd5b938501935b838510156117ce578451825293850193908501906117b5565b98975050505050505050565b6000806000606084860312156117ef57600080fd5b83516117fa81611385565b602085015190935061180b81611385565b604085015190925061181c81611385565b809150509250925092565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061185a908301846115df565b9695505050505050565b60005b8381101561187f578181015183820152602001611867565b50506000910152565b600081518084526118a0816020860160208601611864565b601f01601f19169290920160200192915050565b600060018060a01b038083511684526020830151602085015280604084015116604085015280606084015116606085015280608084015116608085015260a083015160c060a086015261190b60c0860182516114c7565b8160208201511660e0860152604081015191506080610100860152611934610140860183611888565b915060608101511515610120860152508091505092915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061125b908301846118b4565b80518252602081015160208301526040810151604083015260608101516060830152608081015160808301525050565b6001600160a01b038681168252851660208201526040810184905260608101839052610120810161185a6080830184611988565b634e487b7160e01b600052601260045260246000fd5b60006001600160601b0383811680611a1c57611a1c6119ec565b92169190910492915050565b600060208284031215611a3a57600080fd5b5051919050565b6001600160a01b03868116825285166020820152604081018490526000610120611a6e6060840186611988565b806101008401526117ce818401856118b4565b600060a08284031215611a9357600080fd5b60405160a081016001600160401b0381118282101715611ab557611ab56116ef565b806040525082358152602083013560208201526040830135604082015260608301356060820152608083013560808201528091505092915050565b8082028115828204841417611b1557634e487b7160e01b600052601160045260246000fd5b92915050565b600082611b2a57611b2a6119ec565b500490565b600082516114bd818460208701611864565b600060208284031215611b5357600080fd5b8151610dcf81611512565b602081526000610dcf602083018461188856fea26469706673582212202419139220dc2672cfe897ecf1053edda5b3dd5cf9b0f98675391def047b126864736f6c63430008110033";
785
+
786
+ type PendleRouterHelperConstructorParams =
787
+ | [signer?: Signer]
788
+ | ConstructorParameters<typeof ContractFactory>;
789
+
790
+ const isSuperArgs = (
791
+ xs: PendleRouterHelperConstructorParams
792
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
793
+
794
+ export class PendleRouterHelper__factory extends ContractFactory {
795
+ constructor(...args: PendleRouterHelperConstructorParams) {
796
+ if (isSuperArgs(args)) {
797
+ super(...args);
798
+ } else {
799
+ super(_abi, _bytecode, args[0]);
800
+ }
801
+ this.contractName = "PendleRouterHelper";
802
+ }
803
+
804
+ deploy(
805
+ _ROUTER: string,
806
+ _WETH: string,
807
+ overrides?: Overrides & { from?: string | Promise<string> }
808
+ ): Promise<PendleRouterHelper> {
809
+ return super.deploy(
810
+ _ROUTER,
811
+ _WETH,
812
+ overrides || {}
813
+ ) as Promise<PendleRouterHelper>;
814
+ }
815
+ getDeployTransaction(
816
+ _ROUTER: string,
817
+ _WETH: string,
818
+ overrides?: Overrides & { from?: string | Promise<string> }
819
+ ): TransactionRequest {
820
+ return super.getDeployTransaction(_ROUTER, _WETH, overrides || {});
821
+ }
822
+ attach(address: string): PendleRouterHelper {
823
+ return super.attach(address) as PendleRouterHelper;
824
+ }
825
+ connect(signer: Signer): PendleRouterHelper__factory {
826
+ return super.connect(signer) as PendleRouterHelper__factory;
827
+ }
828
+ static readonly contractName: "PendleRouterHelper";
829
+ public readonly contractName: "PendleRouterHelper";
830
+ static readonly bytecode = _bytecode;
831
+ static readonly abi = _abi;
832
+ static createInterface(): PendleRouterHelperInterface {
833
+ return new utils.Interface(_abi) as PendleRouterHelperInterface;
834
+ }
835
+ static connect(
836
+ address: string,
837
+ signerOrProvider: Signer | Provider
838
+ ): PendleRouterHelper {
839
+ return new Contract(address, _abi, signerOrProvider) as PendleRouterHelper;
840
+ }
841
+ }