@pendle/core-v2 4.5.2 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDESY.sol/PendleSUSDESY.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDESY.sol/PendleSUSDESY.json +2 -2
  3. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultERC20SY.sol/PendleKarakVaultERC20SY.dbg.json +4 -0
  4. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultERC20SY.sol/PendleKarakVaultERC20SY.json +1070 -0
  5. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultEzETHSY.sol/PendleKarakVaultEzETHSY.dbg.json +4 -0
  6. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultEzETHSY.sol/PendleKarakVaultEzETHSY.json +1144 -0
  7. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultSUSDESY.sol/PendleKarakVaultSUSDESY.dbg.json +4 -0
  8. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultSUSDESY.sol/PendleKarakVaultSUSDESY.json +1111 -0
  9. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultSYBaseUpg.sol/PendleKarakVaultSYBaseUpg.dbg.json +4 -0
  10. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultSYBaseUpg.sol/PendleKarakVaultSYBaseUpg.json +1036 -0
  11. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultUSDESY.sol/PendleKarakVaultUSDESY.dbg.json +4 -0
  12. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultUSDESY.sol/PendleKarakVaultUSDESY.json +1096 -0
  13. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultWEETHSY.sol/PendleKarakVaultWEETHSY.dbg.json +4 -0
  14. package/build/artifacts/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultWEETHSY.sol/PendleKarakVaultWEETHSY.json +1116 -0
  15. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626SY.sol/PendleERC4626SY.dbg.json +1 -1
  16. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626SY.sol/PendleERC4626SY.json +2 -2
  17. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626UpgSY.sol/PendleERC4626SYUpg.dbg.json +1 -1
  18. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626UpgSY.sol/PendleERC4626SYUpg.json +2 -2
  19. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
  20. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
  21. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
  22. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
  23. package/build/artifacts/contracts/core/StandardizedYield/implementations/PirexETH/PendleApxETHSY.sol/PendleApxETHSY.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/StandardizedYield/implementations/PirexETH/PendleApxETHSY.sol/PendleApxETHSY.json +2 -2
  25. package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufStETHSY.sol/PendlePufStETHSY.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufStETHSY.sol/PendlePufStETHSY.json +2 -2
  27. package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufWETHSY.sol/PendlePufWETHSY.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufWETHSY.sol/PendlePufWETHSY.json +2 -2
  29. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  30. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.json +19 -0
  31. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  32. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.json +1200 -34
  33. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  34. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +1228 -62
  35. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +4 -0
  36. package/build/artifacts/contracts/interfaces/{IPPtLpOracle.sol/IPPtLpOracle.json → IPPYLpOracle.sol/IPPYLpOracle.json} +50 -2
  37. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +4 -0
  38. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.json +30 -0
  39. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +4 -0
  40. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.json +37 -0
  41. package/build/artifacts/contracts/interfaces/Karak/IKarakVault.sol/IKarakVault.dbg.json +4 -0
  42. package/build/artifacts/contracts/interfaces/Karak/IKarakVault.sol/IKarakVault.json +24 -0
  43. package/build/artifacts/contracts/interfaces/Karak/IKarakVaultSupervisor.sol/IKarakVaultSupervisor.dbg.json +4 -0
  44. package/build/artifacts/contracts/interfaces/Karak/IKarakVaultSupervisor.sol/IKarakVaultSupervisor.json +76 -0
  45. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  46. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +25 -2
  47. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
  48. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
  49. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  50. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  51. package/build/artifacts/contracts/oracles/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +4 -0
  52. package/build/artifacts/contracts/oracles/PendlePYLpOracle.sol/PendlePYLpOracle.json +422 -0
  53. package/build/artifacts/contracts/oracles/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +4 -0
  54. package/build/artifacts/contracts/oracles/{PendlePtOracleLib.sol/PendlePtOracleLib.json → PendlePYOracleLib.sol/PendlePYOracleLib.json} +4 -4
  55. package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.dbg.json +1 -1
  56. package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.json +2 -2
  57. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +4 -0
  58. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +183 -0
  59. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +4 -0
  60. package/build/artifacts/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +183 -0
  61. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  62. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  63. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  64. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +1202 -36
  65. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  66. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  67. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  68. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  69. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +4 -0
  70. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +34 -0
  71. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  72. package/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultERC20SY.sol +32 -0
  73. package/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultEzETHSY.sol +80 -0
  74. package/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultSUSDESY.sol +73 -0
  75. package/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultSYBaseUpg.sol +141 -0
  76. package/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultUSDESY.sol +18 -0
  77. package/contracts/core/StandardizedYield/implementations/Karak/PendleKarakVaultWEETHSY.sol +71 -0
  78. package/contracts/interfaces/IERC4626.sol +2 -0
  79. package/contracts/interfaces/IPActionMiscV3.sol +99 -0
  80. package/contracts/interfaces/{IPPtLpOracle.sol → IPPYLpOracle.sol} +5 -1
  81. package/contracts/interfaces/IPReflector.sol +6 -0
  82. package/contracts/interfaces/IPTokenWithSupplyCap.sol +9 -0
  83. package/contracts/interfaces/Karak/IKarakVault.sol +6 -0
  84. package/contracts/interfaces/Karak/IKarakVaultSupervisor.sol +8 -0
  85. package/contracts/offchain-helpers/PendlePoolDeployHelper.sol +5 -0
  86. package/contracts/oracles/PendleLpOracleLib.sol +4 -4
  87. package/contracts/oracles/{PendlePtLpOracle.sol → PendlePYLpOracle.sol} +51 -21
  88. package/contracts/oracles/{PendlePtOracleLib.sol → PendlePYOracleLib.sol} +31 -1
  89. package/contracts/oracles/samples/BoringLpGlpOracle.sol +2 -2
  90. package/contracts/oracles/samples/{BoringPtUsdChainlinkOracle.sol → BoringPYUsdChainlinkAssetOracle.sol} +36 -12
  91. package/contracts/oracles/samples/BoringPYUsdChainlinkSYOracle.sol +102 -0
  92. package/contracts/router/ActionMiscV3.sol +182 -34
  93. package/contracts/router/ActionSwapYTV3.sol +0 -85
  94. package/contracts/router/Reflector.sol +70 -0
  95. package/contracts/router/base/ActionBase.sol +90 -1
  96. package/deployments/1-core.json +11 -2
  97. package/deployments/1-markets/KARAK-SUSDE-MAINNET-SEP2024.json +14 -0
  98. package/deployments/1-markets/KARAK-USDE-MAINNET-SEP2024.json +14 -0
  99. package/deployments/1-markets/KARAK-WEETH-MAINNET-SEP2024.json +14 -0
  100. package/deployments/10-core.json +11 -2
  101. package/deployments/42161-core.json +11 -2
  102. package/deployments/42161-markets/CAMELOT-PEP-ARBITRUM-JUNE2025.json +14 -0
  103. package/deployments/42161-markets/RSETH-ARBITRUM-SEP2024-NEW.json +11 -0
  104. package/deployments/5000-core.json +11 -2
  105. package/deployments/56-core.json +11 -2
  106. package/package.json +1 -1
  107. package/typechain-types/ActionMiscV3.ts +628 -16
  108. package/typechain-types/IERC4626.ts +34 -0
  109. package/typechain-types/IKarakVault.ts +84 -0
  110. package/typechain-types/IKarakVaultSupervisor.ts +190 -0
  111. package/typechain-types/IPActionMiscV3.ts +628 -16
  112. package/typechain-types/IPAllActionV3.ts +535 -0
  113. package/typechain-types/IPReflector.ts +95 -0
  114. package/typechain-types/IPTokenWithSupplyCap.ts +110 -0
  115. package/typechain-types/PendleKarakVaultERC20SY.ts +1324 -0
  116. package/typechain-types/PendleKarakVaultEzETHSY.ts +1400 -0
  117. package/typechain-types/PendleKarakVaultSUSDESY.ts +1380 -0
  118. package/typechain-types/PendleKarakVaultSYBaseUpg.ts +1312 -0
  119. package/typechain-types/PendleKarakVaultUSDESY.ts +1366 -0
  120. package/typechain-types/PendleKarakVaultWEETHSY.ts +1370 -0
  121. package/typechain-types/PendlePYLpOracle.ts +10 -3
  122. package/typechain-types/PendlePoolDeployHelper.ts +44 -0
  123. package/typechain-types/Reflector.ts +95 -0
  124. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  125. package/typechain-types/factories/ActionMiscV3__factory.ts +1201 -35
  126. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  127. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  128. package/typechain-types/factories/BoringLpGlpOracle__factory.ts +1 -1
  129. package/typechain-types/factories/IERC4626__factory.ts +19 -0
  130. package/typechain-types/factories/IKarakVaultSupervisor__factory.ts +95 -0
  131. package/typechain-types/factories/IKarakVault__factory.ts +36 -0
  132. package/typechain-types/factories/IPActionMiscV3__factory.ts +1200 -34
  133. package/typechain-types/factories/IPAllActionV3__factory.ts +1228 -62
  134. package/typechain-types/factories/IPReflector__factory.ts +42 -0
  135. package/typechain-types/factories/IPTokenWithSupplyCap__factory.ts +56 -0
  136. package/typechain-types/factories/PendleApxETHSY__factory.ts +1 -1
  137. package/typechain-types/factories/PendleERC4626SYUpg__factory.ts +1 -1
  138. package/typechain-types/factories/PendleERC4626SY__factory.ts +1 -1
  139. package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
  140. package/typechain-types/factories/PendleKarakVaultERC20SY__factory.ts +1139 -0
  141. package/typechain-types/factories/PendleKarakVaultEzETHSY__factory.ts +1236 -0
  142. package/typechain-types/factories/PendleKarakVaultSUSDESY__factory.ts +1180 -0
  143. package/typechain-types/factories/PendleKarakVaultSYBaseUpg__factory.ts +1055 -0
  144. package/typechain-types/factories/PendleKarakVaultUSDESY__factory.ts +1165 -0
  145. package/typechain-types/factories/PendleKarakVaultWEETHSY__factory.ts +1189 -0
  146. package/typechain-types/factories/PendlePYLpOracle__factory.ts +12 -24
  147. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +24 -1
  148. package/typechain-types/factories/PendlePufStETHSY__factory.ts +1 -1
  149. package/typechain-types/factories/PendlePufWETHSY__factory.ts +1 -1
  150. package/typechain-types/factories/PendleSUSDESY__factory.ts +1 -1
  151. package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
  152. package/typechain-types/factories/Reflector__factory.ts +84 -0
  153. package/typechain-types/hardhat.d.ts +99 -0
  154. package/typechain-types/index.ts +22 -0
  155. package/build/artifacts/contracts/interfaces/IPPtLpOracle.sol/IPPtLpOracle.dbg.json +0 -4
  156. package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.dbg.json +0 -4
  157. package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.json +0 -367
  158. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +0 -4
  159. package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.dbg.json +0 -4
  160. package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.json +0 -157
