@pendle/core-v2 4.5.1-beta-2 → 4.5.1-oracle-beta

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 (116) hide show
  1. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol/PendleERC20WithSupplyCapSY.json +2 -2
  3. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol/PendleSwellRswETHStakingSY.dbg.json +4 -0
  4. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol/PendleSwellRswETHStakingSY.json +1049 -0
  5. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol/PendleSwellStakingERC20SY.dbg.json +4 -0
  6. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol/PendleSwellStakingERC20SY.json +1039 -0
  7. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  8. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.json +32 -1154
  9. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  10. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +60 -1182
  11. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +4 -0
  12. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.json +60 -0
  13. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +4 -0
  14. package/build/artifacts/contracts/interfaces/{IPPtLpOracle.sol/IPPtLpOracle.json → IPPYLpOracle.sol/IPPYLpOracle.json} +50 -2
  15. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +4 -0
  16. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.json +25 -0
  17. package/build/artifacts/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol/ISwellSimpleStakingERC20.dbg.json +4 -0
  18. package/build/artifacts/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol/ISwellSimpleStakingERC20.json +207 -0
  19. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +4 -0
  20. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +401 -0
  21. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  22. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  23. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  24. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  25. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  26. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  27. package/build/artifacts/contracts/oracles/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +4 -0
  28. package/build/artifacts/contracts/oracles/PendlePYLpOracle.sol/PendlePYLpOracle.json +422 -0
  29. package/build/artifacts/contracts/oracles/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +4 -0
  30. package/build/artifacts/contracts/oracles/{PendlePtOracleLib.sol/PendlePtOracleLib.json → PendlePYOracleLib.sol/PendlePYOracleLib.json} +4 -4
  31. package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.dbg.json +1 -1
  32. package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.json +2 -2
  33. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +4 -0
  34. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +183 -0
  35. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +4 -0
  36. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +183 -0
  37. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  38. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  39. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  40. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +34 -1156
  41. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  42. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  43. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  44. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  45. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  46. package/contracts/core/StandardizedYield/implementations/PendleERC20WithSupplyCapSY.sol +6 -1
  47. package/contracts/core/StandardizedYield/implementations/Swell/PendleSwellRswETHStakingSY.sol +56 -0
  48. package/contracts/core/StandardizedYield/implementations/Swell/PendleSwellStakingERC20SY.sol +111 -0
  49. package/contracts/interfaces/IPActionMiscV3.sol +0 -92
  50. package/contracts/interfaces/IPGovernanceProxy.sol +14 -0
  51. package/contracts/interfaces/{IPPtLpOracle.sol → IPPYLpOracle.sol} +5 -1
  52. package/contracts/interfaces/IPPausingInterface.sol +8 -0
  53. package/contracts/interfaces/Swell/ISwellSimpleStakingERC20.sol +66 -0
  54. package/contracts/offchain-helpers/PendleGovernanceProxy.sol +84 -0
  55. package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +12 -4
  56. package/contracts/oracles/PendleLpOracleLib.sol +4 -4
  57. package/contracts/oracles/{PendlePtLpOracle.sol → PendlePYLpOracle.sol} +44 -16
  58. package/contracts/oracles/{PendlePtOracleLib.sol → PendlePYOracleLib.sol} +31 -1
  59. package/contracts/oracles/samples/BoringLpGlpOracle.sol +2 -2
  60. package/contracts/oracles/samples/{BoringPtUsdChainlinkOracle.sol → BoringPYUsdChainlinkAssetOracle.sol} +36 -12
  61. package/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol +102 -0
  62. package/contracts/router/ActionMiscV3.sol +36 -150
  63. package/contracts/router/ActionSwapYTV3.sol +85 -0
  64. package/contracts/router/base/ActionBase.sol +1 -106
  65. package/deployments/1-markets/EZETH-MAINNET-SEP2024.json +11 -0
  66. package/deployments/1-markets/PUFETH-MAINNET-SEP2024.json +11 -0
  67. package/deployments/1-markets/RSETH-MAINNET-SEP2024.json +11 -0
  68. package/deployments/1-markets/RSWETH-SWELL-STAKING-MAINNET-JUL2024.json +11 -0
  69. package/deployments/1-markets/SUSDE-MAINNET-SEP2024.json +13 -0
  70. package/deployments/1-markets/WEETH-MAINNET-SEP2024.json +11 -0
  71. package/deployments/42161-markets/EZETH-ARB-SEP2024.json +11 -0
  72. package/deployments/42161-markets/RSETH-ARBITRUM-SEP2024.json +11 -0
  73. package/deployments/42161-markets/SILO-PTEETH-ARBITRUM-JUNE2024.json +11 -0
  74. package/deployments/42161-markets/SILO-PTEZETH-ARBITRUM-JUNE2024.json +11 -0
  75. package/deployments/42161-markets/WEETH-ARB-SEP2024.json +11 -0
  76. package/deployments/56-markets/WEETH-BSC-SEP2024.json +11 -0
  77. package/package.json +1 -1
  78. package/typechain-types/ActionMiscV3.ts +16 -573
  79. package/typechain-types/BoringPYUsdChainlinkAssetOracle.ts +244 -0
  80. package/typechain-types/BoringPYUsdChainlinkSYOracle.ts +243 -0
  81. package/typechain-types/IPActionMiscV3.ts +16 -573
  82. package/typechain-types/IPAllActionV3.ts +0 -480
  83. package/typechain-types/IPGovernanceProxy.ts +142 -0
  84. package/typechain-types/IPPYLpOracle.ts +379 -0
  85. package/typechain-types/IPPausingInterface.ts +112 -0
  86. package/typechain-types/PendleGovernanceProxy.ts +603 -0
  87. package/typechain-types/PendlePYLpOracle.ts +612 -0
  88. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  89. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  90. package/typechain-types/factories/ActionMiscV3__factory.ts +33 -1155
  91. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  92. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  93. package/typechain-types/factories/BoringLpGlpOracle__factory.ts +1 -1
  94. package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +269 -0
  95. package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +267 -0
  96. package/typechain-types/factories/IPActionMiscV3__factory.ts +32 -1154
  97. package/typechain-types/factories/IPAllActionV3__factory.ts +60 -1182
  98. package/typechain-types/factories/IPGovernanceProxy__factory.ts +75 -0
  99. package/typechain-types/factories/IPPYLpOracle__factory.ts +214 -0
  100. package/typechain-types/factories/IPPausingInterface__factory.ts +40 -0
  101. package/typechain-types/factories/PendleERC20WithSupplyCapSY__factory.ts +1 -1
  102. package/typechain-types/factories/PendleGovernanceProxy__factory.ts +458 -0
  103. package/typechain-types/factories/PendlePYLpOracle__factory.ts +487 -0
  104. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  105. package/typechain-types/factories/PendleSwellRswETHStakingSY__factory.ts +1 -1
  106. package/typechain-types/hardhat.d.ts +90 -0
  107. package/typechain-types/index.ts +20 -0
  108. package/build/artifacts/contracts/interfaces/IPPtLpOracle.sol/IPPtLpOracle.dbg.json +0 -4
  109. package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.dbg.json +0 -4
  110. package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.json +0 -367
  111. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +0 -4
  112. package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.dbg.json +0 -4
  113. package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.json +0 -157
  114. /package/deployments/1-markets/{EZETH-JUNE2024.json → EZETH-APR2024.json} +0 -0
  115. /package/deployments/42161-markets/{RSETH-MAY2024.json → RSETH-JUNE2024.json} +0 -0
  116. /package/deployments/42161-markets/{WEETH-MAY2024.json → WEETH-JUNE2024.json} +0 -0
