@pendle/core-v2 5.3.1 → 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 (244) 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/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  28. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +0 -37
  29. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  30. package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  31. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  32. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  33. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  34. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  35. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  36. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  37. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  38. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  39. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  40. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  41. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  42. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -39
  43. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  44. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  45. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +4 -0
  46. 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
  47. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +4 -0
  48. 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
  49. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  50. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  51. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -39
  52. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  53. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -117
  54. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  55. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -39
  56. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  57. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -39
  58. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  59. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -39
  60. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  61. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -181
  62. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  63. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  64. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  65. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  66. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  67. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  68. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  69. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  70. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  71. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  72. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  73. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  74. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  75. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +4 -0
  76. package/build/artifacts/contracts/router/math/{MarketApproxLib.sol/MarketApproxPtInLib.json → MarketApproxLibV2.sol/MarketApproxPtInLibV2.json} +4 -4
  77. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +4 -0
  78. package/build/artifacts/contracts/router/math/{MarketApproxLib.sol/MarketApproxPtOutLib.json → MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json} +4 -4
  79. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  80. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  81. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  82. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  83. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  84. package/contracts/interfaces/IPActionAddRemoveLiqV3.sol +1 -1
  85. package/contracts/interfaces/IPActionMarketAuxStatic.sol +2 -1
  86. package/contracts/interfaces/IPActionMiscV3.sol +1 -7
  87. package/contracts/interfaces/IPActionStorageStatic.sol +1 -1
  88. package/contracts/interfaces/IPActionSwapPTV3.sol +1 -1
  89. package/contracts/interfaces/IPActionSwapYTV3.sol +1 -17
  90. package/contracts/interfaces/IPActionVePendleStatic.sol +1 -0
  91. package/contracts/interfaces/IPAllEventsV3.sol +0 -8
  92. package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +2 -2
  93. package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +8 -7
  94. package/contracts/{router/math/MarketApproxLib.sol → offchain-helpers/router-static/base/MarketApproxLibV1.sol} +13 -13
  95. package/contracts/offchain-helpers/router-static/base/StorageLayout.sol +1 -1
  96. package/contracts/router/ActionAddRemoveLiqV3.sol +4 -4
  97. package/contracts/router/ActionMiscV3.sol +0 -14
  98. package/contracts/router/ActionSwapYTV3.sol +2 -65
  99. package/contracts/router/base/ActionBase.sol +5 -6
  100. package/contracts/router/math/MarketApproxLibV2.sol +479 -0
  101. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +8 -1
  102. package/contracts/router/swap-aggregator/PendleSwap.sol +0 -2
  103. package/deployments/1-core.json +5 -5
  104. package/package.json +1 -1
  105. package/typechain-types/ActionAddRemoveLiqV3.ts +2000 -0
  106. package/typechain-types/ActionInfoStatic.ts +310 -0
  107. package/typechain-types/ActionMarketAuxStatic.ts +903 -0
  108. package/typechain-types/ActionMarketCoreStatic.ts +1974 -0
  109. package/typechain-types/ActionMintRedeemStatic.ts +435 -0
  110. package/typechain-types/ActionMiscV3.ts +2213 -0
  111. package/typechain-types/ActionSimple.ts +1544 -0
  112. package/typechain-types/ActionStorageStatic.ts +1345 -0
  113. package/typechain-types/ActionStorageV4.ts +1270 -0
  114. package/typechain-types/ActionSwapPTV3.ts +1507 -0
  115. package/typechain-types/ActionSwapYTV3.ts +1507 -0
  116. package/typechain-types/ActionVePendleStatic.ts +113 -0
  117. package/typechain-types/IKyberScalingHelper.ts +108 -0
  118. package/typechain-types/IOdosRouterV2.ts +147 -0
  119. package/typechain-types/IPActionAddRemoveLiqV3.ts +2000 -0
  120. package/typechain-types/IPActionAddRemoveLiqV3Events.ts +499 -0
  121. package/typechain-types/IPActionMarketAuxStatic.ts +859 -0
  122. package/typechain-types/IPActionMiscV3.ts +2213 -0
  123. package/typechain-types/IPActionMiscV3Events.ts +463 -0
  124. package/typechain-types/IPActionSimple.ts +1544 -0
  125. package/typechain-types/IPActionStorageEvents.ts +97 -0
  126. package/typechain-types/IPActionStorageStatic.ts +1268 -0
  127. package/typechain-types/IPActionStorageV4.ts +1270 -0
  128. package/typechain-types/IPActionSwapPTV3.ts +1507 -0
  129. package/typechain-types/IPActionSwapPTV3Events.ts +125 -0
  130. package/typechain-types/IPActionSwapYTV3.ts +1507 -0
  131. package/typechain-types/IPActionSwapYTV3Events.ts +125 -0
  132. package/typechain-types/IPActionVePendleStatic.ts +113 -0
  133. package/typechain-types/IPAllActionV3.ts +4210 -0
  134. package/typechain-types/IPAllEventsV3.ts +1080 -0
  135. package/typechain-types/IPRouterStatic.ts +4633 -0
  136. package/typechain-types/IPSwapAggregator.ts +187 -0
  137. package/typechain-types/PendlePoolDeployHelper.ts +342 -0
  138. package/typechain-types/PendleRouterStatic.ts +57 -0
  139. package/typechain-types/PendleRouterV4.ts +57 -0
  140. package/typechain-types/PendleSwap.ts +208 -0
  141. package/typechain-types/Reflector.ts +95 -0
  142. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +3533 -0
  143. package/typechain-types/factories/ActionInfoStatic__factory.ts +360 -0
  144. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +780 -0
  145. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1449 -0
  146. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +304 -0
  147. package/typechain-types/factories/ActionMiscV3__factory.ts +3056 -0
  148. package/typechain-types/factories/ActionSimple__factory.ts +1939 -0
  149. package/typechain-types/factories/ActionStorageStatic__factory.ts +1576 -0
  150. package/typechain-types/factories/ActionStorageV4__factory.ts +1504 -0
  151. package/typechain-types/factories/ActionSwapPTV3__factory.ts +2556 -0
  152. package/typechain-types/factories/ActionSwapYTV3__factory.ts +2556 -0
  153. package/typechain-types/factories/ActionVePendleStatic__factory.ts +155 -0
  154. package/typechain-types/factories/IKyberScalingHelper__factory.ts +55 -0
  155. package/typechain-types/factories/IOdosRouterV2__factory.ts +94 -0
  156. package/typechain-types/factories/IPActionAddRemoveLiqV3Events__factory.ts +582 -0
  157. package/typechain-types/factories/IPActionAddRemoveLiqV3__factory.ts +3421 -0
  158. package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +622 -0
  159. package/typechain-types/factories/IPActionMiscV3Events__factory.ts +608 -0
  160. package/typechain-types/factories/IPActionMiscV3__factory.ts +3005 -0
  161. package/typechain-types/factories/IPActionSimple__factory.ts +1840 -0
  162. package/typechain-types/factories/IPActionStorageEvents__factory.ts +68 -0
  163. package/typechain-types/factories/IPActionStorageStatic__factory.ts +1498 -0
  164. package/typechain-types/factories/IPActionStorageV4__factory.ts +1466 -0
  165. package/typechain-types/factories/IPActionSwapPTV3Events__factory.ts +116 -0
  166. package/typechain-types/factories/IPActionSwapPTV3__factory.ts +2454 -0
  167. package/typechain-types/factories/IPActionSwapYTV3Events__factory.ts +116 -0
  168. package/typechain-types/factories/IPActionSwapYTV3__factory.ts +2454 -0
  169. package/typechain-types/factories/IPActionVePendleStatic__factory.ts +59 -0
  170. package/typechain-types/factories/IPAllActionV3__factory.ts +7860 -0
  171. package/typechain-types/factories/IPAllEventsV3__factory.ts +1363 -0
  172. package/typechain-types/factories/IPRouterStatic__factory.ts +3956 -0
  173. package/typechain-types/factories/IPSwapAggregator__factory.ts +136 -0
  174. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +345 -0
  175. package/typechain-types/factories/PendleRouterStatic__factory.ts +88 -0
  176. package/typechain-types/factories/PendleRouterV4__factory.ts +96 -0
  177. package/typechain-types/factories/PendleSwap__factory.ts +188 -0
  178. package/typechain-types/factories/Reflector__factory.ts +84 -0
  179. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +0 -4
  180. package/build/artifacts/contracts/router/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +0 -4
  181. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +0 -4
  182. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.json +0 -65
  183. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutorOptimistic.sol/IAggregationExecutorOptimistic.dbg.json +0 -4
  184. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutorOptimistic.sol/IAggregationExecutorOptimistic.json +0 -194
  185. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.dbg.json +0 -4
  186. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.json +0 -1787
  187. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.dbg.json +0 -4
  188. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.json +0 -2873
  189. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2Struct.sol/IExecutorHelperL2Struct.dbg.json +0 -4
  190. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2Struct.sol/IExecutorHelperL2Struct.json +0 -10
  191. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperStruct.sol/IExecutorHelperStruct.dbg.json +0 -4
  192. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperStruct.sol/IExecutorHelperStruct.json +0 -10
  193. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +0 -4
  194. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +0 -215
  195. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IBebopV3.sol/IBebopV3.dbg.json +0 -4
  196. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IBebopV3.sol/IBebopV3.json +0 -10
  197. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberDSLO.sol/IKyberDSLO.dbg.json +0 -4
  198. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberDSLO.sol/IKyberDSLO.json +0 -10
  199. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberLO.sol/IKyberLO.dbg.json +0 -4
  200. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberLO.sol/IKyberLO.json +0 -10
  201. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.dbg.json +0 -4
  202. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.json +0 -10
  203. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.dbg.json +0 -4
  204. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/BytesHelper.sol/BytesHelper.dbg.json +0 -4
  205. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol/CalldataReader.dbg.json +0 -4
  206. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol/CalldataReader.json +0 -10
  207. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.dbg.json +0 -4
  208. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.json +0 -10
  209. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol/Common.dbg.json +0 -4
  210. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol/Common.json +0 -10
  211. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.dbg.json +0 -4
  212. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.json +0 -10
  213. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol/ExecutorReader.dbg.json +0 -4
  214. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol/ExecutorReader.json +0 -10
  215. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.dbg.json +0 -4
  216. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.json +0 -10
  217. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.dbg.json +0 -4
  218. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.json +0 -10
  219. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/libraries/BytesHelper.sol/BytesHelper.dbg.json +0 -4
  220. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/libraries/BytesHelper.sol/BytesHelper.json +0 -10
  221. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/libraries/RevertReasonParser.sol/RevertReasonParser.dbg.json +0 -4
  222. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/libraries/RevertReasonParser.sol/RevertReasonParser.json +0 -10
  223. package/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol +0 -31
  224. package/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutorOptimistic.sol +0 -63
  225. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol +0 -164
  226. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol +0 -483
  227. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2Struct.sol +0 -412
  228. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperStruct.sol +0 -459
  229. package/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol +0 -47
  230. package/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IBebopV3.sol +0 -23
  231. package/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberDSLO.sol +0 -36
  232. package/contracts/router/swap-aggregator/kyberswap/interfaces/pools/IKyberLO.sol +0 -32
  233. package/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol +0 -354
  234. package/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol +0 -521
  235. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/BytesHelper.sol +0 -93
  236. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol +0 -404
  237. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol +0 -118
  238. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol +0 -41
  239. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol +0 -684
  240. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol +0 -61
  241. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol +0 -373
  242. package/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol +0 -273
  243. package/contracts/router/swap-aggregator/kyberswap/libraries/BytesHelper.sol +0 -32
  244. package/contracts/router/swap-aggregator/kyberswap/libraries/RevertReasonParser.sol +0 -75
