@pendle/core-v2 5.3.0 → 5.4.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 (255) hide show
  1. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  2. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.json +0 -37
  3. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  4. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  5. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.json +0 -115
  6. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  7. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.json +0 -37
  8. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  9. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.json +0 -37
  10. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  11. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.json +0 -37
  12. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  13. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.json +0 -37
  14. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  15. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.json +0 -179
  16. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  17. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  18. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +0 -257
  19. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  20. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  21. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  22. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  23. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  24. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.json +0 -37
  25. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  26. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.json +0 -37
  27. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  28. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.json +13 -0
  29. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  30. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +0 -37
  31. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  32. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +2 -2
  33. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  34. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  35. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  36. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  37. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  38. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  39. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  40. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  41. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  42. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  43. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  44. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  45. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  46. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -39
  47. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  48. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  49. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +4 -0
  50. package/build/artifacts/contracts/{router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.json → offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json} +4 -4
  51. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +4 -0
  52. package/build/artifacts/contracts/{router/swap-aggregator/kyberswap/l2-contracts/BytesHelper.sol/BytesHelper.json → offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json} +4 -4
  53. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  54. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  55. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -39
  56. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  57. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -117
  58. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  59. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -39
  60. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  61. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -39
  62. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  63. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -39
  64. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  65. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -181
  66. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  67. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  68. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  69. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  70. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  71. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  72. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  73. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  74. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  75. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  76. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  77. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  78. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  79. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +4 -0
  80. package/build/artifacts/contracts/router/math/{MarketApproxLib.sol/MarketApproxPtInLib.json → MarketApproxLibV2.sol/MarketApproxPtInLibV2.json} +4 -4
  81. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +4 -0
  82. package/build/artifacts/contracts/router/math/{MarketApproxLib.sol/MarketApproxPtOutLib.json → MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json} +4 -4
  83. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  84. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  85. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  86. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  87. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  88. package/contracts/interfaces/IPActionAddRemoveLiqV3.sol +1 -1
  89. package/contracts/interfaces/IPActionMarketAuxStatic.sol +2 -1
  90. package/contracts/interfaces/IPActionMiscV3.sol +1 -7
  91. package/contracts/interfaces/IPActionStorageStatic.sol +1 -1
  92. package/contracts/interfaces/IPActionSwapPTV3.sol +1 -1
  93. package/contracts/interfaces/IPActionSwapYTV3.sol +1 -17
  94. package/contracts/interfaces/IPActionVePendleStatic.sol +1 -0
  95. package/contracts/interfaces/IPAllEventsV3.sol +0 -8
  96. package/contracts/interfaces/IPPausingInterface.sol +2 -0
  97. package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +2 -2
  98. package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +8 -7
  99. package/contracts/{router/math/MarketApproxLib.sol → offchain-helpers/router-static/base/MarketApproxLibV1.sol} +13 -13
  100. package/contracts/offchain-helpers/router-static/base/StorageLayout.sol +1 -1
  101. package/contracts/router/ActionAddRemoveLiqV3.sol +4 -4
  102. package/contracts/router/ActionMiscV3.sol +0 -14
  103. package/contracts/router/ActionSwapYTV3.sol +2 -65
  104. package/contracts/router/base/ActionBase.sol +5 -6
  105. package/contracts/router/math/MarketApproxLibV2.sol +479 -0
  106. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +8 -1
  107. package/contracts/router/swap-aggregator/PendleSwap.sol +0 -2
  108. package/deployments/1-core.json +5 -5
  109. package/deployments/merkle-distribution/2024-10-31.json +23370 -0
  110. package/deployments/merkle-distribution/2024-11-28.json +24040 -0
  111. package/package.json +1 -1
  112. package/typechain-types/ActionAddRemoveLiqV3.ts +2000 -0
  113. package/typechain-types/ActionInfoStatic.ts +310 -0
  114. package/typechain-types/ActionMarketAuxStatic.ts +903 -0
  115. package/typechain-types/ActionMarketCoreStatic.ts +1974 -0
  116. package/typechain-types/ActionMintRedeemStatic.ts +435 -0
  117. package/typechain-types/ActionMiscV3.ts +2213 -0
  118. package/typechain-types/ActionSimple.ts +1544 -0
  119. package/typechain-types/ActionStorageStatic.ts +1345 -0
  120. package/typechain-types/ActionStorageV4.ts +1270 -0
  121. package/typechain-types/ActionSwapPTV3.ts +1507 -0
  122. package/typechain-types/ActionSwapYTV3.ts +1507 -0
  123. package/typechain-types/ActionVePendleStatic.ts +113 -0
  124. package/typechain-types/IKyberScalingHelper.ts +108 -0
  125. package/typechain-types/IOdosRouterV2.ts +147 -0
  126. package/typechain-types/IPActionAddRemoveLiqV3.ts +2000 -0
  127. package/typechain-types/IPActionAddRemoveLiqV3Events.ts +499 -0
  128. package/typechain-types/IPActionMarketAuxStatic.ts +859 -0
  129. package/typechain-types/IPActionMiscV3.ts +2213 -0
  130. package/typechain-types/IPActionMiscV3Events.ts +463 -0
  131. package/typechain-types/IPActionSimple.ts +1544 -0
  132. package/typechain-types/IPActionStorageEvents.ts +97 -0
  133. package/typechain-types/IPActionStorageStatic.ts +1268 -0
  134. package/typechain-types/IPActionStorageV4.ts +1270 -0
  135. package/typechain-types/IPActionSwapPTV3.ts +1507 -0
  136. package/typechain-types/IPActionSwapPTV3Events.ts +125 -0
  137. package/typechain-types/IPActionSwapYTV3.ts +1507 -0
  138. package/typechain-types/IPActionSwapYTV3Events.ts +125 -0
  139. package/typechain-types/IPActionVePendleStatic.ts +113 -0
  140. package/typechain-types/IPAllActionV3.ts +4210 -0
  141. package/typechain-types/IPAllEventsV3.ts +1080 -0
  142. package/typechain-types/IPPausingInterface.ts +125 -0
  143. package/typechain-types/IPRouterStatic.ts +4633 -0
  144. package/typechain-types/IPSwapAggregator.ts +187 -0
  145. package/typechain-types/PendleGovernanceProxy.ts +603 -0
  146. package/typechain-types/PendlePoolDeployHelper.ts +342 -0
  147. package/typechain-types/PendleRouterStatic.ts +57 -0
  148. package/typechain-types/PendleRouterV4.ts +57 -0
  149. package/typechain-types/PendleSwap.ts +208 -0
  150. package/typechain-types/Reflector.ts +95 -0
  151. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +3533 -0
  152. package/typechain-types/factories/ActionInfoStatic__factory.ts +360 -0
  153. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +780 -0
  154. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1449 -0
  155. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +304 -0
  156. package/typechain-types/factories/ActionMiscV3__factory.ts +3056 -0
  157. package/typechain-types/factories/ActionSimple__factory.ts +1939 -0
  158. package/typechain-types/factories/ActionStorageStatic__factory.ts +1576 -0
  159. package/typechain-types/factories/ActionStorageV4__factory.ts +1504 -0
  160. package/typechain-types/factories/ActionSwapPTV3__factory.ts +2556 -0
  161. package/typechain-types/factories/ActionSwapYTV3__factory.ts +2556 -0
  162. package/typechain-types/factories/ActionVePendleStatic__factory.ts +155 -0
  163. package/typechain-types/factories/IKyberScalingHelper__factory.ts +55 -0
  164. package/typechain-types/factories/IOdosRouterV2__factory.ts +94 -0
  165. package/typechain-types/factories/IPActionAddRemoveLiqV3Events__factory.ts +582 -0
  166. package/typechain-types/factories/IPActionAddRemoveLiqV3__factory.ts +3421 -0
  167. package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +622 -0
  168. package/typechain-types/factories/IPActionMiscV3Events__factory.ts +608 -0
  169. package/typechain-types/factories/IPActionMiscV3__factory.ts +3005 -0
  170. package/typechain-types/factories/IPActionSimple__factory.ts +1840 -0
  171. package/typechain-types/factories/IPActionStorageEvents__factory.ts +68 -0
  172. package/typechain-types/factories/IPActionStorageStatic__factory.ts +1498 -0
  173. package/typechain-types/factories/IPActionStorageV4__factory.ts +1466 -0
  174. package/typechain-types/factories/IPActionSwapPTV3Events__factory.ts +116 -0
  175. package/typechain-types/factories/IPActionSwapPTV3__factory.ts +2454 -0
  176. package/typechain-types/factories/IPActionSwapYTV3Events__factory.ts +116 -0
  177. package/typechain-types/factories/IPActionSwapYTV3__factory.ts +2454 -0
  178. package/typechain-types/factories/IPActionVePendleStatic__factory.ts +59 -0
  179. package/typechain-types/factories/IPAllActionV3__factory.ts +7860 -0
  180. package/typechain-types/factories/IPAllEventsV3__factory.ts +1363 -0
  181. package/typechain-types/factories/IPPausingInterface__factory.ts +53 -0
  182. package/typechain-types/factories/IPRouterStatic__factory.ts +3956 -0
  183. package/typechain-types/factories/IPSwapAggregator__factory.ts +136 -0
  184. package/typechain-types/factories/PendleGovernanceProxy__factory.ts +458 -0
  185. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +345 -0
  186. package/typechain-types/factories/PendleRouterStatic__factory.ts +88 -0
  187. package/typechain-types/factories/PendleRouterV4__factory.ts +96 -0
  188. package/typechain-types/factories/PendleSwap__factory.ts +188 -0
  189. package/typechain-types/factories/Reflector__factory.ts +84 -0
  190. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +0 -4
  191. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +0 -4
  192. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +0 -4
  193. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.json +0 -65
  194. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutorOptimistic.sol/IAggregationExecutorOptimistic.dbg.json +0 -4
  195. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutorOptimistic.sol/IAggregationExecutorOptimistic.json +0 -194
  196. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.dbg.json +0 -4
  197. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.json +0 -1787
  198. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.dbg.json +0 -4
  199. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.json +0 -2873
  200. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2Struct.sol/IExecutorHelperL2Struct.dbg.json +0 -4
  201. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2Struct.sol/IExecutorHelperL2Struct.json +0 -10
  202. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperStruct.sol/IExecutorHelperStruct.dbg.json +0 -4
  203. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperStruct.sol/IExecutorHelperStruct.json +0 -10
  204. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +0 -4
  205. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +0 -215
  206. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IBebopV3.sol/IBebopV3.dbg.json +0 -4
  207. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IBebopV3.sol/IBebopV3.json +0 -10
  208. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberDSLO.sol/IKyberDSLO.dbg.json +0 -4
  209. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberDSLO.sol/IKyberDSLO.json +0 -10
  210. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberLO.sol/IKyberLO.dbg.json +0 -4
  211. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberLO.sol/IKyberLO.json +0 -10
  212. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.dbg.json +0 -4
  213. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.json +0 -10
  214. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.dbg.json +0 -4
  215. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/BytesHelper.sol/BytesHelper.dbg.json +0 -4
  216. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol/CalldataReader.dbg.json +0 -4
  217. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol/CalldataReader.json +0 -10
  218. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.dbg.json +0 -4
  219. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.json +0 -10
  220. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol/Common.dbg.json +0 -4
  221. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol/Common.json +0 -10
  222. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.dbg.json +0 -4
  223. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.json +0 -10
  224. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol/ExecutorReader.dbg.json +0 -4
  225. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol/ExecutorReader.json +0 -10
  226. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.dbg.json +0 -4
  227. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.json +0 -10
  228. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.dbg.json +0 -4
  229. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.json +0 -10
  230. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/libraries/BytesHelper.sol/BytesHelper.dbg.json +0 -4
  231. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/libraries/BytesHelper.sol/BytesHelper.json +0 -10
  232. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/libraries/RevertReasonParser.sol/RevertReasonParser.dbg.json +0 -4
  233. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/libraries/RevertReasonParser.sol/RevertReasonParser.json +0 -10
  234. package/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol +0 -31
  235. package/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutorOptimistic.sol +0 -63
  236. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol +0 -164
  237. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol +0 -483
  238. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2Struct.sol +0 -412
  239. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperStruct.sol +0 -459
  240. package/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol +0 -47
  241. package/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IBebopV3.sol +0 -23
  242. package/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberDSLO.sol +0 -36
  243. package/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberLO.sol +0 -32
  244. package/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol +0 -354
  245. package/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol +0 -521
  246. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/BytesHelper.sol +0 -93
  247. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol +0 -404
  248. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol +0 -118
  249. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol +0 -41
  250. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol +0 -684
  251. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol +0 -61
  252. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol +0 -373
  253. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol +0 -273
  254. package/contracts/router/swap-aggregator/kyberswap/libraries/BytesHelper.sol +0 -32
  255. package/contracts/router/swap-aggregator/kyberswap/libraries/RevertReasonParser.sol +0 -75
