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