@pendle/core-v2 0.6.0 → 0.6.3
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/core/RouterStatic.sol +142 -1
- package/contracts/interfaces/IPRouterStatic.sol +75 -0
- package/package.json +1 -1
- package/typechain-types/IPRouterStatic.ts +480 -0
- package/typechain-types/RouterStatic.ts +484 -4
- package/typechain-types/factories/IPRouterStatic__factory.ts +616 -0
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/RouterStatic__factory.ts +619 -3
- package/typechain-types/ActionSCYAndYOBase.ts +0 -223
- package/typechain-types/PendleRouterRedeemUpg.ts +0 -125
- package/typechain-types/factories/ActionSCYAndYOBase__factory.ts +0 -200
- package/typechain-types/factories/PendleRouterRedeemUpg__factory.ts +0 -112
|
@@ -49,6 +49,172 @@ const _abi = [
|
|
|
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: "pt",
|
|
65
|
+
type: "address",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
internalType: "address",
|
|
69
|
+
name: "scy",
|
|
70
|
+
type: "address",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
components: [
|
|
74
|
+
{
|
|
75
|
+
internalType: "int256",
|
|
76
|
+
name: "totalPt",
|
|
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: "lnFeeRateRoot",
|
|
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: "lastLnImpliedRate",
|
|
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: "py",
|
|
158
|
+
type: "address",
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
name: "getPY",
|
|
162
|
+
outputs: [
|
|
163
|
+
{
|
|
164
|
+
internalType: "address",
|
|
165
|
+
name: "yt",
|
|
166
|
+
type: "address",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
internalType: "address",
|
|
170
|
+
name: "pt",
|
|
171
|
+
type: "address",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
stateMutability: "view",
|
|
175
|
+
type: "function",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
inputs: [
|
|
179
|
+
{
|
|
180
|
+
internalType: "address",
|
|
181
|
+
name: "py",
|
|
182
|
+
type: "address",
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
name: "getPYInfo",
|
|
186
|
+
outputs: [
|
|
187
|
+
{
|
|
188
|
+
internalType: "uint256",
|
|
189
|
+
name: "exchangeRate",
|
|
190
|
+
type: "uint256",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
internalType: "uint256",
|
|
194
|
+
name: "totalSupply",
|
|
195
|
+
type: "uint256",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
components: [
|
|
199
|
+
{
|
|
200
|
+
internalType: "address",
|
|
201
|
+
name: "rewardToken",
|
|
202
|
+
type: "address",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
internalType: "uint256",
|
|
206
|
+
name: "index",
|
|
207
|
+
type: "uint256",
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
internalType: "struct IPRouterStatic.RewardIndex[]",
|
|
211
|
+
name: "rewardIndexes",
|
|
212
|
+
type: "tuple[]",
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
stateMutability: "nonpayable",
|
|
216
|
+
type: "function",
|
|
217
|
+
},
|
|
52
218
|
{
|
|
53
219
|
inputs: [
|
|
54
220
|
{
|
|
@@ -97,6 +263,456 @@ const _abi = [
|
|
|
97
263
|
stateMutability: "view",
|
|
98
264
|
type: "function",
|
|
99
265
|
},
|
|
266
|
+
{
|
|
267
|
+
inputs: [
|
|
268
|
+
{
|
|
269
|
+
internalType: "address",
|
|
270
|
+
name: "market",
|
|
271
|
+
type: "address",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
internalType: "address",
|
|
275
|
+
name: "user",
|
|
276
|
+
type: "address",
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
name: "getUserMarketInfo",
|
|
280
|
+
outputs: [
|
|
281
|
+
{
|
|
282
|
+
components: [
|
|
283
|
+
{
|
|
284
|
+
internalType: "address",
|
|
285
|
+
name: "market",
|
|
286
|
+
type: "address",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
internalType: "uint256",
|
|
290
|
+
name: "lpBalance",
|
|
291
|
+
type: "uint256",
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
components: [
|
|
295
|
+
{
|
|
296
|
+
internalType: "address",
|
|
297
|
+
name: "token",
|
|
298
|
+
type: "address",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
internalType: "uint256",
|
|
302
|
+
name: "amount",
|
|
303
|
+
type: "uint256",
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
307
|
+
name: "ptBalance",
|
|
308
|
+
type: "tuple",
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
components: [
|
|
312
|
+
{
|
|
313
|
+
internalType: "address",
|
|
314
|
+
name: "token",
|
|
315
|
+
type: "address",
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
internalType: "uint256",
|
|
319
|
+
name: "amount",
|
|
320
|
+
type: "uint256",
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
324
|
+
name: "scyBalance",
|
|
325
|
+
type: "tuple",
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
components: [
|
|
329
|
+
{
|
|
330
|
+
internalType: "address",
|
|
331
|
+
name: "token",
|
|
332
|
+
type: "address",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
internalType: "uint256",
|
|
336
|
+
name: "amount",
|
|
337
|
+
type: "uint256",
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
341
|
+
name: "assetBalance",
|
|
342
|
+
type: "tuple",
|
|
343
|
+
},
|
|
344
|
+
],
|
|
345
|
+
internalType: "struct IPRouterStatic.UserMarketInfo",
|
|
346
|
+
name: "userMarketInfo",
|
|
347
|
+
type: "tuple",
|
|
348
|
+
},
|
|
349
|
+
],
|
|
350
|
+
stateMutability: "view",
|
|
351
|
+
type: "function",
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
inputs: [
|
|
355
|
+
{
|
|
356
|
+
internalType: "address",
|
|
357
|
+
name: "user",
|
|
358
|
+
type: "address",
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
internalType: "address[]",
|
|
362
|
+
name: "markets",
|
|
363
|
+
type: "address[]",
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
|
+
name: "getUserMarketPositions",
|
|
367
|
+
outputs: [
|
|
368
|
+
{
|
|
369
|
+
components: [
|
|
370
|
+
{
|
|
371
|
+
internalType: "address",
|
|
372
|
+
name: "market",
|
|
373
|
+
type: "address",
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
internalType: "uint256",
|
|
377
|
+
name: "lpBalance",
|
|
378
|
+
type: "uint256",
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
components: [
|
|
382
|
+
{
|
|
383
|
+
internalType: "address",
|
|
384
|
+
name: "token",
|
|
385
|
+
type: "address",
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
internalType: "uint256",
|
|
389
|
+
name: "amount",
|
|
390
|
+
type: "uint256",
|
|
391
|
+
},
|
|
392
|
+
],
|
|
393
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
394
|
+
name: "ptBalance",
|
|
395
|
+
type: "tuple",
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
components: [
|
|
399
|
+
{
|
|
400
|
+
internalType: "address",
|
|
401
|
+
name: "token",
|
|
402
|
+
type: "address",
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
internalType: "uint256",
|
|
406
|
+
name: "amount",
|
|
407
|
+
type: "uint256",
|
|
408
|
+
},
|
|
409
|
+
],
|
|
410
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
411
|
+
name: "scyBalance",
|
|
412
|
+
type: "tuple",
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
components: [
|
|
416
|
+
{
|
|
417
|
+
internalType: "address",
|
|
418
|
+
name: "token",
|
|
419
|
+
type: "address",
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
internalType: "uint256",
|
|
423
|
+
name: "amount",
|
|
424
|
+
type: "uint256",
|
|
425
|
+
},
|
|
426
|
+
],
|
|
427
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
428
|
+
name: "assetBalance",
|
|
429
|
+
type: "tuple",
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
internalType: "struct IPRouterStatic.UserMarketInfo[]",
|
|
433
|
+
name: "userMarketPositions",
|
|
434
|
+
type: "tuple[]",
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
stateMutability: "view",
|
|
438
|
+
type: "function",
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
inputs: [
|
|
442
|
+
{
|
|
443
|
+
internalType: "address",
|
|
444
|
+
name: "py",
|
|
445
|
+
type: "address",
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
internalType: "address",
|
|
449
|
+
name: "user",
|
|
450
|
+
type: "address",
|
|
451
|
+
},
|
|
452
|
+
],
|
|
453
|
+
name: "getUserPYInfo",
|
|
454
|
+
outputs: [
|
|
455
|
+
{
|
|
456
|
+
components: [
|
|
457
|
+
{
|
|
458
|
+
internalType: "address",
|
|
459
|
+
name: "yt",
|
|
460
|
+
type: "address",
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
internalType: "address",
|
|
464
|
+
name: "pt",
|
|
465
|
+
type: "address",
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
internalType: "uint256",
|
|
469
|
+
name: "ytBalance",
|
|
470
|
+
type: "uint256",
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
internalType: "uint256",
|
|
474
|
+
name: "ptBalance",
|
|
475
|
+
type: "uint256",
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
components: [
|
|
479
|
+
{
|
|
480
|
+
internalType: "address",
|
|
481
|
+
name: "token",
|
|
482
|
+
type: "address",
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
internalType: "uint256",
|
|
486
|
+
name: "amount",
|
|
487
|
+
type: "uint256",
|
|
488
|
+
},
|
|
489
|
+
],
|
|
490
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
491
|
+
name: "unclaimedInterest",
|
|
492
|
+
type: "tuple",
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
components: [
|
|
496
|
+
{
|
|
497
|
+
internalType: "address",
|
|
498
|
+
name: "token",
|
|
499
|
+
type: "address",
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
internalType: "uint256",
|
|
503
|
+
name: "amount",
|
|
504
|
+
type: "uint256",
|
|
505
|
+
},
|
|
506
|
+
],
|
|
507
|
+
internalType: "struct IPRouterStatic.TokenAmount[]",
|
|
508
|
+
name: "unclaimedRewards",
|
|
509
|
+
type: "tuple[]",
|
|
510
|
+
},
|
|
511
|
+
],
|
|
512
|
+
internalType: "struct IPRouterStatic.UserPYInfo",
|
|
513
|
+
name: "userPYInfo",
|
|
514
|
+
type: "tuple",
|
|
515
|
+
},
|
|
516
|
+
],
|
|
517
|
+
stateMutability: "view",
|
|
518
|
+
type: "function",
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
inputs: [
|
|
522
|
+
{
|
|
523
|
+
internalType: "address",
|
|
524
|
+
name: "user",
|
|
525
|
+
type: "address",
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
internalType: "address[]",
|
|
529
|
+
name: "pys",
|
|
530
|
+
type: "address[]",
|
|
531
|
+
},
|
|
532
|
+
],
|
|
533
|
+
name: "getUserPYPositionsByPYs",
|
|
534
|
+
outputs: [
|
|
535
|
+
{
|
|
536
|
+
components: [
|
|
537
|
+
{
|
|
538
|
+
internalType: "address",
|
|
539
|
+
name: "yt",
|
|
540
|
+
type: "address",
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
internalType: "address",
|
|
544
|
+
name: "pt",
|
|
545
|
+
type: "address",
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
internalType: "uint256",
|
|
549
|
+
name: "ytBalance",
|
|
550
|
+
type: "uint256",
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
internalType: "uint256",
|
|
554
|
+
name: "ptBalance",
|
|
555
|
+
type: "uint256",
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
components: [
|
|
559
|
+
{
|
|
560
|
+
internalType: "address",
|
|
561
|
+
name: "token",
|
|
562
|
+
type: "address",
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
internalType: "uint256",
|
|
566
|
+
name: "amount",
|
|
567
|
+
type: "uint256",
|
|
568
|
+
},
|
|
569
|
+
],
|
|
570
|
+
internalType: "struct IPRouterStatic.TokenAmount",
|
|
571
|
+
name: "unclaimedInterest",
|
|
572
|
+
type: "tuple",
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
components: [
|
|
576
|
+
{
|
|
577
|
+
internalType: "address",
|
|
578
|
+
name: "token",
|
|
579
|
+
type: "address",
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
internalType: "uint256",
|
|
583
|
+
name: "amount",
|
|
584
|
+
type: "uint256",
|
|
585
|
+
},
|
|
586
|
+
],
|
|
587
|
+
internalType: "struct IPRouterStatic.TokenAmount[]",
|
|
588
|
+
name: "unclaimedRewards",
|
|
589
|
+
type: "tuple[]",
|
|
590
|
+
},
|
|
591
|
+
],
|
|
592
|
+
internalType: "struct IPRouterStatic.UserPYInfo[]",
|
|
593
|
+
name: "userPYPositions",
|
|
594
|
+
type: "tuple[]",
|
|
595
|
+
},
|
|
596
|
+
],
|
|
597
|
+
stateMutability: "view",
|
|
598
|
+
type: "function",
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
inputs: [
|
|
602
|
+
{
|
|
603
|
+
internalType: "address",
|
|
604
|
+
name: "scy",
|
|
605
|
+
type: "address",
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
internalType: "address",
|
|
609
|
+
name: "user",
|
|
610
|
+
type: "address",
|
|
611
|
+
},
|
|
612
|
+
],
|
|
613
|
+
name: "getUserSCYInfo",
|
|
614
|
+
outputs: [
|
|
615
|
+
{
|
|
616
|
+
internalType: "uint256",
|
|
617
|
+
name: "balance",
|
|
618
|
+
type: "uint256",
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
components: [
|
|
622
|
+
{
|
|
623
|
+
internalType: "address",
|
|
624
|
+
name: "token",
|
|
625
|
+
type: "address",
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
internalType: "uint256",
|
|
629
|
+
name: "amount",
|
|
630
|
+
type: "uint256",
|
|
631
|
+
},
|
|
632
|
+
],
|
|
633
|
+
internalType: "struct IPRouterStatic.TokenAmount[]",
|
|
634
|
+
name: "rewards",
|
|
635
|
+
type: "tuple[]",
|
|
636
|
+
},
|
|
637
|
+
],
|
|
638
|
+
stateMutability: "view",
|
|
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: "pt",
|
|
653
|
+
type: "address",
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
internalType: "uint256",
|
|
657
|
+
name: "ytBalance",
|
|
658
|
+
type: "uint256",
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
internalType: "uint256",
|
|
662
|
+
name: "ptBalance",
|
|
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.UserPYInfo",
|
|
701
|
+
name: "userPYInfo",
|
|
702
|
+
type: "tuple",
|
|
703
|
+
},
|
|
704
|
+
],
|
|
705
|
+
name: "hasPYPosition",
|
|
706
|
+
outputs: [
|
|
707
|
+
{
|
|
708
|
+
internalType: "bool",
|
|
709
|
+
name: "hasPosition",
|
|
710
|
+
type: "bool",
|
|
711
|
+
},
|
|
712
|
+
],
|
|
713
|
+
stateMutability: "pure",
|
|
714
|
+
type: "function",
|
|
715
|
+
},
|
|
100
716
|
{
|
|
101
717
|
inputs: [
|
|
102
718
|
{
|
|
@@ -228,7 +228,7 @@ const _abi = [
|
|
|
228
228
|
];
|
|
229
229
|
|
|
230
230
|
const _bytecode =
|
|
231
|
-
"0x610140604052306080523480156200001657600080fd5b506040516200141838038062001418833981016040819052620000399162000252565b806001600160a01b038116620000855760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064015b60405180910390fd5b6001600160a01b031660a052600054610100900460ff16620000ae5760005460ff1615620000b8565b620000b862000208565b6200011d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016200007c565b600054610100900460ff1615801562000140576000805461ffff19166101011790555b6001600160a01b038616158015906200016157506001600160a01b03851615155b80156200017657506001600160a01b03841615155b80156200018b57506001600160a01b03831615155b620001c85760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b60448201526064016200007c565b6001600160a01b0380871660c05285811660e052848116610100528316610120528015620001fc576000805461ff00191690555b505050505050620002c2565b600062000220306200022660201b620008471760201c565b15905090565b6001600160a01b03163b151590565b80516001600160a01b03811681146200024d57600080fd5b919050565b600080600080600060a086880312156200026b57600080fd5b620002768662000235565b9450620002866020870162000235565b9350620002966040870162000235565b9250620002a66060870162000235565b9150620002b66080870162000235565b90509295509295909350565b60805160a05160c05160e05161010051610120516110c8620003506000396000818161022601526106e20152600081816101be015261072201526000818160ae01526106a201526000818161018a01526105db0152600081816101f20152610b0b015260008181610265015281816102ae015281816103370152818161037701526103f301526110c86000f3fe6080604052600436106100855760003560e01c806320e21c001461009c5780633659cfe6146100ed5780634f1ef2861461010d57806352d1902d1461012057806376e1df48146101435780638129fc1c146101635780638d94cf0f14610178578063a25228c9146101ac578063d2e6d1c3146101e0578063daf4008d1461021457610094565b3661009457610092610248565b005b610092610248565b3480156100a857600080fd5b506100d07f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f957600080fd5b50610092610108366004610de6565b61025a565b61009261011b366004610e19565b61032c565b34801561012c57600080fd5b506101356103e6565b6040519081526020016100e4565b34801561014f57600080fd5b506100d061015e366004610edc565b610494565b34801561016f57600080fd5b50610092610783565b34801561018457600080fd5b506100d07f000000000000000000000000000000000000000000000000000000000000000081565b3480156101b857600080fd5b506100d07f000000000000000000000000000000000000000000000000000000000000000081565b3480156101ec57600080fd5b506100d07f000000000000000000000000000000000000000000000000000000000000000081565b34801561022057600080fd5b506100d07f000000000000000000000000000000000000000000000000000000000000000081565b610258610253610856565b610872565b565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156102ac5760405162461bcd60e51b81526004016102a390610f06565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166102de61089b565b6001600160a01b0316146103045760405162461bcd60e51b81526004016102a390610f40565b61030d816108b7565b6040805160008082526020820190925261032991839190610911565b50565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156103755760405162461bcd60e51b81526004016102a390610f06565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103a761089b565b6001600160a01b0316146103cd5760405162461bcd60e51b81526004016102a390610f40565b6103d6826108b7565b6103e282826001610911565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104815760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016102a3565b5060008051602061104c83398151915290565b60006001600160e01b0319821663ab308f7960e01b14806104c557506001600160e01b031982166361d67b9f60e01b145b806104e057506001600160e01b0319821663381ed10160e11b145b806104fb57506001600160e01b0319821663982f1ae560e01b145b8061051657506001600160e01b031982166348e4c51560e11b145b8061053157506001600160e01b031982166338b7217760e21b145b8061054c57506001600160e01b0319821663d65d45a960e01b145b8061056757506001600160e01b0319821663083a3db960e41b145b8061058257506001600160e01b03198216630e5a48b360e31b145b8061059d57506001600160e01b0319821663225fefdd60e21b145b806105b857506001600160e01b0319821663e338ec8b60e01b145b806105d357506001600160e01b0319821663791cdb7960e11b145b156105ff57507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216636c66135560e11b148061062e57506001600160e01b031982166321aab85960e01b145b8061064957506001600160e01b0319821663452b4bdb60e01b145b8061066457506001600160e01b0319821663fce5228b60e01b145b8061067f57506001600160e01b0319821663066657e160e31b145b8061069a57506001600160e01b03198216630bd6be6960e11b145b156106c657507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663e4e1d73760e01b141561070657507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216637d241f3960e11b141561074657507f0000000000000000000000000000000000000000000000000000000000000000919050565b60405162461bcd60e51b8152602060048201526012602482015271696e76616c6964206d61726b65742073696760701b60448201526064016102a3565b600054610100900460ff1661079e5760005460ff16156107a6565b6107a6610a8b565b6108095760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016102a3565b600054610100900460ff1615801561082b576000805461ffff19166101011790555b610833610a9c565b8015610329576000805461ff001916905550565b6001600160a01b03163b151590565b600061086d6000356001600160e01b031916610494565b905090565b3660008037600080366000845af43d6000803e808015610891573d6000f35b3d6000fd5b505050565b60008051602061104c833981519152546001600160a01b031690565b6108bf610b07565b6001600160a01b0316336001600160a01b0316146103295760405162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b60448201526064016102a3565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156109445761089683610b9a565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561097d57600080fd5b505afa9250505080156109ad575060408051601f3d908101601f191682019092526109aa91810190610f7a565b60015b610a105760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016102a3565b60008051602061104c8339815191528114610a7f5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016102a3565b50610896838383610c34565b6000610a9630610847565b15905090565b600054610100900460ff166102585760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016102a3565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b158015610b6257600080fd5b505afa158015610b76573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086d9190610f93565b610ba381610847565b610c055760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016102a3565b60008051602061104c83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b610c3d83610c5f565b600082511180610c4a5750805b1561089657610c598383610c9f565b50505050565b610c6881610b9a565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610caa83610847565b610d055760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016102a3565b600080846001600160a01b031684604051610d209190610fdc565b600060405180830381855af49150503d8060008114610d5b576040519150601f19603f3d011682016040523d82523d6000602084013e610d60565b606091505b5091509150610d88828260405180606001604052806027815260200161106c60279139610d91565b95945050505050565b60608315610da0575081610dca565b825115610db05782518084602001fd5b8160405162461bcd60e51b81526004016102a39190610ff8565b9392505050565b6001600160a01b038116811461032957600080fd5b600060208284031215610df857600080fd5b8135610dca81610dd1565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610e2c57600080fd5b8235610e3781610dd1565b915060208301356001600160401b0380821115610e5357600080fd5b818501915085601f830112610e6757600080fd5b813581811115610e7957610e79610e03565b604051601f8201601f19908116603f01168101908382118183101715610ea157610ea1610e03565b81604052828152886020848701011115610eba57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b600060208284031215610eee57600080fd5b81356001600160e01b031981168114610dca57600080fd5b6020808252602c9082015260008051602061102c83398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c9082015260008051602061102c83398151915260408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610f8c57600080fd5b5051919050565b600060208284031215610fa557600080fd5b8151610dca81610dd1565b60005b83811015610fcb578181015183820152602001610fb3565b83811115610c595750506000910152565b60008251610fee818460208701610fb0565b9190910192915050565b6020815260008251806020840152611017816040850160208701610fb0565b601f01601f1916919091016040019291505056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220f7874a3ae2062a01980c9aa0048bc30896b48c1453b62849b99c8ddd59aede3f64736f6c63430008090033";
|
|
231
|
+
"0x610140604052306080523480156200001657600080fd5b506040516200141838038062001418833981016040819052620000399162000252565b806001600160a01b038116620000855760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064015b60405180910390fd5b6001600160a01b031660a052600054610100900460ff16620000ae5760005460ff1615620000b8565b620000b862000208565b6200011d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016200007c565b600054610100900460ff1615801562000140576000805461ffff19166101011790555b6001600160a01b038616158015906200016157506001600160a01b03851615155b80156200017657506001600160a01b03841615155b80156200018b57506001600160a01b03831615155b620001c85760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b60448201526064016200007c565b6001600160a01b0380871660c05285811660e052848116610100528316610120528015620001fc576000805461ff00191690555b505050505050620002c2565b600062000220306200022660201b620008471760201c565b15905090565b6001600160a01b03163b151590565b80516001600160a01b03811681146200024d57600080fd5b919050565b600080600080600060a086880312156200026b57600080fd5b620002768662000235565b9450620002866020870162000235565b9350620002966040870162000235565b9250620002a66060870162000235565b9150620002b66080870162000235565b90509295509295909350565b60805160a05160c05160e05161010051610120516110c8620003506000396000818161022601526106e20152600081816101be015261072201526000818160ae01526106a201526000818161018a01526105db0152600081816101f20152610b0b015260008181610265015281816102ae015281816103370152818161037701526103f301526110c86000f3fe6080604052600436106100855760003560e01c806320e21c001461009c5780633659cfe6146100ed5780634f1ef2861461010d57806352d1902d1461012057806376e1df48146101435780638129fc1c146101635780638d94cf0f14610178578063a25228c9146101ac578063d2e6d1c3146101e0578063daf4008d1461021457610094565b3661009457610092610248565b005b610092610248565b3480156100a857600080fd5b506100d07f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f957600080fd5b50610092610108366004610de6565b61025a565b61009261011b366004610e19565b61032c565b34801561012c57600080fd5b506101356103e6565b6040519081526020016100e4565b34801561014f57600080fd5b506100d061015e366004610edc565b610494565b34801561016f57600080fd5b50610092610783565b34801561018457600080fd5b506100d07f000000000000000000000000000000000000000000000000000000000000000081565b3480156101b857600080fd5b506100d07f000000000000000000000000000000000000000000000000000000000000000081565b3480156101ec57600080fd5b506100d07f000000000000000000000000000000000000000000000000000000000000000081565b34801561022057600080fd5b506100d07f000000000000000000000000000000000000000000000000000000000000000081565b610258610253610856565b610872565b565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156102ac5760405162461bcd60e51b81526004016102a390610f06565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166102de61089b565b6001600160a01b0316146103045760405162461bcd60e51b81526004016102a390610f40565b61030d816108b7565b6040805160008082526020820190925261032991839190610911565b50565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156103755760405162461bcd60e51b81526004016102a390610f06565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103a761089b565b6001600160a01b0316146103cd5760405162461bcd60e51b81526004016102a390610f40565b6103d6826108b7565b6103e282826001610911565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104815760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016102a3565b5060008051602061104c83398151915290565b60006001600160e01b0319821663ab308f7960e01b14806104c557506001600160e01b031982166361d67b9f60e01b145b806104e057506001600160e01b0319821663381ed10160e11b145b806104fb57506001600160e01b0319821663982f1ae560e01b145b8061051657506001600160e01b031982166348e4c51560e11b145b8061053157506001600160e01b031982166338b7217760e21b145b8061054c57506001600160e01b0319821663d65d45a960e01b145b8061056757506001600160e01b0319821663083a3db960e41b145b8061058257506001600160e01b03198216630e5a48b360e31b145b8061059d57506001600160e01b0319821663225fefdd60e21b145b806105b857506001600160e01b0319821663e338ec8b60e01b145b806105d357506001600160e01b0319821663791cdb7960e11b145b156105ff57507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216636c66135560e11b148061062e57506001600160e01b031982166321aab85960e01b145b8061064957506001600160e01b0319821663452b4bdb60e01b145b8061066457506001600160e01b0319821663fce5228b60e01b145b8061067f57506001600160e01b0319821663066657e160e31b145b8061069a57506001600160e01b03198216630bd6be6960e11b145b156106c657507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663e4e1d73760e01b141561070657507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216637d241f3960e11b141561074657507f0000000000000000000000000000000000000000000000000000000000000000919050565b60405162461bcd60e51b8152602060048201526012602482015271696e76616c6964206d61726b65742073696760701b60448201526064016102a3565b600054610100900460ff1661079e5760005460ff16156107a6565b6107a6610a8b565b6108095760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016102a3565b600054610100900460ff1615801561082b576000805461ffff19166101011790555b610833610a9c565b8015610329576000805461ff001916905550565b6001600160a01b03163b151590565b600061086d6000356001600160e01b031916610494565b905090565b3660008037600080366000845af43d6000803e808015610891573d6000f35b3d6000fd5b505050565b60008051602061104c833981519152546001600160a01b031690565b6108bf610b07565b6001600160a01b0316336001600160a01b0316146103295760405162461bcd60e51b815260206004820152600f60248201526e4f4e4c595f474f5645524e414e434560881b60448201526064016102a3565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156109445761089683610b9a565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561097d57600080fd5b505afa9250505080156109ad575060408051601f3d908101601f191682019092526109aa91810190610f7a565b60015b610a105760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016102a3565b60008051602061104c8339815191528114610a7f5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016102a3565b50610896838383610c34565b6000610a9630610847565b15905090565b600054610100900460ff166102585760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016102a3565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b158015610b6257600080fd5b505afa158015610b76573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086d9190610f93565b610ba381610847565b610c055760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016102a3565b60008051602061104c83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b610c3d83610c5f565b600082511180610c4a5750805b1561089657610c598383610c9f565b50505050565b610c6881610b9a565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610caa83610847565b610d055760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016102a3565b600080846001600160a01b031684604051610d209190610fdc565b600060405180830381855af49150503d8060008114610d5b576040519150601f19603f3d011682016040523d82523d6000602084013e610d60565b606091505b5091509150610d88828260405180606001604052806027815260200161106c60279139610d91565b95945050505050565b60608315610da0575081610dca565b825115610db05782518084602001fd5b8160405162461bcd60e51b81526004016102a39190610ff8565b9392505050565b6001600160a01b038116811461032957600080fd5b600060208284031215610df857600080fd5b8135610dca81610dd1565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610e2c57600080fd5b8235610e3781610dd1565b915060208301356001600160401b0380821115610e5357600080fd5b818501915085601f830112610e6757600080fd5b813581811115610e7957610e79610e03565b604051601f8201601f19908116603f01168101908382118183101715610ea157610ea1610e03565b81604052828152886020848701011115610eba57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b600060208284031215610eee57600080fd5b81356001600160e01b031981168114610dca57600080fd5b6020808252602c9082015260008051602061102c83398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c9082015260008051602061102c83398151915260408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610f8c57600080fd5b5051919050565b600060208284031215610fa557600080fd5b8151610dca81610dd1565b60005b83811015610fcb578181015183820152602001610fb3565b83811115610c595750506000910152565b60008251610fee818460208701610fb0565b9190910192915050565b6020815260008251806020840152611017816040850160208701610fb0565b601f01601f1916919091016040019291505056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220c1112fe9941cc27c2bd305bdc5383b0951b9976c9b0f42a346f0cafda99dc71f64736f6c63430008090033";
|
|
232
232
|
|
|
233
233
|
type PendleRouterConstructorParams =
|
|
234
234
|
| [signer?: Signer]
|