@@ -22,56 +22,29 @@ const _abi = [
22
22
  {
23
23
  indexed: true,
24
24
  internalType: "address",
25
- name: "market",
25
+ name: "receiver",
26
26
  type: "address",
27
27
  },
28
28
  {
29
29
  indexed: true,
30
30
  internalType: "address",
31
- name: "receiver",
31
+ name: "YT",
32
32
  type: "address",
33
33
  },
34
34
  {
35
35
  indexed: false,
36
36
  internalType: "uint256",
37
- name: "netLpIn",
37
+ name: "netSyIn",
38
38
  type: "uint256",
39
39
  },
40
40
  {
41
- components: [
42
- {
43
- internalType: "uint256",
44
- name: "netPtFromRemove",
45
- type: "uint256",
46
- },
47
- {
48
- internalType: "uint256",
49
- name: "netSyFromRemove",
50
- type: "uint256",
51
- },
52
- {
53
- internalType: "uint256",
54
- name: "netPtRedeem",
55
- type: "uint256",
56
- },
57
- {
58
- internalType: "uint256",
59
- name: "netSyFromRedeem",
60
- type: "uint256",
61
- },
62
- {
63
- internalType: "uint256",
64
- name: "totalSyOut",
65
- type: "uint256",
66
- },
67
- ],
68
41
  indexed: false,
69
- internalType: "struct IPActionMiscV3.ExitPostExpReturnParams",
70
- name: "params",
71
- type: "tuple",
42
+ internalType: "uint256",
43
+ name: "netPyOut",
44
+ type: "uint256",
72
45
  },
73
46
  ],
74
- name: "ExitPostExpToSy",
47
+ name: "MintPyFromSy",
75
48
  type: "event",
76
49
  },