@@ -0,0 +1,3421 @@
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
+ IPActionAddRemoveLiqV3,
9
+ IPActionAddRemoveLiqV3Interface,
10
+ } from "../IPActionAddRemoveLiqV3";
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: "receiver",
1358
+ type: "address",
1359
+ },
1360
+ {
1361
+ internalType: "address",
1362
+ name: "market",
1363
+ type: "address",
1364
+ },
1365
+ {
1366
+ internalType: "uint256",
1367
+ name: "netSyDesired",
1368
+ type: "uint256",
1369
+ },
1370
+ {
1371
+ internalType: "uint256",
1372
+ name: "netPtDesired",
1373
+ type: "uint256",
1374
+ },
1375
+ {
1376
+ internalType: "uint256",
1377
+ name: "minLpOut",
1378
+ type: "uint256",
1379
+ },
1380
+ ],
1381
+ name: "addLiquidityDualSyAndPt",
1382
+ outputs: [
1383
+ {
1384
+ internalType: "uint256",
1385
+ name: "netLpOut",
1386
+ type: "uint256",
1387
+ },
1388
+ {
1389
+ internalType: "uint256",
1390
+ name: "netSyUsed",
1391
+ type: "uint256",
1392
+ },
1393
+ {
1394
+ internalType: "uint256",
1395
+ name: "netPtUsed",
1396
+ type: "uint256",
1397
+ },
1398
+ ],
1399
+ stateMutability: "nonpayable",
1400
+ type: "function",
1401
+ },
1402
+ {
1403
+ inputs: [
1404
+ {
1405
+ internalType: "address",
1406
+ name: "receiver",
1407
+ type: "address",
1408
+ },
1409
+ {
1410
+ internalType: "address",
1411
+ name: "market",
1412
+ type: "address",
1413
+ },
1414
+ {
1415
+ components: [
1416
+ {
1417
+ internalType: "address",
1418
+ name: "tokenIn",
1419
+ type: "address",
1420
+ },
1421
+ {
1422
+ internalType: "uint256",
1423
+ name: "netTokenIn",
1424
+ type: "uint256",
1425
+ },
1426
+ {
1427
+ internalType: "address",
1428
+ name: "tokenMintSy",
1429
+ type: "address",
1430
+ },
1431
+ {
1432
+ internalType: "address",
1433
+ name: "pendleSwap",
1434
+ type: "address",
1435
+ },
1436
+ {
1437
+ components: [
1438
+ {
1439
+ internalType: "enum SwapType",
1440
+ name: "swapType",
1441
+ type: "uint8",
1442
+ },
1443
+ {
1444
+ internalType: "address",
1445
+ name: "extRouter",
1446
+ type: "address",
1447
+ },
1448
+ {
1449
+ internalType: "bytes",
1450
+ name: "extCalldata",
1451
+ type: "bytes",
1452
+ },
1453
+ {
1454
+ internalType: "bool",
1455
+ name: "needScale",
1456
+ type: "bool",
1457
+ },
1458
+ ],
1459
+ internalType: "struct SwapData",
1460
+ name: "swapData",
1461
+ type: "tuple",
1462
+ },
1463
+ ],
1464
+ internalType: "struct TokenInput",
1465
+ name: "input",
1466
+ type: "tuple",
1467
+ },
1468
+ {
1469
+ internalType: "uint256",
1470
+ name: "netPtDesired",
1471
+ type: "uint256",
1472
+ },
1473
+ {
1474
+ internalType: "uint256",
1475
+ name: "minLpOut",
1476
+ type: "uint256",
1477
+ },
1478
+ ],
1479
+ name: "addLiquidityDualTokenAndPt",
1480
+ outputs: [
1481
+ {
1482
+ internalType: "uint256",
1483
+ name: "netLpOut",
1484
+ type: "uint256",
1485
+ },
1486
+ {
1487
+ internalType: "uint256",
1488
+ name: "netPtUsed",
1489
+ type: "uint256",
1490
+ },
1491
+ {
1492
+ internalType: "uint256",
1493
+ name: "netSyInterm",
1494
+ type: "uint256",
1495
+ },
1496
+ ],
1497
+ stateMutability: "payable",
1498
+ type: "function",
1499
+ },
1500
+ {
1501
+ inputs: [
1502
+ {
1503
+ internalType: "address",
1504
+ name: "receiver",
1505
+ type: "address",
1506
+ },
1507
+ {
1508
+ internalType: "address",
1509
+ name: "market",
1510
+ type: "address",
1511
+ },
1512
+ {
1513
+ internalType: "uint256",
1514
+ name: "netPtIn",
1515
+ type: "uint256",
1516
+ },
1517
+ {
1518
+ internalType: "uint256",
1519
+ name: "minLpOut",
1520
+ type: "uint256",
1521
+ },
1522
+ {
1523
+ components: [
1524
+ {
1525
+ internalType: "uint256",
1526
+ name: "guessMin",
1527
+ type: "uint256",
1528
+ },
1529
+ {
1530
+ internalType: "uint256",
1531
+ name: "guessMax",
1532
+ type: "uint256",
1533
+ },
1534
+ {
1535
+ internalType: "uint256",
1536
+ name: "guessOffchain",
1537
+ type: "uint256",
1538
+ },
1539
+ {
1540
+ internalType: "uint256",
1541
+ name: "maxIteration",
1542
+ type: "uint256",
1543
+ },
1544
+ {
1545
+ internalType: "uint256",
1546
+ name: "eps",
1547
+ type: "uint256",
1548
+ },
1549
+ ],
1550
+ internalType: "struct ApproxParams",
1551
+ name: "guessPtSwapToSy",
1552
+ type: "tuple",
1553
+ },
1554
+ {
1555
+ components: [
1556
+ {
1557
+ internalType: "address",
1558
+ name: "limitRouter",
1559
+ type: "address",
1560
+ },
1561
+ {
1562
+ internalType: "uint256",
1563
+ name: "epsSkipMarket",
1564
+ type: "uint256",
1565
+ },
1566
+ {
1567
+ components: [
1568
+ {
1569
+ components: [
1570
+ {
1571
+ internalType: "uint256",
1572
+ name: "salt",
1573
+ type: "uint256",
1574
+ },
1575
+ {
1576
+ internalType: "uint256",
1577
+ name: "expiry",
1578
+ type: "uint256",
1579
+ },
1580
+ {
1581
+ internalType: "uint256",
1582
+ name: "nonce",
1583
+ type: "uint256",
1584
+ },
1585
+ {
1586
+ internalType: "enum IPLimitOrderType.OrderType",
1587
+ name: "orderType",
1588
+ type: "uint8",
1589
+ },
1590
+ {
1591
+ internalType: "address",
1592
+ name: "token",
1593
+ type: "address",
1594
+ },
1595
+ {
1596
+ internalType: "address",
1597
+ name: "YT",
1598
+ type: "address",
1599
+ },
1600
+ {
1601
+ internalType: "address",
1602
+ name: "maker",
1603
+ type: "address",
1604
+ },
1605
+ {
1606
+ internalType: "address",
1607
+ name: "receiver",
1608
+ type: "address",
1609
+ },
1610
+ {
1611
+ internalType: "uint256",
1612
+ name: "makingAmount",
1613
+ type: "uint256",
1614
+ },
1615
+ {
1616
+ internalType: "uint256",
1617
+ name: "lnImpliedRate",
1618
+ type: "uint256",
1619
+ },
1620
+ {
1621
+ internalType: "uint256",
1622
+ name: "failSafeRate",
1623
+ type: "uint256",
1624
+ },
1625
+ {
1626
+ internalType: "bytes",
1627
+ name: "permit",
1628
+ type: "bytes",
1629
+ },
1630
+ ],
1631
+ internalType: "struct Order",
1632
+ name: "order",
1633
+ type: "tuple",
1634
+ },
1635
+ {
1636
+ internalType: "bytes",
1637
+ name: "signature",
1638
+ type: "bytes",
1639
+ },
1640
+ {
1641
+ internalType: "uint256",
1642
+ name: "makingAmount",
1643
+ type: "uint256",
1644
+ },
1645
+ ],
1646
+ internalType: "struct FillOrderParams[]",
1647
+ name: "normalFills",
1648
+ type: "tuple[]",
1649
+ },
1650
+ {
1651
+ components: [
1652
+ {
1653
+ components: [
1654
+ {
1655
+ internalType: "uint256",
1656
+ name: "salt",
1657
+ type: "uint256",
1658
+ },
1659
+ {
1660
+ internalType: "uint256",
1661
+ name: "expiry",
1662
+ type: "uint256",
1663
+ },
1664
+ {
1665
+ internalType: "uint256",
1666
+ name: "nonce",
1667
+ type: "uint256",
1668
+ },
1669
+ {
1670
+ internalType: "enum IPLimitOrderType.OrderType",
1671
+ name: "orderType",
1672
+ type: "uint8",
1673
+ },
1674
+ {
1675
+ internalType: "address",
1676
+ name: "token",
1677
+ type: "address",
1678
+ },
1679
+ {
1680
+ internalType: "address",
1681
+ name: "YT",
1682
+ type: "address",
1683
+ },
1684
+ {
1685
+ internalType: "address",
1686
+ name: "maker",
1687
+ type: "address",
1688
+ },
1689
+ {
1690
+ internalType: "address",
1691
+ name: "receiver",
1692
+ type: "address",
1693
+ },
1694
+ {
1695
+ internalType: "uint256",
1696
+ name: "makingAmount",
1697
+ type: "uint256",
1698
+ },
1699
+ {
1700
+ internalType: "uint256",
1701
+ name: "lnImpliedRate",
1702
+ type: "uint256",
1703
+ },
1704
+ {
1705
+ internalType: "uint256",
1706
+ name: "failSafeRate",
1707
+ type: "uint256",
1708
+ },
1709
+ {
1710
+ internalType: "bytes",
1711
+ name: "permit",
1712
+ type: "bytes",
1713
+ },
1714
+ ],
1715
+ internalType: "struct Order",
1716
+ name: "order",
1717
+ type: "tuple",
1718
+ },
1719
+ {
1720
+ internalType: "bytes",
1721
+ name: "signature",
1722
+ type: "bytes",
1723
+ },
1724
+ {
1725
+ internalType: "uint256",
1726
+ name: "makingAmount",
1727
+ type: "uint256",
1728
+ },
1729
+ ],
1730
+ internalType: "struct FillOrderParams[]",
1731
+ name: "flashFills",
1732
+ type: "tuple[]",
1733
+ },
1734
+ {
1735
+ internalType: "bytes",
1736
+ name: "optData",
1737
+ type: "bytes",
1738
+ },
1739
+ ],
1740
+ internalType: "struct LimitOrderData",
1741
+ name: "limit",
1742
+ type: "tuple",
1743
+ },
1744
+ ],
1745
+ name: "addLiquiditySinglePt",
1746
+ outputs: [
1747
+ {
1748
+ internalType: "uint256",
1749
+ name: "netLpOut",
1750
+ type: "uint256",
1751
+ },
1752
+ {
1753
+ internalType: "uint256",
1754
+ name: "netSyFee",
1755
+ type: "uint256",
1756
+ },
1757
+ ],
1758
+ stateMutability: "nonpayable",
1759
+ type: "function",
1760
+ },
1761
+ {
1762
+ inputs: [
1763
+ {
1764
+ internalType: "address",
1765
+ name: "receiver",
1766
+ type: "address",
1767
+ },
1768
+ {
1769
+ internalType: "address",
1770
+ name: "market",
1771
+ type: "address",
1772
+ },
1773
+ {
1774
+ internalType: "uint256",
1775
+ name: "netSyIn",
1776
+ type: "uint256",
1777
+ },
1778
+ {
1779
+ internalType: "uint256",
1780
+ name: "minLpOut",
1781
+ type: "uint256",
1782
+ },
1783
+ {
1784
+ components: [
1785
+ {
1786
+ internalType: "uint256",
1787
+ name: "guessMin",
1788
+ type: "uint256",
1789
+ },
1790
+ {
1791
+ internalType: "uint256",
1792
+ name: "guessMax",
1793
+ type: "uint256",
1794
+ },
1795
+ {
1796
+ internalType: "uint256",
1797
+ name: "guessOffchain",
1798
+ type: "uint256",
1799
+ },
1800
+ {
1801
+ internalType: "uint256",
1802
+ name: "maxIteration",
1803
+ type: "uint256",
1804
+ },
1805
+ {
1806
+ internalType: "uint256",
1807
+ name: "eps",
1808
+ type: "uint256",
1809
+ },
1810
+ ],
1811
+ internalType: "struct ApproxParams",
1812
+ name: "guessPtReceivedFromSy",
1813
+ type: "tuple",
1814
+ },
1815
+ {
1816
+ components: [
1817
+ {
1818
+ internalType: "address",
1819
+ name: "limitRouter",
1820
+ type: "address",
1821
+ },
1822
+ {
1823
+ internalType: "uint256",
1824
+ name: "epsSkipMarket",
1825
+ type: "uint256",
1826
+ },
1827
+ {
1828
+ components: [
1829
+ {
1830
+ components: [
1831
+ {
1832
+ internalType: "uint256",
1833
+ name: "salt",
1834
+ type: "uint256",
1835
+ },
1836
+ {
1837
+ internalType: "uint256",
1838
+ name: "expiry",
1839
+ type: "uint256",
1840
+ },
1841
+ {
1842
+ internalType: "uint256",
1843
+ name: "nonce",
1844
+ type: "uint256",
1845
+ },
1846
+ {
1847
+ internalType: "enum IPLimitOrderType.OrderType",
1848
+ name: "orderType",
1849
+ type: "uint8",
1850
+ },
1851
+ {
1852
+ internalType: "address",
1853
+ name: "token",
1854
+ type: "address",
1855
+ },
1856
+ {
1857
+ internalType: "address",
1858
+ name: "YT",
1859
+ type: "address",
1860
+ },
1861
+ {
1862
+ internalType: "address",
1863
+ name: "maker",
1864
+ type: "address",
1865
+ },
1866
+ {
1867
+ internalType: "address",
1868
+ name: "receiver",
1869
+ type: "address",
1870
+ },
1871
+ {
1872
+ internalType: "uint256",
1873
+ name: "makingAmount",
1874
+ type: "uint256",
1875
+ },
1876
+ {
1877
+ internalType: "uint256",
1878
+ name: "lnImpliedRate",
1879
+ type: "uint256",
1880
+ },
1881
+ {
1882
+ internalType: "uint256",
1883
+ name: "failSafeRate",
1884
+ type: "uint256",
1885
+ },
1886
+ {
1887
+ internalType: "bytes",
1888
+ name: "permit",
1889
+ type: "bytes",
1890
+ },
1891
+ ],
1892
+ internalType: "struct Order",
1893
+ name: "order",
1894
+ type: "tuple",
1895
+ },
1896
+ {
1897
+ internalType: "bytes",
1898
+ name: "signature",
1899
+ type: "bytes",
1900
+ },
1901
+ {
1902
+ internalType: "uint256",
1903
+ name: "makingAmount",
1904
+ type: "uint256",
1905
+ },
1906
+ ],
1907
+ internalType: "struct FillOrderParams[]",
1908
+ name: "normalFills",
1909
+ type: "tuple[]",
1910
+ },
1911
+ {
1912
+ components: [
1913
+ {
1914
+ components: [
1915
+ {
1916
+ internalType: "uint256",
1917
+ name: "salt",
1918
+ type: "uint256",
1919
+ },
1920
+ {
1921
+ internalType: "uint256",
1922
+ name: "expiry",
1923
+ type: "uint256",
1924
+ },
1925
+ {
1926
+ internalType: "uint256",
1927
+ name: "nonce",
1928
+ type: "uint256",
1929
+ },
1930
+ {
1931
+ internalType: "enum IPLimitOrderType.OrderType",
1932
+ name: "orderType",
1933
+ type: "uint8",
1934
+ },
1935
+ {
1936
+ internalType: "address",
1937
+ name: "token",
1938
+ type: "address",
1939
+ },
1940
+ {
1941
+ internalType: "address",
1942
+ name: "YT",
1943
+ type: "address",
1944
+ },
1945
+ {
1946
+ internalType: "address",
1947
+ name: "maker",
1948
+ type: "address",
1949
+ },
1950
+ {
1951
+ internalType: "address",
1952
+ name: "receiver",
1953
+ type: "address",
1954
+ },
1955
+ {
1956
+ internalType: "uint256",
1957
+ name: "makingAmount",
1958
+ type: "uint256",
1959
+ },
1960
+ {
1961
+ internalType: "uint256",
1962
+ name: "lnImpliedRate",
1963
+ type: "uint256",
1964
+ },
1965
+ {
1966
+ internalType: "uint256",
1967
+ name: "failSafeRate",
1968
+ type: "uint256",
1969
+ },
1970
+ {
1971
+ internalType: "bytes",
1972
+ name: "permit",
1973
+ type: "bytes",
1974
+ },
1975
+ ],
1976
+ internalType: "struct Order",
1977
+ name: "order",
1978
+ type: "tuple",
1979
+ },
1980
+ {
1981
+ internalType: "bytes",
1982
+ name: "signature",
1983
+ type: "bytes",
1984
+ },
1985
+ {
1986
+ internalType: "uint256",
1987
+ name: "makingAmount",
1988
+ type: "uint256",
1989
+ },
1990
+ ],
1991
+ internalType: "struct FillOrderParams[]",
1992
+ name: "flashFills",
1993
+ type: "tuple[]",
1994
+ },
1995
+ {
1996
+ internalType: "bytes",
1997
+ name: "optData",
1998
+ type: "bytes",
1999
+ },
2000
+ ],
2001
+ internalType: "struct LimitOrderData",
2002
+ name: "limit",
2003
+ type: "tuple",
2004
+ },
2005
+ ],
2006
+ name: "addLiquiditySingleSy",
2007
+ outputs: [
2008
+ {
2009
+ internalType: "uint256",
2010
+ name: "netLpOut",
2011
+ type: "uint256",
2012
+ },
2013
+ {
2014
+ internalType: "uint256",
2015
+ name: "netSyFee",
2016
+ type: "uint256",
2017
+ },
2018
+ ],
2019
+ stateMutability: "nonpayable",
2020
+ type: "function",
2021
+ },
2022
+ {
2023
+ inputs: [
2024
+ {
2025
+ internalType: "address",
2026
+ name: "receiver",
2027
+ type: "address",
2028
+ },
2029
+ {
2030
+ internalType: "address",
2031
+ name: "market",
2032
+ type: "address",
2033
+ },
2034
+ {
2035
+ internalType: "uint256",
2036
+ name: "netSyIn",
2037
+ type: "uint256",
2038
+ },
2039
+ {
2040
+ internalType: "uint256",
2041
+ name: "minLpOut",
2042
+ type: "uint256",
2043
+ },
2044
+ {
2045
+ internalType: "uint256",
2046
+ name: "minYtOut",
2047
+ type: "uint256",
2048
+ },
2049
+ ],
2050
+ name: "addLiquiditySingleSyKeepYt",
2051
+ outputs: [
2052
+ {
2053
+ internalType: "uint256",
2054
+ name: "netLpOut",
2055
+ type: "uint256",
2056
+ },
2057
+ {
2058
+ internalType: "uint256",
2059
+ name: "netYtOut",
2060
+ type: "uint256",
2061
+ },
2062
+ {
2063
+ internalType: "uint256",
2064
+ name: "netSyMintPy",
2065
+ type: "uint256",
2066
+ },
2067
+ ],
2068
+ stateMutability: "nonpayable",
2069
+ type: "function",
2070
+ },
2071
+ {
2072
+ inputs: [
2073
+ {
2074
+ internalType: "address",
2075
+ name: "receiver",
2076
+ type: "address",
2077
+ },
2078
+ {
2079
+ internalType: "address",
2080
+ name: "market",
2081
+ type: "address",
2082
+ },
2083
+ {
2084
+ internalType: "uint256",
2085
+ name: "minLpOut",
2086
+ type: "uint256",
2087
+ },
2088
+ {
2089
+ components: [
2090
+ {
2091
+ internalType: "uint256",
2092
+ name: "guessMin",
2093
+ type: "uint256",
2094
+ },
2095
+ {
2096
+ internalType: "uint256",
2097
+ name: "guessMax",
2098
+ type: "uint256",
2099
+ },
2100
+ {
2101
+ internalType: "uint256",
2102
+ name: "guessOffchain",
2103
+ type: "uint256",
2104
+ },
2105
+ {
2106
+ internalType: "uint256",
2107
+ name: "maxIteration",
2108
+ type: "uint256",
2109
+ },
2110
+ {
2111
+ internalType: "uint256",
2112
+ name: "eps",
2113
+ type: "uint256",
2114
+ },
2115
+ ],
2116
+ internalType: "struct ApproxParams",
2117
+ name: "guessPtReceivedFromSy",
2118
+ type: "tuple",
2119
+ },
2120
+ {
2121
+ components: [
2122
+ {
2123
+ internalType: "address",
2124
+ name: "tokenIn",
2125
+ type: "address",
2126
+ },
2127
+ {
2128
+ internalType: "uint256",
2129
+ name: "netTokenIn",
2130
+ type: "uint256",
2131
+ },
2132
+ {
2133
+ internalType: "address",
2134
+ name: "tokenMintSy",
2135
+ type: "address",
2136
+ },
2137
+ {
2138
+ internalType: "address",
2139
+ name: "pendleSwap",
2140
+ type: "address",
2141
+ },
2142
+ {
2143
+ components: [
2144
+ {
2145
+ internalType: "enum SwapType",
2146
+ name: "swapType",
2147
+ type: "uint8",
2148
+ },
2149
+ {
2150
+ internalType: "address",
2151
+ name: "extRouter",
2152
+ type: "address",
2153
+ },
2154
+ {
2155
+ internalType: "bytes",
2156
+ name: "extCalldata",
2157
+ type: "bytes",
2158
+ },
2159
+ {
2160
+ internalType: "bool",
2161
+ name: "needScale",
2162
+ type: "bool",
2163
+ },
2164
+ ],
2165
+ internalType: "struct SwapData",
2166
+ name: "swapData",
2167
+ type: "tuple",
2168
+ },
2169
+ ],
2170
+ internalType: "struct TokenInput",
2171
+ name: "input",
2172
+ type: "tuple",
2173
+ },
2174
+ {
2175
+ components: [
2176
+ {
2177
+ internalType: "address",
2178
+ name: "limitRouter",
2179
+ type: "address",
2180
+ },
2181
+ {
2182
+ internalType: "uint256",
2183
+ name: "epsSkipMarket",
2184
+ type: "uint256",
2185
+ },
2186
+ {
2187
+ components: [
2188
+ {
2189
+ components: [
2190
+ {
2191
+ internalType: "uint256",
2192
+ name: "salt",
2193
+ type: "uint256",
2194
+ },
2195
+ {
2196
+ internalType: "uint256",
2197
+ name: "expiry",
2198
+ type: "uint256",
2199
+ },
2200
+ {
2201
+ internalType: "uint256",
2202
+ name: "nonce",
2203
+ type: "uint256",
2204
+ },
2205
+ {
2206
+ internalType: "enum IPLimitOrderType.OrderType",
2207
+ name: "orderType",
2208
+ type: "uint8",
2209
+ },
2210
+ {
2211
+ internalType: "address",
2212
+ name: "token",
2213
+ type: "address",
2214
+ },
2215
+ {
2216
+ internalType: "address",
2217
+ name: "YT",
2218
+ type: "address",
2219
+ },
2220
+ {
2221
+ internalType: "address",
2222
+ name: "maker",
2223
+ type: "address",
2224
+ },
2225
+ {
2226
+ internalType: "address",
2227
+ name: "receiver",
2228
+ type: "address",
2229
+ },
2230
+ {
2231
+ internalType: "uint256",
2232
+ name: "makingAmount",
2233
+ type: "uint256",
2234
+ },
2235
+ {
2236
+ internalType: "uint256",
2237
+ name: "lnImpliedRate",
2238
+ type: "uint256",
2239
+ },
2240
+ {
2241
+ internalType: "uint256",
2242
+ name: "failSafeRate",
2243
+ type: "uint256",
2244
+ },
2245
+ {
2246
+ internalType: "bytes",
2247
+ name: "permit",
2248
+ type: "bytes",
2249
+ },
2250
+ ],
2251
+ internalType: "struct Order",
2252
+ name: "order",
2253
+ type: "tuple",
2254
+ },
2255
+ {
2256
+ internalType: "bytes",
2257
+ name: "signature",
2258
+ type: "bytes",
2259
+ },
2260
+ {
2261
+ internalType: "uint256",
2262
+ name: "makingAmount",
2263
+ type: "uint256",
2264
+ },
2265
+ ],
2266
+ internalType: "struct FillOrderParams[]",
2267
+ name: "normalFills",
2268
+ type: "tuple[]",
2269
+ },
2270
+ {
2271
+ components: [
2272
+ {
2273
+ components: [
2274
+ {
2275
+ internalType: "uint256",
2276
+ name: "salt",
2277
+ type: "uint256",
2278
+ },
2279
+ {
2280
+ internalType: "uint256",
2281
+ name: "expiry",
2282
+ type: "uint256",
2283
+ },
2284
+ {
2285
+ internalType: "uint256",
2286
+ name: "nonce",
2287
+ type: "uint256",
2288
+ },
2289
+ {
2290
+ internalType: "enum IPLimitOrderType.OrderType",
2291
+ name: "orderType",
2292
+ type: "uint8",
2293
+ },
2294
+ {
2295
+ internalType: "address",
2296
+ name: "token",
2297
+ type: "address",
2298
+ },
2299
+ {
2300
+ internalType: "address",
2301
+ name: "YT",
2302
+ type: "address",
2303
+ },
2304
+ {
2305
+ internalType: "address",
2306
+ name: "maker",
2307
+ type: "address",
2308
+ },
2309
+ {
2310
+ internalType: "address",
2311
+ name: "receiver",
2312
+ type: "address",
2313
+ },
2314
+ {
2315
+ internalType: "uint256",
2316
+ name: "makingAmount",
2317
+ type: "uint256",
2318
+ },
2319
+ {
2320
+ internalType: "uint256",
2321
+ name: "lnImpliedRate",
2322
+ type: "uint256",
2323
+ },
2324
+ {
2325
+ internalType: "uint256",
2326
+ name: "failSafeRate",
2327
+ type: "uint256",
2328
+ },
2329
+ {
2330
+ internalType: "bytes",
2331
+ name: "permit",
2332
+ type: "bytes",
2333
+ },
2334
+ ],
2335
+ internalType: "struct Order",
2336
+ name: "order",
2337
+ type: "tuple",
2338
+ },
2339
+ {
2340
+ internalType: "bytes",
2341
+ name: "signature",
2342
+ type: "bytes",
2343
+ },
2344
+ {
2345
+ internalType: "uint256",
2346
+ name: "makingAmount",
2347
+ type: "uint256",
2348
+ },
2349
+ ],
2350
+ internalType: "struct FillOrderParams[]",
2351
+ name: "flashFills",
2352
+ type: "tuple[]",
2353
+ },
2354
+ {
2355
+ internalType: "bytes",
2356
+ name: "optData",
2357
+ type: "bytes",
2358
+ },
2359
+ ],
2360
+ internalType: "struct LimitOrderData",
2361
+ name: "limit",
2362
+ type: "tuple",
2363
+ },
2364
+ ],
2365
+ name: "addLiquiditySingleToken",
2366
+ outputs: [
2367
+ {
2368
+ internalType: "uint256",
2369
+ name: "netLpOut",
2370
+ type: "uint256",
2371
+ },
2372
+ {
2373
+ internalType: "uint256",
2374
+ name: "netSyFee",
2375
+ type: "uint256",
2376
+ },
2377
+ {
2378
+ internalType: "uint256",
2379
+ name: "netSyInterm",
2380
+ type: "uint256",
2381
+ },
2382
+ ],
2383
+ stateMutability: "payable",
2384
+ type: "function",
2385
+ },
2386
+ {
2387
+ inputs: [
2388
+ {
2389
+ internalType: "address",
2390
+ name: "receiver",
2391
+ type: "address",
2392
+ },
2393
+ {
2394
+ internalType: "address",
2395
+ name: "market",
2396
+ type: "address",
2397
+ },
2398
+ {
2399
+ internalType: "uint256",
2400
+ name: "minLpOut",
2401
+ type: "uint256",
2402
+ },
2403
+ {
2404
+ internalType: "uint256",
2405
+ name: "minYtOut",
2406
+ type: "uint256",
2407
+ },
2408
+ {
2409
+ components: [
2410
+ {
2411
+ internalType: "address",
2412
+ name: "tokenIn",
2413
+ type: "address",
2414
+ },
2415
+ {
2416
+ internalType: "uint256",
2417
+ name: "netTokenIn",
2418
+ type: "uint256",
2419
+ },
2420
+ {
2421
+ internalType: "address",
2422
+ name: "tokenMintSy",
2423
+ type: "address",
2424
+ },
2425
+ {
2426
+ internalType: "address",
2427
+ name: "pendleSwap",
2428
+ type: "address",
2429
+ },
2430
+ {
2431
+ components: [
2432
+ {
2433
+ internalType: "enum SwapType",
2434
+ name: "swapType",
2435
+ type: "uint8",
2436
+ },
2437
+ {
2438
+ internalType: "address",
2439
+ name: "extRouter",
2440
+ type: "address",
2441
+ },
2442
+ {
2443
+ internalType: "bytes",
2444
+ name: "extCalldata",
2445
+ type: "bytes",
2446
+ },
2447
+ {
2448
+ internalType: "bool",
2449
+ name: "needScale",
2450
+ type: "bool",
2451
+ },
2452
+ ],
2453
+ internalType: "struct SwapData",
2454
+ name: "swapData",
2455
+ type: "tuple",
2456
+ },
2457
+ ],
2458
+ internalType: "struct TokenInput",
2459
+ name: "input",
2460
+ type: "tuple",
2461
+ },
2462
+ ],
2463
+ name: "addLiquiditySingleTokenKeepYt",
2464
+ outputs: [
2465
+ {
2466
+ internalType: "uint256",
2467
+ name: "netLpOut",
2468
+ type: "uint256",
2469
+ },
2470
+ {
2471
+ internalType: "uint256",
2472
+ name: "netYtOut",
2473
+ type: "uint256",
2474
+ },
2475
+ {
2476
+ internalType: "uint256",
2477
+ name: "netSyMintPy",
2478
+ type: "uint256",
2479
+ },
2480
+ {
2481
+ internalType: "uint256",
2482
+ name: "netSyInterm",
2483
+ type: "uint256",
2484
+ },
2485
+ ],
2486
+ stateMutability: "payable",
2487
+ type: "function",
2488
+ },
2489
+ {
2490
+ inputs: [
2491
+ {
2492
+ internalType: "address",
2493
+ name: "receiver",
2494
+ type: "address",
2495
+ },
2496
+ {
2497
+ internalType: "address",
2498
+ name: "market",
2499
+ type: "address",
2500
+ },
2501
+ {
2502
+ internalType: "uint256",
2503
+ name: "netLpToRemove",
2504
+ type: "uint256",
2505
+ },
2506
+ {
2507
+ internalType: "uint256",
2508
+ name: "minSyOut",
2509
+ type: "uint256",
2510
+ },
2511
+ {
2512
+ internalType: "uint256",
2513
+ name: "minPtOut",
2514
+ type: "uint256",
2515
+ },
2516
+ ],
2517
+ name: "removeLiquidityDualSyAndPt",
2518
+ outputs: [
2519
+ {
2520
+ internalType: "uint256",
2521
+ name: "netSyOut",
2522
+ type: "uint256",
2523
+ },
2524
+ {
2525
+ internalType: "uint256",
2526
+ name: "netPtOut",
2527
+ type: "uint256",
2528
+ },
2529
+ ],
2530
+ stateMutability: "nonpayable",
2531
+ type: "function",
2532
+ },
2533
+ {
2534
+ inputs: [
2535
+ {
2536
+ internalType: "address",
2537
+ name: "receiver",
2538
+ type: "address",
2539
+ },
2540
+ {
2541
+ internalType: "address",
2542
+ name: "market",
2543
+ type: "address",
2544
+ },
2545
+ {
2546
+ internalType: "uint256",
2547
+ name: "netLpToRemove",
2548
+ type: "uint256",
2549
+ },
2550
+ {
2551
+ components: [
2552
+ {
2553
+ internalType: "address",
2554
+ name: "tokenOut",
2555
+ type: "address",
2556
+ },
2557
+ {
2558
+ internalType: "uint256",
2559
+ name: "minTokenOut",
2560
+ type: "uint256",
2561
+ },
2562
+ {
2563
+ internalType: "address",
2564
+ name: "tokenRedeemSy",
2565
+ type: "address",
2566
+ },
2567
+ {
2568
+ internalType: "address",
2569
+ name: "pendleSwap",
2570
+ type: "address",
2571
+ },
2572
+ {
2573
+ components: [
2574
+ {
2575
+ internalType: "enum SwapType",
2576
+ name: "swapType",
2577
+ type: "uint8",
2578
+ },
2579
+ {
2580
+ internalType: "address",
2581
+ name: "extRouter",
2582
+ type: "address",
2583
+ },
2584
+ {
2585
+ internalType: "bytes",
2586
+ name: "extCalldata",
2587
+ type: "bytes",
2588
+ },
2589
+ {
2590
+ internalType: "bool",
2591
+ name: "needScale",
2592
+ type: "bool",
2593
+ },
2594
+ ],
2595
+ internalType: "struct SwapData",
2596
+ name: "swapData",
2597
+ type: "tuple",
2598
+ },
2599
+ ],
2600
+ internalType: "struct TokenOutput",
2601
+ name: "output",
2602
+ type: "tuple",
2603
+ },
2604
+ {
2605
+ internalType: "uint256",
2606
+ name: "minPtOut",
2607
+ type: "uint256",
2608
+ },
2609
+ ],
2610
+ name: "removeLiquidityDualTokenAndPt",
2611
+ outputs: [
2612
+ {
2613
+ internalType: "uint256",
2614
+ name: "netTokenOut",
2615
+ type: "uint256",
2616
+ },
2617
+ {
2618
+ internalType: "uint256",
2619
+ name: "netPtOut",
2620
+ type: "uint256",
2621
+ },
2622
+ {
2623
+ internalType: "uint256",
2624
+ name: "netSyInterm",
2625
+ type: "uint256",
2626
+ },
2627
+ ],
2628
+ stateMutability: "nonpayable",
2629
+ type: "function",
2630
+ },
2631
+ {
2632
+ inputs: [
2633
+ {
2634
+ internalType: "address",
2635
+ name: "receiver",
2636
+ type: "address",
2637
+ },
2638
+ {
2639
+ internalType: "address",
2640
+ name: "market",
2641
+ type: "address",
2642
+ },
2643
+ {
2644
+ internalType: "uint256",
2645
+ name: "netLpToRemove",
2646
+ type: "uint256",
2647
+ },
2648
+ {
2649
+ internalType: "uint256",
2650
+ name: "minPtOut",
2651
+ type: "uint256",
2652
+ },
2653
+ {
2654
+ components: [
2655
+ {
2656
+ internalType: "uint256",
2657
+ name: "guessMin",
2658
+ type: "uint256",
2659
+ },
2660
+ {
2661
+ internalType: "uint256",
2662
+ name: "guessMax",
2663
+ type: "uint256",
2664
+ },
2665
+ {
2666
+ internalType: "uint256",
2667
+ name: "guessOffchain",
2668
+ type: "uint256",
2669
+ },
2670
+ {
2671
+ internalType: "uint256",
2672
+ name: "maxIteration",
2673
+ type: "uint256",
2674
+ },
2675
+ {
2676
+ internalType: "uint256",
2677
+ name: "eps",
2678
+ type: "uint256",
2679
+ },
2680
+ ],
2681
+ internalType: "struct ApproxParams",
2682
+ name: "guessPtReceivedFromSy",
2683
+ type: "tuple",
2684
+ },
2685
+ {
2686
+ components: [
2687
+ {
2688
+ internalType: "address",
2689
+ name: "limitRouter",
2690
+ type: "address",
2691
+ },
2692
+ {
2693
+ internalType: "uint256",
2694
+ name: "epsSkipMarket",
2695
+ type: "uint256",
2696
+ },
2697
+ {
2698
+ components: [
2699
+ {
2700
+ components: [
2701
+ {
2702
+ internalType: "uint256",
2703
+ name: "salt",
2704
+ type: "uint256",
2705
+ },
2706
+ {
2707
+ internalType: "uint256",
2708
+ name: "expiry",
2709
+ type: "uint256",
2710
+ },
2711
+ {
2712
+ internalType: "uint256",
2713
+ name: "nonce",
2714
+ type: "uint256",
2715
+ },
2716
+ {
2717
+ internalType: "enum IPLimitOrderType.OrderType",
2718
+ name: "orderType",
2719
+ type: "uint8",
2720
+ },
2721
+ {
2722
+ internalType: "address",
2723
+ name: "token",
2724
+ type: "address",
2725
+ },
2726
+ {
2727
+ internalType: "address",
2728
+ name: "YT",
2729
+ type: "address",
2730
+ },
2731
+ {
2732
+ internalType: "address",
2733
+ name: "maker",
2734
+ type: "address",
2735
+ },
2736
+ {
2737
+ internalType: "address",
2738
+ name: "receiver",
2739
+ type: "address",
2740
+ },
2741
+ {
2742
+ internalType: "uint256",
2743
+ name: "makingAmount",
2744
+ type: "uint256",
2745
+ },
2746
+ {
2747
+ internalType: "uint256",
2748
+ name: "lnImpliedRate",
2749
+ type: "uint256",
2750
+ },
2751
+ {
2752
+ internalType: "uint256",
2753
+ name: "failSafeRate",
2754
+ type: "uint256",
2755
+ },
2756
+ {
2757
+ internalType: "bytes",
2758
+ name: "permit",
2759
+ type: "bytes",
2760
+ },
2761
+ ],
2762
+ internalType: "struct Order",
2763
+ name: "order",
2764
+ type: "tuple",
2765
+ },
2766
+ {
2767
+ internalType: "bytes",
2768
+ name: "signature",
2769
+ type: "bytes",
2770
+ },
2771
+ {
2772
+ internalType: "uint256",
2773
+ name: "makingAmount",
2774
+ type: "uint256",
2775
+ },
2776
+ ],
2777
+ internalType: "struct FillOrderParams[]",
2778
+ name: "normalFills",
2779
+ type: "tuple[]",
2780
+ },
2781
+ {
2782
+ components: [
2783
+ {
2784
+ components: [
2785
+ {
2786
+ internalType: "uint256",
2787
+ name: "salt",
2788
+ type: "uint256",
2789
+ },
2790
+ {
2791
+ internalType: "uint256",
2792
+ name: "expiry",
2793
+ type: "uint256",
2794
+ },
2795
+ {
2796
+ internalType: "uint256",
2797
+ name: "nonce",
2798
+ type: "uint256",
2799
+ },
2800
+ {
2801
+ internalType: "enum IPLimitOrderType.OrderType",
2802
+ name: "orderType",
2803
+ type: "uint8",
2804
+ },
2805
+ {
2806
+ internalType: "address",
2807
+ name: "token",
2808
+ type: "address",
2809
+ },
2810
+ {
2811
+ internalType: "address",
2812
+ name: "YT",
2813
+ type: "address",
2814
+ },
2815
+ {
2816
+ internalType: "address",
2817
+ name: "maker",
2818
+ type: "address",
2819
+ },
2820
+ {
2821
+ internalType: "address",
2822
+ name: "receiver",
2823
+ type: "address",
2824
+ },
2825
+ {
2826
+ internalType: "uint256",
2827
+ name: "makingAmount",
2828
+ type: "uint256",
2829
+ },
2830
+ {
2831
+ internalType: "uint256",
2832
+ name: "lnImpliedRate",
2833
+ type: "uint256",
2834
+ },
2835
+ {
2836
+ internalType: "uint256",
2837
+ name: "failSafeRate",
2838
+ type: "uint256",
2839
+ },
2840
+ {
2841
+ internalType: "bytes",
2842
+ name: "permit",
2843
+ type: "bytes",
2844
+ },
2845
+ ],
2846
+ internalType: "struct Order",
2847
+ name: "order",
2848
+ type: "tuple",
2849
+ },
2850
+ {
2851
+ internalType: "bytes",
2852
+ name: "signature",
2853
+ type: "bytes",
2854
+ },
2855
+ {
2856
+ internalType: "uint256",
2857
+ name: "makingAmount",
2858
+ type: "uint256",
2859
+ },
2860
+ ],
2861
+ internalType: "struct FillOrderParams[]",
2862
+ name: "flashFills",
2863
+ type: "tuple[]",
2864
+ },
2865
+ {
2866
+ internalType: "bytes",
2867
+ name: "optData",
2868
+ type: "bytes",
2869
+ },
2870
+ ],
2871
+ internalType: "struct LimitOrderData",
2872
+ name: "limit",
2873
+ type: "tuple",
2874
+ },
2875
+ ],
2876
+ name: "removeLiquiditySinglePt",
2877
+ outputs: [
2878
+ {
2879
+ internalType: "uint256",
2880
+ name: "netPtOut",
2881
+ type: "uint256",
2882
+ },
2883
+ {
2884
+ internalType: "uint256",
2885
+ name: "netSyFee",
2886
+ type: "uint256",
2887
+ },
2888
+ ],
2889
+ stateMutability: "nonpayable",
2890
+ type: "function",
2891
+ },
2892
+ {
2893
+ inputs: [
2894
+ {
2895
+ internalType: "address",
2896
+ name: "receiver",
2897
+ type: "address",
2898
+ },
2899
+ {
2900
+ internalType: "address",
2901
+ name: "market",
2902
+ type: "address",
2903
+ },
2904
+ {
2905
+ internalType: "uint256",
2906
+ name: "netLpToRemove",
2907
+ type: "uint256",
2908
+ },
2909
+ {
2910
+ internalType: "uint256",
2911
+ name: "minSyOut",
2912
+ type: "uint256",
2913
+ },
2914
+ {
2915
+ components: [
2916
+ {
2917
+ internalType: "address",
2918
+ name: "limitRouter",
2919
+ type: "address",
2920
+ },
2921
+ {
2922
+ internalType: "uint256",
2923
+ name: "epsSkipMarket",
2924
+ type: "uint256",
2925
+ },
2926
+ {
2927
+ components: [
2928
+ {
2929
+ components: [
2930
+ {
2931
+ internalType: "uint256",
2932
+ name: "salt",
2933
+ type: "uint256",
2934
+ },
2935
+ {
2936
+ internalType: "uint256",
2937
+ name: "expiry",
2938
+ type: "uint256",
2939
+ },
2940
+ {
2941
+ internalType: "uint256",
2942
+ name: "nonce",
2943
+ type: "uint256",
2944
+ },
2945
+ {
2946
+ internalType: "enum IPLimitOrderType.OrderType",
2947
+ name: "orderType",
2948
+ type: "uint8",
2949
+ },
2950
+ {
2951
+ internalType: "address",
2952
+ name: "token",
2953
+ type: "address",
2954
+ },
2955
+ {
2956
+ internalType: "address",
2957
+ name: "YT",
2958
+ type: "address",
2959
+ },
2960
+ {
2961
+ internalType: "address",
2962
+ name: "maker",
2963
+ type: "address",
2964
+ },
2965
+ {
2966
+ internalType: "address",
2967
+ name: "receiver",
2968
+ type: "address",
2969
+ },
2970
+ {
2971
+ internalType: "uint256",
2972
+ name: "makingAmount",
2973
+ type: "uint256",
2974
+ },
2975
+ {
2976
+ internalType: "uint256",
2977
+ name: "lnImpliedRate",
2978
+ type: "uint256",
2979
+ },
2980
+ {
2981
+ internalType: "uint256",
2982
+ name: "failSafeRate",
2983
+ type: "uint256",
2984
+ },
2985
+ {
2986
+ internalType: "bytes",
2987
+ name: "permit",
2988
+ type: "bytes",
2989
+ },
2990
+ ],
2991
+ internalType: "struct Order",
2992
+ name: "order",
2993
+ type: "tuple",
2994
+ },
2995
+ {
2996
+ internalType: "bytes",
2997
+ name: "signature",
2998
+ type: "bytes",
2999
+ },
3000
+ {
3001
+ internalType: "uint256",
3002
+ name: "makingAmount",
3003
+ type: "uint256",
3004
+ },
3005
+ ],
3006
+ internalType: "struct FillOrderParams[]",
3007
+ name: "normalFills",
3008
+ type: "tuple[]",
3009
+ },
3010
+ {
3011
+ components: [
3012
+ {
3013
+ components: [
3014
+ {
3015
+ internalType: "uint256",
3016
+ name: "salt",
3017
+ type: "uint256",
3018
+ },
3019
+ {
3020
+ internalType: "uint256",
3021
+ name: "expiry",
3022
+ type: "uint256",
3023
+ },
3024
+ {
3025
+ internalType: "uint256",
3026
+ name: "nonce",
3027
+ type: "uint256",
3028
+ },
3029
+ {
3030
+ internalType: "enum IPLimitOrderType.OrderType",
3031
+ name: "orderType",
3032
+ type: "uint8",
3033
+ },
3034
+ {
3035
+ internalType: "address",
3036
+ name: "token",
3037
+ type: "address",
3038
+ },
3039
+ {
3040
+ internalType: "address",
3041
+ name: "YT",
3042
+ type: "address",
3043
+ },
3044
+ {
3045
+ internalType: "address",
3046
+ name: "maker",
3047
+ type: "address",
3048
+ },
3049
+ {
3050
+ internalType: "address",
3051
+ name: "receiver",
3052
+ type: "address",
3053
+ },
3054
+ {
3055
+ internalType: "uint256",
3056
+ name: "makingAmount",
3057
+ type: "uint256",
3058
+ },
3059
+ {
3060
+ internalType: "uint256",
3061
+ name: "lnImpliedRate",
3062
+ type: "uint256",
3063
+ },
3064
+ {
3065
+ internalType: "uint256",
3066
+ name: "failSafeRate",
3067
+ type: "uint256",
3068
+ },
3069
+ {
3070
+ internalType: "bytes",
3071
+ name: "permit",
3072
+ type: "bytes",
3073
+ },
3074
+ ],
3075
+ internalType: "struct Order",
3076
+ name: "order",
3077
+ type: "tuple",
3078
+ },
3079
+ {
3080
+ internalType: "bytes",
3081
+ name: "signature",
3082
+ type: "bytes",
3083
+ },
3084
+ {
3085
+ internalType: "uint256",
3086
+ name: "makingAmount",
3087
+ type: "uint256",
3088
+ },
3089
+ ],
3090
+ internalType: "struct FillOrderParams[]",
3091
+ name: "flashFills",
3092
+ type: "tuple[]",
3093
+ },
3094
+ {
3095
+ internalType: "bytes",
3096
+ name: "optData",
3097
+ type: "bytes",
3098
+ },
3099
+ ],
3100
+ internalType: "struct LimitOrderData",
3101
+ name: "limit",
3102
+ type: "tuple",
3103
+ },
3104
+ ],
3105
+ name: "removeLiquiditySingleSy",
3106
+ outputs: [
3107
+ {
3108
+ internalType: "uint256",
3109
+ name: "netSyOut",
3110
+ type: "uint256",
3111
+ },
3112
+ {
3113
+ internalType: "uint256",
3114
+ name: "netSyFee",
3115
+ type: "uint256",
3116
+ },
3117
+ ],
3118
+ stateMutability: "nonpayable",
3119
+ type: "function",
3120
+ },
3121
+ {
3122
+ inputs: [
3123
+ {
3124
+ internalType: "address",
3125
+ name: "receiver",
3126
+ type: "address",
3127
+ },
3128
+ {
3129
+ internalType: "address",
3130
+ name: "market",
3131
+ type: "address",
3132
+ },
3133
+ {
3134
+ internalType: "uint256",
3135
+ name: "netLpToRemove",
3136
+ type: "uint256",
3137
+ },
3138
+ {
3139
+ components: [
3140
+ {
3141
+ internalType: "address",
3142
+ name: "tokenOut",
3143
+ type: "address",
3144
+ },
3145
+ {
3146
+ internalType: "uint256",
3147
+ name: "minTokenOut",
3148
+ type: "uint256",
3149
+ },
3150
+ {
3151
+ internalType: "address",
3152
+ name: "tokenRedeemSy",
3153
+ type: "address",
3154
+ },
3155
+ {
3156
+ internalType: "address",
3157
+ name: "pendleSwap",
3158
+ type: "address",
3159
+ },
3160
+ {
3161
+ components: [
3162
+ {
3163
+ internalType: "enum SwapType",
3164
+ name: "swapType",
3165
+ type: "uint8",
3166
+ },
3167
+ {
3168
+ internalType: "address",
3169
+ name: "extRouter",
3170
+ type: "address",
3171
+ },
3172
+ {
3173
+ internalType: "bytes",
3174
+ name: "extCalldata",
3175
+ type: "bytes",
3176
+ },
3177
+ {
3178
+ internalType: "bool",
3179
+ name: "needScale",
3180
+ type: "bool",
3181
+ },
3182
+ ],
3183
+ internalType: "struct SwapData",
3184
+ name: "swapData",
3185
+ type: "tuple",
3186
+ },
3187
+ ],
3188
+ internalType: "struct TokenOutput",
3189
+ name: "output",
3190
+ type: "tuple",
3191
+ },
3192
+ {
3193
+ components: [
3194
+ {
3195
+ internalType: "address",
3196
+ name: "limitRouter",
3197
+ type: "address",
3198
+ },
3199
+ {
3200
+ internalType: "uint256",
3201
+ name: "epsSkipMarket",
3202
+ type: "uint256",
3203
+ },
3204
+ {
3205
+ components: [
3206
+ {
3207
+ components: [
3208
+ {
3209
+ internalType: "uint256",
3210
+ name: "salt",
3211
+ type: "uint256",
3212
+ },
3213
+ {
3214
+ internalType: "uint256",
3215
+ name: "expiry",
3216
+ type: "uint256",
3217
+ },
3218
+ {
3219
+ internalType: "uint256",
3220
+ name: "nonce",
3221
+ type: "uint256",
3222
+ },
3223
+ {
3224
+ internalType: "enum IPLimitOrderType.OrderType",
3225
+ name: "orderType",
3226
+ type: "uint8",
3227
+ },
3228
+ {
3229
+ internalType: "address",
3230
+ name: "token",
3231
+ type: "address",
3232
+ },
3233
+ {
3234
+ internalType: "address",
3235
+ name: "YT",
3236
+ type: "address",
3237
+ },
3238
+ {
3239
+ internalType: "address",
3240
+ name: "maker",
3241
+ type: "address",
3242
+ },
3243
+ {
3244
+ internalType: "address",
3245
+ name: "receiver",
3246
+ type: "address",
3247
+ },
3248
+ {
3249
+ internalType: "uint256",
3250
+ name: "makingAmount",
3251
+ type: "uint256",
3252
+ },
3253
+ {
3254
+ internalType: "uint256",
3255
+ name: "lnImpliedRate",
3256
+ type: "uint256",
3257
+ },
3258
+ {
3259
+ internalType: "uint256",
3260
+ name: "failSafeRate",
3261
+ type: "uint256",
3262
+ },
3263
+ {
3264
+ internalType: "bytes",
3265
+ name: "permit",
3266
+ type: "bytes",
3267
+ },
3268
+ ],
3269
+ internalType: "struct Order",
3270
+ name: "order",
3271
+ type: "tuple",
3272
+ },
3273
+ {
3274
+ internalType: "bytes",
3275
+ name: "signature",
3276
+ type: "bytes",
3277
+ },
3278
+ {
3279
+ internalType: "uint256",
3280
+ name: "makingAmount",
3281
+ type: "uint256",
3282
+ },
3283
+ ],
3284
+ internalType: "struct FillOrderParams[]",
3285
+ name: "normalFills",
3286
+ type: "tuple[]",
3287
+ },
3288
+ {
3289
+ components: [
3290
+ {
3291
+ components: [
3292
+ {
3293
+ internalType: "uint256",
3294
+ name: "salt",
3295
+ type: "uint256",
3296
+ },
3297
+ {
3298
+ internalType: "uint256",
3299
+ name: "expiry",
3300
+ type: "uint256",
3301
+ },
3302
+ {
3303
+ internalType: "uint256",
3304
+ name: "nonce",
3305
+ type: "uint256",
3306
+ },
3307
+ {
3308
+ internalType: "enum IPLimitOrderType.OrderType",
3309
+ name: "orderType",
3310
+ type: "uint8",
3311
+ },
3312
+ {
3313
+ internalType: "address",
3314
+ name: "token",
3315
+ type: "address",
3316
+ },
3317
+ {
3318
+ internalType: "address",
3319
+ name: "YT",
3320
+ type: "address",
3321
+ },
3322
+ {
3323
+ internalType: "address",
3324
+ name: "maker",
3325
+ type: "address",
3326
+ },
3327
+ {
3328
+ internalType: "address",
3329
+ name: "receiver",
3330
+ type: "address",
3331
+ },
3332
+ {
3333
+ internalType: "uint256",
3334
+ name: "makingAmount",
3335
+ type: "uint256",
3336
+ },
3337
+ {
3338
+ internalType: "uint256",
3339
+ name: "lnImpliedRate",
3340
+ type: "uint256",
3341
+ },
3342
+ {
3343
+ internalType: "uint256",
3344
+ name: "failSafeRate",
3345
+ type: "uint256",
3346
+ },
3347
+ {
3348
+ internalType: "bytes",
3349
+ name: "permit",
3350
+ type: "bytes",
3351
+ },
3352
+ ],
3353
+ internalType: "struct Order",
3354
+ name: "order",
3355
+ type: "tuple",
3356
+ },
3357
+ {
3358
+ internalType: "bytes",
3359
+ name: "signature",
3360
+ type: "bytes",
3361
+ },
3362
+ {
3363
+ internalType: "uint256",
3364
+ name: "makingAmount",
3365
+ type: "uint256",
3366
+ },
3367
+ ],
3368
+ internalType: "struct FillOrderParams[]",
3369
+ name: "flashFills",
3370
+ type: "tuple[]",
3371
+ },
3372
+ {
3373
+ internalType: "bytes",
3374
+ name: "optData",
3375
+ type: "bytes",
3376
+ },
3377
+ ],
3378
+ internalType: "struct LimitOrderData",
3379
+ name: "limit",
3380
+ type: "tuple",
3381
+ },
3382
+ ],
3383
+ name: "removeLiquiditySingleToken",
3384
+ outputs: [
3385
+ {
3386
+ internalType: "uint256",
3387
+ name: "netTokenOut",
3388
+ type: "uint256",
3389
+ },
3390
+ {
3391
+ internalType: "uint256",
3392
+ name: "netSyFee",
3393
+ type: "uint256",
3394
+ },
3395
+ {
3396
+ internalType: "uint256",
3397
+ name: "netSyInterm",
3398
+ type: "uint256",
3399
+ },
3400
+ ],
3401
+ stateMutability: "nonpayable",
3402
+ type: "function",
3403
+ },
3404
+ ];
3405
+
3406
+ export class IPActionAddRemoveLiqV3__factory {
3407
+ static readonly abi = _abi;
3408
+ static createInterface(): IPActionAddRemoveLiqV3Interface {
3409
+ return new utils.Interface(_abi) as IPActionAddRemoveLiqV3Interface;
3410
+ }
3411
+ static connect(
3412
+ address: string,
3413
+ signerOrProvider: Signer | Provider
3414
+ ): IPActionAddRemoveLiqV3 {
3415
+ return new Contract(
3416
+ address,
3417
+ _abi,
3418
+ signerOrProvider
3419
+ ) as IPActionAddRemoveLiqV3;
3420
+ }
3421
+ }