@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
@@ -24,7 +24,7 @@ const _abi = [
24
24
  },
25
25
  {
26
26
  internalType: "uint256",
27
- name: "otDesired",
27
+ name: "ptDesired",
28
28
  type: "uint256",
29
29
  },
30
30
  ],
@@ -42,133 +42,13 @@ const _abi = [
42
42
  },
43
43
  {
44
44
  internalType: "uint256",
45
- name: "otUsed",
45
+ name: "ptUsed",
46
46
  type: "uint256",
47
47
  },
48
48
  ],
49
49
  stateMutability: "nonpayable",
50
50
  type: "function",
51
51
  },
52
- {
53
- inputs: [
54
- {
55
- internalType: "address",
56
- name: "market",
57
- type: "address",
58
- },
59
- ],
60
- name: "getMarketInfo",
61
- outputs: [
62
- {
63
- internalType: "address",
64
- name: "ot",
65
- type: "address",
66
- },
67
- {
68
- internalType: "address",
69
- name: "scy",
70
- type: "address",
71
- },
72
- {
73
- components: [
74
- {
75
- internalType: "int256",
76
- name: "totalOt",
77
- type: "int256",
78
- },
79
- {
80
- internalType: "int256",
81
- name: "totalScy",
82
- type: "int256",
83
- },
84
- {
85
- internalType: "int256",
86
- name: "totalLp",
87
- type: "int256",
88
- },
89
- {
90
- internalType: "uint256",
91
- name: "oracleRate",
92
- type: "uint256",
93
- },
94
- {
95
- internalType: "address",
96
- name: "treasury",
97
- type: "address",
98
- },
99
- {
100
- internalType: "int256",
101
- name: "scalarRoot",
102
- type: "int256",
103
- },
104
- {
105
- internalType: "uint256",
106
- name: "feeRateRoot",
107
- type: "uint256",
108
- },
109
- {
110
- internalType: "uint256",
111
- name: "rateOracleTimeWindow",
112
- type: "uint256",
113
- },
114
- {
115
- internalType: "uint256",
116
- name: "expiry",
117
- type: "uint256",
118
- },
119
- {
120
- internalType: "uint256",
121
- name: "reserveFeePercent",
122
- type: "uint256",
123
- },
124
- {
125
- internalType: "uint256",
126
- name: "lastImpliedRate",
127
- type: "uint256",
128
- },
129
- {
130
- internalType: "uint256",
131
- name: "lastTradeTime",
132
- type: "uint256",
133
- },
134
- ],
135
- internalType: "struct MarketState",
136
- name: "state",
137
- type: "tuple",
138
- },
139
- {
140
- internalType: "int256",
141
- name: "impliedYield",
142
- type: "int256",
143
- },
144
- {
145
- internalType: "uint256",
146
- name: "exchangeRate",
147
- type: "uint256",
148
- },
149
- ],
150
- stateMutability: "view",
151
- type: "function",
152
- },
153
- {
154
- inputs: [
155
- {
156
- internalType: "address",
157
- name: "market",
158
- type: "address",
159
- },
160
- ],
161
- name: "getOtImpliedYield",
162
- outputs: [
163
- {
164
- internalType: "int256",
165
- name: "",
166
- type: "int256",
167
- },
168
- ],
169
- stateMutability: "view",
170
- type: "function",
171
- },
172
52
  {
173
53
  inputs: [
174
54
  {
@@ -181,7 +61,7 @@ const _abi = [
181
61
  outputs: [
182
62
  {
183
63
  internalType: "bool",
184
- name: "isOT",
64
+ name: "isPT",
185
65
  type: "bool",
186
66
  },
187
67
  {
@@ -205,514 +85,18 @@ const _abi = [
205
85
  name: "market",
206
86
  type: "address",
207
87
  },
208
- {
209
- internalType: "address",
210
- name: "user",
211
- type: "address",
212
- },
213
- ],
214
- name: "getUserMarketInfo",
215
- outputs: [
216
- {
217
- components: [
218
- {
219
- internalType: "address",
220
- name: "market",
221
- type: "address",
222
- },
223
- {
224
- internalType: "uint256",
225
- name: "lpBalance",
226
- type: "uint256",
227
- },
228
- {
229
- components: [
230
- {
231
- internalType: "address",
232
- name: "token",
233
- type: "address",
234
- },
235
- {
236
- internalType: "uint256",
237
- name: "amount",
238
- type: "uint256",
239
- },
240
- ],
241
- internalType: "struct IPRouterStatic.TokenAmount",
242
- name: "otBalance",
243
- type: "tuple",
244
- },
245
- {
246
- components: [
247
- {
248
- internalType: "address",
249
- name: "token",
250
- type: "address",
251
- },
252
- {
253
- internalType: "uint256",
254
- name: "amount",
255
- type: "uint256",
256
- },
257
- ],
258
- internalType: "struct IPRouterStatic.TokenAmount",
259
- name: "scyBalance",
260
- type: "tuple",
261
- },
262
- {
263
- components: [
264
- {
265
- internalType: "address",
266
- name: "token",
267
- type: "address",
268
- },
269
- {
270
- internalType: "uint256",
271
- name: "amount",
272
- type: "uint256",
273
- },
274
- ],
275
- internalType: "struct IPRouterStatic.TokenAmount",
276
- name: "assetBalance",
277
- type: "tuple",
278
- },
279
- ],
280
- internalType: "struct IPRouterStatic.UserMarketInfo",
281
- name: "userMarketInfo",
282
- type: "tuple",
283
- },
284
- ],
285
- stateMutability: "view",
286
- type: "function",
287
- },
288
- {
289
- inputs: [
290
- {
291
- internalType: "address",
292
- name: "user",
293
- type: "address",
294
- },
295
- {
296
- internalType: "address[]",
297
- name: "markets",
298
- type: "address[]",
299
- },
300
- ],
301
- name: "getUserMarketPositions",
302
- outputs: [
303
- {
304
- components: [
305
- {
306
- internalType: "address",
307
- name: "market",
308
- type: "address",
309
- },
310
- {
311
- internalType: "uint256",
312
- name: "lpBalance",
313
- type: "uint256",
314
- },
315
- {
316
- components: [
317
- {
318
- internalType: "address",
319
- name: "token",
320
- type: "address",
321
- },
322
- {
323
- internalType: "uint256",
324
- name: "amount",
325
- type: "uint256",
326
- },
327
- ],
328
- internalType: "struct IPRouterStatic.TokenAmount",
329
- name: "otBalance",
330
- type: "tuple",
331
- },
332
- {
333
- components: [
334
- {
335
- internalType: "address",
336
- name: "token",
337
- type: "address",
338
- },
339
- {
340
- internalType: "uint256",
341
- name: "amount",
342
- type: "uint256",
343
- },
344
- ],
345
- internalType: "struct IPRouterStatic.TokenAmount",
346
- name: "scyBalance",
347
- type: "tuple",
348
- },
349
- {
350
- components: [
351
- {
352
- internalType: "address",
353
- name: "token",
354
- type: "address",
355
- },
356
- {
357
- internalType: "uint256",
358
- name: "amount",
359
- type: "uint256",
360
- },
361
- ],
362
- internalType: "struct IPRouterStatic.TokenAmount",
363
- name: "assetBalance",
364
- type: "tuple",
365
- },
366
- ],
367
- internalType: "struct IPRouterStatic.UserMarketInfo[]",
368
- name: "userMarketPositions",
369
- type: "tuple[]",
370
- },
371
- ],
372
- stateMutability: "view",
373
- type: "function",
374
- },
375
- {
376
- inputs: [
377
- {
378
- internalType: "address",
379
- name: "scy",
380
- type: "address",
381
- },
382
- {
383
- internalType: "address",
384
- name: "user",
385
- type: "address",
386
- },
387
88
  ],
388
- name: "getUserSCYInfo",
89
+ name: "getPtImpliedYield",
389
90
  outputs: [
390
91
  {
391
- internalType: "uint256",
392
- name: "balance",
393
- type: "uint256",
394
- },
395
- {
396
- components: [
397
- {
398
- internalType: "address",
399
- name: "token",
400
- type: "address",
401
- },
402
- {
403
- internalType: "uint256",
404
- name: "amount",
405
- type: "uint256",
406
- },
407
- ],
408
- internalType: "struct IPRouterStatic.TokenAmount[]",
409
- name: "rewards",
410
- type: "tuple[]",
411
- },
412
- ],
413
- stateMutability: "view",
414
- type: "function",
415
- },
416
- {
417
- inputs: [
418
- {
419
- internalType: "address",
420
- name: "yo",
421
- type: "address",
422
- },
423
- {
424
- internalType: "address",
425
- name: "user",
426
- type: "address",
427
- },
428
- ],
429
- name: "getUserYOInfo",
430
- outputs: [
431
- {
432
- components: [
433
- {
434
- internalType: "address",
435
- name: "yt",
436
- type: "address",
437
- },
438
- {
439
- internalType: "address",
440
- name: "ot",
441
- type: "address",
442
- },
443
- {
444
- internalType: "uint256",
445
- name: "ytBalance",
446
- type: "uint256",
447
- },
448
- {
449
- internalType: "uint256",
450
- name: "otBalance",
451
- type: "uint256",
452
- },
453
- {
454
- components: [
455
- {
456
- internalType: "address",
457
- name: "token",
458
- type: "address",
459
- },
460
- {
461
- internalType: "uint256",
462
- name: "amount",
463
- type: "uint256",
464
- },
465
- ],
466
- internalType: "struct IPRouterStatic.TokenAmount",
467
- name: "unclaimedInterest",
468
- type: "tuple",
469
- },
470
- {
471
- components: [
472
- {
473
- internalType: "address",
474
- name: "token",
475
- type: "address",
476
- },
477
- {
478
- internalType: "uint256",
479
- name: "amount",
480
- type: "uint256",
481
- },
482
- ],
483
- internalType: "struct IPRouterStatic.TokenAmount[]",
484
- name: "unclaimedRewards",
485
- type: "tuple[]",
486
- },
487
- ],
488
- internalType: "struct IPRouterStatic.UserYOInfo",
489
- name: "userYOInfo",
490
- type: "tuple",
491
- },
492
- ],
493
- stateMutability: "view",
494
- type: "function",
495
- },
496
- {
497
- inputs: [
498
- {
499
- internalType: "address",
500
- name: "user",
501
- type: "address",
502
- },
503
- {
504
- internalType: "address[]",
505
- name: "yos",
506
- type: "address[]",
507
- },
508
- ],
509
- name: "getUserYOPositionsByYOs",
510
- outputs: [
511
- {
512
- components: [
513
- {
514
- internalType: "address",
515
- name: "yt",
516
- type: "address",
517
- },
518
- {
519
- internalType: "address",
520
- name: "ot",
521
- type: "address",
522
- },
523
- {
524
- internalType: "uint256",
525
- name: "ytBalance",
526
- type: "uint256",
527
- },
528
- {
529
- internalType: "uint256",
530
- name: "otBalance",
531
- type: "uint256",
532
- },
533
- {
534
- components: [
535
- {
536
- internalType: "address",
537
- name: "token",
538
- type: "address",
539
- },
540
- {
541
- internalType: "uint256",
542
- name: "amount",
543
- type: "uint256",
544
- },
545
- ],
546
- internalType: "struct IPRouterStatic.TokenAmount",
547
- name: "unclaimedInterest",
548
- type: "tuple",
549
- },
550
- {
551
- components: [
552
- {
553
- internalType: "address",
554
- name: "token",
555
- type: "address",
556
- },
557
- {
558
- internalType: "uint256",
559
- name: "amount",
560
- type: "uint256",
561
- },
562
- ],
563
- internalType: "struct IPRouterStatic.TokenAmount[]",
564
- name: "unclaimedRewards",
565
- type: "tuple[]",
566
- },
567
- ],
568
- internalType: "struct IPRouterStatic.UserYOInfo[]",
569
- name: "userYOPositions",
570
- type: "tuple[]",
571
- },
572
- ],
573
- stateMutability: "view",
574
- type: "function",
575
- },
576
- {
577
- inputs: [
578
- {
579
- internalType: "address",
580
- name: "yo",
581
- type: "address",
582
- },
583
- ],
584
- name: "getYO",
585
- outputs: [
586
- {
587
- internalType: "address",
588
- name: "yt",
589
- type: "address",
590
- },
591
- {
592
- internalType: "address",
593
- name: "ot",
594
- type: "address",
92
+ internalType: "int256",
93
+ name: "",
94
+ type: "int256",
595
95
  },
596
96
  ],
597
97
  stateMutability: "view",
598
98
  type: "function",
599
99
  },
600
- {
601
- inputs: [
602
- {
603
- internalType: "address",
604
- name: "yo",
605
- type: "address",
606
- },
607
- ],
608
- name: "getYOInfo",
609
- outputs: [
610
- {
611
- internalType: "uint256",
612
- name: "exchangeRate",
613
- type: "uint256",
614
- },
615
- {
616
- internalType: "uint256",
617
- name: "totalSupply",
618
- type: "uint256",
619
- },
620
- {
621
- components: [
622
- {
623
- internalType: "address",
624
- name: "rewardToken",
625
- type: "address",
626
- },
627
- {
628
- internalType: "uint256",
629
- name: "index",
630
- type: "uint256",
631
- },
632
- ],
633
- internalType: "struct IPRouterStatic.RewardIndex[]",
634
- name: "rewardIndexes",
635
- type: "tuple[]",
636
- },
637
- ],
638
- stateMutability: "nonpayable",
639
- type: "function",
640
- },
641
- {
642
- inputs: [
643
- {
644
- components: [
645
- {
646
- internalType: "address",
647
- name: "yt",
648
- type: "address",
649
- },
650
- {
651
- internalType: "address",
652
- name: "ot",
653
- type: "address",
654
- },
655
- {
656
- internalType: "uint256",
657
- name: "ytBalance",
658
- type: "uint256",
659
- },
660
- {
661
- internalType: "uint256",
662
- name: "otBalance",
663
- type: "uint256",
664
- },
665
- {
666
- components: [
667
- {
668
- internalType: "address",
669
- name: "token",
670
- type: "address",
671
- },
672
- {
673
- internalType: "uint256",
674
- name: "amount",
675
- type: "uint256",
676
- },
677
- ],
678
- internalType: "struct IPRouterStatic.TokenAmount",
679
- name: "unclaimedInterest",
680
- type: "tuple",
681
- },
682
- {
683
- components: [
684
- {
685
- internalType: "address",
686
- name: "token",
687
- type: "address",
688
- },
689
- {
690
- internalType: "uint256",
691
- name: "amount",
692
- type: "uint256",
693
- },
694
- ],
695
- internalType: "struct IPRouterStatic.TokenAmount[]",
696
- name: "unclaimedRewards",
697
- type: "tuple[]",
698
- },
699
- ],
700
- internalType: "struct IPRouterStatic.UserYOInfo",
701
- name: "userYOInfo",
702
- type: "tuple",
703
- },
704
- ],
705
- name: "hasYOPosition",
706
- outputs: [
707
- {
708
- internalType: "bool",
709
- name: "hasPosition",
710
- type: "bool",
711
- },
712
- ],
713
- stateMutability: "pure",
714
- type: "function",
715
- },
716
100
  {
717
101
  inputs: [
718
102
  {
@@ -735,7 +119,7 @@ const _abi = [
735
119
  },
736
120
  {
737
121
  internalType: "uint256",
738
- name: "netOtOut",
122
+ name: "netPtOut",
739
123
  type: "uint256",
740
124
  },
741
125
  ],
@@ -770,11 +154,11 @@ const _abi = [
770
154
  },
771
155
  {
772
156
  internalType: "uint256",
773
- name: "exactOtIn",
157
+ name: "exactPtIn",
774
158
  type: "uint256",
775
159
  },
776
160
  ],
777
- name: "swapOtForScyStatic",
161
+ name: "swapPtForScyStatic",
778
162
  outputs: [
779
163
  {
780
164
  internalType: "uint256",
@@ -799,11 +183,11 @@ const _abi = [
799
183
  },
800
184
  {
801
185
  internalType: "uint256",
802
- name: "exactOtOut",
186
+ name: "exactPtOut",
803
187
  type: "uint256",
804
188
  },
805
189
  ],
806
- name: "swapScyForOtStatic",
190
+ name: "swapScyForPtStatic",
807
191
  outputs: [
808
192
  {
809
193
  internalType: "uint256",