77
50
  {
@@ -86,13 +59,13 @@ const _abi = [
86
59
  {
87
60
  indexed: true,
88
61
  internalType: "address",
89
- name: "market",
62
+ name: "tokenIn",
90
63
  type: "address",
91
64
  },
92
65
  {
93
66
  indexed: true,
94
67
  internalType: "address",
95
- name: "token",
68
+ name: "YT",
96
69
  type: "address",
97
70
  },
98
71
  {
@@ -104,134 +77,23 @@ const _abi = [
104
77
  {
105
78
  indexed: false,
106
79
  internalType: "uint256",
107
- name: "netLpIn",
80
+ name: "netTokenIn",
108
81
  type: "uint256",
109
82
  },
110
83
  {
111
84
  indexed: false,
112
85
  internalType: "uint256",
113
- name: "totalTokenOut",
86
+ name: "netPyOut",
114
87
  type: "uint256",
115
88
  },
116
- {
117
- components: [
118
- {
119
- internalType: "uint256",
120
- name: "netPtFromRemove",
121
- type: "uint256",
122
- },
123
- {
124
- internalType: "uint256",
125
- name: "netSyFromRemove",
126
- type: "uint256",
127
- },
128
- {
129
- internalType: "uint256",
130
- name: "netPtRedeem",
131
- type: "uint256",
132
- },
133
- {
134
- internalType: "uint256",
135
- name: "netSyFromRedeem",
136
- type: "uint256",
137
- },
138
- {
139
- internalType: "uint256",
140
- name: "totalSyOut",
141
- type: "uint256",
142
- },
143
- ],
144
- indexed: false,
145
- internalType: "struct IPActionMiscV3.ExitPostExpReturnParams",
146
- name: "params",
147
- type: "tuple",
148
- },
149
- ],
150
- name: "ExitPostExpToToken",
151
- type: "event",
152
- },
153
- {
154
- anonymous: false,
155
- inputs: [
156
- {
157
- indexed: true,
158
- internalType: "address",
159
- name: "caller",
160
- type: "address",
161
- },
162
- {
163
- indexed: true,
164
- internalType: "address",
165
- name: "market",
166
- type: "address",
167
- },
168
- {
169
- indexed: true,
170
- internalType: "address",
171
- name: "receiver",
172
- type: "address",
173
- },
174
89
  {
175
90
  indexed: false,
176
91
  internalType: "uint256",
177
- name: "netLpToRemove",
92
+ name: "netSyInterm",
178
93
  type: "uint256",
179
94
  },
180
- {
181
- components: [
182
- {
183
- internalType: "uint256",
184
- name: "netPtFromRemove",
185
- type: "uint256",
186
- },
187
- {
188
- internalType: "uint256",
189
- name: "netSyFromRemove",
190
- type: "uint256",
191
- },
192
- {
193
- internalType: "uint256",
194
- name: "netPyRedeem",
195
- type: "uint256",
196
- },
197
- {
198
- internalType: "uint256",
199
- name: "netSyFromRedeem",
200
- type: "uint256",
201
- },
202
- {
203
- internalType: "uint256",
204
- name: "netPtSwap",
205
- type: "uint256",
206
- },
207
- {
208
- internalType: "uint256",
209
- name: "netYtSwap",
210
- type: "uint256",
211
- },
212
- {
213
- internalType: "uint256",
214
- name: "netSyFromSwap",
215
- type: "uint256",
216
- },
217
- {
218
- internalType: "uint256",
219
- name: "netSyFee",
220
- type: "uint256",
221
- },
222
- {
223
- internalType: "uint256",
224
- name: "totalSyOut",
225
- type: "uint256",
226
- },
227
- ],
228
- indexed: false,
229
- internalType: "struct IPActionMiscV3.ExitPreExpReturnParams",
230
- name: "params",
231
- type: "tuple",
232
- },
233
95
  ],
234
- name: "ExitPreExpToSy",
96
+ name: "MintPyFromToken",
235
97
  type: "event",
236
98
  },
237
99
  {
@@ -246,13 +108,13 @@ const _abi = [
246
108
  {
247
109
  indexed: true,
248
110
  internalType: "address",
249
- name: "market",
111
+ name: "tokenIn",
250
112
  type: "address",
251
113
  },
252
114
  {
253
115
  indexed: true,
254
116
  internalType: "address",
255
- name: "token",
117
+ name: "SY",
256
118
  type: "address",
257
119
  },
258
120
  {
@@ -264,70 +126,17 @@ const _abi = [
264
126
  {
265
127
  indexed: false,
266
128
  internalType: "uint256",
267
- name: "netLpToRemove",
129
+ name: "netTokenIn",
268
130
  type: "uint256",
269
131
  },
270
132
  {
271
133
  indexed: false,
272
134
  internalType: "uint256",
273
- name: "totalTokenOut",
135
+ name: "netSyOut",
274
136
  type: "uint256",
275
137
  },
276
- {
277
- components: [
278
- {
279
- internalType: "uint256",
280
- name: "netPtFromRemove",
281
- type: "uint256",
282
- },
283
- {
284
- internalType: "uint256",
285
- name: "netSyFromRemove",
286
- type: "uint256",
287
- },
288
- {
289
- internalType: "uint256",
290
- name: "netPyRedeem",
291
- type: "uint256",
292
- },
293
- {
294
- internalType: "uint256",
295
- name: "netSyFromRedeem",
296
- type: "uint256",
297
- },
298
- {
299
- internalType: "uint256",
300
- name: "netPtSwap",
301
- type: "uint256",
302
- },
303
- {
304
- internalType: "uint256",
305
- name: "netYtSwap",
306
- type: "uint256",
307
- },
308
- {
309
- internalType: "uint256",
310
- name: "netSyFromSwap",
311
- type: "uint256",
312
- },
313
- {
314
- internalType: "uint256",
315
- name: "netSyFee",
316
- type: "uint256",
317
- },
318
- {
319
- internalType: "uint256",
320
- name: "totalSyOut",
321
- type: "uint256",
322
- },
323
- ],
324
- indexed: false,
325
- internalType: "struct IPActionMiscV3.ExitPreExpReturnParams",
326
- name: "params",
327
- type: "tuple",
328
- },
329
138
  ],
330
- name: "ExitPreExpToToken",
139
+ name: "MintSyFromToken",
331
140
  type: "event",
332
141
  },
333
142
  {
@@ -354,17 +163,17 @@ const _abi = [
354
163
  {
355
164
  indexed: false,
356
165
  internalType: "uint256",
357
- name: "netSyIn",
166
+ name: "netPyIn",
358
167
  type: "uint256",
359
168
  },
360
169
  {
361
170
  indexed: false,
362
171
  internalType: "uint256",
363
- name: "netPyOut",
172
+ name: "netSyOut",
364
173
  type: "uint256",
365
174
  },
366
175
  ],
367
- name: "MintPyFromSy",
176
+ name: "RedeemPyToSy",
368
177
  type: "event",
369
178
  },
370
179
  {
@@ -379,7 +188,7 @@ const _abi = [
379
188
  {
380
189
  indexed: true,
381
190
  internalType: "address",
382
- name: "tokenIn",
191
+ name: "tokenOut",
383
192
  type: "address",
384
193
  },
385
194
  {
@@ -397,13 +206,13 @@ const _abi = [
397
206
  {
398
207
  indexed: false,
399
208
  internalType: "uint256",
400
- name: "netTokenIn",
209
+ name: "netPyIn",
401
210
  type: "uint256",
402
211
  },
403
212
  {
404
213
  indexed: false,
405
214
  internalType: "uint256",
406
- name: "netPyOut",
215
+ name: "netTokenOut",
407
216
  type: "uint256",
408
217
  },
409
218
  {
@@ -413,7 +222,7 @@ const _abi = [
413
222
  type: "uint256",
414
223
  },
415
224
  ],
416
- name: "MintPyFromToken",
225
+ name: "RedeemPyToToken",
417
226
  type: "event",
418
227
  },
419
228
  {
@@ -428,7 +237,7 @@ const _abi = [
428
237
  {
429
238
  indexed: true,
430
239
  internalType: "address",
431
- name: "tokenIn",
240
+ name: "tokenOut",
432
241
  type: "address",
433
242
  },
434
243
  {
@@ -446,154 +255,25 @@ const _abi = [
446
255
  {
447
256
  indexed: false,
448
257
  internalType: "uint256",
449
- name: "netTokenIn",
258
+ name: "netSyIn",
450
259
  type: "uint256",
451
260
  },
452
261
  {
453
262
  indexed: false,
454
263
  internalType: "uint256",
455
- name: "netSyOut",
264
+ name: "netTokenOut",
456
265
  type: "uint256",
457
266
  },
458
267
  ],
459
- name: "MintSyFromToken",
268
+ name: "RedeemSyToToken",
460
269
  type: "event",
461
270
  },
462
271
  {
463
- anonymous: false,
464
272
  inputs: [
465
273
  {
466
- indexed: true,
467
- internalType: "address",
468
- name: "caller",
469
- type: "address",
470
- },
471
- {
472
- indexed: true,
473
- internalType: "address",
474
- name: "receiver",
475
- type: "address",
476
- },
477
- {
478
- indexed: true,
479
- internalType: "address",
480
- name: "YT",
481
- type: "address",
482
- },
483
- {
484
- indexed: false,
485
- internalType: "uint256",
486
- name: "netPyIn",
487
- type: "uint256",
488
- },
489
- {
490
- indexed: false,
491
- internalType: "uint256",
492
- name: "netSyOut",
493
- type: "uint256",
494
- },
495
- ],
496
- name: "RedeemPyToSy",
497
- type: "event",
498
- },
499
- {
500
- anonymous: false,
501
- inputs: [
502
- {
503
- indexed: true,
504
- internalType: "address",
505
- name: "caller",
506
- type: "address",
507
- },
508
- {
509
- indexed: true,
510
- internalType: "address",
511
- name: "tokenOut",
512
- type: "address",
513
- },
514
- {
515
- indexed: true,
516
- internalType: "address",
517
- name: "YT",
518
- type: "address",
519
- },
520
- {
521
- indexed: false,
522
- internalType: "address",
523
- name: "receiver",
524
- type: "address",
525
- },
526
- {
527
- indexed: false,
528
- internalType: "uint256",
529
- name: "netPyIn",
530
- type: "uint256",
531
- },
532
- {
533
- indexed: false,
534
- internalType: "uint256",
535
- name: "netTokenOut",
536
- type: "uint256",
537
- },
538
- {
539
- indexed: false,
540
- internalType: "uint256",
541
- name: "netSyInterm",
542
- type: "uint256",
543
- },
544
- ],
545
- name: "RedeemPyToToken",
546
- type: "event",
547
- },
548
- {
549
- anonymous: false,
550
- inputs: [
551
- {
552
- indexed: true,
553
- internalType: "address",
554
- name: "caller",
555
- type: "address",
556
- },
557
- {
558
- indexed: true,
559
- internalType: "address",
560
- name: "tokenOut",
561
- type: "address",
562
- },
563
- {
564
- indexed: true,
565
- internalType: "address",
566
- name: "SY",
567
- type: "address",
568
- },
569
- {
570
- indexed: false,
571
- internalType: "address",
572
- name: "receiver",
573
- type: "address",
574
- },
575
- {
576
- indexed: false,
577
- internalType: "uint256",
578
- name: "netSyIn",
579
- type: "uint256",
580
- },
581
- {
582
- indexed: false,
583
- internalType: "uint256",
584
- name: "netTokenOut",
585
- type: "uint256",
586
- },
587
- ],
588
- name: "RedeemSyToToken",
589
- type: "event",
590
- },
591
- {
592
- inputs: [
593
- {
594
- internalType: "address[]",
595
- name: "markets",
596
- type: "address[]",
274
+ internalType: "address[]",
275
+ name: "markets",
276
+ type: "address[]",
597
277
  },
598
278
  ],
599
279
  name: "boostMarkets",
@@ -601,808 +281,6 @@ const _abi = [
601
281
  stateMutability: "nonpayable",
602
282
  type: "function",
603
283
  },
604
- {
605
- inputs: [
606
- {
607
- internalType: "address",
608
- name: "receiver",
609
- type: "address",
610
- },
611
- {
612
- internalType: "address",
613
- name: "market",
614
- type: "address",
615
- },
616
- {
617
- internalType: "uint256",
618
- name: "netPtIn",
619
- type: "uint256",
620
- },
621
- {
622
- internalType: "uint256",
623
- name: "netLpIn",
624
- type: "uint256",
625
- },
626
- {
627
- internalType: "uint256",
628
- name: "minSyOut",
629
- type: "uint256",
630
- },
631
- ],
632
- name: "exitPostExpToSy",
633
- outputs: [
634
- {
635
- components: [
636
- {
637
- internalType: "uint256",
638
- name: "netPtFromRemove",
639
- type: "uint256",
640
- },
641
- {
642
- internalType: "uint256",
643
- name: "netSyFromRemove",
644
- type: "uint256",
645
- },
646
- {
647
- internalType: "uint256",
648
- name: "netPtRedeem",
649
- type: "uint256",
650
- },
651
- {
652
- internalType: "uint256",
653
- name: "netSyFromRedeem",
654
- type: "uint256",
655
- },
656
- {
657
- internalType: "uint256",
658
- name: "totalSyOut",
659
- type: "uint256",
660
- },
661
- ],
662
- internalType: "struct IPActionMiscV3.ExitPostExpReturnParams",
663
- name: "params",
664
- type: "tuple",
665
- },
666
- ],
667
- stateMutability: "nonpayable",
668
- type: "function",
669
- },
670
- {
671
- inputs: [
672
- {
673
- internalType: "address",
674
- name: "receiver",
675
- type: "address",
676
- },
677
- {
678
- internalType: "address",
679
- name: "market",
680
- type: "address",
681
- },
682
- {
683
- internalType: "uint256",
684
- name: "netPtIn",
685
- type: "uint256",
686
- },
687
- {
688
- internalType: "uint256",
689
- name: "netLpIn",
690
- type: "uint256",
691
- },
692
- {
693
- components: [
694
- {
695
- internalType: "address",
696
- name: "tokenOut",
697
- type: "address",
698
- },
699
- {
700
- internalType: "uint256",
701
- name: "minTokenOut",
702
- type: "uint256",
703
- },
704
- {
705
- internalType: "address",
706
- name: "tokenRedeemSy",
707
- type: "address",
708
- },
709
- {
710
- internalType: "address",
711
- name: "pendleSwap",
712
- type: "address",
713
- },
714
- {
715
- components: [
716
- {
717
- internalType: "enum SwapType",
718
- name: "swapType",
719
- type: "uint8",
720
- },
721
- {
722
- internalType: "address",
723
- name: "extRouter",
724
- type: "address",
725
- },
726
- {
727
- internalType: "bytes",
728
- name: "extCalldata",
729
- type: "bytes",
730
- },
731
- {
732
- internalType: "bool",
733
- name: "needScale",
734
- type: "bool",
735
- },
736
- ],
737
- internalType: "struct SwapData",
738
- name: "swapData",
739
- type: "tuple",
740
- },
741
- ],
742
- internalType: "struct TokenOutput",
743
- name: "output",
744
- type: "tuple",
745
- },
746
- ],
747
- name: "exitPostExpToToken",
748
- outputs: [
749
- {
750
- internalType: "uint256",
751
- name: "netTokenOut",
752
- type: "uint256",
753
- },
754
- {
755
- components: [
756
- {
757
- internalType: "uint256",
758
- name: "netPtFromRemove",
759
- type: "uint256",
760
- },
761
- {
762
- internalType: "uint256",
763
- name: "netSyFromRemove",
764
- type: "uint256",
765
- },
766
- {
767
- internalType: "uint256",
768
- name: "netPtRedeem",
769
- type: "uint256",
770
- },
771
- {
772
- internalType: "uint256",
773
- name: "netSyFromRedeem",
774
- type: "uint256",
775
- },
776
- {
777
- internalType: "uint256",
778
- name: "totalSyOut",
779
- type: "uint256",
780
- },
781
- ],
782
- internalType: "struct IPActionMiscV3.ExitPostExpReturnParams",
783
- name: "params",
784
- type: "tuple",
785
- },
786
- ],
787
- stateMutability: "nonpayable",
788
- type: "function",
789
- },
790
- {
791
- inputs: [
792
- {
793
- internalType: "address",
794
- name: "receiver",
795
- type: "address",
796
- },
797
- {
798
- internalType: "address",
799
- name: "market",
800
- type: "address",
801
- },
802
- {
803
- internalType: "uint256",
804
- name: "netPtIn",
805
- type: "uint256",
806
- },
807
- {
808
- internalType: "uint256",
809
- name: "netYtIn",
810
- type: "uint256",
811
- },
812
- {
813
- internalType: "uint256",
814
- name: "netLpIn",
815
- type: "uint256",
816
- },
817
- {
818
- internalType: "uint256",
819
- name: "minSyOut",
820
- type: "uint256",
821
- },
822
- {
823
- components: [
824
- {
825
- internalType: "address",
826
- name: "limitRouter",
827
- type: "address",
828
- },
829
- {
830
- internalType: "uint256",
831
- name: "epsSkipMarket",
832
- type: "uint256",
833
- },
834
- {
835
- components: [
836
- {
837
- components: [
838
- {
839
- internalType: "uint256",
840
- name: "salt",
841
- type: "uint256",
842
- },
843
- {
844
- internalType: "uint256",
845
- name: "expiry",
846
- type: "uint256",
847
- },
848
- {
849
- internalType: "uint256",
850
- name: "nonce",
851
- type: "uint256",
852
- },
853
- {
854
- internalType: "enum IPLimitOrderType.OrderType",
855
- name: "orderType",
856
- type: "uint8",
857
- },
858
- {
859
- internalType: "address",
860
- name: "token",
861
- type: "address",
862
- },
863
- {
864
- internalType: "address",
865
- name: "YT",
866
- type: "address",
867
- },
868
- {
869
- internalType: "address",
870
- name: "maker",
871
- type: "address",
872
- },
873
- {
874
- internalType: "address",
875
- name: "receiver",
876
- type: "address",
877
- },
878
- {
879
- internalType: "uint256",
880
- name: "makingAmount",
881
- type: "uint256",
882
- },
883
- {
884
- internalType: "uint256",
885
- name: "lnImpliedRate",
886
- type: "uint256",
887
- },
888
- {
889
- internalType: "uint256",
890
- name: "failSafeRate",
891
- type: "uint256",
892
- },
893
- {
894
- internalType: "bytes",
895
- name: "permit",
896
- type: "bytes",
897
- },
898
- ],
899
- internalType: "struct Order",
900
- name: "order",
901
- type: "tuple",
902
- },
903
- {
904
- internalType: "bytes",
905
- name: "signature",
906
- type: "bytes",
907
- },
908
- {
909
- internalType: "uint256",
910
- name: "makingAmount",
911
- type: "uint256",
912
- },
913
- ],
914
- internalType: "struct FillOrderParams[]",
915
- name: "normalFills",
916
- type: "tuple[]",
917
- },
918
- {
919
- components: [
920
- {
921
- components: [
922
- {
923
- internalType: "uint256",
924
- name: "salt",
925
- type: "uint256",
926
- },
927
- {
928
- internalType: "uint256",
929
- name: "expiry",
930
- type: "uint256",
931
- },
932
- {
933
- internalType: "uint256",
934
- name: "nonce",
935
- type: "uint256",
936
- },
937
- {
938
- internalType: "enum IPLimitOrderType.OrderType",
939
- name: "orderType",
940
- type: "uint8",
941
- },
942
- {
943
- internalType: "address",
944
- name: "token",
945
- type: "address",
946
- },
947
- {
948
- internalType: "address",
949
- name: "YT",
950
- type: "address",
951
- },
952
- {
953
- internalType: "address",
954
- name: "maker",
955
- type: "address",
956
- },
957
- {
958
- internalType: "address",
959
- name: "receiver",
960
- type: "address",
961
- },
962
- {
963
- internalType: "uint256",
964
- name: "makingAmount",
965
- type: "uint256",
966
- },
967
- {
968
- internalType: "uint256",
969
- name: "lnImpliedRate",
970
- type: "uint256",
971
- },
972
- {
973
- internalType: "uint256",
974
- name: "failSafeRate",
975
- type: "uint256",
976
- },
977
- {
978
- internalType: "bytes",
979
- name: "permit",
980
- type: "bytes",
981
- },
982
- ],
983
- internalType: "struct Order",
984
- name: "order",
985
- type: "tuple",
986
- },
987
- {
988
- internalType: "bytes",
989
- name: "signature",
990
- type: "bytes",
991
- },
992
- {
993
- internalType: "uint256",
994
- name: "makingAmount",
995
- type: "uint256",
996
- },
997
- ],
998
- internalType: "struct FillOrderParams[]",
999
- name: "flashFills",
1000
- type: "tuple[]",
1001
- },
1002
- {
1003
- internalType: "bytes",
1004
- name: "optData",
1005
- type: "bytes",
1006
- },
1007
- ],
1008
- internalType: "struct LimitOrderData",
1009
- name: "limit",
1010
- type: "tuple",
1011
- },
1012
- ],
1013
- name: "exitPreExpToSy",
1014
- outputs: [
1015
- {
1016
- components: [
1017
- {
1018
- internalType: "uint256",
1019
- name: "netPtFromRemove",
1020
- type: "uint256",
1021
- },
1022
- {
1023
- internalType: "uint256",
1024
- name: "netSyFromRemove",
1025
- type: "uint256",
1026
- },
1027
- {
1028
- internalType: "uint256",
1029
- name: "netPyRedeem",
1030
- type: "uint256",
1031
- },
1032
- {
1033
- internalType: "uint256",
1034
- name: "netSyFromRedeem",
1035
- type: "uint256",
1036
- },
1037
- {
1038
- internalType: "uint256",
1039
- name: "netPtSwap",
1040
- type: "uint256",
1041
- },
1042
- {
1043
- internalType: "uint256",
1044
- name: "netYtSwap",
1045
- type: "uint256",
1046
- },
1047
- {
1048
- internalType: "uint256",
1049
- name: "netSyFromSwap",
1050
- type: "uint256",
1051
- },
1052
- {
1053
- internalType: "uint256",
1054
- name: "netSyFee",
1055
- type: "uint256",
1056
- },
1057
- {
1058
- internalType: "uint256",
1059
- name: "totalSyOut",
1060
- type: "uint256",
1061
- },
1062
- ],
1063
- internalType: "struct IPActionMiscV3.ExitPreExpReturnParams",
1064
- name: "params",
1065
- type: "tuple",
1066
- },
1067
- ],
1068
- stateMutability: "nonpayable",
1069
- type: "function",
1070
- },
1071
- {
1072
- inputs: [
1073
- {
1074
- internalType: "address",
1075
- name: "receiver",
1076
- type: "address",
1077
- },
1078
- {
1079
- internalType: "address",
1080
- name: "market",
1081
- type: "address",
1082
- },
1083
- {
1084
- internalType: "uint256",
1085
- name: "netPtIn",
1086
- type: "uint256",
1087
- },
1088
- {
1089
- internalType: "uint256",
1090
- name: "netYtIn",
1091
- type: "uint256",
1092
- },
1093
- {
1094
- internalType: "uint256",
1095
- name: "netLpIn",
1096
- type: "uint256",
1097
- },
1098
- {
1099
- components: [
1100
- {
1101
- internalType: "address",
1102
- name: "tokenOut",
1103
- type: "address",
1104
- },
1105
- {
1106
- internalType: "uint256",
1107
- name: "minTokenOut",
1108
- type: "uint256",
1109
- },
1110
- {
1111
- internalType: "address",
1112
- name: "tokenRedeemSy",
1113
- type: "address",
1114
- },
1115
- {
1116
- internalType: "address",
1117
- name: "pendleSwap",
1118
- type: "address",
1119
- },
1120
- {
1121
- components: [
1122
- {
1123
- internalType: "enum SwapType",
1124
- name: "swapType",
1125
- type: "uint8",
1126
- },
1127
- {
1128
- internalType: "address",
1129
- name: "extRouter",
1130
- type: "address",
1131
- },
1132
- {
1133
- internalType: "bytes",
1134
- name: "extCalldata",
1135
- type: "bytes",
1136
- },
1137
- {
1138
- internalType: "bool",
1139
- name: "needScale",
1140
- type: "bool",
1141
- },
1142
- ],
1143
- internalType: "struct SwapData",
1144
- name: "swapData",
1145
- type: "tuple",
1146
- },
1147
- ],
1148
- internalType: "struct TokenOutput",
1149
- name: "output",
1150
- type: "tuple",
1151
- },
1152
- {
1153
- components: [
1154
- {
1155
- internalType: "address",
1156
- name: "limitRouter",
1157
- type: "address",
1158
- },
1159
- {
1160
- internalType: "uint256",
1161
- name: "epsSkipMarket",
1162
- type: "uint256",
1163
- },
1164
- {
1165
- components: [
1166
- {
1167
- components: [
1168
- {
1169
- internalType: "uint256",
1170
- name: "salt",
1171
- type: "uint256",
1172
- },
1173
- {
1174
- internalType: "uint256",
1175
- name: "expiry",
1176
- type: "uint256",
1177
- },
1178
- {
1179
- internalType: "uint256",
1180
- name: "nonce",
1181
- type: "uint256",
1182
- },
1183
- {
1184
- internalType: "enum IPLimitOrderType.OrderType",
1185
- name: "orderType",
1186
- type: "uint8",
1187
- },
1188
- {
1189
- internalType: "address",
1190
- name: "token",
1191
- type: "address",
1192
- },
1193
- {
1194
- internalType: "address",
1195
- name: "YT",
1196
- type: "address",
1197
- },
1198
- {
1199
- internalType: "address",
1200
- name: "maker",
1201
- type: "address",
1202
- },
1203
- {
1204
- internalType: "address",
1205
- name: "receiver",
1206
- type: "address",
1207
- },
1208
- {
1209
- internalType: "uint256",
1210
- name: "makingAmount",
1211
- type: "uint256",
1212
- },
1213
- {
1214
- internalType: "uint256",
1215
- name: "lnImpliedRate",
1216
- type: "uint256",
1217
- },
1218
- {
1219
- internalType: "uint256",
1220
- name: "failSafeRate",
1221
- type: "uint256",
1222
- },
1223
- {
1224
- internalType: "bytes",
1225
- name: "permit",
1226
- type: "bytes",
1227
- },
1228
- ],
1229
- internalType: "struct Order",
1230
- name: "order",
1231
- type: "tuple",
1232
- },
1233
- {
1234
- internalType: "bytes",
1235
- name: "signature",
1236
- type: "bytes",
1237
- },
1238
- {
1239
- internalType: "uint256",
1240
- name: "makingAmount",
1241
- type: "uint256",
1242
- },
1243
- ],
1244
- internalType: "struct FillOrderParams[]",
1245
- name: "normalFills",
1246
- type: "tuple[]",
1247
- },
1248
- {
1249
- components: [
1250
- {
1251
- components: [
1252
- {
1253
- internalType: "uint256",
1254
- name: "salt",
1255
- type: "uint256",
1256
- },
1257
- {
1258
- internalType: "uint256",
1259
- name: "expiry",
1260
- type: "uint256",
1261
- },
1262
- {
1263
- internalType: "uint256",
1264
- name: "nonce",
1265
- type: "uint256",
1266
- },
1267
- {
1268
- internalType: "enum IPLimitOrderType.OrderType",
1269
- name: "orderType",
1270
- type: "uint8",
1271
- },
1272
- {
1273
- internalType: "address",
1274
- name: "token",
1275
- type: "address",
1276
- },
1277
- {
1278
- internalType: "address",
1279
- name: "YT",
1280
- type: "address",
1281
- },
1282
- {
1283
- internalType: "address",
1284
- name: "maker",
1285
- type: "address",
1286
- },
1287
- {
1288
- internalType: "address",
1289
- name: "receiver",
1290
- type: "address",
1291
- },
1292
- {
1293
- internalType: "uint256",
1294
- name: "makingAmount",
1295
- type: "uint256",
1296
- },
1297
- {
1298
- internalType: "uint256",
1299
- name: "lnImpliedRate",
1300
- type: "uint256",
1301
- },
1302
- {
1303
- internalType: "uint256",
1304
- name: "failSafeRate",
1305
- type: "uint256",
1306
- },
1307
- {
1308
- internalType: "bytes",
1309
- name: "permit",
1310
- type: "bytes",
1311
- },
1312
- ],
1313
- internalType: "struct Order",
1314
- name: "order",
1315
- type: "tuple",
1316
- },
1317
- {
1318
- internalType: "bytes",
1319
- name: "signature",
1320
- type: "bytes",
1321
- },
1322
- {
1323
- internalType: "uint256",
1324
- name: "makingAmount",
1325
- type: "uint256",
1326
- },
1327
- ],
1328
- internalType: "struct FillOrderParams[]",
1329
- name: "flashFills",
1330
- type: "tuple[]",
1331
- },
1332
- {
1333
- internalType: "bytes",
1334
- name: "optData",
1335
- type: "bytes",
1336
- },
1337
- ],
1338
- internalType: "struct LimitOrderData",
1339
- name: "limit",
1340
- type: "tuple",
1341
- },
1342
- ],
1343
- name: "exitPreExpToToken",
1344
- outputs: [
1345
- {
1346
- internalType: "uint256",
1347
- name: "netTokenOut",
1348
- type: "uint256",
1349
- },
1350
- {
1351
- components: [
1352
- {
1353
- internalType: "uint256",
1354
- name: "netPtFromRemove",
1355
- type: "uint256",
1356
- },
1357
- {
1358
- internalType: "uint256",
1359
- name: "netSyFromRemove",
1360
- type: "uint256",
1361
- },
1362
- {
1363
- internalType: "uint256",
1364
- name: "netPyRedeem",
1365
- type: "uint256",
1366
- },
1367
- {
1368
- internalType: "uint256",
1369
- name: "netSyFromRedeem",
1370
- type: "uint256",
1371
- },
1372
- {
1373
- internalType: "uint256",
1374
- name: "netPtSwap",
1375
- type: "uint256",
1376
- },
1377
- {
1378
- internalType: "uint256",
1379
- name: "netYtSwap",
1380
- type: "uint256",
1381
- },
1382
- {
1383
- internalType: "uint256",
1384
- name: "netSyFromSwap",
1385
- type: "uint256",
1386
- },
1387
- {
1388
- internalType: "uint256",
1389
- name: "netSyFee",
1390
- type: "uint256",
1391
- },
1392
- {
1393
- internalType: "uint256",
1394
- name: "totalSyOut",
1395
- type: "uint256",
1396
- },
1397
- ],
1398
- internalType: "struct IPActionMiscV3.ExitPreExpReturnParams",
1399
- name: "params",
1400
- type: "tuple",
1401
- },
1402
- ],
1403
- stateMutability: "nonpayable",
1404
- type: "function",
1405
- },
1406
284
  {
1407
285
  inputs: [
1408
286
  {