@@ -350,29 +350,56 @@ const _abi = [
350
350
  {
351
351
  indexed: true,
352
352
  internalType: "address",
353
- name: "receiver",
353
+ name: "market",
354
354
  type: "address",
355
355
  },
356
356
  {
357
357
  indexed: true,
358
358
  internalType: "address",
359
- name: "YT",
359
+ name: "receiver",
360
360
  type: "address",
361
361
  },
362
362
  {
363
363
  indexed: false,
364
364
  internalType: "uint256",
365
- name: "netSyIn",
365
+ name: "netLpIn",
366
366
  type: "uint256",
367
367
  },
368
368
  {
369
+ components: [
370
+ {
371
+ internalType: "uint256",
372
+ name: "netPtFromRemove",
373
+ type: "uint256",
374
+ },
375
+ {
376
+ internalType: "uint256",
377
+ name: "netSyFromRemove",
378
+ type: "uint256",
379
+ },
380
+ {
381
+ internalType: "uint256",
382
+ name: "netPtRedeem",
383
+ type: "uint256",
384
+ },
385
+ {
386
+ internalType: "uint256",
387
+ name: "netSyFromRedeem",
388
+ type: "uint256",
389
+ },
390
+ {
391
+ internalType: "uint256",
392
+ name: "totalSyOut",
393
+ type: "uint256",
394
+ },
395
+ ],
369
396
  indexed: false,
370
- internalType: "uint256",
371
- name: "netPyOut",
372
- type: "uint256",
397
+ internalType: "struct IPActionMiscV3.ExitPostExpReturnParams",
398
+ name: "params",
399
+ type: "tuple",
373
400
  },
374
401
  ],
375
- name: "MintPyFromSy",
402
+ name: "ExitPostExpToSy",
376
403
  type: "event",
377
404
  },