@@ -0,0 +1,3005 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IPActionMiscV3,
9
+ IPActionMiscV3Interface,
10
+ } from "../IPActionMiscV3";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "caller",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "address",
25
+ name: "market",
26
+ type: "address",
27
+ },
28
+ {
29
+ indexed: true,
30
+ internalType: "address",
31
+ name: "receiver",
32
+ type: "address",
33
+ },
34
+ {
35
+ indexed: false,
36
+ internalType: "uint256",
37
+ name: "netSyUsed",
38
+ type: "uint256",
39
+ },
40
+ {
41
+ indexed: false,
42
+ internalType: "uint256",
43
+ name: "netPtUsed",
44
+ type: "uint256",
45
+ },
46
+ {
47
+ indexed: false,
48
+ internalType: "uint256",
49
+ name: "netLpOut",
50
+ type: "uint256",
51
+ },
52
+ ],
53
+ name: "AddLiquidityDualSyAndPt",
54
+ type: "event",
55
+ },
56
+ {
57
+ anonymous: false,
58
+ inputs: [
59
+ {
60
+ indexed: true,
61
+ internalType: "address",
62
+ name: "caller",
63
+ type: "address",
64
+ },
65
+ {
66
+ indexed: true,
67
+ internalType: "address",
68
+ name: "market",
69
+ type: "address",
70
+ },
71
+ {
72
+ indexed: true,
73
+ internalType: "address",
74
+ name: "tokenIn",
75
+ type: "address",
76
+ },
77
+ {
78
+ indexed: false,
79
+ internalType: "address",
80
+ name: "receiver",
81
+ type: "address",
82
+ },
83
+ {
84
+ indexed: false,
85
+ internalType: "uint256",
86
+ name: "netTokenUsed",
87
+ type: "uint256",
88
+ },
89
+ {
90
+ indexed: false,
91
+ internalType: "uint256",
92
+ name: "netPtUsed",
93
+ type: "uint256",
94
+ },
95
+ {
96
+ indexed: false,
97
+ internalType: "uint256",
98
+ name: "netLpOut",
99
+ type: "uint256",
100
+ },
101
+ {
102
+ indexed: false,
103
+ internalType: "uint256",
104
+ name: "netSyInterm",
105
+ type: "uint256",
106
+ },
107
+ ],
108
+ name: "AddLiquidityDualTokenAndPt",
109
+ type: "event",
110
+ },
111
+ {
112
+ anonymous: false,
113
+ inputs: [
114
+ {
115
+ indexed: true,
116
+ internalType: "address",
117
+ name: "caller",
118
+ type: "address",
119
+ },
120
+ {
121
+ indexed: true,
122
+ internalType: "address",
123
+ name: "market",
124
+ type: "address",
125
+ },
126
+ {
127
+ indexed: true,
128
+ internalType: "address",
129
+ name: "receiver",
130
+ type: "address",
131
+ },
132
+ {
133
+ indexed: false,
134
+ internalType: "uint256",
135
+ name: "netPtIn",
136
+ type: "uint256",
137
+ },
138
+ {
139
+ indexed: false,
140
+ internalType: "uint256",
141
+ name: "netLpOut",
142
+ type: "uint256",
143
+ },
144
+ ],
145
+ name: "AddLiquiditySinglePt",
146
+ type: "event",
147
+ },
148
+ {
149
+ anonymous: false,
150
+ inputs: [
151
+ {
152
+ indexed: true,
153
+ internalType: "address",
154
+ name: "caller",
155
+ type: "address",
156
+ },
157
+ {
158
+ indexed: true,
159
+ internalType: "address",
160
+ name: "market",
161
+ type: "address",
162
+ },
163
+ {
164
+ indexed: true,
165
+ internalType: "address",
166
+ name: "receiver",
167
+ type: "address",
168
+ },
169
+ {
170
+ indexed: false,
171
+ internalType: "uint256",
172
+ name: "netSyIn",
173
+ type: "uint256",
174
+ },
175
+ {
176
+ indexed: false,
177
+ internalType: "uint256",
178
+ name: "netLpOut",
179
+ type: "uint256",
180
+ },
181
+ ],
182
+ name: "AddLiquiditySingleSy",
183
+ type: "event",
184
+ },
185
+ {
186
+ anonymous: false,
187
+ inputs: [
188
+ {
189
+ indexed: true,
190
+ internalType: "address",
191
+ name: "caller",
192
+ type: "address",
193
+ },
194
+ {
195
+ indexed: true,
196
+ internalType: "address",
197
+ name: "market",
198
+ type: "address",
199
+ },
200
+ {
201
+ indexed: true,
202
+ internalType: "address",
203
+ name: "receiver",
204
+ type: "address",
205
+ },
206
+ {
207
+ indexed: false,
208
+ internalType: "uint256",
209
+ name: "netSyIn",
210
+ type: "uint256",
211
+ },
212
+ {
213
+ indexed: false,
214
+ internalType: "uint256",
215
+ name: "netSyMintPy",
216
+ type: "uint256",
217
+ },
218
+ {
219
+ indexed: false,
220
+ internalType: "uint256",
221
+ name: "netLpOut",
222
+ type: "uint256",
223
+ },
224
+ {
225
+ indexed: false,
226
+ internalType: "uint256",
227
+ name: "netYtOut",
228
+ type: "uint256",
229
+ },
230
+ ],
231
+ name: "AddLiquiditySingleSyKeepYt",
232
+ type: "event",
233
+ },
234
+ {
235
+ anonymous: false,
236
+ inputs: [
237
+ {
238
+ indexed: true,
239
+ internalType: "address",
240
+ name: "caller",
241
+ type: "address",
242
+ },
243
+ {
244
+ indexed: true,
245
+ internalType: "address",
246
+ name: "market",
247
+ type: "address",
248
+ },
249
+ {
250
+ indexed: true,
251
+ internalType: "address",
252
+ name: "token",
253
+ type: "address",
254
+ },
255
+ {
256
+ indexed: false,
257
+ internalType: "address",
258
+ name: "receiver",
259
+ type: "address",
260
+ },
261
+ {
262
+ indexed: false,
263
+ internalType: "uint256",
264
+ name: "netTokenIn",
265
+ type: "uint256",
266
+ },
267
+ {
268
+ indexed: false,
269
+ internalType: "uint256",
270
+ name: "netLpOut",
271
+ type: "uint256",
272
+ },
273
+ {
274
+ indexed: false,
275
+ internalType: "uint256",
276
+ name: "netSyInterm",
277
+ type: "uint256",
278
+ },
279
+ ],
280
+ name: "AddLiquiditySingleToken",
281
+ type: "event",
282
+ },
283
+ {
284
+ anonymous: false,
285
+ inputs: [
286
+ {
287
+ indexed: true,
288
+ internalType: "address",
289
+ name: "caller",
290
+ type: "address",
291
+ },
292
+ {
293
+ indexed: true,
294
+ internalType: "address",
295
+ name: "market",
296
+ type: "address",
297
+ },
298
+ {
299
+ indexed: true,
300
+ internalType: "address",
301
+ name: "token",
302
+ type: "address",
303
+ },
304
+ {
305
+ indexed: false,
306
+ internalType: "address",
307
+ name: "receiver",
308
+ type: "address",
309
+ },
310
+ {
311
+ indexed: false,
312
+ internalType: "uint256",
313
+ name: "netTokenIn",
314
+ type: "uint256",
315
+ },
316
+ {
317
+ indexed: false,
318
+ internalType: "uint256",
319
+ name: "netLpOut",
320
+ type: "uint256",
321
+ },
322
+ {
323
+ indexed: false,
324
+ internalType: "uint256",
325
+ name: "netYtOut",
326
+ type: "uint256",
327
+ },
328
+ {
329
+ indexed: false,
330
+ internalType: "uint256",
331
+ name: "netSyMintPy",
332
+ type: "uint256",
333
+ },
334
+ {
335
+ indexed: false,
336
+ internalType: "uint256",
337
+ name: "netSyInterm",
338
+ type: "uint256",
339
+ },
340
+ ],
341
+ name: "AddLiquiditySingleTokenKeepYt",
342
+ type: "event",
343
+ },
344
+ {
345
+ anonymous: false,
346
+ inputs: [
347
+ {
348
+ indexed: true,
349
+ internalType: "address",
350
+ name: "caller",
351
+ type: "address",
352
+ },
353
+ {
354
+ indexed: true,
355
+ internalType: "address",
356
+ name: "market",
357
+ type: "address",
358
+ },
359
+ {
360
+ indexed: true,
361
+ internalType: "address",
362
+ name: "receiver",
363
+ type: "address",
364
+ },
365
+ {
366
+ indexed: false,
367
+ internalType: "uint256",
368
+ name: "netLpIn",
369
+ type: "uint256",
370
+ },
371
+ {
372
+ components: [
373
+ {
374
+ internalType: "uint256",
375
+ name: "netPtFromRemove",
376
+ type: "uint256",
377
+ },
378
+ {
379
+ internalType: "uint256",
380
+ name: "netSyFromRemove",
381
+ type: "uint256",
382
+ },
383
+ {
384
+ internalType: "uint256",
385
+ name: "netPtRedeem",
386
+ type: "uint256",
387
+ },
388
+ {
389
+ internalType: "uint256",
390
+ name: "netSyFromRedeem",
391
+ type: "uint256",
392
+ },
393
+ {
394
+ internalType: "uint256",
395
+ name: "totalSyOut",
396
+ type: "uint256",
397
+ },
398
+ ],
399
+ indexed: false,
400
+ internalType: "struct ExitPostExpReturnParams",
401
+ name: "params",
402
+ type: "tuple",
403
+ },
404
+ ],
405
+ name: "ExitPostExpToSy",
406
+ type: "event",
407
+ },
408
+ {
409
+ anonymous: false,
410
+ inputs: [
411
+ {
412
+ indexed: true,
413
+ internalType: "address",
414
+ name: "caller",
415
+ type: "address",
416
+ },
417
+ {
418
+ indexed: true,
419
+ internalType: "address",
420
+ name: "market",
421
+ type: "address",
422
+ },
423
+ {
424
+ indexed: true,
425
+ internalType: "address",
426
+ name: "token",
427
+ type: "address",
428
+ },
429
+ {
430
+ indexed: false,
431
+ internalType: "address",
432
+ name: "receiver",
433
+ type: "address",
434
+ },
435
+ {
436
+ indexed: false,
437
+ internalType: "uint256",
438
+ name: "netLpIn",
439
+ type: "uint256",
440
+ },
441
+ {
442
+ indexed: false,
443
+ internalType: "uint256",
444
+ name: "totalTokenOut",
445
+ type: "uint256",
446
+ },
447
+ {
448
+ components: [
449
+ {
450
+ internalType: "uint256",
451
+ name: "netPtFromRemove",
452
+ type: "uint256",
453
+ },
454
+ {
455
+ internalType: "uint256",
456
+ name: "netSyFromRemove",
457
+ type: "uint256",
458
+ },
459
+ {
460
+ internalType: "uint256",
461
+ name: "netPtRedeem",
462
+ type: "uint256",
463
+ },
464
+ {
465
+ internalType: "uint256",
466
+ name: "netSyFromRedeem",
467
+ type: "uint256",
468
+ },
469
+ {
470
+ internalType: "uint256",
471
+ name: "totalSyOut",
472
+ type: "uint256",
473
+ },
474
+ ],
475
+ indexed: false,
476
+ internalType: "struct ExitPostExpReturnParams",
477
+ name: "params",
478
+ type: "tuple",
479
+ },
480
+ ],
481
+ name: "ExitPostExpToToken",
482
+ type: "event",
483
+ },
484
+ {
485
+ anonymous: false,
486
+ inputs: [
487
+ {
488
+ indexed: true,
489
+ internalType: "address",
490
+ name: "caller",
491
+ type: "address",
492
+ },
493
+ {
494
+ indexed: true,
495
+ internalType: "address",
496
+ name: "market",
497
+ type: "address",
498
+ },
499
+ {
500
+ indexed: true,
501
+ internalType: "address",
502
+ name: "receiver",
503
+ type: "address",
504
+ },
505
+ {
506
+ indexed: false,
507
+ internalType: "uint256",
508
+ name: "netLpIn",
509
+ type: "uint256",
510
+ },
511
+ {
512
+ components: [
513
+ {
514
+ internalType: "uint256",
515
+ name: "netPtFromRemove",
516
+ type: "uint256",
517
+ },
518
+ {
519
+ internalType: "uint256",
520
+ name: "netSyFromRemove",
521
+ type: "uint256",
522
+ },
523
+ {
524
+ internalType: "uint256",
525
+ name: "netPyRedeem",
526
+ type: "uint256",
527
+ },
528
+ {
529
+ internalType: "uint256",
530
+ name: "netSyFromRedeem",
531
+ type: "uint256",
532
+ },
533
+ {
534
+ internalType: "uint256",
535
+ name: "netPtSwap",
536
+ type: "uint256",
537
+ },
538
+ {
539
+ internalType: "uint256",
540
+ name: "netYtSwap",
541
+ type: "uint256",
542
+ },
543
+ {
544
+ internalType: "uint256",
545
+ name: "netSyFromSwap",
546
+ type: "uint256",
547
+ },
548
+ {
549
+ internalType: "uint256",
550
+ name: "netSyFee",
551
+ type: "uint256",
552
+ },
553
+ {
554
+ internalType: "uint256",
555
+ name: "totalSyOut",
556
+ type: "uint256",
557
+ },
558
+ ],
559
+ indexed: false,
560
+ internalType: "struct ExitPreExpReturnParams",
561
+ name: "params",
562
+ type: "tuple",
563
+ },
564
+ ],
565
+ name: "ExitPreExpToSy",
566
+ type: "event",
567
+ },
568
+ {
569
+ anonymous: false,
570
+ inputs: [
571
+ {
572
+ indexed: true,
573
+ internalType: "address",
574
+ name: "caller",
575
+ type: "address",
576
+ },
577
+ {
578
+ indexed: true,
579
+ internalType: "address",
580
+ name: "market",
581
+ type: "address",
582
+ },
583
+ {
584
+ indexed: true,
585
+ internalType: "address",
586
+ name: "token",
587
+ type: "address",
588
+ },
589
+ {
590
+ indexed: false,
591
+ internalType: "address",
592
+ name: "receiver",
593
+ type: "address",
594
+ },
595
+ {
596
+ indexed: false,
597
+ internalType: "uint256",
598
+ name: "netLpIn",
599
+ type: "uint256",
600
+ },
601
+ {
602
+ indexed: false,
603
+ internalType: "uint256",
604
+ name: "totalTokenOut",
605
+ type: "uint256",
606
+ },
607
+ {
608
+ components: [
609
+ {
610
+ internalType: "uint256",
611
+ name: "netPtFromRemove",
612
+ type: "uint256",
613
+ },
614
+ {
615
+ internalType: "uint256",
616
+ name: "netSyFromRemove",
617
+ type: "uint256",
618
+ },
619
+ {
620
+ internalType: "uint256",
621
+ name: "netPyRedeem",
622
+ type: "uint256",
623
+ },
624
+ {
625
+ internalType: "uint256",
626
+ name: "netSyFromRedeem",
627
+ type: "uint256",
628
+ },
629
+ {
630
+ internalType: "uint256",
631
+ name: "netPtSwap",
632
+ type: "uint256",
633
+ },
634
+ {
635
+ internalType: "uint256",
636
+ name: "netYtSwap",
637
+ type: "uint256",
638
+ },
639
+ {
640
+ internalType: "uint256",
641
+ name: "netSyFromSwap",
642
+ type: "uint256",
643
+ },
644
+ {
645
+ internalType: "uint256",
646
+ name: "netSyFee",
647
+ type: "uint256",
648
+ },
649
+ {
650
+ internalType: "uint256",
651
+ name: "totalSyOut",
652
+ type: "uint256",
653
+ },
654
+ ],
655
+ indexed: false,
656
+ internalType: "struct ExitPreExpReturnParams",
657
+ name: "params",
658
+ type: "tuple",
659
+ },
660
+ ],
661
+ name: "ExitPreExpToToken",
662
+ type: "event",
663
+ },
664
+ {
665
+ anonymous: false,
666
+ inputs: [
667
+ {
668
+ indexed: true,
669
+ internalType: "address",
670
+ name: "caller",
671
+ type: "address",
672
+ },
673
+ {
674
+ indexed: true,
675
+ internalType: "address",
676
+ name: "receiver",
677
+ type: "address",
678
+ },
679
+ {
680
+ indexed: true,
681
+ internalType: "address",
682
+ name: "YT",
683
+ type: "address",
684
+ },
685
+ {
686
+ indexed: false,
687
+ internalType: "uint256",
688
+ name: "netSyIn",
689
+ type: "uint256",
690
+ },
691
+ {
692
+ indexed: false,
693
+ internalType: "uint256",
694
+ name: "netPyOut",
695
+ type: "uint256",
696
+ },
697
+ ],
698
+ name: "MintPyFromSy",
699
+ type: "event",
700
+ },
701
+ {
702
+ anonymous: false,
703
+ inputs: [
704
+ {
705
+ indexed: true,
706
+ internalType: "address",
707
+ name: "caller",
708
+ type: "address",
709
+ },
710
+ {
711
+ indexed: true,
712
+ internalType: "address",
713
+ name: "tokenIn",
714
+ type: "address",
715
+ },
716
+ {
717
+ indexed: true,
718
+ internalType: "address",
719
+ name: "YT",
720
+ type: "address",
721
+ },
722
+ {
723
+ indexed: false,
724
+ internalType: "address",
725
+ name: "receiver",
726
+ type: "address",
727
+ },
728
+ {
729
+ indexed: false,
730
+ internalType: "uint256",
731
+ name: "netTokenIn",
732
+ type: "uint256",
733
+ },
734
+ {
735
+ indexed: false,
736
+ internalType: "uint256",
737
+ name: "netPyOut",
738
+ type: "uint256",
739
+ },
740
+ {
741
+ indexed: false,
742
+ internalType: "uint256",
743
+ name: "netSyInterm",
744
+ type: "uint256",
745
+ },
746
+ ],
747
+ name: "MintPyFromToken",
748
+ type: "event",
749
+ },
750
+ {
751
+ anonymous: false,
752
+ inputs: [
753
+ {
754
+ indexed: true,
755
+ internalType: "address",
756
+ name: "caller",
757
+ type: "address",
758
+ },
759
+ {
760
+ indexed: true,
761
+ internalType: "address",
762
+ name: "tokenIn",
763
+ type: "address",
764
+ },
765
+ {
766
+ indexed: true,
767
+ internalType: "address",
768
+ name: "SY",
769
+ type: "address",
770
+ },
771
+ {
772
+ indexed: false,
773
+ internalType: "address",
774
+ name: "receiver",
775
+ type: "address",
776
+ },
777
+ {
778
+ indexed: false,
779
+ internalType: "uint256",
780
+ name: "netTokenIn",
781
+ type: "uint256",
782
+ },
783
+ {
784
+ indexed: false,
785
+ internalType: "uint256",
786
+ name: "netSyOut",
787
+ type: "uint256",
788
+ },
789
+ ],
790
+ name: "MintSyFromToken",
791
+ type: "event",
792
+ },
793
+ {
794
+ anonymous: false,
795
+ inputs: [
796
+ {
797
+ indexed: true,
798
+ internalType: "address",
799
+ name: "previousOwner",
800
+ type: "address",
801
+ },
802
+ {
803
+ indexed: true,
804
+ internalType: "address",
805
+ name: "newOwner",
806
+ type: "address",
807
+ },
808
+ ],
809
+ name: "OwnershipTransferred",
810
+ type: "event",
811
+ },
812
+ {
813
+ anonymous: false,
814
+ inputs: [
815
+ {
816
+ indexed: true,
817
+ internalType: "address",
818
+ name: "caller",
819
+ type: "address",
820
+ },
821
+ {
822
+ indexed: true,
823
+ internalType: "address",
824
+ name: "receiver",
825
+ type: "address",
826
+ },
827
+ {
828
+ indexed: true,
829
+ internalType: "address",
830
+ name: "YT",
831
+ type: "address",
832
+ },
833
+ {
834
+ indexed: false,
835
+ internalType: "uint256",
836
+ name: "netPyIn",
837
+ type: "uint256",
838
+ },
839
+ {
840
+ indexed: false,
841
+ internalType: "uint256",
842
+ name: "netSyOut",
843
+ type: "uint256",
844
+ },
845
+ ],
846
+ name: "RedeemPyToSy",
847
+ type: "event",
848
+ },
849
+ {
850
+ anonymous: false,
851
+ inputs: [
852
+ {
853
+ indexed: true,
854
+ internalType: "address",
855
+ name: "caller",
856
+ type: "address",
857
+ },
858
+ {
859
+ indexed: true,
860
+ internalType: "address",
861
+ name: "tokenOut",
862
+ type: "address",
863
+ },
864
+ {
865
+ indexed: true,
866
+ internalType: "address",
867
+ name: "YT",
868
+ type: "address",
869
+ },
870
+ {
871
+ indexed: false,
872
+ internalType: "address",
873
+ name: "receiver",
874
+ type: "address",
875
+ },
876
+ {
877
+ indexed: false,
878
+ internalType: "uint256",
879
+ name: "netPyIn",
880
+ type: "uint256",
881
+ },
882
+ {
883
+ indexed: false,
884
+ internalType: "uint256",
885
+ name: "netTokenOut",
886
+ type: "uint256",
887
+ },
888
+ {
889
+ indexed: false,
890
+ internalType: "uint256",
891
+ name: "netSyInterm",
892
+ type: "uint256",
893
+ },
894
+ ],
895
+ name: "RedeemPyToToken",
896
+ type: "event",
897
+ },
898
+ {
899
+ anonymous: false,
900
+ inputs: [
901
+ {
902
+ indexed: true,
903
+ internalType: "address",
904
+ name: "caller",
905
+ type: "address",
906
+ },
907
+ {
908
+ indexed: true,
909
+ internalType: "address",
910
+ name: "tokenOut",
911
+ type: "address",
912
+ },
913
+ {
914
+ indexed: true,
915
+ internalType: "address",
916
+ name: "SY",
917
+ type: "address",
918
+ },
919
+ {
920
+ indexed: false,
921
+ internalType: "address",
922
+ name: "receiver",
923
+ type: "address",
924
+ },
925
+ {
926
+ indexed: false,
927
+ internalType: "uint256",
928
+ name: "netSyIn",
929
+ type: "uint256",
930
+ },
931
+ {
932
+ indexed: false,
933
+ internalType: "uint256",
934
+ name: "netTokenOut",
935
+ type: "uint256",
936
+ },
937
+ ],
938
+ name: "RedeemSyToToken",
939
+ type: "event",
940
+ },
941
+ {
942
+ anonymous: false,
943
+ inputs: [
944
+ {
945
+ indexed: true,
946
+ internalType: "address",
947
+ name: "caller",
948
+ type: "address",
949
+ },
950
+ {
951
+ indexed: true,
952
+ internalType: "address",
953
+ name: "market",
954
+ type: "address",
955
+ },
956
+ {
957
+ indexed: true,
958
+ internalType: "address",
959
+ name: "receiver",
960
+ type: "address",
961
+ },
962
+ {
963
+ indexed: false,
964
+ internalType: "uint256",
965
+ name: "netLpToRemove",
966
+ type: "uint256",
967
+ },
968
+ {
969
+ indexed: false,
970
+ internalType: "uint256",
971
+ name: "netPtOut",
972
+ type: "uint256",
973
+ },
974
+ {
975
+ indexed: false,
976
+ internalType: "uint256",
977
+ name: "netSyOut",
978
+ type: "uint256",
979
+ },
980
+ ],
981
+ name: "RemoveLiquidityDualSyAndPt",
982
+ type: "event",
983
+ },
984
+ {
985
+ anonymous: false,
986
+ inputs: [
987
+ {
988
+ indexed: true,
989
+ internalType: "address",
990
+ name: "caller",
991
+ type: "address",
992
+ },
993
+ {
994
+ indexed: true,
995
+ internalType: "address",
996
+ name: "market",
997
+ type: "address",
998
+ },
999
+ {
1000
+ indexed: true,
1001
+ internalType: "address",
1002
+ name: "tokenOut",
1003
+ type: "address",
1004
+ },
1005
+ {
1006
+ indexed: false,
1007
+ internalType: "address",
1008
+ name: "receiver",
1009
+ type: "address",
1010
+ },
1011
+ {
1012
+ indexed: false,
1013
+ internalType: "uint256",
1014
+ name: "netLpToRemove",
1015
+ type: "uint256",
1016
+ },
1017
+ {
1018
+ indexed: false,
1019
+ internalType: "uint256",
1020
+ name: "netPtOut",
1021
+ type: "uint256",
1022
+ },
1023
+ {
1024
+ indexed: false,
1025
+ internalType: "uint256",
1026
+ name: "netTokenOut",
1027
+ type: "uint256",
1028
+ },
1029
+ {
1030
+ indexed: false,
1031
+ internalType: "uint256",
1032
+ name: "netSyInterm",
1033
+ type: "uint256",
1034
+ },
1035
+ ],
1036
+ name: "RemoveLiquidityDualTokenAndPt",
1037
+ type: "event",
1038
+ },
1039
+ {
1040
+ anonymous: false,
1041
+ inputs: [
1042
+ {
1043
+ indexed: true,
1044
+ internalType: "address",
1045
+ name: "caller",
1046
+ type: "address",
1047
+ },
1048
+ {
1049
+ indexed: true,
1050
+ internalType: "address",
1051
+ name: "market",
1052
+ type: "address",
1053
+ },
1054
+ {
1055
+ indexed: true,
1056
+ internalType: "address",
1057
+ name: "receiver",
1058
+ type: "address",
1059
+ },
1060
+ {
1061
+ indexed: false,
1062
+ internalType: "uint256",
1063
+ name: "netLpToRemove",
1064
+ type: "uint256",
1065
+ },
1066
+ {
1067
+ indexed: false,
1068
+ internalType: "uint256",
1069
+ name: "netPtOut",
1070
+ type: "uint256",
1071
+ },
1072
+ ],
1073
+ name: "RemoveLiquiditySinglePt",
1074
+ type: "event",
1075
+ },
1076
+ {
1077
+ anonymous: false,
1078
+ inputs: [
1079
+ {
1080
+ indexed: true,
1081
+ internalType: "address",
1082
+ name: "caller",
1083
+ type: "address",
1084
+ },
1085
+ {
1086
+ indexed: true,
1087
+ internalType: "address",
1088
+ name: "market",
1089
+ type: "address",
1090
+ },
1091
+ {
1092
+ indexed: true,
1093
+ internalType: "address",
1094
+ name: "receiver",
1095
+ type: "address",
1096
+ },
1097
+ {
1098
+ indexed: false,
1099
+ internalType: "uint256",
1100
+ name: "netLpToRemove",
1101
+ type: "uint256",
1102
+ },
1103
+ {
1104
+ indexed: false,
1105
+ internalType: "uint256",
1106
+ name: "netSyOut",
1107
+ type: "uint256",
1108
+ },
1109
+ ],
1110
+ name: "RemoveLiquiditySingleSy",
1111
+ type: "event",
1112
+ },
1113
+ {
1114
+ anonymous: false,
1115
+ inputs: [
1116
+ {
1117
+ indexed: true,
1118
+ internalType: "address",
1119
+ name: "caller",
1120
+ type: "address",
1121
+ },
1122
+ {
1123
+ indexed: true,
1124
+ internalType: "address",
1125
+ name: "market",
1126
+ type: "address",
1127
+ },
1128
+ {
1129
+ indexed: true,
1130
+ internalType: "address",
1131
+ name: "token",
1132
+ type: "address",
1133
+ },
1134
+ {
1135
+ indexed: false,
1136
+ internalType: "address",
1137
+ name: "receiver",
1138
+ type: "address",
1139
+ },
1140
+ {
1141
+ indexed: false,
1142
+ internalType: "uint256",
1143
+ name: "netLpToRemove",
1144
+ type: "uint256",
1145
+ },
1146
+ {
1147
+ indexed: false,
1148
+ internalType: "uint256",
1149
+ name: "netTokenOut",
1150
+ type: "uint256",
1151
+ },
1152
+ {
1153
+ indexed: false,
1154
+ internalType: "uint256",
1155
+ name: "netSyInterm",
1156
+ type: "uint256",
1157
+ },
1158
+ ],
1159
+ name: "RemoveLiquiditySingleToken",
1160
+ type: "event",
1161
+ },
1162
+ {
1163
+ anonymous: false,
1164
+ inputs: [
1165
+ {
1166
+ indexed: true,
1167
+ internalType: "bytes4",
1168
+ name: "selector",
1169
+ type: "bytes4",
1170
+ },
1171
+ {
1172
+ indexed: true,
1173
+ internalType: "address",
1174
+ name: "facet",
1175
+ type: "address",
1176
+ },
1177
+ ],
1178
+ name: "SelectorToFacetSet",
1179
+ type: "event",
1180
+ },
1181
+ {
1182
+ anonymous: false,
1183
+ inputs: [
1184
+ {
1185
+ indexed: true,
1186
+ internalType: "address",
1187
+ name: "caller",
1188
+ type: "address",
1189
+ },
1190
+ {
1191
+ indexed: true,
1192
+ internalType: "address",
1193
+ name: "market",
1194
+ type: "address",
1195
+ },
1196
+ {
1197
+ indexed: true,
1198
+ internalType: "address",
1199
+ name: "receiver",
1200
+ type: "address",
1201
+ },
1202
+ {
1203
+ indexed: false,
1204
+ internalType: "int256",
1205
+ name: "netPtToAccount",
1206
+ type: "int256",
1207
+ },
1208
+ {
1209
+ indexed: false,
1210
+ internalType: "int256",
1211
+ name: "netSyToAccount",
1212
+ type: "int256",
1213
+ },
1214
+ ],
1215
+ name: "SwapPtAndSy",
1216
+ type: "event",
1217
+ },
1218
+ {
1219
+ anonymous: false,
1220
+ inputs: [
1221
+ {
1222
+ indexed: true,
1223
+ internalType: "address",
1224
+ name: "caller",
1225
+ type: "address",
1226
+ },
1227
+ {
1228
+ indexed: true,
1229
+ internalType: "address",
1230
+ name: "market",
1231
+ type: "address",
1232
+ },
1233
+ {
1234
+ indexed: true,
1235
+ internalType: "address",
1236
+ name: "token",
1237
+ type: "address",
1238
+ },
1239
+ {
1240
+ indexed: false,
1241
+ internalType: "address",
1242
+ name: "receiver",
1243
+ type: "address",
1244
+ },
1245
+ {
1246
+ indexed: false,
1247
+ internalType: "int256",
1248
+ name: "netPtToAccount",
1249
+ type: "int256",
1250
+ },
1251
+ {
1252
+ indexed: false,
1253
+ internalType: "int256",
1254
+ name: "netTokenToAccount",
1255
+ type: "int256",
1256
+ },
1257
+ {
1258
+ indexed: false,
1259
+ internalType: "uint256",
1260
+ name: "netSyInterm",
1261
+ type: "uint256",
1262
+ },
1263
+ ],
1264
+ name: "SwapPtAndToken",
1265
+ type: "event",
1266
+ },
1267
+ {
1268
+ anonymous: false,
1269
+ inputs: [
1270
+ {
1271
+ indexed: true,
1272
+ internalType: "address",
1273
+ name: "caller",
1274
+ type: "address",
1275
+ },
1276
+ {
1277
+ indexed: true,
1278
+ internalType: "address",
1279
+ name: "market",
1280
+ type: "address",
1281
+ },
1282
+ {
1283
+ indexed: true,
1284
+ internalType: "address",
1285
+ name: "receiver",
1286
+ type: "address",
1287
+ },
1288
+ {
1289
+ indexed: false,
1290
+ internalType: "int256",
1291
+ name: "netYtToAccount",
1292
+ type: "int256",
1293
+ },
1294
+ {
1295
+ indexed: false,
1296
+ internalType: "int256",
1297
+ name: "netSyToAccount",
1298
+ type: "int256",
1299
+ },
1300
+ ],
1301
+ name: "SwapYtAndSy",
1302
+ type: "event",
1303
+ },
1304
+ {
1305
+ anonymous: false,
1306
+ inputs: [
1307
+ {
1308
+ indexed: true,
1309
+ internalType: "address",
1310
+ name: "caller",
1311
+ type: "address",
1312
+ },
1313
+ {
1314
+ indexed: true,
1315
+ internalType: "address",
1316
+ name: "market",
1317
+ type: "address",
1318
+ },
1319
+ {
1320
+ indexed: true,
1321
+ internalType: "address",
1322
+ name: "token",
1323
+ type: "address",
1324
+ },
1325
+ {
1326
+ indexed: false,
1327
+ internalType: "address",
1328
+ name: "receiver",
1329
+ type: "address",
1330
+ },
1331
+ {
1332
+ indexed: false,
1333
+ internalType: "int256",
1334
+ name: "netYtToAccount",
1335
+ type: "int256",
1336
+ },
1337
+ {
1338
+ indexed: false,
1339
+ internalType: "int256",
1340
+ name: "netTokenToAccount",
1341
+ type: "int256",
1342
+ },
1343
+ {
1344
+ indexed: false,
1345
+ internalType: "uint256",
1346
+ name: "netSyInterm",
1347
+ type: "uint256",
1348
+ },
1349
+ ],
1350
+ name: "SwapYtAndToken",
1351
+ type: "event",
1352
+ },
1353
+ {
1354
+ inputs: [
1355
+ {
1356
+ internalType: "address[]",
1357
+ name: "markets",
1358
+ type: "address[]",
1359
+ },
1360
+ ],
1361
+ name: "boostMarkets",
1362
+ outputs: [],
1363
+ stateMutability: "nonpayable",
1364
+ type: "function",
1365
+ },
1366
+ {
1367
+ inputs: [
1368
+ {
1369
+ internalType: "address payable",
1370
+ name: "reflector",
1371
+ type: "address",
1372
+ },
1373
+ {
1374
+ internalType: "bytes",
1375
+ name: "selfCall1",
1376
+ type: "bytes",
1377
+ },
1378
+ {
1379
+ internalType: "bytes",
1380
+ name: "selfCall2",
1381
+ type: "bytes",
1382
+ },
1383
+ {
1384
+ internalType: "bytes",
1385
+ name: "reflectCall",
1386
+ type: "bytes",
1387
+ },
1388
+ ],
1389
+ name: "callAndReflect",
1390
+ outputs: [
1391
+ {
1392
+ internalType: "bytes",
1393
+ name: "selfRes1",
1394
+ type: "bytes",
1395
+ },
1396
+ {
1397
+ internalType: "bytes",
1398
+ name: "selfRes2",
1399
+ type: "bytes",
1400
+ },
1401
+ {
1402
+ internalType: "bytes",
1403
+ name: "reflectRes",
1404
+ type: "bytes",
1405
+ },
1406
+ ],
1407
+ stateMutability: "payable",
1408
+ type: "function",
1409
+ },
1410
+ {
1411
+ inputs: [
1412
+ {
1413
+ internalType: "address",
1414
+ name: "receiver",
1415
+ type: "address",
1416
+ },
1417
+ {
1418
+ internalType: "address",
1419
+ name: "market",
1420
+ type: "address",
1421
+ },
1422
+ {
1423
+ internalType: "uint256",
1424
+ name: "netPtIn",
1425
+ type: "uint256",
1426
+ },
1427
+ {
1428
+ internalType: "uint256",
1429
+ name: "netLpIn",
1430
+ type: "uint256",
1431
+ },
1432
+ {
1433
+ internalType: "uint256",
1434
+ name: "minSyOut",
1435
+ type: "uint256",
1436
+ },
1437
+ ],
1438
+ name: "exitPostExpToSy",
1439
+ outputs: [
1440
+ {
1441
+ components: [
1442
+ {
1443
+ internalType: "uint256",
1444
+ name: "netPtFromRemove",
1445
+ type: "uint256",
1446
+ },
1447
+ {
1448
+ internalType: "uint256",
1449
+ name: "netSyFromRemove",
1450
+ type: "uint256",
1451
+ },
1452
+ {
1453
+ internalType: "uint256",
1454
+ name: "netPtRedeem",
1455
+ type: "uint256",
1456
+ },
1457
+ {
1458
+ internalType: "uint256",
1459
+ name: "netSyFromRedeem",
1460
+ type: "uint256",
1461
+ },
1462
+ {
1463
+ internalType: "uint256",
1464
+ name: "totalSyOut",
1465
+ type: "uint256",
1466
+ },
1467
+ ],
1468
+ internalType: "struct ExitPostExpReturnParams",
1469
+ name: "params",
1470
+ type: "tuple",
1471
+ },
1472
+ ],
1473
+ stateMutability: "nonpayable",
1474
+ type: "function",
1475
+ },
1476
+ {
1477
+ inputs: [
1478
+ {
1479
+ internalType: "address",
1480
+ name: "receiver",
1481
+ type: "address",
1482
+ },
1483
+ {
1484
+ internalType: "address",
1485
+ name: "market",
1486
+ type: "address",
1487
+ },
1488
+ {
1489
+ internalType: "uint256",
1490
+ name: "netPtIn",
1491
+ type: "uint256",
1492
+ },
1493
+ {
1494
+ internalType: "uint256",
1495
+ name: "netLpIn",
1496
+ type: "uint256",
1497
+ },
1498
+ {
1499
+ components: [
1500
+ {
1501
+ internalType: "address",
1502
+ name: "tokenOut",
1503
+ type: "address",
1504
+ },
1505
+ {
1506
+ internalType: "uint256",
1507
+ name: "minTokenOut",
1508
+ type: "uint256",
1509
+ },
1510
+ {
1511
+ internalType: "address",
1512
+ name: "tokenRedeemSy",
1513
+ type: "address",
1514
+ },
1515
+ {
1516
+ internalType: "address",
1517
+ name: "pendleSwap",
1518
+ type: "address",
1519
+ },
1520
+ {
1521
+ components: [
1522
+ {
1523
+ internalType: "enum SwapType",
1524
+ name: "swapType",
1525
+ type: "uint8",
1526
+ },
1527
+ {
1528
+ internalType: "address",
1529
+ name: "extRouter",
1530
+ type: "address",
1531
+ },
1532
+ {
1533
+ internalType: "bytes",
1534
+ name: "extCalldata",
1535
+ type: "bytes",
1536
+ },
1537
+ {
1538
+ internalType: "bool",
1539
+ name: "needScale",
1540
+ type: "bool",
1541
+ },
1542
+ ],
1543
+ internalType: "struct SwapData",
1544
+ name: "swapData",
1545
+ type: "tuple",
1546
+ },
1547
+ ],
1548
+ internalType: "struct TokenOutput",
1549
+ name: "output",
1550
+ type: "tuple",
1551
+ },
1552
+ ],
1553
+ name: "exitPostExpToToken",
1554
+ outputs: [
1555
+ {
1556
+ internalType: "uint256",
1557
+ name: "netTokenOut",
1558
+ type: "uint256",
1559
+ },
1560
+ {
1561
+ components: [
1562
+ {
1563
+ internalType: "uint256",
1564
+ name: "netPtFromRemove",
1565
+ type: "uint256",
1566
+ },
1567
+ {
1568
+ internalType: "uint256",
1569
+ name: "netSyFromRemove",
1570
+ type: "uint256",
1571
+ },
1572
+ {
1573
+ internalType: "uint256",
1574
+ name: "netPtRedeem",
1575
+ type: "uint256",
1576
+ },
1577
+ {
1578
+ internalType: "uint256",
1579
+ name: "netSyFromRedeem",
1580
+ type: "uint256",
1581
+ },
1582
+ {
1583
+ internalType: "uint256",
1584
+ name: "totalSyOut",
1585
+ type: "uint256",
1586
+ },
1587
+ ],
1588
+ internalType: "struct ExitPostExpReturnParams",
1589
+ name: "params",
1590
+ type: "tuple",
1591
+ },
1592
+ ],
1593
+ stateMutability: "nonpayable",
1594
+ type: "function",
1595
+ },
1596
+ {
1597
+ inputs: [
1598
+ {
1599
+ internalType: "address",
1600
+ name: "receiver",
1601
+ type: "address",
1602
+ },
1603
+ {
1604
+ internalType: "address",
1605
+ name: "market",
1606
+ type: "address",
1607
+ },
1608
+ {
1609
+ internalType: "uint256",
1610
+ name: "netPtIn",
1611
+ type: "uint256",
1612
+ },
1613
+ {
1614
+ internalType: "uint256",
1615
+ name: "netYtIn",
1616
+ type: "uint256",
1617
+ },
1618
+ {
1619
+ internalType: "uint256",
1620
+ name: "netLpIn",
1621
+ type: "uint256",
1622
+ },
1623
+ {
1624
+ internalType: "uint256",
1625
+ name: "minSyOut",
1626
+ type: "uint256",
1627
+ },
1628
+ {
1629
+ components: [
1630
+ {
1631
+ internalType: "address",
1632
+ name: "limitRouter",
1633
+ type: "address",
1634
+ },
1635
+ {
1636
+ internalType: "uint256",
1637
+ name: "epsSkipMarket",
1638
+ type: "uint256",
1639
+ },
1640
+ {
1641
+ components: [
1642
+ {
1643
+ components: [
1644
+ {
1645
+ internalType: "uint256",
1646
+ name: "salt",
1647
+ type: "uint256",
1648
+ },
1649
+ {
1650
+ internalType: "uint256",
1651
+ name: "expiry",
1652
+ type: "uint256",
1653
+ },
1654
+ {
1655
+ internalType: "uint256",
1656
+ name: "nonce",
1657
+ type: "uint256",
1658
+ },
1659
+ {
1660
+ internalType: "enum IPLimitOrderType.OrderType",
1661
+ name: "orderType",
1662
+ type: "uint8",
1663
+ },
1664
+ {
1665
+ internalType: "address",
1666
+ name: "token",
1667
+ type: "address",
1668
+ },
1669
+ {
1670
+ internalType: "address",
1671
+ name: "YT",
1672
+ type: "address",
1673
+ },
1674
+ {
1675
+ internalType: "address",
1676
+ name: "maker",
1677
+ type: "address",
1678
+ },
1679
+ {
1680
+ internalType: "address",
1681
+ name: "receiver",
1682
+ type: "address",
1683
+ },
1684
+ {
1685
+ internalType: "uint256",
1686
+ name: "makingAmount",
1687
+ type: "uint256",
1688
+ },
1689
+ {
1690
+ internalType: "uint256",
1691
+ name: "lnImpliedRate",
1692
+ type: "uint256",
1693
+ },
1694
+ {
1695
+ internalType: "uint256",
1696
+ name: "failSafeRate",
1697
+ type: "uint256",
1698
+ },
1699
+ {
1700
+ internalType: "bytes",
1701
+ name: "permit",
1702
+ type: "bytes",
1703
+ },
1704
+ ],
1705
+ internalType: "struct Order",
1706
+ name: "order",
1707
+ type: "tuple",
1708
+ },
1709
+ {
1710
+ internalType: "bytes",
1711
+ name: "signature",
1712
+ type: "bytes",
1713
+ },
1714
+ {
1715
+ internalType: "uint256",
1716
+ name: "makingAmount",
1717
+ type: "uint256",
1718
+ },
1719
+ ],
1720
+ internalType: "struct FillOrderParams[]",
1721
+ name: "normalFills",
1722
+ type: "tuple[]",
1723
+ },
1724
+ {
1725
+ components: [
1726
+ {
1727
+ components: [
1728
+ {
1729
+ internalType: "uint256",
1730
+ name: "salt",
1731
+ type: "uint256",
1732
+ },
1733
+ {
1734
+ internalType: "uint256",
1735
+ name: "expiry",
1736
+ type: "uint256",
1737
+ },
1738
+ {
1739
+ internalType: "uint256",
1740
+ name: "nonce",
1741
+ type: "uint256",
1742
+ },
1743
+ {
1744
+ internalType: "enum IPLimitOrderType.OrderType",
1745
+ name: "orderType",
1746
+ type: "uint8",
1747
+ },
1748
+ {
1749
+ internalType: "address",
1750
+ name: "token",
1751
+ type: "address",
1752
+ },
1753
+ {
1754
+ internalType: "address",
1755
+ name: "YT",
1756
+ type: "address",
1757
+ },
1758
+ {
1759
+ internalType: "address",
1760
+ name: "maker",
1761
+ type: "address",
1762
+ },
1763
+ {
1764
+ internalType: "address",
1765
+ name: "receiver",
1766
+ type: "address",
1767
+ },
1768
+ {
1769
+ internalType: "uint256",
1770
+ name: "makingAmount",
1771
+ type: "uint256",
1772
+ },
1773
+ {
1774
+ internalType: "uint256",
1775
+ name: "lnImpliedRate",
1776
+ type: "uint256",
1777
+ },
1778
+ {
1779
+ internalType: "uint256",
1780
+ name: "failSafeRate",
1781
+ type: "uint256",
1782
+ },
1783
+ {
1784
+ internalType: "bytes",
1785
+ name: "permit",
1786
+ type: "bytes",
1787
+ },
1788
+ ],
1789
+ internalType: "struct Order",
1790
+ name: "order",
1791
+ type: "tuple",
1792
+ },
1793
+ {
1794
+ internalType: "bytes",
1795
+ name: "signature",
1796
+ type: "bytes",
1797
+ },
1798
+ {
1799
+ internalType: "uint256",
1800
+ name: "makingAmount",
1801
+ type: "uint256",
1802
+ },
1803
+ ],
1804
+ internalType: "struct FillOrderParams[]",
1805
+ name: "flashFills",
1806
+ type: "tuple[]",
1807
+ },
1808
+ {
1809
+ internalType: "bytes",
1810
+ name: "optData",
1811
+ type: "bytes",
1812
+ },
1813
+ ],
1814
+ internalType: "struct LimitOrderData",
1815
+ name: "limit",
1816
+ type: "tuple",
1817
+ },
1818
+ ],
1819
+ name: "exitPreExpToSy",
1820
+ outputs: [
1821
+ {
1822
+ components: [
1823
+ {
1824
+ internalType: "uint256",
1825
+ name: "netPtFromRemove",
1826
+ type: "uint256",
1827
+ },
1828
+ {
1829
+ internalType: "uint256",
1830
+ name: "netSyFromRemove",
1831
+ type: "uint256",
1832
+ },
1833
+ {
1834
+ internalType: "uint256",
1835
+ name: "netPyRedeem",
1836
+ type: "uint256",
1837
+ },
1838
+ {
1839
+ internalType: "uint256",
1840
+ name: "netSyFromRedeem",
1841
+ type: "uint256",
1842
+ },
1843
+ {
1844
+ internalType: "uint256",
1845
+ name: "netPtSwap",
1846
+ type: "uint256",
1847
+ },
1848
+ {
1849
+ internalType: "uint256",
1850
+ name: "netYtSwap",
1851
+ type: "uint256",
1852
+ },
1853
+ {
1854
+ internalType: "uint256",
1855
+ name: "netSyFromSwap",
1856
+ type: "uint256",
1857
+ },
1858
+ {
1859
+ internalType: "uint256",
1860
+ name: "netSyFee",
1861
+ type: "uint256",
1862
+ },
1863
+ {
1864
+ internalType: "uint256",
1865
+ name: "totalSyOut",
1866
+ type: "uint256",
1867
+ },
1868
+ ],
1869
+ internalType: "struct ExitPreExpReturnParams",
1870
+ name: "params",
1871
+ type: "tuple",
1872
+ },
1873
+ ],
1874
+ stateMutability: "nonpayable",
1875
+ type: "function",
1876
+ },
1877
+ {
1878
+ inputs: [
1879
+ {
1880
+ internalType: "address",
1881
+ name: "receiver",
1882
+ type: "address",
1883
+ },
1884
+ {
1885
+ internalType: "address",
1886
+ name: "market",
1887
+ type: "address",
1888
+ },
1889
+ {
1890
+ internalType: "uint256",
1891
+ name: "netPtIn",
1892
+ type: "uint256",
1893
+ },
1894
+ {
1895
+ internalType: "uint256",
1896
+ name: "netYtIn",
1897
+ type: "uint256",
1898
+ },
1899
+ {
1900
+ internalType: "uint256",
1901
+ name: "netLpIn",
1902
+ type: "uint256",
1903
+ },
1904
+ {
1905
+ components: [
1906
+ {
1907
+ internalType: "address",
1908
+ name: "tokenOut",
1909
+ type: "address",
1910
+ },
1911
+ {
1912
+ internalType: "uint256",
1913
+ name: "minTokenOut",
1914
+ type: "uint256",
1915
+ },
1916
+ {
1917
+ internalType: "address",
1918
+ name: "tokenRedeemSy",
1919
+ type: "address",
1920
+ },
1921
+ {
1922
+ internalType: "address",
1923
+ name: "pendleSwap",
1924
+ type: "address",
1925
+ },
1926
+ {
1927
+ components: [
1928
+ {
1929
+ internalType: "enum SwapType",
1930
+ name: "swapType",
1931
+ type: "uint8",
1932
+ },
1933
+ {
1934
+ internalType: "address",
1935
+ name: "extRouter",
1936
+ type: "address",
1937
+ },
1938
+ {
1939
+ internalType: "bytes",
1940
+ name: "extCalldata",
1941
+ type: "bytes",
1942
+ },
1943
+ {
1944
+ internalType: "bool",
1945
+ name: "needScale",
1946
+ type: "bool",
1947
+ },
1948
+ ],
1949
+ internalType: "struct SwapData",
1950
+ name: "swapData",
1951
+ type: "tuple",
1952
+ },
1953
+ ],
1954
+ internalType: "struct TokenOutput",
1955
+ name: "output",
1956
+ type: "tuple",
1957
+ },
1958
+ {
1959
+ components: [
1960
+ {
1961
+ internalType: "address",
1962
+ name: "limitRouter",
1963
+ type: "address",
1964
+ },
1965
+ {
1966
+ internalType: "uint256",
1967
+ name: "epsSkipMarket",
1968
+ type: "uint256",
1969
+ },
1970
+ {
1971
+ components: [
1972
+ {
1973
+ components: [
1974
+ {
1975
+ internalType: "uint256",
1976
+ name: "salt",
1977
+ type: "uint256",
1978
+ },
1979
+ {
1980
+ internalType: "uint256",
1981
+ name: "expiry",
1982
+ type: "uint256",
1983
+ },
1984
+ {
1985
+ internalType: "uint256",
1986
+ name: "nonce",
1987
+ type: "uint256",
1988
+ },
1989
+ {
1990
+ internalType: "enum IPLimitOrderType.OrderType",
1991
+ name: "orderType",
1992
+ type: "uint8",
1993
+ },
1994
+ {
1995
+ internalType: "address",
1996
+ name: "token",
1997
+ type: "address",
1998
+ },
1999
+ {
2000
+ internalType: "address",
2001
+ name: "YT",
2002
+ type: "address",
2003
+ },
2004
+ {
2005
+ internalType: "address",
2006
+ name: "maker",
2007
+ type: "address",
2008
+ },
2009
+ {
2010
+ internalType: "address",
2011
+ name: "receiver",
2012
+ type: "address",
2013
+ },
2014
+ {
2015
+ internalType: "uint256",
2016
+ name: "makingAmount",
2017
+ type: "uint256",
2018
+ },
2019
+ {
2020
+ internalType: "uint256",
2021
+ name: "lnImpliedRate",
2022
+ type: "uint256",
2023
+ },
2024
+ {
2025
+ internalType: "uint256",
2026
+ name: "failSafeRate",
2027
+ type: "uint256",
2028
+ },
2029
+ {
2030
+ internalType: "bytes",
2031
+ name: "permit",
2032
+ type: "bytes",
2033
+ },
2034
+ ],
2035
+ internalType: "struct Order",
2036
+ name: "order",
2037
+ type: "tuple",
2038
+ },
2039
+ {
2040
+ internalType: "bytes",
2041
+ name: "signature",
2042
+ type: "bytes",
2043
+ },
2044
+ {
2045
+ internalType: "uint256",
2046
+ name: "makingAmount",
2047
+ type: "uint256",
2048
+ },
2049
+ ],
2050
+ internalType: "struct FillOrderParams[]",
2051
+ name: "normalFills",
2052
+ type: "tuple[]",
2053
+ },
2054
+ {
2055
+ components: [
2056
+ {
2057
+ components: [
2058
+ {
2059
+ internalType: "uint256",
2060
+ name: "salt",
2061
+ type: "uint256",
2062
+ },
2063
+ {
2064
+ internalType: "uint256",
2065
+ name: "expiry",
2066
+ type: "uint256",
2067
+ },
2068
+ {
2069
+ internalType: "uint256",
2070
+ name: "nonce",
2071
+ type: "uint256",
2072
+ },
2073
+ {
2074
+ internalType: "enum IPLimitOrderType.OrderType",
2075
+ name: "orderType",
2076
+ type: "uint8",
2077
+ },
2078
+ {
2079
+ internalType: "address",
2080
+ name: "token",
2081
+ type: "address",
2082
+ },
2083
+ {
2084
+ internalType: "address",
2085
+ name: "YT",
2086
+ type: "address",
2087
+ },
2088
+ {
2089
+ internalType: "address",
2090
+ name: "maker",
2091
+ type: "address",
2092
+ },
2093
+ {
2094
+ internalType: "address",
2095
+ name: "receiver",
2096
+ type: "address",
2097
+ },
2098
+ {
2099
+ internalType: "uint256",
2100
+ name: "makingAmount",
2101
+ type: "uint256",
2102
+ },
2103
+ {
2104
+ internalType: "uint256",
2105
+ name: "lnImpliedRate",
2106
+ type: "uint256",
2107
+ },
2108
+ {
2109
+ internalType: "uint256",
2110
+ name: "failSafeRate",
2111
+ type: "uint256",
2112
+ },
2113
+ {
2114
+ internalType: "bytes",
2115
+ name: "permit",
2116
+ type: "bytes",
2117
+ },
2118
+ ],
2119
+ internalType: "struct Order",
2120
+ name: "order",
2121
+ type: "tuple",
2122
+ },
2123
+ {
2124
+ internalType: "bytes",
2125
+ name: "signature",
2126
+ type: "bytes",
2127
+ },
2128
+ {
2129
+ internalType: "uint256",
2130
+ name: "makingAmount",
2131
+ type: "uint256",
2132
+ },
2133
+ ],
2134
+ internalType: "struct FillOrderParams[]",
2135
+ name: "flashFills",
2136
+ type: "tuple[]",
2137
+ },
2138
+ {
2139
+ internalType: "bytes",
2140
+ name: "optData",
2141
+ type: "bytes",
2142
+ },
2143
+ ],
2144
+ internalType: "struct LimitOrderData",
2145
+ name: "limit",
2146
+ type: "tuple",
2147
+ },
2148
+ ],
2149
+ name: "exitPreExpToToken",
2150
+ outputs: [
2151
+ {
2152
+ internalType: "uint256",
2153
+ name: "netTokenOut",
2154
+ type: "uint256",
2155
+ },
2156
+ {
2157
+ components: [
2158
+ {
2159
+ internalType: "uint256",
2160
+ name: "netPtFromRemove",
2161
+ type: "uint256",
2162
+ },
2163
+ {
2164
+ internalType: "uint256",
2165
+ name: "netSyFromRemove",
2166
+ type: "uint256",
2167
+ },
2168
+ {
2169
+ internalType: "uint256",
2170
+ name: "netPyRedeem",
2171
+ type: "uint256",
2172
+ },
2173
+ {
2174
+ internalType: "uint256",
2175
+ name: "netSyFromRedeem",
2176
+ type: "uint256",
2177
+ },
2178
+ {
2179
+ internalType: "uint256",
2180
+ name: "netPtSwap",
2181
+ type: "uint256",
2182
+ },
2183
+ {
2184
+ internalType: "uint256",
2185
+ name: "netYtSwap",
2186
+ type: "uint256",
2187
+ },
2188
+ {
2189
+ internalType: "uint256",
2190
+ name: "netSyFromSwap",
2191
+ type: "uint256",
2192
+ },
2193
+ {
2194
+ internalType: "uint256",
2195
+ name: "netSyFee",
2196
+ type: "uint256",
2197
+ },
2198
+ {
2199
+ internalType: "uint256",
2200
+ name: "totalSyOut",
2201
+ type: "uint256",
2202
+ },
2203
+ ],
2204
+ internalType: "struct ExitPreExpReturnParams",
2205
+ name: "params",
2206
+ type: "tuple",
2207
+ },
2208
+ ],
2209
+ stateMutability: "nonpayable",
2210
+ type: "function",
2211
+ },
2212
+ {
2213
+ inputs: [
2214
+ {
2215
+ internalType: "address",
2216
+ name: "receiver",
2217
+ type: "address",
2218
+ },
2219
+ {
2220
+ internalType: "address",
2221
+ name: "YT",
2222
+ type: "address",
2223
+ },
2224
+ {
2225
+ internalType: "uint256",
2226
+ name: "netSyIn",
2227
+ type: "uint256",
2228
+ },
2229
+ {
2230
+ internalType: "uint256",
2231
+ name: "minPyOut",
2232
+ type: "uint256",
2233
+ },
2234
+ ],
2235
+ name: "mintPyFromSy",
2236
+ outputs: [
2237
+ {
2238
+ internalType: "uint256",
2239
+ name: "netPyOut",
2240
+ type: "uint256",
2241
+ },
2242
+ ],
2243
+ stateMutability: "nonpayable",
2244
+ type: "function",
2245
+ },
2246
+ {
2247
+ inputs: [
2248
+ {
2249
+ internalType: "address",
2250
+ name: "receiver",
2251
+ type: "address",
2252
+ },
2253
+ {
2254
+ internalType: "address",
2255
+ name: "YT",
2256
+ type: "address",
2257
+ },
2258
+ {
2259
+ internalType: "uint256",
2260
+ name: "minPyOut",
2261
+ type: "uint256",
2262
+ },
2263
+ {
2264
+ components: [
2265
+ {
2266
+ internalType: "address",
2267
+ name: "tokenIn",
2268
+ type: "address",
2269
+ },
2270
+ {
2271
+ internalType: "uint256",
2272
+ name: "netTokenIn",
2273
+ type: "uint256",
2274
+ },
2275
+ {
2276
+ internalType: "address",
2277
+ name: "tokenMintSy",
2278
+ type: "address",
2279
+ },
2280
+ {
2281
+ internalType: "address",
2282
+ name: "pendleSwap",
2283
+ type: "address",
2284
+ },
2285
+ {
2286
+ components: [
2287
+ {
2288
+ internalType: "enum SwapType",
2289
+ name: "swapType",
2290
+ type: "uint8",
2291
+ },
2292
+ {
2293
+ internalType: "address",
2294
+ name: "extRouter",
2295
+ type: "address",
2296
+ },
2297
+ {
2298
+ internalType: "bytes",
2299
+ name: "extCalldata",
2300
+ type: "bytes",
2301
+ },
2302
+ {
2303
+ internalType: "bool",
2304
+ name: "needScale",
2305
+ type: "bool",
2306
+ },
2307
+ ],
2308
+ internalType: "struct SwapData",
2309
+ name: "swapData",
2310
+ type: "tuple",
2311
+ },
2312
+ ],
2313
+ internalType: "struct TokenInput",
2314
+ name: "input",
2315
+ type: "tuple",
2316
+ },
2317
+ ],
2318
+ name: "mintPyFromToken",
2319
+ outputs: [
2320
+ {
2321
+ internalType: "uint256",
2322
+ name: "netPyOut",
2323
+ type: "uint256",
2324
+ },
2325
+ {
2326
+ internalType: "uint256",
2327
+ name: "netSyInterm",
2328
+ type: "uint256",
2329
+ },
2330
+ ],
2331
+ stateMutability: "payable",
2332
+ type: "function",
2333
+ },
2334
+ {
2335
+ inputs: [
2336
+ {
2337
+ internalType: "address",
2338
+ name: "receiver",
2339
+ type: "address",
2340
+ },
2341
+ {
2342
+ internalType: "address",
2343
+ name: "SY",
2344
+ type: "address",
2345
+ },
2346
+ {
2347
+ internalType: "uint256",
2348
+ name: "minSyOut",
2349
+ type: "uint256",
2350
+ },
2351
+ {
2352
+ components: [
2353
+ {
2354
+ internalType: "address",
2355
+ name: "tokenIn",
2356
+ type: "address",
2357
+ },
2358
+ {
2359
+ internalType: "uint256",
2360
+ name: "netTokenIn",
2361
+ type: "uint256",
2362
+ },
2363
+ {
2364
+ internalType: "address",
2365
+ name: "tokenMintSy",
2366
+ type: "address",
2367
+ },
2368
+ {
2369
+ internalType: "address",
2370
+ name: "pendleSwap",
2371
+ type: "address",
2372
+ },
2373
+ {
2374
+ components: [
2375
+ {
2376
+ internalType: "enum SwapType",
2377
+ name: "swapType",
2378
+ type: "uint8",
2379
+ },
2380
+ {
2381
+ internalType: "address",
2382
+ name: "extRouter",
2383
+ type: "address",
2384
+ },
2385
+ {
2386
+ internalType: "bytes",
2387
+ name: "extCalldata",
2388
+ type: "bytes",
2389
+ },
2390
+ {
2391
+ internalType: "bool",
2392
+ name: "needScale",
2393
+ type: "bool",
2394
+ },
2395
+ ],
2396
+ internalType: "struct SwapData",
2397
+ name: "swapData",
2398
+ type: "tuple",
2399
+ },
2400
+ ],
2401
+ internalType: "struct TokenInput",
2402
+ name: "input",
2403
+ type: "tuple",
2404
+ },
2405
+ ],
2406
+ name: "mintSyFromToken",
2407
+ outputs: [
2408
+ {
2409
+ internalType: "uint256",
2410
+ name: "netSyOut",
2411
+ type: "uint256",
2412
+ },
2413
+ ],
2414
+ stateMutability: "payable",
2415
+ type: "function",
2416
+ },
2417
+ {
2418
+ inputs: [
2419
+ {
2420
+ components: [
2421
+ {
2422
+ internalType: "bool",
2423
+ name: "allowFailure",
2424
+ type: "bool",
2425
+ },
2426
+ {
2427
+ internalType: "bytes",
2428
+ name: "callData",
2429
+ type: "bytes",
2430
+ },
2431
+ ],
2432
+ internalType: "struct IPActionMiscV3.Call3[]",
2433
+ name: "calls",
2434
+ type: "tuple[]",
2435
+ },
2436
+ ],
2437
+ name: "multicall",
2438
+ outputs: [
2439
+ {
2440
+ components: [
2441
+ {
2442
+ internalType: "bool",
2443
+ name: "success",
2444
+ type: "bool",
2445
+ },
2446
+ {
2447
+ internalType: "bytes",
2448
+ name: "returnData",
2449
+ type: "bytes",
2450
+ },
2451
+ ],
2452
+ internalType: "struct IPActionMiscV3.Result[]",
2453
+ name: "res",
2454
+ type: "tuple[]",
2455
+ },
2456
+ ],
2457
+ stateMutability: "payable",
2458
+ type: "function",
2459
+ },
2460
+ {
2461
+ inputs: [
2462
+ {
2463
+ internalType: "address",
2464
+ name: "user",
2465
+ type: "address",
2466
+ },
2467
+ {
2468
+ internalType: "address[]",
2469
+ name: "sys",
2470
+ type: "address[]",
2471
+ },
2472
+ {
2473
+ internalType: "address[]",
2474
+ name: "yts",
2475
+ type: "address[]",
2476
+ },
2477
+ {
2478
+ internalType: "address[]",
2479
+ name: "markets",
2480
+ type: "address[]",
2481
+ },
2482
+ ],
2483
+ name: "redeemDueInterestAndRewards",
2484
+ outputs: [],
2485
+ stateMutability: "nonpayable",
2486
+ type: "function",
2487
+ },
2488
+ {
2489
+ inputs: [
2490
+ {
2491
+ internalType: "contract IStandardizedYield[]",
2492
+ name: "SYs",
2493
+ type: "address[]",
2494
+ },
2495
+ {
2496
+ components: [
2497
+ {
2498
+ internalType: "contract IPYieldToken",
2499
+ name: "yt",
2500
+ type: "address",
2501
+ },
2502
+ {
2503
+ internalType: "bool",
2504
+ name: "doRedeemInterest",
2505
+ type: "bool",
2506
+ },
2507
+ {
2508
+ internalType: "bool",
2509
+ name: "doRedeemRewards",
2510
+ type: "bool",
2511
+ },
2512
+ {
2513
+ internalType: "address",
2514
+ name: "tokenRedeemSy",
2515
+ type: "address",
2516
+ },
2517
+ {
2518
+ internalType: "uint256",
2519
+ name: "minTokenRedeemOut",
2520
+ type: "uint256",
2521
+ },
2522
+ ],
2523
+ internalType: "struct RedeemYtIncomeToTokenStruct[]",
2524
+ name: "YTs",
2525
+ type: "tuple[]",
2526
+ },
2527
+ {
2528
+ internalType: "contract IPMarket[]",
2529
+ name: "markets",
2530
+ type: "address[]",
2531
+ },
2532
+ {
2533
+ internalType: "contract IPSwapAggregator",
2534
+ name: "pendleSwap",
2535
+ type: "address",
2536
+ },
2537
+ {
2538
+ components: [
2539
+ {
2540
+ internalType: "address",
2541
+ name: "tokenIn",
2542
+ type: "address",
2543
+ },
2544
+ {
2545
+ internalType: "address",
2546
+ name: "tokenOut",
2547
+ type: "address",
2548
+ },
2549
+ {
2550
+ internalType: "uint256",
2551
+ name: "minOut",
2552
+ type: "uint256",
2553
+ },
2554
+ {
2555
+ components: [
2556
+ {
2557
+ internalType: "enum SwapType",
2558
+ name: "swapType",
2559
+ type: "uint8",
2560
+ },
2561
+ {
2562
+ internalType: "address",
2563
+ name: "extRouter",
2564
+ type: "address",
2565
+ },
2566
+ {
2567
+ internalType: "bytes",
2568
+ name: "extCalldata",
2569
+ type: "bytes",
2570
+ },
2571
+ {
2572
+ internalType: "bool",
2573
+ name: "needScale",
2574
+ type: "bool",
2575
+ },
2576
+ ],
2577
+ internalType: "struct SwapData",
2578
+ name: "swapData",
2579
+ type: "tuple",
2580
+ },
2581
+ ],
2582
+ internalType: "struct SwapDataExtra[]",
2583
+ name: "swaps",
2584
+ type: "tuple[]",
2585
+ },
2586
+ ],
2587
+ name: "redeemDueInterestAndRewardsV2",
2588
+ outputs: [
2589
+ {
2590
+ internalType: "uint256[]",
2591
+ name: "netOutFromSwaps",
2592
+ type: "uint256[]",
2593
+ },
2594
+ {
2595
+ internalType: "uint256[]",
2596
+ name: "netInterests",
2597
+ type: "uint256[]",
2598
+ },
2599
+ ],
2600
+ stateMutability: "nonpayable",
2601
+ type: "function",
2602
+ },
2603
+ {
2604
+ inputs: [
2605
+ {
2606
+ internalType: "address",
2607
+ name: "receiver",
2608
+ type: "address",
2609
+ },
2610
+ {
2611
+ internalType: "address",
2612
+ name: "YT",
2613
+ type: "address",
2614
+ },
2615
+ {
2616
+ internalType: "uint256",
2617
+ name: "netPyIn",
2618
+ type: "uint256",
2619
+ },
2620
+ {
2621
+ internalType: "uint256",
2622
+ name: "minSyOut",
2623
+ type: "uint256",
2624
+ },
2625
+ ],
2626
+ name: "redeemPyToSy",
2627
+ outputs: [
2628
+ {
2629
+ internalType: "uint256",
2630
+ name: "netSyOut",
2631
+ type: "uint256",
2632
+ },
2633
+ ],
2634
+ stateMutability: "nonpayable",
2635
+ type: "function",
2636
+ },
2637
+ {
2638
+ inputs: [
2639
+ {
2640
+ internalType: "address",
2641
+ name: "receiver",
2642
+ type: "address",
2643
+ },
2644
+ {
2645
+ internalType: "address",
2646
+ name: "YT",
2647
+ type: "address",
2648
+ },
2649
+ {
2650
+ internalType: "uint256",
2651
+ name: "netPyIn",
2652
+ type: "uint256",
2653
+ },
2654
+ {
2655
+ components: [
2656
+ {
2657
+ internalType: "address",
2658
+ name: "tokenOut",
2659
+ type: "address",
2660
+ },
2661
+ {
2662
+ internalType: "uint256",
2663
+ name: "minTokenOut",
2664
+ type: "uint256",
2665
+ },
2666
+ {
2667
+ internalType: "address",
2668
+ name: "tokenRedeemSy",
2669
+ type: "address",
2670
+ },
2671
+ {
2672
+ internalType: "address",
2673
+ name: "pendleSwap",
2674
+ type: "address",
2675
+ },
2676
+ {
2677
+ components: [
2678
+ {
2679
+ internalType: "enum SwapType",
2680
+ name: "swapType",
2681
+ type: "uint8",
2682
+ },
2683
+ {
2684
+ internalType: "address",
2685
+ name: "extRouter",
2686
+ type: "address",
2687
+ },
2688
+ {
2689
+ internalType: "bytes",
2690
+ name: "extCalldata",
2691
+ type: "bytes",
2692
+ },
2693
+ {
2694
+ internalType: "bool",
2695
+ name: "needScale",
2696
+ type: "bool",
2697
+ },
2698
+ ],
2699
+ internalType: "struct SwapData",
2700
+ name: "swapData",
2701
+ type: "tuple",
2702
+ },
2703
+ ],
2704
+ internalType: "struct TokenOutput",
2705
+ name: "output",
2706
+ type: "tuple",
2707
+ },
2708
+ ],
2709
+ name: "redeemPyToToken",
2710
+ outputs: [
2711
+ {
2712
+ internalType: "uint256",
2713
+ name: "netTokenOut",
2714
+ type: "uint256",
2715
+ },
2716
+ {
2717
+ internalType: "uint256",
2718
+ name: "netSyInterm",
2719
+ type: "uint256",
2720
+ },
2721
+ ],
2722
+ stateMutability: "nonpayable",
2723
+ type: "function",
2724
+ },
2725
+ {
2726
+ inputs: [
2727
+ {
2728
+ internalType: "address",
2729
+ name: "receiver",
2730
+ type: "address",
2731
+ },
2732
+ {
2733
+ internalType: "address",
2734
+ name: "SY",
2735
+ type: "address",
2736
+ },
2737
+ {
2738
+ internalType: "uint256",
2739
+ name: "netSyIn",
2740
+ type: "uint256",
2741
+ },
2742
+ {
2743
+ components: [
2744
+ {
2745
+ internalType: "address",
2746
+ name: "tokenOut",
2747
+ type: "address",
2748
+ },
2749
+ {
2750
+ internalType: "uint256",
2751
+ name: "minTokenOut",
2752
+ type: "uint256",
2753
+ },
2754
+ {
2755
+ internalType: "address",
2756
+ name: "tokenRedeemSy",
2757
+ type: "address",
2758
+ },
2759
+ {
2760
+ internalType: "address",
2761
+ name: "pendleSwap",
2762
+ type: "address",
2763
+ },
2764
+ {
2765
+ components: [
2766
+ {
2767
+ internalType: "enum SwapType",
2768
+ name: "swapType",
2769
+ type: "uint8",
2770
+ },
2771
+ {
2772
+ internalType: "address",
2773
+ name: "extRouter",
2774
+ type: "address",
2775
+ },
2776
+ {
2777
+ internalType: "bytes",
2778
+ name: "extCalldata",
2779
+ type: "bytes",
2780
+ },
2781
+ {
2782
+ internalType: "bool",
2783
+ name: "needScale",
2784
+ type: "bool",
2785
+ },
2786
+ ],
2787
+ internalType: "struct SwapData",
2788
+ name: "swapData",
2789
+ type: "tuple",
2790
+ },
2791
+ ],
2792
+ internalType: "struct TokenOutput",
2793
+ name: "output",
2794
+ type: "tuple",
2795
+ },
2796
+ ],
2797
+ name: "redeemSyToToken",
2798
+ outputs: [
2799
+ {
2800
+ internalType: "uint256",
2801
+ name: "netTokenOut",
2802
+ type: "uint256",
2803
+ },
2804
+ ],
2805
+ stateMutability: "nonpayable",
2806
+ type: "function",
2807
+ },
2808
+ {
2809
+ inputs: [
2810
+ {
2811
+ internalType: "address",
2812
+ name: "target",
2813
+ type: "address",
2814
+ },
2815
+ {
2816
+ internalType: "bytes",
2817
+ name: "data",
2818
+ type: "bytes",
2819
+ },
2820
+ ],
2821
+ name: "simulate",
2822
+ outputs: [],
2823
+ stateMutability: "payable",
2824
+ type: "function",
2825
+ },
2826
+ {
2827
+ inputs: [
2828
+ {
2829
+ internalType: "address",
2830
+ name: "receiver",
2831
+ type: "address",
2832
+ },
2833
+ {
2834
+ internalType: "address",
2835
+ name: "SY",
2836
+ type: "address",
2837
+ },
2838
+ {
2839
+ components: [
2840
+ {
2841
+ internalType: "address",
2842
+ name: "tokenIn",
2843
+ type: "address",
2844
+ },
2845
+ {
2846
+ internalType: "uint256",
2847
+ name: "netTokenIn",
2848
+ type: "uint256",
2849
+ },
2850
+ {
2851
+ internalType: "address",
2852
+ name: "tokenMintSy",
2853
+ type: "address",
2854
+ },
2855
+ {
2856
+ internalType: "address",
2857
+ name: "pendleSwap",
2858
+ type: "address",
2859
+ },
2860
+ {
2861
+ components: [
2862
+ {
2863
+ internalType: "enum SwapType",
2864
+ name: "swapType",
2865
+ type: "uint8",
2866
+ },
2867
+ {
2868
+ internalType: "address",
2869
+ name: "extRouter",
2870
+ type: "address",
2871
+ },
2872
+ {
2873
+ internalType: "bytes",
2874
+ name: "extCalldata",
2875
+ type: "bytes",
2876
+ },
2877
+ {
2878
+ internalType: "bool",
2879
+ name: "needScale",
2880
+ type: "bool",
2881
+ },
2882
+ ],
2883
+ internalType: "struct SwapData",
2884
+ name: "swapData",
2885
+ type: "tuple",
2886
+ },
2887
+ ],
2888
+ internalType: "struct TokenInput",
2889
+ name: "input",
2890
+ type: "tuple",
2891
+ },
2892
+ {
2893
+ internalType: "address",
2894
+ name: "tokenRedeemSy",
2895
+ type: "address",
2896
+ },
2897
+ {
2898
+ internalType: "uint256",
2899
+ name: "minTokenOut",
2900
+ type: "uint256",
2901
+ },
2902
+ ],
2903
+ name: "swapTokenToTokenViaSy",
2904
+ outputs: [
2905
+ {
2906
+ internalType: "uint256",
2907
+ name: "netTokenOut",
2908
+ type: "uint256",
2909
+ },
2910
+ {
2911
+ internalType: "uint256",
2912
+ name: "netSyInterm",
2913
+ type: "uint256",
2914
+ },
2915
+ ],
2916
+ stateMutability: "payable",
2917
+ type: "function",
2918
+ },
2919
+ {
2920
+ inputs: [
2921
+ {
2922
+ internalType: "contract IPSwapAggregator",
2923
+ name: "pendleSwap",
2924
+ type: "address",
2925
+ },
2926
+ {
2927
+ components: [
2928
+ {
2929
+ internalType: "address",
2930
+ name: "tokenIn",
2931
+ type: "address",
2932
+ },
2933
+ {
2934
+ internalType: "address",
2935
+ name: "tokenOut",
2936
+ type: "address",
2937
+ },
2938
+ {
2939
+ internalType: "uint256",
2940
+ name: "minOut",
2941
+ type: "uint256",
2942
+ },
2943
+ {
2944
+ components: [
2945
+ {
2946
+ internalType: "enum SwapType",
2947
+ name: "swapType",
2948
+ type: "uint8",
2949
+ },
2950
+ {
2951
+ internalType: "address",
2952
+ name: "extRouter",
2953
+ type: "address",
2954
+ },
2955
+ {
2956
+ internalType: "bytes",
2957
+ name: "extCalldata",
2958
+ type: "bytes",
2959
+ },
2960
+ {
2961
+ internalType: "bool",
2962
+ name: "needScale",
2963
+ type: "bool",
2964
+ },
2965
+ ],
2966
+ internalType: "struct SwapData",
2967
+ name: "swapData",
2968
+ type: "tuple",
2969
+ },
2970
+ ],
2971
+ internalType: "struct SwapDataExtra[]",
2972
+ name: "swaps",
2973
+ type: "tuple[]",
2974
+ },
2975
+ {
2976
+ internalType: "uint256[]",
2977
+ name: "netSwaps",
2978
+ type: "uint256[]",
2979
+ },
2980
+ ],
2981
+ name: "swapTokensToTokens",
2982
+ outputs: [
2983
+ {
2984
+ internalType: "uint256[]",
2985
+ name: "netOutFromSwaps",
2986
+ type: "uint256[]",
2987
+ },
2988
+ ],
2989
+ stateMutability: "payable",
2990
+ type: "function",
2991
+ },
2992
+ ];
2993
+
2994
+ export class IPActionMiscV3__factory {
2995
+ static readonly abi = _abi;
2996
+ static createInterface(): IPActionMiscV3Interface {
2997
+ return new utils.Interface(_abi) as IPActionMiscV3Interface;
2998
+ }
2999
+ static connect(
3000
+ address: string,
3001
+ signerOrProvider: Signer | Provider
3002
+ ): IPActionMiscV3 {
3003
+ return new Contract(address, _abi, signerOrProvider) as IPActionMiscV3;
3004
+ }
3005
+ }