@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,3956 @@
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
+ IPRouterStatic,
9
+ IPRouterStaticInterface,
10
+ } from "../IPRouterStatic";
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: "market",
1358
+ type: "address",
1359
+ },
1360
+ {
1361
+ internalType: "uint256",
1362
+ name: "netSyDesired",
1363
+ type: "uint256",
1364
+ },
1365
+ {
1366
+ internalType: "uint256",
1367
+ name: "netPtDesired",
1368
+ type: "uint256",
1369
+ },
1370
+ ],
1371
+ name: "addLiquidityDualSyAndPtStatic",
1372
+ outputs: [
1373
+ {
1374
+ internalType: "uint256",
1375
+ name: "netLpOut",
1376
+ type: "uint256",
1377
+ },
1378
+ {
1379
+ internalType: "uint256",
1380
+ name: "netSyUsed",
1381
+ type: "uint256",
1382
+ },
1383
+ {
1384
+ internalType: "uint256",
1385
+ name: "netPtUsed",
1386
+ type: "uint256",
1387
+ },
1388
+ ],
1389
+ stateMutability: "view",
1390
+ type: "function",
1391
+ },
1392
+ {
1393
+ inputs: [
1394
+ {
1395
+ internalType: "address",
1396
+ name: "market",
1397
+ type: "address",
1398
+ },
1399
+ {
1400
+ internalType: "address",
1401
+ name: "tokenIn",
1402
+ type: "address",
1403
+ },
1404
+ {
1405
+ internalType: "uint256",
1406
+ name: "netTokenDesired",
1407
+ type: "uint256",
1408
+ },
1409
+ {
1410
+ internalType: "uint256",
1411
+ name: "netPtDesired",
1412
+ type: "uint256",
1413
+ },
1414
+ ],
1415
+ name: "addLiquidityDualTokenAndPtStatic",
1416
+ outputs: [
1417
+ {
1418
+ internalType: "uint256",
1419
+ name: "netLpOut",
1420
+ type: "uint256",
1421
+ },
1422
+ {
1423
+ internalType: "uint256",
1424
+ name: "netTokenUsed",
1425
+ type: "uint256",
1426
+ },
1427
+ {
1428
+ internalType: "uint256",
1429
+ name: "netPtUsed",
1430
+ type: "uint256",
1431
+ },
1432
+ {
1433
+ internalType: "uint256",
1434
+ name: "netSyUsed",
1435
+ type: "uint256",
1436
+ },
1437
+ {
1438
+ internalType: "uint256",
1439
+ name: "netSyDesired",
1440
+ type: "uint256",
1441
+ },
1442
+ ],
1443
+ stateMutability: "view",
1444
+ type: "function",
1445
+ },
1446
+ {
1447
+ inputs: [
1448
+ {
1449
+ internalType: "address",
1450
+ name: "market",
1451
+ type: "address",
1452
+ },
1453
+ {
1454
+ internalType: "uint256",
1455
+ name: "netPtIn",
1456
+ type: "uint256",
1457
+ },
1458
+ ],
1459
+ name: "addLiquiditySinglePtStatic",
1460
+ outputs: [
1461
+ {
1462
+ internalType: "uint256",
1463
+ name: "netLpOut",
1464
+ type: "uint256",
1465
+ },
1466
+ {
1467
+ internalType: "uint256",
1468
+ name: "netPtToSwap",
1469
+ type: "uint256",
1470
+ },
1471
+ {
1472
+ internalType: "uint256",
1473
+ name: "netSyFee",
1474
+ type: "uint256",
1475
+ },
1476
+ {
1477
+ internalType: "uint256",
1478
+ name: "priceImpact",
1479
+ type: "uint256",
1480
+ },
1481
+ {
1482
+ internalType: "uint256",
1483
+ name: "exchangeRateAfter",
1484
+ type: "uint256",
1485
+ },
1486
+ {
1487
+ internalType: "uint256",
1488
+ name: "netSyFromSwap",
1489
+ type: "uint256",
1490
+ },
1491
+ ],
1492
+ stateMutability: "view",
1493
+ type: "function",
1494
+ },
1495
+ {
1496
+ inputs: [
1497
+ {
1498
+ internalType: "address",
1499
+ name: "market",
1500
+ type: "address",
1501
+ },
1502
+ {
1503
+ internalType: "uint256",
1504
+ name: "netSyIn",
1505
+ type: "uint256",
1506
+ },
1507
+ ],
1508
+ name: "addLiquiditySingleSyKeepYtStatic",
1509
+ outputs: [
1510
+ {
1511
+ internalType: "uint256",
1512
+ name: "netLpOut",
1513
+ type: "uint256",
1514
+ },
1515
+ {
1516
+ internalType: "uint256",
1517
+ name: "netYtOut",
1518
+ type: "uint256",
1519
+ },
1520
+ {
1521
+ internalType: "uint256",
1522
+ name: "netSyToPY",
1523
+ type: "uint256",
1524
+ },
1525
+ ],
1526
+ stateMutability: "view",
1527
+ type: "function",
1528
+ },
1529
+ {
1530
+ inputs: [
1531
+ {
1532
+ internalType: "address",
1533
+ name: "market",
1534
+ type: "address",
1535
+ },
1536
+ {
1537
+ internalType: "uint256",
1538
+ name: "netSyIn",
1539
+ type: "uint256",
1540
+ },
1541
+ ],
1542
+ name: "addLiquiditySingleSyStatic",
1543
+ outputs: [
1544
+ {
1545
+ internalType: "uint256",
1546
+ name: "netLpOut",
1547
+ type: "uint256",
1548
+ },
1549
+ {
1550
+ internalType: "uint256",
1551
+ name: "netPtFromSwap",
1552
+ type: "uint256",
1553
+ },
1554
+ {
1555
+ internalType: "uint256",
1556
+ name: "netSyFee",
1557
+ type: "uint256",
1558
+ },
1559
+ {
1560
+ internalType: "uint256",
1561
+ name: "priceImpact",
1562
+ type: "uint256",
1563
+ },
1564
+ {
1565
+ internalType: "uint256",
1566
+ name: "exchangeRateAfter",
1567
+ type: "uint256",
1568
+ },
1569
+ {
1570
+ internalType: "uint256",
1571
+ name: "netSyToSwap",
1572
+ type: "uint256",
1573
+ },
1574
+ ],
1575
+ stateMutability: "view",
1576
+ type: "function",
1577
+ },
1578
+ {
1579
+ inputs: [
1580
+ {
1581
+ internalType: "address",
1582
+ name: "market",
1583
+ type: "address",
1584
+ },
1585
+ {
1586
+ internalType: "address",
1587
+ name: "tokenIn",
1588
+ type: "address",
1589
+ },
1590
+ {
1591
+ internalType: "uint256",
1592
+ name: "netTokenIn",
1593
+ type: "uint256",
1594
+ },
1595
+ ],
1596
+ name: "addLiquiditySingleTokenKeepYtStatic",
1597
+ outputs: [
1598
+ {
1599
+ internalType: "uint256",
1600
+ name: "netLpOut",
1601
+ type: "uint256",
1602
+ },
1603
+ {
1604
+ internalType: "uint256",
1605
+ name: "netYtOut",
1606
+ type: "uint256",
1607
+ },
1608
+ {
1609
+ internalType: "uint256",
1610
+ name: "netSyMinted",
1611
+ type: "uint256",
1612
+ },
1613
+ {
1614
+ internalType: "uint256",
1615
+ name: "netSyToPY",
1616
+ type: "uint256",
1617
+ },
1618
+ ],
1619
+ stateMutability: "view",
1620
+ type: "function",
1621
+ },
1622
+ {
1623
+ inputs: [
1624
+ {
1625
+ internalType: "address",
1626
+ name: "market",
1627
+ type: "address",
1628
+ },
1629
+ {
1630
+ internalType: "address",
1631
+ name: "tokenIn",
1632
+ type: "address",
1633
+ },
1634
+ {
1635
+ internalType: "uint256",
1636
+ name: "netTokenIn",
1637
+ type: "uint256",
1638
+ },
1639
+ ],
1640
+ name: "addLiquiditySingleTokenStatic",
1641
+ outputs: [
1642
+ {
1643
+ internalType: "uint256",
1644
+ name: "netLpOut",
1645
+ type: "uint256",
1646
+ },
1647
+ {
1648
+ internalType: "uint256",
1649
+ name: "netPtFromSwap",
1650
+ type: "uint256",
1651
+ },
1652
+ {
1653
+ internalType: "uint256",
1654
+ name: "netSyFee",
1655
+ type: "uint256",
1656
+ },
1657
+ {
1658
+ internalType: "uint256",
1659
+ name: "priceImpact",
1660
+ type: "uint256",
1661
+ },
1662
+ {
1663
+ internalType: "uint256",
1664
+ name: "exchangeRateAfter",
1665
+ type: "uint256",
1666
+ },
1667
+ {
1668
+ internalType: "uint256",
1669
+ name: "netSyMinted",
1670
+ type: "uint256",
1671
+ },
1672
+ {
1673
+ internalType: "uint256",
1674
+ name: "netSyToSwap",
1675
+ type: "uint256",
1676
+ },
1677
+ ],
1678
+ stateMutability: "view",
1679
+ type: "function",
1680
+ },
1681
+ {
1682
+ inputs: [
1683
+ {
1684
+ internalType: "address",
1685
+ name: "market",
1686
+ type: "address",
1687
+ },
1688
+ {
1689
+ internalType: "int256",
1690
+ name: "netPtOut",
1691
+ type: "int256",
1692
+ },
1693
+ ],
1694
+ name: "calcPriceImpactPY",
1695
+ outputs: [
1696
+ {
1697
+ internalType: "uint256",
1698
+ name: "",
1699
+ type: "uint256",
1700
+ },
1701
+ ],
1702
+ stateMutability: "view",
1703
+ type: "function",
1704
+ },
1705
+ {
1706
+ inputs: [
1707
+ {
1708
+ internalType: "address",
1709
+ name: "market",
1710
+ type: "address",
1711
+ },
1712
+ {
1713
+ internalType: "int256",
1714
+ name: "netPtOut",
1715
+ type: "int256",
1716
+ },
1717
+ ],
1718
+ name: "calcPriceImpactPt",
1719
+ outputs: [
1720
+ {
1721
+ internalType: "uint256",
1722
+ name: "",
1723
+ type: "uint256",
1724
+ },
1725
+ ],
1726
+ stateMutability: "view",
1727
+ type: "function",
1728
+ },
1729
+ {
1730
+ inputs: [
1731
+ {
1732
+ internalType: "address",
1733
+ name: "market",
1734
+ type: "address",
1735
+ },
1736
+ {
1737
+ internalType: "int256",
1738
+ name: "netPtOut",
1739
+ type: "int256",
1740
+ },
1741
+ ],
1742
+ name: "calcPriceImpactYt",
1743
+ outputs: [
1744
+ {
1745
+ internalType: "uint256",
1746
+ name: "",
1747
+ type: "uint256",
1748
+ },
1749
+ ],
1750
+ stateMutability: "view",
1751
+ type: "function",
1752
+ },
1753
+ {
1754
+ inputs: [],
1755
+ name: "claimOwnership",
1756
+ outputs: [],
1757
+ stateMutability: "nonpayable",
1758
+ type: "function",
1759
+ },
1760
+ {
1761
+ inputs: [
1762
+ {
1763
+ internalType: "bytes4",
1764
+ name: "selector",
1765
+ type: "bytes4",
1766
+ },
1767
+ ],
1768
+ name: "facetAddress",
1769
+ outputs: [
1770
+ {
1771
+ internalType: "address",
1772
+ name: "",
1773
+ type: "address",
1774
+ },
1775
+ ],
1776
+ stateMutability: "view",
1777
+ type: "function",
1778
+ },
1779
+ {
1780
+ inputs: [
1781
+ {
1782
+ internalType: "address",
1783
+ name: "SY",
1784
+ type: "address",
1785
+ },
1786
+ {
1787
+ internalType: "address",
1788
+ name: "tokenIn",
1789
+ type: "address",
1790
+ },
1791
+ {
1792
+ internalType: "uint256",
1793
+ name: "netSyOut",
1794
+ type: "uint256",
1795
+ },
1796
+ ],
1797
+ name: "getAmountTokenToMintSy",
1798
+ outputs: [
1799
+ {
1800
+ internalType: "uint256",
1801
+ name: "netTokenIn",
1802
+ type: "uint256",
1803
+ },
1804
+ ],
1805
+ stateMutability: "view",
1806
+ type: "function",
1807
+ },
1808
+ {
1809
+ inputs: [],
1810
+ name: "getDefaultApproxParams",
1811
+ outputs: [
1812
+ {
1813
+ components: [
1814
+ {
1815
+ internalType: "uint256",
1816
+ name: "guessMin",
1817
+ type: "uint256",
1818
+ },
1819
+ {
1820
+ internalType: "uint256",
1821
+ name: "guessMax",
1822
+ type: "uint256",
1823
+ },
1824
+ {
1825
+ internalType: "uint256",
1826
+ name: "guessOffchain",
1827
+ type: "uint256",
1828
+ },
1829
+ {
1830
+ internalType: "uint256",
1831
+ name: "maxIteration",
1832
+ type: "uint256",
1833
+ },
1834
+ {
1835
+ internalType: "uint256",
1836
+ name: "eps",
1837
+ type: "uint256",
1838
+ },
1839
+ ],
1840
+ internalType: "struct ApproxParams",
1841
+ name: "",
1842
+ type: "tuple",
1843
+ },
1844
+ ],
1845
+ stateMutability: "view",
1846
+ type: "function",
1847
+ },
1848
+ {
1849
+ inputs: [
1850
+ {
1851
+ internalType: "address",
1852
+ name: "market",
1853
+ type: "address",
1854
+ },
1855
+ ],
1856
+ name: "getLpToAssetRate",
1857
+ outputs: [
1858
+ {
1859
+ internalType: "uint256",
1860
+ name: "",
1861
+ type: "uint256",
1862
+ },
1863
+ ],
1864
+ stateMutability: "view",
1865
+ type: "function",
1866
+ },
1867
+ {
1868
+ inputs: [
1869
+ {
1870
+ internalType: "address",
1871
+ name: "market",
1872
+ type: "address",
1873
+ },
1874
+ ],
1875
+ name: "getLpToSyRate",
1876
+ outputs: [
1877
+ {
1878
+ internalType: "uint256",
1879
+ name: "",
1880
+ type: "uint256",
1881
+ },
1882
+ ],
1883
+ stateMutability: "view",
1884
+ type: "function",
1885
+ },
1886
+ {
1887
+ inputs: [
1888
+ {
1889
+ internalType: "address",
1890
+ name: "market",
1891
+ type: "address",
1892
+ },
1893
+ ],
1894
+ name: "getMarketState",
1895
+ outputs: [
1896
+ {
1897
+ internalType: "address",
1898
+ name: "pt",
1899
+ type: "address",
1900
+ },
1901
+ {
1902
+ internalType: "address",
1903
+ name: "yt",
1904
+ type: "address",
1905
+ },
1906
+ {
1907
+ internalType: "address",
1908
+ name: "sy",
1909
+ type: "address",
1910
+ },
1911
+ {
1912
+ internalType: "int256",
1913
+ name: "impliedYield",
1914
+ type: "int256",
1915
+ },
1916
+ {
1917
+ internalType: "uint256",
1918
+ name: "marketExchangeRateExcludeFee",
1919
+ type: "uint256",
1920
+ },
1921
+ {
1922
+ components: [
1923
+ {
1924
+ internalType: "int256",
1925
+ name: "totalPt",
1926
+ type: "int256",
1927
+ },
1928
+ {
1929
+ internalType: "int256",
1930
+ name: "totalSy",
1931
+ type: "int256",
1932
+ },
1933
+ {
1934
+ internalType: "int256",
1935
+ name: "totalLp",
1936
+ type: "int256",
1937
+ },
1938
+ {
1939
+ internalType: "address",
1940
+ name: "treasury",
1941
+ type: "address",
1942
+ },
1943
+ {
1944
+ internalType: "int256",
1945
+ name: "scalarRoot",
1946
+ type: "int256",
1947
+ },
1948
+ {
1949
+ internalType: "uint256",
1950
+ name: "expiry",
1951
+ type: "uint256",
1952
+ },
1953
+ {
1954
+ internalType: "uint256",
1955
+ name: "lnFeeRateRoot",
1956
+ type: "uint256",
1957
+ },
1958
+ {
1959
+ internalType: "uint256",
1960
+ name: "reserveFeePercent",
1961
+ type: "uint256",
1962
+ },
1963
+ {
1964
+ internalType: "uint256",
1965
+ name: "lastLnImpliedRate",
1966
+ type: "uint256",
1967
+ },
1968
+ ],
1969
+ internalType: "struct MarketState",
1970
+ name: "state",
1971
+ type: "tuple",
1972
+ },
1973
+ ],
1974
+ stateMutability: "view",
1975
+ type: "function",
1976
+ },
1977
+ {
1978
+ inputs: [],
1979
+ name: "getOwnerAndPendingOwner",
1980
+ outputs: [
1981
+ {
1982
+ internalType: "address",
1983
+ name: "_owner",
1984
+ type: "address",
1985
+ },
1986
+ {
1987
+ internalType: "address",
1988
+ name: "_pendingOwner",
1989
+ type: "address",
1990
+ },
1991
+ ],
1992
+ stateMutability: "view",
1993
+ type: "function",
1994
+ },
1995
+ {
1996
+ inputs: [
1997
+ {
1998
+ internalType: "address",
1999
+ name: "py",
2000
+ type: "address",
2001
+ },
2002
+ ],
2003
+ name: "getPY",
2004
+ outputs: [
2005
+ {
2006
+ internalType: "address",
2007
+ name: "pt",
2008
+ type: "address",
2009
+ },
2010
+ {
2011
+ internalType: "address",
2012
+ name: "yt",
2013
+ type: "address",
2014
+ },
2015
+ ],
2016
+ stateMutability: "view",
2017
+ type: "function",
2018
+ },
2019
+ {
2020
+ inputs: [
2021
+ {
2022
+ internalType: "address",
2023
+ name: "market",
2024
+ type: "address",
2025
+ },
2026
+ ],
2027
+ name: "getPtToAssetRate",
2028
+ outputs: [
2029
+ {
2030
+ internalType: "uint256",
2031
+ name: "",
2032
+ type: "uint256",
2033
+ },
2034
+ ],
2035
+ stateMutability: "view",
2036
+ type: "function",
2037
+ },
2038
+ {
2039
+ inputs: [
2040
+ {
2041
+ internalType: "address",
2042
+ name: "market",
2043
+ type: "address",
2044
+ },
2045
+ ],
2046
+ name: "getPtToSyRate",
2047
+ outputs: [
2048
+ {
2049
+ internalType: "uint256",
2050
+ name: "",
2051
+ type: "uint256",
2052
+ },
2053
+ ],
2054
+ stateMutability: "view",
2055
+ type: "function",
2056
+ },
2057
+ {
2058
+ inputs: [
2059
+ {
2060
+ internalType: "address",
2061
+ name: "token",
2062
+ type: "address",
2063
+ },
2064
+ ],
2065
+ name: "getTokensInOut",
2066
+ outputs: [
2067
+ {
2068
+ internalType: "address[]",
2069
+ name: "tokensIn",
2070
+ type: "address[]",
2071
+ },
2072
+ {
2073
+ internalType: "address[]",
2074
+ name: "tokensOut",
2075
+ type: "address[]",
2076
+ },
2077
+ ],
2078
+ stateMutability: "view",
2079
+ type: "function",
2080
+ },
2081
+ {
2082
+ inputs: [
2083
+ {
2084
+ internalType: "address",
2085
+ name: "market",
2086
+ type: "address",
2087
+ },
2088
+ {
2089
+ components: [
2090
+ {
2091
+ internalType: "int256",
2092
+ name: "totalPt",
2093
+ type: "int256",
2094
+ },
2095
+ {
2096
+ internalType: "int256",
2097
+ name: "totalSy",
2098
+ type: "int256",
2099
+ },
2100
+ {
2101
+ internalType: "int256",
2102
+ name: "totalLp",
2103
+ type: "int256",
2104
+ },
2105
+ {
2106
+ internalType: "address",
2107
+ name: "treasury",
2108
+ type: "address",
2109
+ },
2110
+ {
2111
+ internalType: "int256",
2112
+ name: "scalarRoot",
2113
+ type: "int256",
2114
+ },
2115
+ {
2116
+ internalType: "uint256",
2117
+ name: "expiry",
2118
+ type: "uint256",
2119
+ },
2120
+ {
2121
+ internalType: "uint256",
2122
+ name: "lnFeeRateRoot",
2123
+ type: "uint256",
2124
+ },
2125
+ {
2126
+ internalType: "uint256",
2127
+ name: "reserveFeePercent",
2128
+ type: "uint256",
2129
+ },
2130
+ {
2131
+ internalType: "uint256",
2132
+ name: "lastLnImpliedRate",
2133
+ type: "uint256",
2134
+ },
2135
+ ],
2136
+ internalType: "struct MarketState",
2137
+ name: "state",
2138
+ type: "tuple",
2139
+ },
2140
+ ],
2141
+ name: "getTradeExchangeRateExcludeFee",
2142
+ outputs: [
2143
+ {
2144
+ internalType: "uint256",
2145
+ name: "",
2146
+ type: "uint256",
2147
+ },
2148
+ ],
2149
+ stateMutability: "view",
2150
+ type: "function",
2151
+ },
2152
+ {
2153
+ inputs: [
2154
+ {
2155
+ internalType: "address",
2156
+ name: "market",
2157
+ type: "address",
2158
+ },
2159
+ {
2160
+ internalType: "int256",
2161
+ name: "netPtOut",
2162
+ type: "int256",
2163
+ },
2164
+ ],
2165
+ name: "getTradeExchangeRateIncludeFee",
2166
+ outputs: [
2167
+ {
2168
+ internalType: "uint256",
2169
+ name: "",
2170
+ type: "uint256",
2171
+ },
2172
+ ],
2173
+ stateMutability: "view",
2174
+ type: "function",
2175
+ },
2176
+ {
2177
+ inputs: [
2178
+ {
2179
+ internalType: "address",
2180
+ name: "market",
2181
+ type: "address",
2182
+ },
2183
+ {
2184
+ internalType: "address",
2185
+ name: "user",
2186
+ type: "address",
2187
+ },
2188
+ ],
2189
+ name: "getUserMarketInfo",
2190
+ outputs: [
2191
+ {
2192
+ components: [
2193
+ {
2194
+ components: [
2195
+ {
2196
+ internalType: "address",
2197
+ name: "token",
2198
+ type: "address",
2199
+ },
2200
+ {
2201
+ internalType: "uint256",
2202
+ name: "amount",
2203
+ type: "uint256",
2204
+ },
2205
+ ],
2206
+ internalType: "struct IPActionInfoStatic.TokenAmount",
2207
+ name: "lpBalance",
2208
+ type: "tuple",
2209
+ },
2210
+ {
2211
+ components: [
2212
+ {
2213
+ internalType: "address",
2214
+ name: "token",
2215
+ type: "address",
2216
+ },
2217
+ {
2218
+ internalType: "uint256",
2219
+ name: "amount",
2220
+ type: "uint256",
2221
+ },
2222
+ ],
2223
+ internalType: "struct IPActionInfoStatic.TokenAmount",
2224
+ name: "ptBalance",
2225
+ type: "tuple",
2226
+ },
2227
+ {
2228
+ components: [
2229
+ {
2230
+ internalType: "address",
2231
+ name: "token",
2232
+ type: "address",
2233
+ },
2234
+ {
2235
+ internalType: "uint256",
2236
+ name: "amount",
2237
+ type: "uint256",
2238
+ },
2239
+ ],
2240
+ internalType: "struct IPActionInfoStatic.TokenAmount",
2241
+ name: "syBalance",
2242
+ type: "tuple",
2243
+ },
2244
+ {
2245
+ components: [
2246
+ {
2247
+ internalType: "address",
2248
+ name: "token",
2249
+ type: "address",
2250
+ },
2251
+ {
2252
+ internalType: "uint256",
2253
+ name: "amount",
2254
+ type: "uint256",
2255
+ },
2256
+ ],
2257
+ internalType: "struct IPActionInfoStatic.TokenAmount[]",
2258
+ name: "unclaimedRewards",
2259
+ type: "tuple[]",
2260
+ },
2261
+ ],
2262
+ internalType: "struct IPActionInfoStatic.UserMarketInfo",
2263
+ name: "res",
2264
+ type: "tuple",
2265
+ },
2266
+ ],
2267
+ stateMutability: "nonpayable",
2268
+ type: "function",
2269
+ },
2270
+ {
2271
+ inputs: [
2272
+ {
2273
+ internalType: "address",
2274
+ name: "py",
2275
+ type: "address",
2276
+ },
2277
+ {
2278
+ internalType: "address",
2279
+ name: "user",
2280
+ type: "address",
2281
+ },
2282
+ ],
2283
+ name: "getUserPYInfo",
2284
+ outputs: [
2285
+ {
2286
+ components: [
2287
+ {
2288
+ components: [
2289
+ {
2290
+ internalType: "address",
2291
+ name: "token",
2292
+ type: "address",
2293
+ },
2294
+ {
2295
+ internalType: "uint256",
2296
+ name: "amount",
2297
+ type: "uint256",
2298
+ },
2299
+ ],
2300
+ internalType: "struct IPActionInfoStatic.TokenAmount",
2301
+ name: "ptBalance",
2302
+ type: "tuple",
2303
+ },
2304
+ {
2305
+ components: [
2306
+ {
2307
+ internalType: "address",
2308
+ name: "token",
2309
+ type: "address",
2310
+ },
2311
+ {
2312
+ internalType: "uint256",
2313
+ name: "amount",
2314
+ type: "uint256",
2315
+ },
2316
+ ],
2317
+ internalType: "struct IPActionInfoStatic.TokenAmount",
2318
+ name: "ytBalance",
2319
+ type: "tuple",
2320
+ },
2321
+ {
2322
+ components: [
2323
+ {
2324
+ internalType: "address",
2325
+ name: "token",
2326
+ type: "address",
2327
+ },
2328
+ {
2329
+ internalType: "uint256",
2330
+ name: "amount",
2331
+ type: "uint256",
2332
+ },
2333
+ ],
2334
+ internalType: "struct IPActionInfoStatic.TokenAmount",
2335
+ name: "unclaimedInterest",
2336
+ type: "tuple",
2337
+ },
2338
+ {
2339
+ components: [
2340
+ {
2341
+ internalType: "address",
2342
+ name: "token",
2343
+ type: "address",
2344
+ },
2345
+ {
2346
+ internalType: "uint256",
2347
+ name: "amount",
2348
+ type: "uint256",
2349
+ },
2350
+ ],
2351
+ internalType: "struct IPActionInfoStatic.TokenAmount[]",
2352
+ name: "unclaimedRewards",
2353
+ type: "tuple[]",
2354
+ },
2355
+ ],
2356
+ internalType: "struct IPActionInfoStatic.UserPYInfo",
2357
+ name: "res",
2358
+ type: "tuple",
2359
+ },
2360
+ ],
2361
+ stateMutability: "nonpayable",
2362
+ type: "function",
2363
+ },
2364
+ {
2365
+ inputs: [
2366
+ {
2367
+ internalType: "address",
2368
+ name: "sy",
2369
+ type: "address",
2370
+ },
2371
+ {
2372
+ internalType: "address",
2373
+ name: "user",
2374
+ type: "address",
2375
+ },
2376
+ ],
2377
+ name: "getUserSYInfo",
2378
+ outputs: [
2379
+ {
2380
+ components: [
2381
+ {
2382
+ components: [
2383
+ {
2384
+ internalType: "address",
2385
+ name: "token",
2386
+ type: "address",
2387
+ },
2388
+ {
2389
+ internalType: "uint256",
2390
+ name: "amount",
2391
+ type: "uint256",
2392
+ },
2393
+ ],
2394
+ internalType: "struct IPActionInfoStatic.TokenAmount",
2395
+ name: "syBalance",
2396
+ type: "tuple",
2397
+ },
2398
+ {
2399
+ components: [
2400
+ {
2401
+ internalType: "address",
2402
+ name: "token",
2403
+ type: "address",
2404
+ },
2405
+ {
2406
+ internalType: "uint256",
2407
+ name: "amount",
2408
+ type: "uint256",
2409
+ },
2410
+ ],
2411
+ internalType: "struct IPActionInfoStatic.TokenAmount[]",
2412
+ name: "unclaimedRewards",
2413
+ type: "tuple[]",
2414
+ },
2415
+ ],
2416
+ internalType: "struct IPActionInfoStatic.UserSYInfo",
2417
+ name: "res",
2418
+ type: "tuple",
2419
+ },
2420
+ ],
2421
+ stateMutability: "nonpayable",
2422
+ type: "function",
2423
+ },
2424
+ {
2425
+ inputs: [
2426
+ {
2427
+ internalType: "address",
2428
+ name: "market",
2429
+ type: "address",
2430
+ },
2431
+ ],
2432
+ name: "getYieldTokenAndPtRate",
2433
+ outputs: [
2434
+ {
2435
+ internalType: "address",
2436
+ name: "yieldToken",
2437
+ type: "address",
2438
+ },
2439
+ {
2440
+ internalType: "uint256",
2441
+ name: "netPtOut",
2442
+ type: "uint256",
2443
+ },
2444
+ {
2445
+ internalType: "uint256",
2446
+ name: "netYieldTokenOut",
2447
+ type: "uint256",
2448
+ },
2449
+ ],
2450
+ stateMutability: "view",
2451
+ type: "function",
2452
+ },
2453
+ {
2454
+ inputs: [
2455
+ {
2456
+ internalType: "address",
2457
+ name: "market",
2458
+ type: "address",
2459
+ },
2460
+ ],
2461
+ name: "getYieldTokenAndYtRate",
2462
+ outputs: [
2463
+ {
2464
+ internalType: "address",
2465
+ name: "yieldToken",
2466
+ type: "address",
2467
+ },
2468
+ {
2469
+ internalType: "uint256",
2470
+ name: "netYtOut",
2471
+ type: "uint256",
2472
+ },
2473
+ {
2474
+ internalType: "uint256",
2475
+ name: "netYieldTokenOut",
2476
+ type: "uint256",
2477
+ },
2478
+ ],
2479
+ stateMutability: "view",
2480
+ type: "function",
2481
+ },
2482
+ {
2483
+ inputs: [
2484
+ {
2485
+ internalType: "address",
2486
+ name: "market",
2487
+ type: "address",
2488
+ },
2489
+ ],
2490
+ name: "getYtToAssetRate",
2491
+ outputs: [
2492
+ {
2493
+ internalType: "uint256",
2494
+ name: "",
2495
+ type: "uint256",
2496
+ },
2497
+ ],
2498
+ stateMutability: "view",
2499
+ type: "function",
2500
+ },
2501
+ {
2502
+ inputs: [
2503
+ {
2504
+ internalType: "address",
2505
+ name: "market",
2506
+ type: "address",
2507
+ },
2508
+ ],
2509
+ name: "getYtToSyRate",
2510
+ outputs: [
2511
+ {
2512
+ internalType: "uint256",
2513
+ name: "",
2514
+ type: "uint256",
2515
+ },
2516
+ ],
2517
+ stateMutability: "view",
2518
+ type: "function",
2519
+ },
2520
+ {
2521
+ inputs: [
2522
+ {
2523
+ internalType: "address",
2524
+ name: "user",
2525
+ type: "address",
2526
+ },
2527
+ {
2528
+ internalType: "uint128",
2529
+ name: "additionalAmountToLock",
2530
+ type: "uint128",
2531
+ },
2532
+ {
2533
+ internalType: "uint128",
2534
+ name: "newExpiry",
2535
+ type: "uint128",
2536
+ },
2537
+ ],
2538
+ name: "increaseLockPositionStatic",
2539
+ outputs: [
2540
+ {
2541
+ internalType: "uint128",
2542
+ name: "newVeBalance",
2543
+ type: "uint128",
2544
+ },
2545
+ ],
2546
+ stateMutability: "view",
2547
+ type: "function",
2548
+ },
2549
+ {
2550
+ inputs: [
2551
+ {
2552
+ internalType: "address",
2553
+ name: "YT",
2554
+ type: "address",
2555
+ },
2556
+ {
2557
+ internalType: "uint256",
2558
+ name: "netSyToMint",
2559
+ type: "uint256",
2560
+ },
2561
+ ],
2562
+ name: "mintPyFromSyStatic",
2563
+ outputs: [
2564
+ {
2565
+ internalType: "uint256",
2566
+ name: "netPYOut",
2567
+ type: "uint256",
2568
+ },
2569
+ ],
2570
+ stateMutability: "view",
2571
+ type: "function",
2572
+ },
2573
+ {
2574
+ inputs: [
2575
+ {
2576
+ internalType: "address",
2577
+ name: "YT",
2578
+ type: "address",
2579
+ },
2580
+ {
2581
+ internalType: "address",
2582
+ name: "tokenIn",
2583
+ type: "address",
2584
+ },
2585
+ {
2586
+ internalType: "uint256",
2587
+ name: "netTokenIn",
2588
+ type: "uint256",
2589
+ },
2590
+ ],
2591
+ name: "mintPyFromTokenStatic",
2592
+ outputs: [
2593
+ {
2594
+ internalType: "uint256",
2595
+ name: "netPyOut",
2596
+ type: "uint256",
2597
+ },
2598
+ ],
2599
+ stateMutability: "view",
2600
+ type: "function",
2601
+ },
2602
+ {
2603
+ inputs: [
2604
+ {
2605
+ internalType: "address",
2606
+ name: "SY",
2607
+ type: "address",
2608
+ },
2609
+ {
2610
+ internalType: "address",
2611
+ name: "tokenIn",
2612
+ type: "address",
2613
+ },
2614
+ {
2615
+ internalType: "uint256",
2616
+ name: "netTokenIn",
2617
+ type: "uint256",
2618
+ },
2619
+ ],
2620
+ name: "mintSyFromTokenStatic",
2621
+ outputs: [
2622
+ {
2623
+ internalType: "uint256",
2624
+ name: "netSyOut",
2625
+ type: "uint256",
2626
+ },
2627
+ ],
2628
+ stateMutability: "view",
2629
+ type: "function",
2630
+ },
2631
+ {
2632
+ inputs: [
2633
+ {
2634
+ internalType: "address",
2635
+ name: "market",
2636
+ type: "address",
2637
+ },
2638
+ ],
2639
+ name: "pyIndexCurrentViewMarket",
2640
+ outputs: [
2641
+ {
2642
+ internalType: "uint256",
2643
+ name: "",
2644
+ type: "uint256",
2645
+ },
2646
+ ],
2647
+ stateMutability: "view",
2648
+ type: "function",
2649
+ },
2650
+ {
2651
+ inputs: [
2652
+ {
2653
+ internalType: "address",
2654
+ name: "yt",
2655
+ type: "address",
2656
+ },
2657
+ ],
2658
+ name: "pyIndexCurrentViewYt",
2659
+ outputs: [
2660
+ {
2661
+ internalType: "uint256",
2662
+ name: "",
2663
+ type: "uint256",
2664
+ },
2665
+ ],
2666
+ stateMutability: "view",
2667
+ type: "function",
2668
+ },
2669
+ {
2670
+ inputs: [
2671
+ {
2672
+ internalType: "address",
2673
+ name: "market",
2674
+ type: "address",
2675
+ },
2676
+ ],
2677
+ name: "readMarketState",
2678
+ outputs: [
2679
+ {
2680
+ components: [
2681
+ {
2682
+ internalType: "int256",
2683
+ name: "totalPt",
2684
+ type: "int256",
2685
+ },
2686
+ {
2687
+ internalType: "int256",
2688
+ name: "totalSy",
2689
+ type: "int256",
2690
+ },
2691
+ {
2692
+ internalType: "int256",
2693
+ name: "totalLp",
2694
+ type: "int256",
2695
+ },
2696
+ {
2697
+ internalType: "address",
2698
+ name: "treasury",
2699
+ type: "address",
2700
+ },
2701
+ {
2702
+ internalType: "int256",
2703
+ name: "scalarRoot",
2704
+ type: "int256",
2705
+ },
2706
+ {
2707
+ internalType: "uint256",
2708
+ name: "expiry",
2709
+ type: "uint256",
2710
+ },
2711
+ {
2712
+ internalType: "uint256",
2713
+ name: "lnFeeRateRoot",
2714
+ type: "uint256",
2715
+ },
2716
+ {
2717
+ internalType: "uint256",
2718
+ name: "reserveFeePercent",
2719
+ type: "uint256",
2720
+ },
2721
+ {
2722
+ internalType: "uint256",
2723
+ name: "lastLnImpliedRate",
2724
+ type: "uint256",
2725
+ },
2726
+ ],
2727
+ internalType: "struct MarketState",
2728
+ name: "",
2729
+ type: "tuple",
2730
+ },
2731
+ ],
2732
+ stateMutability: "view",
2733
+ type: "function",
2734
+ },
2735
+ {
2736
+ inputs: [
2737
+ {
2738
+ internalType: "address",
2739
+ name: "YT",
2740
+ type: "address",
2741
+ },
2742
+ {
2743
+ internalType: "uint256",
2744
+ name: "netPYToRedeem",
2745
+ type: "uint256",
2746
+ },
2747
+ ],
2748
+ name: "redeemPyToSyStatic",
2749
+ outputs: [
2750
+ {
2751
+ internalType: "uint256",
2752
+ name: "netSyOut",
2753
+ type: "uint256",
2754
+ },
2755
+ ],
2756
+ stateMutability: "view",
2757
+ type: "function",
2758
+ },
2759
+ {
2760
+ inputs: [
2761
+ {
2762
+ internalType: "address",
2763
+ name: "YT",
2764
+ type: "address",
2765
+ },
2766
+ {
2767
+ internalType: "uint256",
2768
+ name: "netPYToRedeem",
2769
+ type: "uint256",
2770
+ },
2771
+ {
2772
+ internalType: "address",
2773
+ name: "tokenOut",
2774
+ type: "address",
2775
+ },
2776
+ ],
2777
+ name: "redeemPyToTokenStatic",
2778
+ outputs: [
2779
+ {
2780
+ internalType: "uint256",
2781
+ name: "netTokenOut",
2782
+ type: "uint256",
2783
+ },
2784
+ ],
2785
+ stateMutability: "view",
2786
+ type: "function",
2787
+ },
2788
+ {
2789
+ inputs: [
2790
+ {
2791
+ internalType: "address",
2792
+ name: "SY",
2793
+ type: "address",
2794
+ },
2795
+ {
2796
+ internalType: "address",
2797
+ name: "tokenOut",
2798
+ type: "address",
2799
+ },
2800
+ {
2801
+ internalType: "uint256",
2802
+ name: "netSyIn",
2803
+ type: "uint256",
2804
+ },
2805
+ ],
2806
+ name: "redeemSyToTokenStatic",
2807
+ outputs: [
2808
+ {
2809
+ internalType: "uint256",
2810
+ name: "netTokenOut",
2811
+ type: "uint256",
2812
+ },
2813
+ ],
2814
+ stateMutability: "view",
2815
+ type: "function",
2816
+ },
2817
+ {
2818
+ inputs: [
2819
+ {
2820
+ internalType: "address",
2821
+ name: "market",
2822
+ type: "address",
2823
+ },
2824
+ {
2825
+ internalType: "uint256",
2826
+ name: "netLpToRemove",
2827
+ type: "uint256",
2828
+ },
2829
+ ],
2830
+ name: "removeLiquidityDualSyAndPtStatic",
2831
+ outputs: [
2832
+ {
2833
+ internalType: "uint256",
2834
+ name: "netSyOut",
2835
+ type: "uint256",
2836
+ },
2837
+ {
2838
+ internalType: "uint256",
2839
+ name: "netPtOut",
2840
+ type: "uint256",
2841
+ },
2842
+ ],
2843
+ stateMutability: "view",
2844
+ type: "function",
2845
+ },
2846
+ {
2847
+ inputs: [
2848
+ {
2849
+ internalType: "address",
2850
+ name: "market",
2851
+ type: "address",
2852
+ },
2853
+ {
2854
+ internalType: "uint256",
2855
+ name: "netLpToRemove",
2856
+ type: "uint256",
2857
+ },
2858
+ {
2859
+ internalType: "address",
2860
+ name: "tokenOut",
2861
+ type: "address",
2862
+ },
2863
+ ],
2864
+ name: "removeLiquidityDualTokenAndPtStatic",
2865
+ outputs: [
2866
+ {
2867
+ internalType: "uint256",
2868
+ name: "netTokenOut",
2869
+ type: "uint256",
2870
+ },
2871
+ {
2872
+ internalType: "uint256",
2873
+ name: "netPtOut",
2874
+ type: "uint256",
2875
+ },
2876
+ {
2877
+ internalType: "uint256",
2878
+ name: "netSyToRedeem",
2879
+ type: "uint256",
2880
+ },
2881
+ ],
2882
+ stateMutability: "view",
2883
+ type: "function",
2884
+ },
2885
+ {
2886
+ inputs: [
2887
+ {
2888
+ internalType: "address",
2889
+ name: "market",
2890
+ type: "address",
2891
+ },
2892
+ {
2893
+ internalType: "uint256",
2894
+ name: "netLpToRemove",
2895
+ type: "uint256",
2896
+ },
2897
+ ],
2898
+ name: "removeLiquiditySinglePtStatic",
2899
+ outputs: [
2900
+ {
2901
+ internalType: "uint256",
2902
+ name: "netPtOut",
2903
+ type: "uint256",
2904
+ },
2905
+ {
2906
+ internalType: "uint256",
2907
+ name: "netPtFromSwap",
2908
+ type: "uint256",
2909
+ },
2910
+ {
2911
+ internalType: "uint256",
2912
+ name: "netSyFee",
2913
+ type: "uint256",
2914
+ },
2915
+ {
2916
+ internalType: "uint256",
2917
+ name: "priceImpact",
2918
+ type: "uint256",
2919
+ },
2920
+ {
2921
+ internalType: "uint256",
2922
+ name: "exchangeRateAfter",
2923
+ type: "uint256",
2924
+ },
2925
+ {
2926
+ internalType: "uint256",
2927
+ name: "netSyFromBurn",
2928
+ type: "uint256",
2929
+ },
2930
+ {
2931
+ internalType: "uint256",
2932
+ name: "netPtFromBurn",
2933
+ type: "uint256",
2934
+ },
2935
+ ],
2936
+ stateMutability: "view",
2937
+ type: "function",
2938
+ },
2939
+ {
2940
+ inputs: [
2941
+ {
2942
+ internalType: "address",
2943
+ name: "market",
2944
+ type: "address",
2945
+ },
2946
+ {
2947
+ internalType: "uint256",
2948
+ name: "netLpToRemove",
2949
+ type: "uint256",
2950
+ },
2951
+ ],
2952
+ name: "removeLiquiditySingleSyStatic",
2953
+ outputs: [
2954
+ {
2955
+ internalType: "uint256",
2956
+ name: "netSyOut",
2957
+ type: "uint256",
2958
+ },
2959
+ {
2960
+ internalType: "uint256",
2961
+ name: "netSyFee",
2962
+ type: "uint256",
2963
+ },
2964
+ {
2965
+ internalType: "uint256",
2966
+ name: "priceImpact",
2967
+ type: "uint256",
2968
+ },
2969
+ {
2970
+ internalType: "uint256",
2971
+ name: "exchangeRateAfter",
2972
+ type: "uint256",
2973
+ },
2974
+ {
2975
+ internalType: "uint256",
2976
+ name: "netSyFromBurn",
2977
+ type: "uint256",
2978
+ },
2979
+ {
2980
+ internalType: "uint256",
2981
+ name: "netPtFromBurn",
2982
+ type: "uint256",
2983
+ },
2984
+ {
2985
+ internalType: "uint256",
2986
+ name: "netSyFromSwap",
2987
+ type: "uint256",
2988
+ },
2989
+ ],
2990
+ stateMutability: "view",
2991
+ type: "function",
2992
+ },
2993
+ {
2994
+ inputs: [
2995
+ {
2996
+ internalType: "address",
2997
+ name: "market",
2998
+ type: "address",
2999
+ },
3000
+ {
3001
+ internalType: "uint256",
3002
+ name: "netLpToRemove",
3003
+ type: "uint256",
3004
+ },
3005
+ {
3006
+ internalType: "address",
3007
+ name: "tokenOut",
3008
+ type: "address",
3009
+ },
3010
+ ],
3011
+ name: "removeLiquiditySingleTokenStatic",
3012
+ outputs: [
3013
+ {
3014
+ internalType: "uint256",
3015
+ name: "netTokenOut",
3016
+ type: "uint256",
3017
+ },
3018
+ {
3019
+ internalType: "uint256",
3020
+ name: "netSyFee",
3021
+ type: "uint256",
3022
+ },
3023
+ {
3024
+ internalType: "uint256",
3025
+ name: "priceImpact",
3026
+ type: "uint256",
3027
+ },
3028
+ {
3029
+ internalType: "uint256",
3030
+ name: "exchangeRateAfter",
3031
+ type: "uint256",
3032
+ },
3033
+ {
3034
+ internalType: "uint256",
3035
+ name: "netSyOut",
3036
+ type: "uint256",
3037
+ },
3038
+ {
3039
+ internalType: "uint256",
3040
+ name: "netSyFromBurn",
3041
+ type: "uint256",
3042
+ },
3043
+ {
3044
+ internalType: "uint256",
3045
+ name: "netPtFromBurn",
3046
+ type: "uint256",
3047
+ },
3048
+ {
3049
+ internalType: "uint256",
3050
+ name: "netSyFromSwap",
3051
+ type: "uint256",
3052
+ },
3053
+ ],
3054
+ stateMutability: "view",
3055
+ type: "function",
3056
+ },
3057
+ {
3058
+ inputs: [
3059
+ {
3060
+ components: [
3061
+ {
3062
+ internalType: "uint256",
3063
+ name: "guessMin",
3064
+ type: "uint256",
3065
+ },
3066
+ {
3067
+ internalType: "uint256",
3068
+ name: "guessMax",
3069
+ type: "uint256",
3070
+ },
3071
+ {
3072
+ internalType: "uint256",
3073
+ name: "guessOffchain",
3074
+ type: "uint256",
3075
+ },
3076
+ {
3077
+ internalType: "uint256",
3078
+ name: "maxIteration",
3079
+ type: "uint256",
3080
+ },
3081
+ {
3082
+ internalType: "uint256",
3083
+ name: "eps",
3084
+ type: "uint256",
3085
+ },
3086
+ ],
3087
+ internalType: "struct ApproxParams",
3088
+ name: "params",
3089
+ type: "tuple",
3090
+ },
3091
+ ],
3092
+ name: "setDefaultApproxParams",
3093
+ outputs: [],
3094
+ stateMutability: "nonpayable",
3095
+ type: "function",
3096
+ },
3097
+ {
3098
+ inputs: [
3099
+ {
3100
+ components: [
3101
+ {
3102
+ internalType: "address",
3103
+ name: "facet",
3104
+ type: "address",
3105
+ },
3106
+ {
3107
+ internalType: "bytes4[]",
3108
+ name: "selectors",
3109
+ type: "bytes4[]",
3110
+ },
3111
+ ],
3112
+ internalType: "struct IPMiniDiamond.SelectorsToFacet[]",
3113
+ name: "arr",
3114
+ type: "tuple[]",
3115
+ },
3116
+ ],
3117
+ name: "setFacetForSelectors",
3118
+ outputs: [],
3119
+ stateMutability: "nonpayable",
3120
+ type: "function",
3121
+ },
3122
+ {
3123
+ inputs: [
3124
+ {
3125
+ internalType: "address",
3126
+ name: "market",
3127
+ type: "address",
3128
+ },
3129
+ {
3130
+ internalType: "uint256",
3131
+ name: "exactPtIn",
3132
+ type: "uint256",
3133
+ },
3134
+ ],
3135
+ name: "swapExactPtForSyStatic",
3136
+ outputs: [
3137
+ {
3138
+ internalType: "uint256",
3139
+ name: "netSyOut",
3140
+ type: "uint256",
3141
+ },
3142
+ {
3143
+ internalType: "uint256",
3144
+ name: "netSyFee",
3145
+ type: "uint256",
3146
+ },
3147
+ {
3148
+ internalType: "uint256",
3149
+ name: "priceImpact",
3150
+ type: "uint256",
3151
+ },
3152
+ {
3153
+ internalType: "uint256",
3154
+ name: "exchangeRateAfter",
3155
+ type: "uint256",
3156
+ },
3157
+ ],
3158
+ stateMutability: "view",
3159
+ type: "function",
3160
+ },
3161
+ {
3162
+ inputs: [
3163
+ {
3164
+ internalType: "address",
3165
+ name: "market",
3166
+ type: "address",
3167
+ },
3168
+ {
3169
+ internalType: "uint256",
3170
+ name: "exactPtIn",
3171
+ type: "uint256",
3172
+ },
3173
+ {
3174
+ internalType: "address",
3175
+ name: "tokenOut",
3176
+ type: "address",
3177
+ },
3178
+ ],
3179
+ name: "swapExactPtForTokenStatic",
3180
+ outputs: [
3181
+ {
3182
+ internalType: "uint256",
3183
+ name: "netTokenOut",
3184
+ type: "uint256",
3185
+ },
3186
+ {
3187
+ internalType: "uint256",
3188
+ name: "netSyToRedeem",
3189
+ type: "uint256",
3190
+ },
3191
+ {
3192
+ internalType: "uint256",
3193
+ name: "netSyFee",
3194
+ type: "uint256",
3195
+ },
3196
+ {
3197
+ internalType: "uint256",
3198
+ name: "priceImpact",
3199
+ type: "uint256",
3200
+ },
3201
+ {
3202
+ internalType: "uint256",
3203
+ name: "exchangeRateAfter",
3204
+ type: "uint256",
3205
+ },
3206
+ ],
3207
+ stateMutability: "view",
3208
+ type: "function",
3209
+ },
3210
+ {
3211
+ inputs: [
3212
+ {
3213
+ internalType: "address",
3214
+ name: "market",
3215
+ type: "address",
3216
+ },
3217
+ {
3218
+ internalType: "uint256",
3219
+ name: "exactPtIn",
3220
+ type: "uint256",
3221
+ },
3222
+ ],
3223
+ name: "swapExactPtForYtStatic",
3224
+ outputs: [
3225
+ {
3226
+ internalType: "uint256",
3227
+ name: "netYtOut",
3228
+ type: "uint256",
3229
+ },
3230
+ {
3231
+ internalType: "uint256",
3232
+ name: "totalPtToSwap",
3233
+ type: "uint256",
3234
+ },
3235
+ {
3236
+ internalType: "uint256",
3237
+ name: "netSyFee",
3238
+ type: "uint256",
3239
+ },
3240
+ {
3241
+ internalType: "uint256",
3242
+ name: "priceImpact",
3243
+ type: "uint256",
3244
+ },
3245
+ {
3246
+ internalType: "uint256",
3247
+ name: "exchangeRateAfter",
3248
+ type: "uint256",
3249
+ },
3250
+ ],
3251
+ stateMutability: "view",
3252
+ type: "function",
3253
+ },
3254
+ {
3255
+ inputs: [
3256
+ {
3257
+ internalType: "address",
3258
+ name: "market",
3259
+ type: "address",
3260
+ },
3261
+ {
3262
+ internalType: "uint256",
3263
+ name: "exactSyIn",
3264
+ type: "uint256",
3265
+ },
3266
+ ],
3267
+ name: "swapExactSyForPtStatic",
3268
+ outputs: [
3269
+ {
3270
+ internalType: "uint256",
3271
+ name: "netPtOut",
3272
+ type: "uint256",
3273
+ },
3274
+ {
3275
+ internalType: "uint256",
3276
+ name: "netSyFee",
3277
+ type: "uint256",
3278
+ },
3279
+ {
3280
+ internalType: "uint256",
3281
+ name: "priceImpact",
3282
+ type: "uint256",
3283
+ },
3284
+ {
3285
+ internalType: "uint256",
3286
+ name: "exchangeRateAfter",
3287
+ type: "uint256",
3288
+ },
3289
+ ],
3290
+ stateMutability: "view",
3291
+ type: "function",
3292
+ },
3293
+ {
3294
+ inputs: [
3295
+ {
3296
+ internalType: "address",
3297
+ name: "market",
3298
+ type: "address",
3299
+ },
3300
+ {
3301
+ internalType: "uint256",
3302
+ name: "exactSyIn",
3303
+ type: "uint256",
3304
+ },
3305
+ {
3306
+ internalType: "uint256",
3307
+ name: "slippage",
3308
+ type: "uint256",
3309
+ },
3310
+ ],
3311
+ name: "swapExactSyForPtStaticAndGenerateApproxParams",
3312
+ outputs: [
3313
+ {
3314
+ internalType: "uint256",
3315
+ name: "netPtOut",
3316
+ type: "uint256",
3317
+ },
3318
+ {
3319
+ internalType: "uint256",
3320
+ name: "netSyFee",
3321
+ type: "uint256",
3322
+ },
3323
+ {
3324
+ internalType: "uint256",
3325
+ name: "priceImpact",
3326
+ type: "uint256",
3327
+ },
3328
+ {
3329
+ internalType: "uint256",
3330
+ name: "exchangeRateAfter",
3331
+ type: "uint256",
3332
+ },
3333
+ {
3334
+ components: [
3335
+ {
3336
+ internalType: "uint256",
3337
+ name: "guessMin",
3338
+ type: "uint256",
3339
+ },
3340
+ {
3341
+ internalType: "uint256",
3342
+ name: "guessMax",
3343
+ type: "uint256",
3344
+ },
3345
+ {
3346
+ internalType: "uint256",
3347
+ name: "guessOffchain",
3348
+ type: "uint256",
3349
+ },
3350
+ {
3351
+ internalType: "uint256",
3352
+ name: "maxIteration",
3353
+ type: "uint256",
3354
+ },
3355
+ {
3356
+ internalType: "uint256",
3357
+ name: "eps",
3358
+ type: "uint256",
3359
+ },
3360
+ ],
3361
+ internalType: "struct ApproxParams",
3362
+ name: "approxParams",
3363
+ type: "tuple",
3364
+ },
3365
+ ],
3366
+ stateMutability: "view",
3367
+ type: "function",
3368
+ },
3369
+ {
3370
+ inputs: [
3371
+ {
3372
+ internalType: "address",
3373
+ name: "market",
3374
+ type: "address",
3375
+ },
3376
+ {
3377
+ internalType: "uint256",
3378
+ name: "exactSyIn",
3379
+ type: "uint256",
3380
+ },
3381
+ ],
3382
+ name: "swapExactSyForYtStatic",
3383
+ outputs: [
3384
+ {
3385
+ internalType: "uint256",
3386
+ name: "netYtOut",
3387
+ type: "uint256",
3388
+ },
3389
+ {
3390
+ internalType: "uint256",
3391
+ name: "netSyFee",
3392
+ type: "uint256",
3393
+ },
3394
+ {
3395
+ internalType: "uint256",
3396
+ name: "priceImpact",
3397
+ type: "uint256",
3398
+ },
3399
+ {
3400
+ internalType: "uint256",
3401
+ name: "exchangeRateAfter",
3402
+ type: "uint256",
3403
+ },
3404
+ ],
3405
+ stateMutability: "view",
3406
+ type: "function",
3407
+ },
3408
+ {
3409
+ inputs: [
3410
+ {
3411
+ internalType: "address",
3412
+ name: "market",
3413
+ type: "address",
3414
+ },
3415
+ {
3416
+ internalType: "address",
3417
+ name: "tokenIn",
3418
+ type: "address",
3419
+ },
3420
+ {
3421
+ internalType: "uint256",
3422
+ name: "amountTokenIn",
3423
+ type: "uint256",
3424
+ },
3425
+ ],
3426
+ name: "swapExactTokenForPtStatic",
3427
+ outputs: [
3428
+ {
3429
+ internalType: "uint256",
3430
+ name: "netPtOut",
3431
+ type: "uint256",
3432
+ },
3433
+ {
3434
+ internalType: "uint256",
3435
+ name: "netSyMinted",
3436
+ type: "uint256",
3437
+ },
3438
+ {
3439
+ internalType: "uint256",
3440
+ name: "netSyFee",
3441
+ type: "uint256",
3442
+ },
3443
+ {
3444
+ internalType: "uint256",
3445
+ name: "priceImpact",
3446
+ type: "uint256",
3447
+ },
3448
+ {
3449
+ internalType: "uint256",
3450
+ name: "exchangeRateAfter",
3451
+ type: "uint256",
3452
+ },
3453
+ ],
3454
+ stateMutability: "view",
3455
+ type: "function",
3456
+ },
3457
+ {
3458
+ inputs: [
3459
+ {
3460
+ internalType: "address",
3461
+ name: "market",
3462
+ type: "address",
3463
+ },
3464
+ {
3465
+ internalType: "address",
3466
+ name: "tokenIn",
3467
+ type: "address",
3468
+ },
3469
+ {
3470
+ internalType: "uint256",
3471
+ name: "amountTokenIn",
3472
+ type: "uint256",
3473
+ },
3474
+ {
3475
+ internalType: "uint256",
3476
+ name: "slippage",
3477
+ type: "uint256",
3478
+ },
3479
+ ],
3480
+ name: "swapExactTokenForPtStaticAndGenerateApproxParams",
3481
+ outputs: [
3482
+ {
3483
+ internalType: "uint256",
3484
+ name: "netPtOut",
3485
+ type: "uint256",
3486
+ },
3487
+ {
3488
+ internalType: "uint256",
3489
+ name: "netSyMinted",
3490
+ type: "uint256",
3491
+ },
3492
+ {
3493
+ internalType: "uint256",
3494
+ name: "netSyFee",
3495
+ type: "uint256",
3496
+ },
3497
+ {
3498
+ internalType: "uint256",
3499
+ name: "priceImpact",
3500
+ type: "uint256",
3501
+ },
3502
+ {
3503
+ internalType: "uint256",
3504
+ name: "exchangeRateAfter",
3505
+ type: "uint256",
3506
+ },
3507
+ {
3508
+ components: [
3509
+ {
3510
+ internalType: "uint256",
3511
+ name: "guessMin",
3512
+ type: "uint256",
3513
+ },
3514
+ {
3515
+ internalType: "uint256",
3516
+ name: "guessMax",
3517
+ type: "uint256",
3518
+ },
3519
+ {
3520
+ internalType: "uint256",
3521
+ name: "guessOffchain",
3522
+ type: "uint256",
3523
+ },
3524
+ {
3525
+ internalType: "uint256",
3526
+ name: "maxIteration",
3527
+ type: "uint256",
3528
+ },
3529
+ {
3530
+ internalType: "uint256",
3531
+ name: "eps",
3532
+ type: "uint256",
3533
+ },
3534
+ ],
3535
+ internalType: "struct ApproxParams",
3536
+ name: "approxParams",
3537
+ type: "tuple",
3538
+ },
3539
+ ],
3540
+ stateMutability: "view",
3541
+ type: "function",
3542
+ },
3543
+ {
3544
+ inputs: [
3545
+ {
3546
+ internalType: "address",
3547
+ name: "market",
3548
+ type: "address",
3549
+ },
3550
+ {
3551
+ internalType: "address",
3552
+ name: "tokenIn",
3553
+ type: "address",
3554
+ },
3555
+ {
3556
+ internalType: "uint256",
3557
+ name: "amountTokenIn",
3558
+ type: "uint256",
3559
+ },
3560
+ ],
3561
+ name: "swapExactTokenForYtStatic",
3562
+ outputs: [
3563
+ {
3564
+ internalType: "uint256",
3565
+ name: "netYtOut",
3566
+ type: "uint256",
3567
+ },
3568
+ {
3569
+ internalType: "uint256",
3570
+ name: "netSyMinted",
3571
+ type: "uint256",
3572
+ },
3573
+ {
3574
+ internalType: "uint256",
3575
+ name: "netSyFee",
3576
+ type: "uint256",
3577
+ },
3578
+ {
3579
+ internalType: "uint256",
3580
+ name: "priceImpact",
3581
+ type: "uint256",
3582
+ },
3583
+ {
3584
+ internalType: "uint256",
3585
+ name: "exchangeRateAfter",
3586
+ type: "uint256",
3587
+ },
3588
+ ],
3589
+ stateMutability: "view",
3590
+ type: "function",
3591
+ },
3592
+ {
3593
+ inputs: [
3594
+ {
3595
+ internalType: "address",
3596
+ name: "market",
3597
+ type: "address",
3598
+ },
3599
+ {
3600
+ internalType: "uint256",
3601
+ name: "exactYtIn",
3602
+ type: "uint256",
3603
+ },
3604
+ ],
3605
+ name: "swapExactYtForPtStatic",
3606
+ outputs: [
3607
+ {
3608
+ internalType: "uint256",
3609
+ name: "netPtOut",
3610
+ type: "uint256",
3611
+ },
3612
+ {
3613
+ internalType: "uint256",
3614
+ name: "totalPtSwapped",
3615
+ type: "uint256",
3616
+ },
3617
+ {
3618
+ internalType: "uint256",
3619
+ name: "netSyFee",
3620
+ type: "uint256",
3621
+ },
3622
+ {
3623
+ internalType: "uint256",
3624
+ name: "priceImpact",
3625
+ type: "uint256",
3626
+ },
3627
+ {
3628
+ internalType: "uint256",
3629
+ name: "exchangeRateAfter",
3630
+ type: "uint256",
3631
+ },
3632
+ ],
3633
+ stateMutability: "view",
3634
+ type: "function",
3635
+ },
3636
+ {
3637
+ inputs: [
3638
+ {
3639
+ internalType: "address",
3640
+ name: "market",
3641
+ type: "address",
3642
+ },
3643
+ {
3644
+ internalType: "uint256",
3645
+ name: "exactYtIn",
3646
+ type: "uint256",
3647
+ },
3648
+ ],
3649
+ name: "swapExactYtForSyStatic",
3650
+ outputs: [
3651
+ {
3652
+ internalType: "uint256",
3653
+ name: "netSyOut",
3654
+ type: "uint256",
3655
+ },
3656
+ {
3657
+ internalType: "uint256",
3658
+ name: "netSyFee",
3659
+ type: "uint256",
3660
+ },
3661
+ {
3662
+ internalType: "uint256",
3663
+ name: "priceImpact",
3664
+ type: "uint256",
3665
+ },
3666
+ {
3667
+ internalType: "uint256",
3668
+ name: "exchangeRateAfter",
3669
+ type: "uint256",
3670
+ },
3671
+ {
3672
+ internalType: "uint256",
3673
+ name: "netSyOwedInt",
3674
+ type: "uint256",
3675
+ },
3676
+ {
3677
+ internalType: "uint256",
3678
+ name: "netPYToRepaySyOwedInt",
3679
+ type: "uint256",
3680
+ },
3681
+ {
3682
+ internalType: "uint256",
3683
+ name: "netPYToRedeemSyOutInt",
3684
+ type: "uint256",
3685
+ },
3686
+ ],
3687
+ stateMutability: "view",
3688
+ type: "function",
3689
+ },
3690
+ {
3691
+ inputs: [
3692
+ {
3693
+ internalType: "address",
3694
+ name: "market",
3695
+ type: "address",
3696
+ },
3697
+ {
3698
+ internalType: "uint256",
3699
+ name: "exactYtIn",
3700
+ type: "uint256",
3701
+ },
3702
+ {
3703
+ internalType: "address",
3704
+ name: "tokenOut",
3705
+ type: "address",
3706
+ },
3707
+ ],
3708
+ name: "swapExactYtForTokenStatic",
3709
+ outputs: [
3710
+ {
3711
+ internalType: "uint256",
3712
+ name: "netTokenOut",
3713
+ type: "uint256",
3714
+ },
3715
+ {
3716
+ internalType: "uint256",
3717
+ name: "netSyFee",
3718
+ type: "uint256",
3719
+ },
3720
+ {
3721
+ internalType: "uint256",
3722
+ name: "priceImpact",
3723
+ type: "uint256",
3724
+ },
3725
+ {
3726
+ internalType: "uint256",
3727
+ name: "exchangeRateAfter",
3728
+ type: "uint256",
3729
+ },
3730
+ {
3731
+ internalType: "uint256",
3732
+ name: "netSyOut",
3733
+ type: "uint256",
3734
+ },
3735
+ {
3736
+ internalType: "uint256",
3737
+ name: "netSyOwedInt",
3738
+ type: "uint256",
3739
+ },
3740
+ {
3741
+ internalType: "uint256",
3742
+ name: "netPYToRepaySyOwedInt",
3743
+ type: "uint256",
3744
+ },
3745
+ {
3746
+ internalType: "uint256",
3747
+ name: "netPYToRedeemSyOutInt",
3748
+ type: "uint256",
3749
+ },
3750
+ ],
3751
+ stateMutability: "view",
3752
+ type: "function",
3753
+ },
3754
+ {
3755
+ inputs: [
3756
+ {
3757
+ internalType: "address",
3758
+ name: "market",
3759
+ type: "address",
3760
+ },
3761
+ {
3762
+ internalType: "uint256",
3763
+ name: "exactSyOut",
3764
+ type: "uint256",
3765
+ },
3766
+ ],
3767
+ name: "swapPtForExactSyStatic",
3768
+ outputs: [
3769
+ {
3770
+ internalType: "uint256",
3771
+ name: "netPtIn",
3772
+ type: "uint256",
3773
+ },
3774
+ {
3775
+ internalType: "uint256",
3776
+ name: "netSyFee",
3777
+ type: "uint256",
3778
+ },
3779
+ {
3780
+ internalType: "uint256",
3781
+ name: "priceImpact",
3782
+ type: "uint256",
3783
+ },
3784
+ {
3785
+ internalType: "uint256",
3786
+ name: "exchangeRateAfter",
3787
+ type: "uint256",
3788
+ },
3789
+ ],
3790
+ stateMutability: "view",
3791
+ type: "function",
3792
+ },
3793
+ {
3794
+ inputs: [
3795
+ {
3796
+ internalType: "address",
3797
+ name: "market",
3798
+ type: "address",
3799
+ },
3800
+ {
3801
+ internalType: "uint256",
3802
+ name: "exactPtOut",
3803
+ type: "uint256",
3804
+ },
3805
+ ],
3806
+ name: "swapSyForExactPtStatic",
3807
+ outputs: [
3808
+ {
3809
+ internalType: "uint256",
3810
+ name: "netSyIn",
3811
+ type: "uint256",
3812
+ },
3813
+ {
3814
+ internalType: "uint256",
3815
+ name: "netSyFee",
3816
+ type: "uint256",
3817
+ },
3818
+ {
3819
+ internalType: "uint256",
3820
+ name: "priceImpact",
3821
+ type: "uint256",
3822
+ },
3823
+ {
3824
+ internalType: "uint256",
3825
+ name: "exchangeRateAfter",
3826
+ type: "uint256",
3827
+ },
3828
+ ],
3829
+ stateMutability: "view",
3830
+ type: "function",
3831
+ },
3832
+ {
3833
+ inputs: [
3834
+ {
3835
+ internalType: "address",
3836
+ name: "market",
3837
+ type: "address",
3838
+ },
3839
+ {
3840
+ internalType: "uint256",
3841
+ name: "exactYtOut",
3842
+ type: "uint256",
3843
+ },
3844
+ ],
3845
+ name: "swapSyForExactYtStatic",
3846
+ outputs: [
3847
+ {
3848
+ internalType: "uint256",
3849
+ name: "netSyIn",
3850
+ type: "uint256",
3851
+ },
3852
+ {
3853
+ internalType: "uint256",
3854
+ name: "netSyFee",
3855
+ type: "uint256",
3856
+ },
3857
+ {
3858
+ internalType: "uint256",
3859
+ name: "priceImpact",
3860
+ type: "uint256",
3861
+ },
3862
+ {
3863
+ internalType: "uint256",
3864
+ name: "exchangeRateAfter",
3865
+ type: "uint256",
3866
+ },
3867
+ {
3868
+ internalType: "uint256",
3869
+ name: "netSyReceivedInt",
3870
+ type: "uint256",
3871
+ },
3872
+ {
3873
+ internalType: "uint256",
3874
+ name: "totalSyNeedInt",
3875
+ type: "uint256",
3876
+ },
3877
+ ],
3878
+ stateMutability: "view",
3879
+ type: "function",
3880
+ },
3881
+ {
3882
+ inputs: [
3883
+ {
3884
+ internalType: "address",
3885
+ name: "market",
3886
+ type: "address",
3887
+ },
3888
+ {
3889
+ internalType: "uint256",
3890
+ name: "exactSyOut",
3891
+ type: "uint256",
3892
+ },
3893
+ ],
3894
+ name: "swapYtForExactSyStatic",
3895
+ outputs: [
3896
+ {
3897
+ internalType: "uint256",
3898
+ name: "netYtIn",
3899
+ type: "uint256",
3900
+ },
3901
+ {
3902
+ internalType: "uint256",
3903
+ name: "netSyFee",
3904
+ type: "uint256",
3905
+ },
3906
+ {
3907
+ internalType: "uint256",
3908
+ name: "priceImpact",
3909
+ type: "uint256",
3910
+ },
3911
+ {
3912
+ internalType: "uint256",
3913
+ name: "exchangeRateAfter",
3914
+ type: "uint256",
3915
+ },
3916
+ ],
3917
+ stateMutability: "view",
3918
+ type: "function",
3919
+ },
3920
+ {
3921
+ inputs: [
3922
+ {
3923
+ internalType: "address",
3924
+ name: "newOwner",
3925
+ type: "address",
3926
+ },
3927
+ {
3928
+ internalType: "bool",
3929
+ name: "direct",
3930
+ type: "bool",
3931
+ },
3932
+ {
3933
+ internalType: "bool",
3934
+ name: "renounce",
3935
+ type: "bool",
3936
+ },
3937
+ ],
3938
+ name: "transferOwnership",
3939
+ outputs: [],
3940
+ stateMutability: "nonpayable",
3941
+ type: "function",
3942
+ },
3943
+ ];
3944
+
3945
+ export class IPRouterStatic__factory {
3946
+ static readonly abi = _abi;
3947
+ static createInterface(): IPRouterStaticInterface {
3948
+ return new utils.Interface(_abi) as IPRouterStaticInterface;
3949
+ }
3950
+ static connect(
3951
+ address: string,
3952
+ signerOrProvider: Signer | Provider
3953
+ ): IPRouterStatic {
3954
+ return new Contract(address, _abi, signerOrProvider) as IPRouterStatic;
3955
+ }
3956
+ }