378
405
  {
@@ -387,13 +414,13 @@ const _abi = [
387
414
  {
388
415
  indexed: true,
389
416
  internalType: "address",
390
- name: "tokenIn",
417
+ name: "market",
391
418
  type: "address",
392
419
  },
393
420
  {
394
421
  indexed: true,
395
422
  internalType: "address",
396
- name: "YT",
423
+ name: "token",
397
424
  type: "address",
398
425
  },
399
426
  {
@@ -405,23 +432,50 @@ const _abi = [
405
432
  {
406
433
  indexed: false,
407
434
  internalType: "uint256",
408
- name: "netTokenIn",
435
+ name: "netLpIn",
409
436
  type: "uint256",
410
437
  },
411
438
  {
412
439
  indexed: false,
413
440
  internalType: "uint256",
414
- name: "netPyOut",
441
+ name: "totalTokenOut",
415
442
  type: "uint256",
416
443
  },
417
444
  {
445
+ components: [
446
+ {
447
+ internalType: "uint256",
448
+ name: "netPtFromRemove",
449
+ type: "uint256",
450
+ },
451
+ {
452
+ internalType: "uint256",
453
+ name: "netSyFromRemove",
454
+ type: "uint256",
455
+ },
456
+ {
457
+ internalType: "uint256",
458
+ name: "netPtRedeem",
459
+ type: "uint256",
460
+ },
461
+ {
462
+ internalType: "uint256",
463
+ name: "netSyFromRedeem",
464
+ type: "uint256",
465
+ },
466
+ {
467
+ internalType: "uint256",
468
+ name: "totalSyOut",
469
+ type: "uint256",
470
+ },
471
+ ],
418
472
  indexed: false,
419
- internalType: "uint256",
420
- name: "netSyInterm",
421
- type: "uint256",
473
+ internalType: "struct IPActionMiscV3.ExitPostExpReturnParams",
474
+ name: "params",
475
+ type: "tuple",
422
476
  },
423
477
  ],
424
- name: "MintPyFromToken",
478
+ name: "ExitPostExpToToken",
425
479
  type: "event",
426
480
  },
427
481
  {
@@ -436,35 +490,76 @@ const _abi = [
436
490
  {
437
491
  indexed: true,
438
492
  internalType: "address",
439
- name: "tokenIn",
493
+ name: "market",
440
494
  type: "address",
441
495
  },
442
496
  {
443
497
  indexed: true,
444
498
  internalType: "address",
445
- name: "SY",
446
- type: "address",
447
- },
448
- {
449
- indexed: false,
450
- internalType: "address",
451
499
  name: "receiver",
452
500
  type: "address",
453
501
  },
454
502
  {
455
503
  indexed: false,
456
504
  internalType: "uint256",
457
- name: "netTokenIn",
505
+ name: "netLpIn",
458
506
  type: "uint256",
459
507
  },
460
508
  {
509
+ components: [
510
+ {
511
+ internalType: "uint256",
512
+ name: "netPtFromRemove",
513
+ type: "uint256",
514
+ },
515
+ {
516
+ internalType: "uint256",
517
+ name: "netSyFromRemove",
518
+ type: "uint256",
519
+ },
520
+ {
521
+ internalType: "uint256",
522
+ name: "netPyRedeem",
523
+ type: "uint256",
524
+ },
525
+ {
526
+ internalType: "uint256",
527
+ name: "netSyFromRedeem",
528
+ type: "uint256",
529
+ },
530
+ {
531
+ internalType: "uint256",
532
+ name: "netPtSwap",
533
+ type: "uint256",
534
+ },
535
+ {
536
+ internalType: "uint256",
537
+ name: "netYtSwap",
538
+ type: "uint256",
539
+ },
540
+ {
541
+ internalType: "uint256",
542
+ name: "netSyFromSwap",
543
+ type: "uint256",
544
+ },
545
+ {
546
+ internalType: "uint256",
547
+ name: "netSyFee",
548
+ type: "uint256",
549
+ },
550
+ {
551
+ internalType: "uint256",
552
+ name: "totalSyOut",
553
+ type: "uint256",
554
+ },
555
+ ],
461
556
  indexed: false,
462
- internalType: "uint256",
463
- name: "netSyOut",
464
- type: "uint256",
557
+ internalType: "struct IPActionMiscV3.ExitPreExpReturnParams",
558
+ name: "params",
559
+ type: "tuple",
465
560
  },
466
561
  ],
467
- name: "MintSyFromToken",
562
+ name: "ExitPreExpToSy",
468
563
  type: "event",
469
564
  },
470
565
  {
@@ -473,17 +568,94 @@ const _abi = [
473
568
  {
474
569
  indexed: true,
475
570
  internalType: "address",
476
- name: "previousOwner",
571
+ name: "caller",
477
572
  type: "address",
478
573
  },
479
574
  {
480
575
  indexed: true,
481
576
  internalType: "address",
482
- name: "newOwner",
577
+ name: "market",
578
+ type: "address",
579
+ },
580
+ {
581
+ indexed: true,
582
+ internalType: "address",
583
+ name: "token",
584
+ type: "address",
585
+ },
586
+ {
587
+ indexed: false,
588
+ internalType: "address",
589
+ name: "receiver",
483
590
  type: "address",
484
591
  },
592
+ {
593
+ indexed: false,
594
+ internalType: "uint256",
595
+ name: "netLpIn",
596
+ type: "uint256",
597
+ },
598
+ {
599
+ indexed: false,
600
+ internalType: "uint256",
601
+ name: "totalTokenOut",
602
+ type: "uint256",
603
+ },
604
+ {
605
+ components: [
606
+ {
607
+ internalType: "uint256",
608
+ name: "netPtFromRemove",
609
+ type: "uint256",
610
+ },
611
+ {
612
+ internalType: "uint256",
613
+ name: "netSyFromRemove",
614
+ type: "uint256",
615
+ },
616
+ {
617
+ internalType: "uint256",
618
+ name: "netPyRedeem",
619
+ type: "uint256",
620
+ },
621
+ {
622
+ internalType: "uint256",
623
+ name: "netSyFromRedeem",
624
+ type: "uint256",
625
+ },
626
+ {
627
+ internalType: "uint256",
628
+ name: "netPtSwap",
629
+ type: "uint256",
630
+ },
631
+ {
632
+ internalType: "uint256",
633
+ name: "netYtSwap",
634
+ type: "uint256",
635
+ },
636
+ {
637
+ internalType: "uint256",
638
+ name: "netSyFromSwap",
639
+ type: "uint256",
640
+ },
641
+ {
642
+ internalType: "uint256",
643
+ name: "netSyFee",
644
+ type: "uint256",
645
+ },
646
+ {
647
+ internalType: "uint256",
648
+ name: "totalSyOut",
649
+ type: "uint256",
650
+ },
651
+ ],
652
+ indexed: false,
653
+ internalType: "struct IPActionMiscV3.ExitPreExpReturnParams",
654
+ name: "params",
655
+ type: "tuple",
656
+ },
485
657
  ],
486
- name: "OwnershipTransferred",
658
+ name: "ExitPreExpToToken",
487
659
  type: "event",
488
660
  },
489
661
  {
@@ -510,17 +682,17 @@ const _abi = [
510
682
  {
511
683
  indexed: false,
512
684
  internalType: "uint256",
513
- name: "netPyIn",
685
+ name: "netSyIn",
514
686
  type: "uint256",
515
687
  },
516
688
  {
517
689
  indexed: false,
518
690
  internalType: "uint256",
519
- name: "netSyOut",
691
+ name: "netPyOut",
520
692
  type: "uint256",
521
693
  },
522
694
  ],
523
- name: "RedeemPyToSy",
695
+ name: "MintPyFromSy",
524
696
  type: "event",
525
697
  },
526
698
  {
@@ -535,7 +707,7 @@ const _abi = [
535
707
  {
536
708
  indexed: true,
537
709
  internalType: "address",
538
- name: "tokenOut",
710
+ name: "tokenIn",
539
711
  type: "address",
540
712
  },
541
713
  {
@@ -553,13 +725,13 @@ const _abi = [
553
725
  {
554
726
  indexed: false,
555
727
  internalType: "uint256",
556
- name: "netPyIn",
728
+ name: "netTokenIn",
557
729
  type: "uint256",
558
730
  },
559
731
  {
560
732
  indexed: false,
561
733
  internalType: "uint256",
562
- name: "netTokenOut",
734
+ name: "netPyOut",
563
735
  type: "uint256",
564
736
  },
565
737
  {
@@ -569,7 +741,7 @@ const _abi = [
569
741
  type: "uint256",
570
742
  },
571
743
  ],
572
- name: "RedeemPyToToken",
744
+ name: "MintPyFromToken",
573
745
  type: "event",
574
746
  },
575
747
  {
@@ -584,7 +756,7 @@ const _abi = [
584
756
  {
585
757
  indexed: true,
586
758
  internalType: "address",
587
- name: "tokenOut",
759
+ name: "tokenIn",
588
760
  type: "address",
589
761
  },
590
762
  {
@@ -602,17 +774,17 @@ const _abi = [
602
774
  {
603
775
  indexed: false,
604
776
  internalType: "uint256",
605
- name: "netSyIn",
777
+ name: "netTokenIn",
606
778
  type: "uint256",
607
779
  },
608
780
  {
609
781
  indexed: false,
610
782
  internalType: "uint256",
611
- name: "netTokenOut",
783
+ name: "netSyOut",
612
784
  type: "uint256",
613
785
  },
614
786
  ],
615
- name: "RedeemSyToToken",
787
+ name: "MintSyFromToken",
616
788
  type: "event",
617
789
  },
618
790
  {
@@ -621,13 +793,26 @@ const _abi = [
621
793
  {
622
794
  indexed: true,
623
795
  internalType: "address",
624
- name: "caller",
796
+ name: "previousOwner",
625
797
  type: "address",
626
798
  },
627
799
  {
628
800
  indexed: true,
629
801
  internalType: "address",
630
- name: "market",
802
+ name: "newOwner",
803
+ type: "address",
804
+ },
805
+ ],
806
+ name: "OwnershipTransferred",
807
+ type: "event",
808
+ },
809
+ {
810
+ anonymous: false,
811
+ inputs: [
812
+ {
813
+ indexed: true,
814
+ internalType: "address",
815
+ name: "caller",
631
816
  type: "address",
632
817
  },
633
818
  {
@@ -637,15 +822,15 @@ const _abi = [
637
822
  type: "address",
638
823
  },
639
824
  {
640
- indexed: false,
641
- internalType: "uint256",
642
- name: "netLpToRemove",
643
- type: "uint256",
825
+ indexed: true,
826
+ internalType: "address",
827
+ name: "YT",
828
+ type: "address",
644
829
  },
645
830
  {
646
831
  indexed: false,
647
832
  internalType: "uint256",
648
- name: "netPtOut",
833
+ name: "netPyIn",
649
834
  type: "uint256",
650
835
  },
651
836
  {
@@ -655,7 +840,7 @@ const _abi = [
655
840
  type: "uint256",
656
841
  },
657
842
  ],
658
- name: "RemoveLiquidityDualSyAndPt",
843
+ name: "RedeemPyToSy",
659
844
  type: "event",
660
845
  },
661
846
  {
@@ -670,13 +855,13 @@ const _abi = [
670
855
  {
671
856
  indexed: true,
672
857
  internalType: "address",
673
- name: "market",
858
+ name: "tokenOut",
674
859
  type: "address",
675
860
  },
676
861
  {
677
862
  indexed: true,
678
863
  internalType: "address",
679
- name: "tokenOut",
864
+ name: "YT",
680
865
  type: "address",
681
866
  },
682
867
  {
@@ -688,13 +873,7 @@ const _abi = [
688
873
  {
689
874
  indexed: false,
690
875
  internalType: "uint256",
691
- name: "netLpToRemove",
692
- type: "uint256",
693
- },
694
- {
695
- indexed: false,
696
- internalType: "uint256",
697
- name: "netPtOut",
876
+ name: "netPyIn",
698
877
  type: "uint256",
699
878
  },
700
879
  {
@@ -710,7 +889,7 @@ const _abi = [
710
889
  type: "uint256",
711
890
  },
712
891
  ],
713
- name: "RemoveLiquidityDualTokenAndPt",
892
+ name: "RedeemPyToToken",
714
893
  type: "event",
715
894
  },
716
895
  {
@@ -725,18 +904,159 @@ const _abi = [
725
904
  {
726
905
  indexed: true,
727
906
  internalType: "address",
728
- name: "market",
907
+ name: "tokenOut",
729
908
  type: "address",
730
909
  },
731
910
  {
732
911
  indexed: true,
733
912
  internalType: "address",
734
- name: "receiver",
913
+ name: "SY",
735
914
  type: "address",
736
915
  },
737
916
  {
738
917
  indexed: false,
739
- internalType: "uint256",
918
+ internalType: "address",
919
+ name: "receiver",
920
+ type: "address",
921
+ },
922
+ {
923
+ indexed: false,
924
+ internalType: "uint256",
925
+ name: "netSyIn",
926
+ type: "uint256",
927
+ },
928
+ {
929
+ indexed: false,
930
+ internalType: "uint256",
931
+ name: "netTokenOut",
932
+ type: "uint256",
933
+ },
934
+ ],
935
+ name: "RedeemSyToToken",
936
+ type: "event",
937
+ },
938
+ {
939
+ anonymous: false,
940
+ inputs: [
941
+ {
942
+ indexed: true,
943
+ internalType: "address",
944
+ name: "caller",
945
+ type: "address",
946
+ },
947
+ {
948
+ indexed: true,
949
+ internalType: "address",
950
+ name: "market",
951
+ type: "address",
952
+ },
953
+ {
954
+ indexed: true,
955
+ internalType: "address",
956
+ name: "receiver",
957
+ type: "address",
958
+ },
959
+ {
960
+ indexed: false,
961
+ internalType: "uint256",
962
+ name: "netLpToRemove",
963
+ type: "uint256",
964
+ },
965
+ {
966
+ indexed: false,
967
+ internalType: "uint256",
968
+ name: "netPtOut",
969
+ type: "uint256",
970
+ },
971
+ {
972
+ indexed: false,
973
+ internalType: "uint256",
974
+ name: "netSyOut",
975
+ type: "uint256",
976
+ },
977
+ ],
978
+ name: "RemoveLiquidityDualSyAndPt",
979
+ type: "event",
980
+ },
981
+ {
982
+ anonymous: false,
983
+ inputs: [
984
+ {
985
+ indexed: true,
986
+ internalType: "address",
987
+ name: "caller",
988
+ type: "address",
989
+ },
990
+ {
991
+ indexed: true,
992
+ internalType: "address",
993
+ name: "market",
994
+ type: "address",
995
+ },
996
+ {
997
+ indexed: true,
998
+ internalType: "address",
999
+ name: "tokenOut",
1000
+ type: "address",
1001
+ },
1002
+ {
1003
+ indexed: false,
1004
+ internalType: "address",
1005
+ name: "receiver",
1006
+ type: "address",
1007
+ },
1008
+ {
1009
+ indexed: false,
1010
+ internalType: "uint256",
1011
+ name: "netLpToRemove",
1012
+ type: "uint256",
1013
+ },
1014
+ {
1015
+ indexed: false,
1016
+ internalType: "uint256",
1017
+ name: "netPtOut",
1018
+ type: "uint256",
1019
+ },
1020
+ {
1021
+ indexed: false,
1022
+ internalType: "uint256",
1023
+ name: "netTokenOut",
1024
+ type: "uint256",
1025
+ },
1026
+ {
1027
+ indexed: false,
1028
+ internalType: "uint256",
1029
+ name: "netSyInterm",
1030
+ type: "uint256",
1031
+ },
1032
+ ],
1033
+ name: "RemoveLiquidityDualTokenAndPt",
1034
+ type: "event",
1035
+ },
1036
+ {
1037
+ anonymous: false,
1038
+ inputs: [
1039
+ {
1040
+ indexed: true,
1041
+ internalType: "address",
1042
+ name: "caller",
1043
+ type: "address",
1044
+ },
1045
+ {
1046
+ indexed: true,
1047
+ internalType: "address",
1048
+ name: "market",
1049
+ type: "address",
1050
+ },
1051
+ {
1052
+ indexed: true,
1053
+ internalType: "address",
1054
+ name: "receiver",
1055
+ type: "address",
1056
+ },
1057
+ {
1058
+ indexed: false,
1059
+ internalType: "uint256",
740
1060
  name: "netLpToRemove",
741
1061
  type: "uint256",
742
1062
  },
@@ -2213,6 +2533,50 @@ const _abi = [
2213
2533
  stateMutability: "nonpayable",
2214
2534
  type: "function",
2215
2535
  },
2536
+ {
2537
+ inputs: [
2538
+ {
2539
+ internalType: "address payable",
2540
+ name: "reflector",
2541
+ type: "address",
2542
+ },
2543
+ {
2544
+ internalType: "bytes",
2545
+ name: "selfCall1",
2546
+ type: "bytes",
2547
+ },
2548
+ {
2549
+ internalType: "bytes",
2550
+ name: "selfCall2",
2551
+ type: "bytes",
2552
+ },
2553
+ {
2554
+ internalType: "bytes",
2555
+ name: "reflectCall",
2556
+ type: "bytes",
2557
+ },
2558
+ ],
2559
+ name: "callAndReflect",
2560
+ outputs: [
2561
+ {
2562
+ internalType: "bytes",
2563
+ name: "selfRes1",
2564
+ type: "bytes",
2565
+ },
2566
+ {
2567
+ internalType: "bytes",
2568
+ name: "selfRes2",
2569
+ type: "bytes",
2570
+ },
2571
+ {
2572
+ internalType: "bytes",
2573
+ name: "reflectRes",
2574
+ type: "bytes",
2575
+ },
2576
+ ],
2577
+ stateMutability: "payable",
2578
+ type: "function",
2579
+ },
2216
2580
  {
2217
2581
  inputs: [],
2218
2582
  name: "claimOwnership",
@@ -2220,6 +2584,808 @@ const _abi = [
2220
2584
  stateMutability: "nonpayable",
2221
2585
  type: "function",
2222
2586
  },
2587
+ {
2588
+ inputs: [
2589
+ {
2590
+ internalType: "address",
2591
+ name: "receiver",
2592
+ type: "address",
2593
+ },
2594
+ {
2595
+ internalType: "address",
2596
+ name: "market",
2597
+ type: "address",
2598
+ },
2599
+ {
2600
+ internalType: "uint256",
2601
+ name: "netPtIn",
2602
+ type: "uint256",
2603
+ },
2604
+ {
2605
+ internalType: "uint256",
2606
+ name: "netLpIn",
2607
+ type: "uint256",
2608
+ },
2609
+ {
2610
+ internalType: "uint256",
2611
+ name: "minSyOut",
2612
+ type: "uint256",
2613
+ },
2614
+ ],
2615
+ name: "exitPostExpToSy",
2616
+ outputs: [
2617
+ {
2618
+ components: [
2619
+ {
2620
+ internalType: "uint256",
2621
+ name: "netPtFromRemove",
2622
+ type: "uint256",
2623
+ },
2624
+ {
2625
+ internalType: "uint256",
2626
+ name: "netSyFromRemove",
2627
+ type: "uint256",
2628
+ },
2629
+ {
2630
+ internalType: "uint256",
2631
+ name: "netPtRedeem",
2632
+ type: "uint256",
2633
+ },
2634
+ {
2635
+ internalType: "uint256",
2636
+ name: "netSyFromRedeem",
2637
+ type: "uint256",
2638
+ },
2639
+ {
2640
+ internalType: "uint256",
2641
+ name: "totalSyOut",
2642
+ type: "uint256",
2643
+ },
2644
+ ],
2645
+ internalType: "struct IPActionMiscV3.ExitPostExpReturnParams",
2646
+ name: "params",
2647
+ type: "tuple",
2648
+ },
2649
+ ],
2650
+ stateMutability: "nonpayable",
2651
+ type: "function",
2652
+ },
2653
+ {
2654
+ inputs: [
2655
+ {
2656
+ internalType: "address",
2657
+ name: "receiver",
2658
+ type: "address",
2659
+ },
2660
+ {
2661
+ internalType: "address",
2662
+ name: "market",
2663
+ type: "address",
2664
+ },
2665
+ {
2666
+ internalType: "uint256",
2667
+ name: "netPtIn",
2668
+ type: "uint256",
2669
+ },
2670
+ {
2671
+ internalType: "uint256",
2672
+ name: "netLpIn",
2673
+ type: "uint256",
2674
+ },
2675
+ {
2676
+ components: [
2677
+ {
2678
+ internalType: "address",
2679
+ name: "tokenOut",
2680
+ type: "address",
2681
+ },
2682
+ {
2683
+ internalType: "uint256",
2684
+ name: "minTokenOut",
2685
+ type: "uint256",
2686
+ },
2687
+ {
2688
+ internalType: "address",
2689
+ name: "tokenRedeemSy",
2690
+ type: "address",
2691
+ },
2692
+ {
2693
+ internalType: "address",
2694
+ name: "pendleSwap",
2695
+ type: "address",
2696
+ },
2697
+ {
2698
+ components: [
2699
+ {
2700
+ internalType: "enum SwapType",
2701
+ name: "swapType",
2702
+ type: "uint8",
2703
+ },
2704
+ {
2705
+ internalType: "address",
2706
+ name: "extRouter",
2707
+ type: "address",
2708
+ },
2709
+ {
2710
+ internalType: "bytes",
2711
+ name: "extCalldata",
2712
+ type: "bytes",
2713
+ },
2714
+ {
2715
+ internalType: "bool",
2716
+ name: "needScale",
2717
+ type: "bool",
2718
+ },
2719
+ ],
2720
+ internalType: "struct SwapData",
2721
+ name: "swapData",
2722
+ type: "tuple",
2723
+ },
2724
+ ],
2725
+ internalType: "struct TokenOutput",
2726
+ name: "output",
2727
+ type: "tuple",
2728
+ },
2729
+ ],
2730
+ name: "exitPostExpToToken",
2731
+ outputs: [
2732
+ {
2733
+ internalType: "uint256",
2734
+ name: "netTokenOut",
2735
+ type: "uint256",
2736
+ },
2737
+ {
2738
+ components: [
2739
+ {
2740
+ internalType: "uint256",
2741
+ name: "netPtFromRemove",
2742
+ type: "uint256",
2743
+ },
2744
+ {
2745
+ internalType: "uint256",
2746
+ name: "netSyFromRemove",
2747
+ type: "uint256",
2748
+ },
2749
+ {
2750
+ internalType: "uint256",
2751
+ name: "netPtRedeem",
2752
+ type: "uint256",
2753
+ },
2754
+ {
2755
+ internalType: "uint256",
2756
+ name: "netSyFromRedeem",
2757
+ type: "uint256",
2758
+ },
2759
+ {
2760
+ internalType: "uint256",
2761
+ name: "totalSyOut",
2762
+ type: "uint256",
2763
+ },
2764
+ ],
2765
+ internalType: "struct IPActionMiscV3.ExitPostExpReturnParams",
2766
+ name: "params",
2767
+ type: "tuple",
2768
+ },
2769
+ ],
2770
+ stateMutability: "nonpayable",
2771
+ type: "function",
2772
+ },
2773
+ {
2774
+ inputs: [
2775
+ {
2776
+ internalType: "address",
2777
+ name: "receiver",
2778
+ type: "address",
2779
+ },
2780
+ {
2781
+ internalType: "address",
2782
+ name: "market",
2783
+ type: "address",
2784
+ },
2785
+ {
2786
+ internalType: "uint256",
2787
+ name: "netPtIn",
2788
+ type: "uint256",
2789
+ },
2790
+ {
2791
+ internalType: "uint256",
2792
+ name: "netYtIn",
2793
+ type: "uint256",
2794
+ },
2795
+ {
2796
+ internalType: "uint256",
2797
+ name: "netLpIn",
2798
+ type: "uint256",
2799
+ },
2800
+ {
2801
+ internalType: "uint256",
2802
+ name: "minSyOut",
2803
+ type: "uint256",
2804
+ },
2805
+ {
2806
+ components: [
2807
+ {
2808
+ internalType: "address",
2809
+ name: "limitRouter",
2810
+ type: "address",
2811
+ },
2812
+ {
2813
+ internalType: "uint256",
2814
+ name: "epsSkipMarket",
2815
+ type: "uint256",
2816
+ },
2817
+ {
2818
+ components: [
2819
+ {
2820
+ components: [
2821
+ {
2822
+ internalType: "uint256",
2823
+ name: "salt",
2824
+ type: "uint256",
2825
+ },
2826
+ {
2827
+ internalType: "uint256",
2828
+ name: "expiry",
2829
+ type: "uint256",
2830
+ },
2831
+ {
2832
+ internalType: "uint256",
2833
+ name: "nonce",
2834
+ type: "uint256",
2835
+ },
2836
+ {
2837
+ internalType: "enum IPLimitOrderType.OrderType",
2838
+ name: "orderType",
2839
+ type: "uint8",
2840
+ },
2841
+ {
2842
+ internalType: "address",
2843
+ name: "token",
2844
+ type: "address",
2845
+ },
2846
+ {
2847
+ internalType: "address",
2848
+ name: "YT",
2849
+ type: "address",
2850
+ },
2851
+ {
2852
+ internalType: "address",
2853
+ name: "maker",
2854
+ type: "address",
2855
+ },
2856
+ {
2857
+ internalType: "address",
2858
+ name: "receiver",
2859
+ type: "address",
2860
+ },
2861
+ {
2862
+ internalType: "uint256",
2863
+ name: "makingAmount",
2864
+ type: "uint256",
2865
+ },
2866
+ {
2867
+ internalType: "uint256",
2868
+ name: "lnImpliedRate",
2869
+ type: "uint256",
2870
+ },
2871
+ {
2872
+ internalType: "uint256",
2873
+ name: "failSafeRate",
2874
+ type: "uint256",
2875
+ },
2876
+ {
2877
+ internalType: "bytes",
2878
+ name: "permit",
2879
+ type: "bytes",
2880
+ },
2881
+ ],
2882
+ internalType: "struct Order",
2883
+ name: "order",
2884
+ type: "tuple",
2885
+ },
2886
+ {
2887
+ internalType: "bytes",
2888
+ name: "signature",
2889
+ type: "bytes",
2890
+ },
2891
+ {
2892
+ internalType: "uint256",
2893
+ name: "makingAmount",
2894
+ type: "uint256",
2895
+ },
2896
+ ],
2897
+ internalType: "struct FillOrderParams[]",
2898
+ name: "normalFills",
2899
+ type: "tuple[]",
2900
+ },
2901
+ {
2902
+ components: [
2903
+ {
2904
+ components: [
2905
+ {
2906
+ internalType: "uint256",
2907
+ name: "salt",
2908
+ type: "uint256",
2909
+ },
2910
+ {
2911
+ internalType: "uint256",
2912
+ name: "expiry",
2913
+ type: "uint256",
2914
+ },
2915
+ {
2916
+ internalType: "uint256",
2917
+ name: "nonce",
2918
+ type: "uint256",
2919
+ },
2920
+ {
2921
+ internalType: "enum IPLimitOrderType.OrderType",
2922
+ name: "orderType",
2923
+ type: "uint8",
2924
+ },
2925
+ {
2926
+ internalType: "address",
2927
+ name: "token",
2928
+ type: "address",
2929
+ },
2930
+ {
2931
+ internalType: "address",
2932
+ name: "YT",
2933
+ type: "address",
2934
+ },
2935
+ {
2936
+ internalType: "address",
2937
+ name: "maker",
2938
+ type: "address",
2939
+ },
2940
+ {
2941
+ internalType: "address",
2942
+ name: "receiver",
2943
+ type: "address",
2944
+ },
2945
+ {
2946
+ internalType: "uint256",
2947
+ name: "makingAmount",
2948
+ type: "uint256",
2949
+ },
2950
+ {
2951
+ internalType: "uint256",
2952
+ name: "lnImpliedRate",
2953
+ type: "uint256",
2954
+ },
2955
+ {
2956
+ internalType: "uint256",
2957
+ name: "failSafeRate",
2958
+ type: "uint256",
2959
+ },
2960
+ {
2961
+ internalType: "bytes",
2962
+ name: "permit",
2963
+ type: "bytes",
2964
+ },
2965
+ ],
2966
+ internalType: "struct Order",
2967
+ name: "order",
2968
+ type: "tuple",
2969
+ },
2970
+ {
2971
+ internalType: "bytes",
2972
+ name: "signature",
2973
+ type: "bytes",
2974
+ },
2975
+ {
2976
+ internalType: "uint256",
2977
+ name: "makingAmount",
2978
+ type: "uint256",
2979
+ },
2980
+ ],
2981
+ internalType: "struct FillOrderParams[]",
2982
+ name: "flashFills",
2983
+ type: "tuple[]",
2984
+ },
2985
+ {
2986
+ internalType: "bytes",
2987
+ name: "optData",
2988
+ type: "bytes",
2989
+ },
2990
+ ],
2991
+ internalType: "struct LimitOrderData",
2992
+ name: "limit",
2993
+ type: "tuple",
2994
+ },
2995
+ ],
2996
+ name: "exitPreExpToSy",
2997
+ outputs: [
2998
+ {
2999
+ components: [
3000
+ {
3001
+ internalType: "uint256",
3002
+ name: "netPtFromRemove",
3003
+ type: "uint256",
3004
+ },
3005
+ {
3006
+ internalType: "uint256",
3007
+ name: "netSyFromRemove",
3008
+ type: "uint256",
3009
+ },
3010
+ {
3011
+ internalType: "uint256",
3012
+ name: "netPyRedeem",
3013
+ type: "uint256",
3014
+ },
3015
+ {
3016
+ internalType: "uint256",
3017
+ name: "netSyFromRedeem",
3018
+ type: "uint256",
3019
+ },
3020
+ {
3021
+ internalType: "uint256",
3022
+ name: "netPtSwap",
3023
+ type: "uint256",
3024
+ },
3025
+ {
3026
+ internalType: "uint256",
3027
+ name: "netYtSwap",
3028
+ type: "uint256",
3029
+ },
3030
+ {
3031
+ internalType: "uint256",
3032
+ name: "netSyFromSwap",
3033
+ type: "uint256",
3034
+ },
3035
+ {
3036
+ internalType: "uint256",
3037
+ name: "netSyFee",
3038
+ type: "uint256",
3039
+ },
3040
+ {
3041
+ internalType: "uint256",
3042
+ name: "totalSyOut",
3043
+ type: "uint256",
3044
+ },
3045
+ ],
3046
+ internalType: "struct IPActionMiscV3.ExitPreExpReturnParams",
3047
+ name: "params",
3048
+ type: "tuple",
3049
+ },
3050
+ ],
3051
+ stateMutability: "nonpayable",
3052
+ type: "function",
3053
+ },
3054
+ {
3055
+ inputs: [
3056
+ {
3057
+ internalType: "address",
3058
+ name: "receiver",
3059
+ type: "address",
3060
+ },
3061
+ {
3062
+ internalType: "address",
3063
+ name: "market",
3064
+ type: "address",
3065
+ },
3066
+ {
3067
+ internalType: "uint256",
3068
+ name: "netPtIn",
3069
+ type: "uint256",
3070
+ },
3071
+ {
3072
+ internalType: "uint256",
3073
+ name: "netYtIn",
3074
+ type: "uint256",
3075
+ },
3076
+ {
3077
+ internalType: "uint256",
3078
+ name: "netLpIn",
3079
+ type: "uint256",
3080
+ },
3081
+ {
3082
+ components: [
3083
+ {
3084
+ internalType: "address",
3085
+ name: "tokenOut",
3086
+ type: "address",
3087
+ },
3088
+ {
3089
+ internalType: "uint256",
3090
+ name: "minTokenOut",
3091
+ type: "uint256",
3092
+ },
3093
+ {
3094
+ internalType: "address",
3095
+ name: "tokenRedeemSy",
3096
+ type: "address",
3097
+ },
3098
+ {
3099
+ internalType: "address",
3100
+ name: "pendleSwap",
3101
+ type: "address",
3102
+ },
3103
+ {
3104
+ components: [
3105
+ {
3106
+ internalType: "enum SwapType",
3107
+ name: "swapType",
3108
+ type: "uint8",
3109
+ },
3110
+ {
3111
+ internalType: "address",
3112
+ name: "extRouter",
3113
+ type: "address",
3114
+ },
3115
+ {
3116
+ internalType: "bytes",
3117
+ name: "extCalldata",
3118
+ type: "bytes",
3119
+ },
3120
+ {
3121
+ internalType: "bool",
3122
+ name: "needScale",
3123
+ type: "bool",
3124
+ },
3125
+ ],
3126
+ internalType: "struct SwapData",
3127
+ name: "swapData",
3128
+ type: "tuple",
3129
+ },
3130
+ ],
3131
+ internalType: "struct TokenOutput",
3132
+ name: "output",
3133
+ type: "tuple",
3134
+ },
3135
+ {
3136
+ components: [
3137
+ {
3138
+ internalType: "address",
3139
+ name: "limitRouter",
3140
+ type: "address",
3141
+ },
3142
+ {
3143
+ internalType: "uint256",
3144
+ name: "epsSkipMarket",
3145
+ type: "uint256",
3146
+ },
3147
+ {
3148
+ components: [
3149
+ {
3150
+ components: [
3151
+ {
3152
+ internalType: "uint256",
3153
+ name: "salt",
3154
+ type: "uint256",
3155
+ },
3156
+ {
3157
+ internalType: "uint256",
3158
+ name: "expiry",
3159
+ type: "uint256",
3160
+ },
3161
+ {
3162
+ internalType: "uint256",
3163
+ name: "nonce",
3164
+ type: "uint256",
3165
+ },
3166
+ {
3167
+ internalType: "enum IPLimitOrderType.OrderType",
3168
+ name: "orderType",
3169
+ type: "uint8",
3170
+ },
3171
+ {
3172
+ internalType: "address",
3173
+ name: "token",
3174
+ type: "address",
3175
+ },
3176
+ {
3177
+ internalType: "address",
3178
+ name: "YT",
3179
+ type: "address",
3180
+ },
3181
+ {
3182
+ internalType: "address",
3183
+ name: "maker",
3184
+ type: "address",
3185
+ },
3186
+ {
3187
+ internalType: "address",
3188
+ name: "receiver",
3189
+ type: "address",
3190
+ },
3191
+ {
3192
+ internalType: "uint256",
3193
+ name: "makingAmount",
3194
+ type: "uint256",
3195
+ },
3196
+ {
3197
+ internalType: "uint256",
3198
+ name: "lnImpliedRate",
3199
+ type: "uint256",
3200
+ },
3201
+ {
3202
+ internalType: "uint256",
3203
+ name: "failSafeRate",
3204
+ type: "uint256",
3205
+ },
3206
+ {
3207
+ internalType: "bytes",
3208
+ name: "permit",
3209
+ type: "bytes",
3210
+ },
3211
+ ],
3212
+ internalType: "struct Order",
3213
+ name: "order",
3214
+ type: "tuple",
3215
+ },
3216
+ {
3217
+ internalType: "bytes",
3218
+ name: "signature",
3219
+ type: "bytes",
3220
+ },
3221
+ {
3222
+ internalType: "uint256",
3223
+ name: "makingAmount",
3224
+ type: "uint256",
3225
+ },
3226
+ ],
3227
+ internalType: "struct FillOrderParams[]",
3228
+ name: "normalFills",
3229
+ type: "tuple[]",
3230
+ },
3231
+ {
3232
+ components: [
3233
+ {
3234
+ components: [
3235
+ {
3236
+ internalType: "uint256",
3237
+ name: "salt",
3238
+ type: "uint256",
3239
+ },
3240
+ {
3241
+ internalType: "uint256",
3242
+ name: "expiry",
3243
+ type: "uint256",
3244
+ },
3245
+ {
3246
+ internalType: "uint256",
3247
+ name: "nonce",
3248
+ type: "uint256",
3249
+ },
3250
+ {
3251
+ internalType: "enum IPLimitOrderType.OrderType",
3252
+ name: "orderType",
3253
+ type: "uint8",
3254
+ },
3255
+ {
3256
+ internalType: "address",
3257
+ name: "token",
3258
+ type: "address",
3259
+ },
3260
+ {
3261
+ internalType: "address",
3262
+ name: "YT",
3263
+ type: "address",
3264
+ },
3265
+ {
3266
+ internalType: "address",
3267
+ name: "maker",
3268
+ type: "address",
3269
+ },
3270
+ {
3271
+ internalType: "address",
3272
+ name: "receiver",
3273
+ type: "address",
3274
+ },
3275
+ {
3276
+ internalType: "uint256",
3277
+ name: "makingAmount",
3278
+ type: "uint256",
3279
+ },
3280
+ {
3281
+ internalType: "uint256",
3282
+ name: "lnImpliedRate",
3283
+ type: "uint256",
3284
+ },
3285
+ {
3286
+ internalType: "uint256",
3287
+ name: "failSafeRate",
3288
+ type: "uint256",
3289
+ },
3290
+ {
3291
+ internalType: "bytes",
3292
+ name: "permit",
3293
+ type: "bytes",
3294
+ },
3295
+ ],
3296
+ internalType: "struct Order",
3297
+ name: "order",
3298
+ type: "tuple",
3299
+ },
3300
+ {
3301
+ internalType: "bytes",
3302
+ name: "signature",
3303
+ type: "bytes",
3304
+ },
3305
+ {
3306
+ internalType: "uint256",
3307
+ name: "makingAmount",
3308
+ type: "uint256",
3309
+ },
3310
+ ],
3311
+ internalType: "struct FillOrderParams[]",
3312
+ name: "flashFills",
3313
+ type: "tuple[]",
3314
+ },
3315
+ {
3316
+ internalType: "bytes",
3317
+ name: "optData",
3318
+ type: "bytes",
3319
+ },
3320
+ ],
3321
+ internalType: "struct LimitOrderData",
3322
+ name: "limit",
3323
+ type: "tuple",
3324
+ },
3325
+ ],
3326
+ name: "exitPreExpToToken",
3327
+ outputs: [
3328
+ {
3329
+ internalType: "uint256",
3330
+ name: "netTokenOut",
3331
+ type: "uint256",
3332
+ },
3333
+ {
3334
+ components: [
3335
+ {
3336
+ internalType: "uint256",
3337
+ name: "netPtFromRemove",
3338
+ type: "uint256",
3339
+ },
3340
+ {
3341
+ internalType: "uint256",
3342
+ name: "netSyFromRemove",
3343
+ type: "uint256",
3344
+ },
3345
+ {
3346
+ internalType: "uint256",
3347
+ name: "netPyRedeem",
3348
+ type: "uint256",
3349
+ },
3350
+ {
3351
+ internalType: "uint256",
3352
+ name: "netSyFromRedeem",
3353
+ type: "uint256",
3354
+ },
3355
+ {
3356
+ internalType: "uint256",
3357
+ name: "netPtSwap",
3358
+ type: "uint256",
3359
+ },
3360
+ {
3361
+ internalType: "uint256",
3362
+ name: "netYtSwap",
3363
+ type: "uint256",
3364
+ },
3365
+ {
3366
+ internalType: "uint256",
3367
+ name: "netSyFromSwap",
3368
+ type: "uint256",
3369
+ },
3370
+ {
3371
+ internalType: "uint256",
3372
+ name: "netSyFee",
3373
+ type: "uint256",
3374
+ },
3375
+ {
3376
+ internalType: "uint256",
3377
+ name: "totalSyOut",
3378
+ type: "uint256",
3379
+ },
3380
+ ],
3381
+ internalType: "struct IPActionMiscV3.ExitPreExpReturnParams",
3382
+ name: "params",
3383
+ type: "tuple",
3384
+ },
3385
+ ],
3386
+ stateMutability: "nonpayable",
3387
+ type: "function",
3388
+ },
2223
3389
  {
2224
3390
  inputs: [
2225
3391
  {