@pendle/core-v2 1.2.0-testnet → 1.2.1-testnet

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 (253) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  12. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  14. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  16. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +39 -0
  18. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  24. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  29. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  31. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  35. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  37. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  39. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  42. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  44. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
  50. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.json +2 -2
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +2 -2
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +4 -0
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +974 -0
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  72. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  73. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  74. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  75. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  76. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  78. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
  79. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
  80. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
  81. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
  82. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
  83. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
  84. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  85. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
  86. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  87. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +2 -2
  88. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.json +26 -0
  90. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.json +19 -0
  92. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +4 -0
  94. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.json +307 -0
  95. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +4 -0
  96. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.json +269 -0
  97. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +4 -0
  98. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +1270 -0
  99. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +4 -0
  101. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +273 -0
  102. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +4 -0
  103. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.json +184 -0
  104. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +4 -0
  107. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.json +40 -0
  108. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +4 -0
  112. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.json +55 -0
  113. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +4 -0
  114. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +2332 -0
  115. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +39 -0
  117. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  119. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +4 -0
  120. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +256 -0
  121. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  122. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  123. package/build/artifacts/contracts/offchain-helpers/legacy/MarketMathStatic.sol/MarketMathStatic.dbg.json +4 -0
  124. package/build/artifacts/contracts/offchain-helpers/legacy/MarketMathStatic.sol/MarketMathStatic.json +259 -0
  125. package/build/artifacts/contracts/offchain-helpers/legacy/RouterStatic.sol/RouterStatic.dbg.json +4 -0
  126. package/build/artifacts/contracts/offchain-helpers/legacy/RouterStatic.sol/RouterStatic.json +2741 -0
  127. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +4 -0
  128. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +30 -0
  129. package/build/artifacts/contracts/offchain-helpers/router-static/StorageLayout.sol/StorageLayout.dbg.json +4 -0
  130. package/build/artifacts/contracts/offchain-helpers/router-static/StorageLayout.sol/StorageLayout.json +10 -0
  131. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +4 -0
  132. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +307 -0
  133. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +4 -0
  134. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +333 -0
  135. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +4 -0
  136. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +1407 -0
  137. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +4 -0
  138. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +310 -0
  139. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +4 -0
  140. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +228 -0
  141. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +4 -0
  142. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +93 -0
  143. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  144. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  145. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  146. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  147. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  148. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  149. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  150. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  151. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  152. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  153. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
  154. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  155. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  156. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  157. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  158. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  159. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  160. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +1 -1
  161. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.dbg.json +1 -1
  162. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.json +2 -2
  163. package/package.json +1 -1
  164. package/typechain-types/ActionInfoStatic.ts +310 -0
  165. package/typechain-types/ActionMarketAuxStatic.ts +350 -0
  166. package/typechain-types/ActionMarketCoreStatic.ts +1489 -0
  167. package/typechain-types/ActionMintRedeemStatic.ts +461 -0
  168. package/typechain-types/ActionStorageStatic.ts +403 -0
  169. package/typechain-types/ActionVePendleStatic.ts +113 -0
  170. package/typechain-types/Broadcaster.ts +454 -0
  171. package/typechain-types/IERC4626.ts +34 -0
  172. package/typechain-types/IGlpManager.ts +50 -0
  173. package/typechain-types/IPActionInfoStatic.ts +310 -0
  174. package/typechain-types/IPActionMarketAuxStatic.ts +350 -0
  175. package/typechain-types/IPActionMarketCoreStatic.ts +1489 -0
  176. package/typechain-types/IPActionMintRedeemStatic.ts +461 -0
  177. package/typechain-types/IPActionStorageStatic.ts +326 -0
  178. package/typechain-types/IPActionVePendleStatic.ts +113 -0
  179. package/typechain-types/IPMiniDiamond.ts +147 -0
  180. package/typechain-types/IPRouterStatic.ts +2394 -509
  181. package/typechain-types/IPVotingController.ts +96 -0
  182. package/typechain-types/PendleGDaiSY.ts +1229 -0
  183. package/typechain-types/PendleRouterStatic.ts +57 -0
  184. package/typechain-types/RouterStatic.ts +0 -92
  185. package/typechain-types/VotingControllerStorageUpg.ts +96 -0
  186. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  187. package/typechain-types/factories/ActionInfoStatic__factory.ts +360 -0
  188. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +390 -0
  189. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1464 -0
  190. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +367 -0
  191. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  192. package/typechain-types/factories/ActionStorageStatic__factory.ts +281 -0
  193. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  194. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  195. package/typechain-types/factories/ActionVePendleStatic__factory.ts +155 -0
  196. package/typechain-types/factories/Broadcaster__factory.ts +311 -0
  197. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  198. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  199. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  200. package/typechain-types/factories/Errors__factory.ts +1 -1
  201. package/typechain-types/factories/IERC4626__factory.ts +19 -0
  202. package/typechain-types/factories/IGlpManager__factory.ts +26 -0
  203. package/typechain-types/factories/IPActionInfoStatic__factory.ts +322 -0
  204. package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +288 -0
  205. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +1289 -0
  206. package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +292 -0
  207. package/typechain-types/factories/IPActionStorageStatic__factory.ts +203 -0
  208. package/typechain-types/factories/IPActionVePendleStatic__factory.ts +59 -0
  209. package/typechain-types/factories/IPMiniDiamond__factory.ts +67 -0
  210. package/typechain-types/factories/IPRouterStatic__factory.ts +1952 -494
  211. package/typechain-types/factories/IPVotingController__factory.ts +39 -0
  212. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
  213. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  214. package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1 -1
  215. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1 -1
  216. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  217. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  218. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  219. package/typechain-types/factories/PendleGDaiSY__factory.ts +1035 -0
  220. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  221. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  222. package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
  223. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  224. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  225. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  226. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  227. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  228. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
  229. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  230. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  231. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  232. package/typechain-types/factories/PendleRouterStatic__factory.ts +88 -0
  233. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  234. package/typechain-types/factories/PendleSwapAggregator__factory.ts +1 -1
  235. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  236. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  237. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
  238. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  239. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
  240. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  241. package/typechain-types/factories/RouterStatic__factory.ts +4 -72
  242. package/typechain-types/factories/SAPE__factory.ts +1 -1
  243. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +39 -0
  244. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  245. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  246. package/typechain-types/hardhat.d.ts +171 -27
  247. package/typechain-types/index.ts +36 -8
  248. package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.dbg.json +0 -4
  249. package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.json +0 -34
  250. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +0 -4
  251. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +0 -259
  252. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +0 -4
  253. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +0 -2825
@@ -10,6 +10,25 @@ import type {
10
10
  } from "../IPRouterStatic";
11
11
 
12
12
  const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "previousOwner",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "address",
25
+ name: "newOwner",
26
+ type: "address",
27
+ },
28
+ ],
29
+ name: "OwnershipTransferred",
30
+ type: "event",
31
+ },
13
32
  {
14
33
  inputs: [
15
34
  {
@@ -19,16 +38,16 @@ const _abi = [
19
38
  },
20
39
  {
21
40
  internalType: "uint256",
22
- name: "scyDesired",
41
+ name: "netSyDesired",
23
42
  type: "uint256",
24
43
  },
25
44
  {
26
45
  internalType: "uint256",
27
- name: "ptDesired",
46
+ name: "netPtDesired",
28
47
  type: "uint256",
29
48
  },
30
49
  ],
31
- name: "addLiquidityDualScyAndPtStatic",
50
+ name: "addLiquidityDualSyAndPtStatic",
32
51
  outputs: [
33
52
  {
34
53
  internalType: "uint256",
@@ -37,16 +56,16 @@ const _abi = [
37
56
  },
38
57
  {
39
58
  internalType: "uint256",
40
- name: "scyUsed",
59
+ name: "netSyUsed",
41
60
  type: "uint256",
42
61
  },
43
62
  {
44
63
  internalType: "uint256",
45
- name: "ptUsed",
64
+ name: "netPtUsed",
46
65
  type: "uint256",
47
66
  },
48
67
  ],
49
- stateMutability: "nonpayable",
68
+ stateMutability: "view",
50
69
  type: "function",
51
70
  },
52
71
  {
@@ -56,160 +75,136 @@ const _abi = [
56
75
  name: "market",
57
76
  type: "address",
58
77
  },
59
- ],
60
- name: "getMarketInfo",
61
- outputs: [
62
78
  {
63
79
  internalType: "address",
64
- name: "pt",
80
+ name: "tokenIn",
65
81
  type: "address",
66
82
  },
83
+ {
84
+ internalType: "uint256",
85
+ name: "netTokenDesired",
86
+ type: "uint256",
87
+ },
67
88
  {
68
89
  internalType: "address",
69
- name: "scy",
90
+ name: "bulk",
70
91
  type: "address",
71
92
  },
72
93
  {
73
- components: [
74
- {
75
- internalType: "int256",
76
- name: "totalPt",
77
- type: "int256",
78
- },
79
- {
80
- internalType: "int256",
81
- name: "totalScy",
82
- type: "int256",
83
- },
84
- {
85
- internalType: "int256",
86
- name: "totalLp",
87
- type: "int256",
88
- },
89
- {
90
- internalType: "uint256",
91
- name: "oracleRate",
92
- type: "uint256",
93
- },
94
- {
95
- internalType: "address",
96
- name: "treasury",
97
- type: "address",
98
- },
99
- {
100
- internalType: "int256",
101
- name: "scalarRoot",
102
- type: "int256",
103
- },
104
- {
105
- internalType: "uint256",
106
- name: "lnFeeRateRoot",
107
- type: "uint256",
108
- },
109
- {
110
- internalType: "uint256",
111
- name: "rateOracleTimeWindow",
112
- type: "uint256",
113
- },
114
- {
115
- internalType: "uint256",
116
- name: "expiry",
117
- type: "uint256",
118
- },
119
- {
120
- internalType: "uint256",
121
- name: "reserveFeePercent",
122
- type: "uint256",
123
- },
124
- {
125
- internalType: "uint256",
126
- name: "lastLnImpliedRate",
127
- type: "uint256",
128
- },
129
- {
130
- internalType: "uint256",
131
- name: "lastTradeTime",
132
- type: "uint256",
133
- },
134
- ],
135
- internalType: "struct MarketState",
136
- name: "state",
137
- type: "tuple",
94
+ internalType: "uint256",
95
+ name: "netPtDesired",
96
+ type: "uint256",
138
97
  },
98
+ ],
99
+ name: "addLiquidityDualTokenAndPtStatic",
100
+ outputs: [
139
101
  {
140
- internalType: "int256",
141
- name: "impliedYield",
142
- type: "int256",
102
+ internalType: "uint256",
103
+ name: "netLpOut",
104
+ type: "uint256",
105
+ },
106
+ {
107
+ internalType: "uint256",
108
+ name: "netTokenUsed",
109
+ type: "uint256",
143
110
  },
144
111
  {
145
112
  internalType: "uint256",
146
- name: "exchangeRate",
113
+ name: "netPtUsed",
114
+ type: "uint256",
115
+ },
116
+ {
117
+ internalType: "uint256",
118
+ name: "netSyUsed",
119
+ type: "uint256",
120
+ },
121
+ {
122
+ internalType: "uint256",
123
+ name: "netSyDesired",
147
124
  type: "uint256",
148
125
  },
149
126
  ],
150
- stateMutability: "nonpayable",
127
+ stateMutability: "view",
151
128
  type: "function",
152
129
  },
153
130
  {
154
131
  inputs: [
155
132
  {
156
133
  internalType: "address",
157
- name: "py",
134
+ name: "market",
158
135
  type: "address",
159
136
  },
137
+ {
138
+ internalType: "uint256",
139
+ name: "netPtIn",
140
+ type: "uint256",
141
+ },
160
142
  ],
161
- name: "getPY",
143
+ name: "addLiquiditySinglePtStatic",
162
144
  outputs: [
163
145
  {
164
- internalType: "address",
165
- name: "pt",
166
- type: "address",
146
+ internalType: "uint256",
147
+ name: "netLpOut",
148
+ type: "uint256",
167
149
  },
168
150
  {
169
- internalType: "address",
170
- name: "yt",
171
- type: "address",
151
+ internalType: "uint256",
152
+ name: "netPtToSwap",
153
+ type: "uint256",
154
+ },
155
+ {
156
+ internalType: "uint256",
157
+ name: "netSyFee",
158
+ type: "uint256",
159
+ },
160
+ {
161
+ internalType: "uint256",
162
+ name: "priceImpact",
163
+ type: "uint256",
164
+ },
165
+ {
166
+ internalType: "uint256",
167
+ name: "exchangeRateAfter",
168
+ type: "uint256",
169
+ },
170
+ {
171
+ internalType: "uint256",
172
+ name: "netSyFromSwap",
173
+ type: "uint256",
172
174
  },
173
175
  ],
174
- stateMutability: "view",
176
+ stateMutability: "nonpayable",
175
177
  type: "function",
176
178
  },
177
179
  {
178
180
  inputs: [
179
181
  {
180
182
  internalType: "address",
181
- name: "py",
183
+ name: "market",
182
184
  type: "address",
183
185
  },
186
+ {
187
+ internalType: "uint256",
188
+ name: "netSyIn",
189
+ type: "uint256",
190
+ },
184
191
  ],
185
- name: "getPYInfo",
192
+ name: "addLiquiditySingleSyKeepYtStatic",
186
193
  outputs: [
187
194
  {
188
195
  internalType: "uint256",
189
- name: "exchangeRate",
196
+ name: "netLpOut",
190
197
  type: "uint256",
191
198
  },
192
199
  {
193
200
  internalType: "uint256",
194
- name: "totalSupply",
201
+ name: "netYtOut",
195
202
  type: "uint256",
196
203
  },
197
204
  {
198
- components: [
199
- {
200
- internalType: "address",
201
- name: "rewardToken",
202
- type: "address",
203
- },
204
- {
205
- internalType: "uint256",
206
- name: "index",
207
- type: "uint256",
208
- },
209
- ],
210
- internalType: "struct IPRouterStatic.RewardIndex[]",
211
- name: "rewardIndexes",
212
- type: "tuple[]",
205
+ internalType: "uint256",
206
+ name: "netSyToPY",
207
+ type: "uint256",
213
208
  },
214
209
  ],
215
210
  stateMutability: "nonpayable",
@@ -219,29 +214,49 @@ const _abi = [
219
214
  inputs: [
220
215
  {
221
216
  internalType: "address",
222
- name: "token",
217
+ name: "market",
223
218
  type: "address",
224
219
  },
220
+ {
221
+ internalType: "uint256",
222
+ name: "netSyIn",
223
+ type: "uint256",
224
+ },
225
225
  ],
226
- name: "getPendleTokenType",
226
+ name: "addLiquiditySingleSyStatic",
227
227
  outputs: [
228
228
  {
229
- internalType: "bool",
230
- name: "isPT",
231
- type: "bool",
229
+ internalType: "uint256",
230
+ name: "netLpOut",
231
+ type: "uint256",
232
232
  },
233
233
  {
234
- internalType: "bool",
235
- name: "isYT",
236
- type: "bool",
234
+ internalType: "uint256",
235
+ name: "netPtFromSwap",
236
+ type: "uint256",
237
237
  },
238
238
  {
239
- internalType: "bool",
240
- name: "isMarket",
241
- type: "bool",
239
+ internalType: "uint256",
240
+ name: "netSyFee",
241
+ type: "uint256",
242
+ },
243
+ {
244
+ internalType: "uint256",
245
+ name: "priceImpact",
246
+ type: "uint256",
247
+ },
248
+ {
249
+ internalType: "uint256",
250
+ name: "exchangeRateAfter",
251
+ type: "uint256",
252
+ },
253
+ {
254
+ internalType: "uint256",
255
+ name: "netSyToSwap",
256
+ type: "uint256",
242
257
  },
243
258
  ],
244
- stateMutability: "view",
259
+ stateMutability: "nonpayable",
245
260
  type: "function",
246
261
  },
247
262
  {
@@ -251,13 +266,43 @@ const _abi = [
251
266
  name: "market",
252
267
  type: "address",
253
268
  },
269
+ {
270
+ internalType: "address",
271
+ name: "tokenIn",
272
+ type: "address",
273
+ },
274
+ {
275
+ internalType: "uint256",
276
+ name: "netTokenIn",
277
+ type: "uint256",
278
+ },
279
+ {
280
+ internalType: "address",
281
+ name: "bulk",
282
+ type: "address",
283
+ },
254
284
  ],
255
- name: "getPtImpliedYield",
285
+ name: "addLiquiditySingleTokenKeepYtStatic",
256
286
  outputs: [
257
287
  {
258
- internalType: "int256",
259
- name: "",
260
- type: "int256",
288
+ internalType: "uint256",
289
+ name: "netLpOut",
290
+ type: "uint256",
291
+ },
292
+ {
293
+ internalType: "uint256",
294
+ name: "netYtOut",
295
+ type: "uint256",
296
+ },
297
+ {
298
+ internalType: "uint256",
299
+ name: "netSyMinted",
300
+ type: "uint256",
301
+ },
302
+ {
303
+ internalType: "uint256",
304
+ name: "netSyToPY",
305
+ type: "uint256",
261
306
  },
262
307
  ],
263
308
  stateMutability: "nonpayable",
@@ -272,256 +317,154 @@ const _abi = [
272
317
  },
273
318
  {
274
319
  internalType: "address",
275
- name: "user",
320
+ name: "tokenIn",
321
+ type: "address",
322
+ },
323
+ {
324
+ internalType: "uint256",
325
+ name: "netTokenIn",
326
+ type: "uint256",
327
+ },
328
+ {
329
+ internalType: "address",
330
+ name: "bulk",
276
331
  type: "address",
277
332
  },
278
333
  ],
279
- name: "getUserMarketInfo",
334
+ name: "addLiquiditySingleTokenStatic",
280
335
  outputs: [
281
336
  {
282
- components: [
283
- {
284
- internalType: "address",
285
- name: "market",
286
- type: "address",
287
- },
288
- {
289
- internalType: "uint256",
290
- name: "lpBalance",
291
- type: "uint256",
292
- },
293
- {
294
- components: [
295
- {
296
- internalType: "address",
297
- name: "token",
298
- type: "address",
299
- },
300
- {
301
- internalType: "uint256",
302
- name: "amount",
303
- type: "uint256",
304
- },
305
- ],
306
- internalType: "struct IPRouterStatic.TokenAmount",
307
- name: "ptBalance",
308
- type: "tuple",
309
- },
310
- {
311
- components: [
312
- {
313
- internalType: "address",
314
- name: "token",
315
- type: "address",
316
- },
317
- {
318
- internalType: "uint256",
319
- name: "amount",
320
- type: "uint256",
321
- },
322
- ],
323
- internalType: "struct IPRouterStatic.TokenAmount",
324
- name: "scyBalance",
325
- type: "tuple",
326
- },
327
- {
328
- components: [
329
- {
330
- internalType: "enum ISuperComposableYield.AssetType",
331
- name: "assetType",
332
- type: "uint8",
333
- },
334
- {
335
- internalType: "address",
336
- name: "assetAddress",
337
- type: "address",
338
- },
339
- {
340
- internalType: "uint256",
341
- name: "amount",
342
- type: "uint256",
343
- },
344
- ],
345
- internalType: "struct IPRouterStatic.AssetAmount",
346
- name: "assetBalance",
347
- type: "tuple",
348
- },
349
- ],
350
- internalType: "struct IPRouterStatic.UserMarketInfo",
351
- name: "userMarketInfo",
352
- type: "tuple",
337
+ internalType: "uint256",
338
+ name: "netLpOut",
339
+ type: "uint256",
340
+ },
341
+ {
342
+ internalType: "uint256",
343
+ name: "netPtFromSwap",
344
+ type: "uint256",
345
+ },
346
+ {
347
+ internalType: "uint256",
348
+ name: "netSyFee",
349
+ type: "uint256",
350
+ },
351
+ {
352
+ internalType: "uint256",
353
+ name: "priceImpact",
354
+ type: "uint256",
355
+ },
356
+ {
357
+ internalType: "uint256",
358
+ name: "exchangeRateAfter",
359
+ type: "uint256",
360
+ },
361
+ {
362
+ internalType: "uint256",
363
+ name: "netSyMinted",
364
+ type: "uint256",
365
+ },
366
+ {
367
+ internalType: "uint256",
368
+ name: "netSyToSwap",
369
+ type: "uint256",
353
370
  },
354
371
  ],
355
- stateMutability: "view",
372
+ stateMutability: "nonpayable",
356
373
  type: "function",
357
374
  },
358
375
  {
359
376
  inputs: [
360
377
  {
361
378
  internalType: "address",
362
- name: "user",
379
+ name: "market",
363
380
  type: "address",
364
381
  },
365
382
  {
366
- internalType: "address[]",
367
- name: "markets",
368
- type: "address[]",
383
+ internalType: "int256",
384
+ name: "netPtOut",
385
+ type: "int256",
369
386
  },
370
387
  ],
371
- name: "getUserMarketPositions",
388
+ name: "calcPriceImpactPY",
372
389
  outputs: [
373
390
  {
374
- components: [
375
- {
376
- internalType: "address",
377
- name: "market",
378
- type: "address",
379
- },
380
- {
381
- internalType: "uint256",
382
- name: "lpBalance",
383
- type: "uint256",
384
- },
385
- {
386
- components: [
387
- {
388
- internalType: "address",
389
- name: "token",
390
- type: "address",
391
- },
392
- {
393
- internalType: "uint256",
394
- name: "amount",
395
- type: "uint256",
396
- },
397
- ],
398
- internalType: "struct IPRouterStatic.TokenAmount",
399
- name: "ptBalance",
400
- type: "tuple",
401
- },
402
- {
403
- components: [
404
- {
405
- internalType: "address",
406
- name: "token",
407
- type: "address",
408
- },
409
- {
410
- internalType: "uint256",
411
- name: "amount",
412
- type: "uint256",
413
- },
414
- ],
415
- internalType: "struct IPRouterStatic.TokenAmount",
416
- name: "scyBalance",
417
- type: "tuple",
418
- },
419
- {
420
- components: [
421
- {
422
- internalType: "enum ISuperComposableYield.AssetType",
423
- name: "assetType",
424
- type: "uint8",
425
- },
426
- {
427
- internalType: "address",
428
- name: "assetAddress",
429
- type: "address",
430
- },
431
- {
432
- internalType: "uint256",
433
- name: "amount",
434
- type: "uint256",
435
- },
436
- ],
437
- internalType: "struct IPRouterStatic.AssetAmount",
438
- name: "assetBalance",
439
- type: "tuple",
440
- },
441
- ],
442
- internalType: "struct IPRouterStatic.UserMarketInfo[]",
443
- name: "userMarketPositions",
444
- type: "tuple[]",
391
+ internalType: "uint256",
392
+ name: "",
393
+ type: "uint256",
445
394
  },
446
395
  ],
447
- stateMutability: "view",
396
+ stateMutability: "nonpayable",
448
397
  type: "function",
449
398
  },
450
399
  {
451
400
  inputs: [
452
401
  {
453
402
  internalType: "address",
454
- name: "py",
403
+ name: "market",
455
404
  type: "address",
456
405
  },
406
+ {
407
+ internalType: "int256",
408
+ name: "netPtOut",
409
+ type: "int256",
410
+ },
411
+ ],
412
+ name: "calcPriceImpactPt",
413
+ outputs: [
414
+ {
415
+ internalType: "uint256",
416
+ name: "",
417
+ type: "uint256",
418
+ },
419
+ ],
420
+ stateMutability: "nonpayable",
421
+ type: "function",
422
+ },
423
+ {
424
+ inputs: [
457
425
  {
458
426
  internalType: "address",
459
- name: "user",
427
+ name: "market",
460
428
  type: "address",
461
429
  },
430
+ {
431
+ internalType: "int256",
432
+ name: "netPtOut",
433
+ type: "int256",
434
+ },
462
435
  ],
463
- name: "getUserPYInfo",
436
+ name: "calcPriceImpactYt",
464
437
  outputs: [
465
438
  {
466
- components: [
467
- {
468
- internalType: "address",
469
- name: "yt",
470
- type: "address",
471
- },
472
- {
473
- internalType: "address",
474
- name: "pt",
475
- type: "address",
476
- },
477
- {
478
- internalType: "uint256",
479
- name: "ytBalance",
480
- type: "uint256",
481
- },
482
- {
483
- internalType: "uint256",
484
- name: "ptBalance",
485
- type: "uint256",
486
- },
487
- {
488
- components: [
489
- {
490
- internalType: "address",
491
- name: "token",
492
- type: "address",
493
- },
494
- {
495
- internalType: "uint256",
496
- name: "amount",
497
- type: "uint256",
498
- },
499
- ],
500
- internalType: "struct IPRouterStatic.TokenAmount",
501
- name: "unclaimedInterest",
502
- type: "tuple",
503
- },
504
- {
505
- components: [
506
- {
507
- internalType: "address",
508
- name: "token",
509
- type: "address",
510
- },
511
- {
512
- internalType: "uint256",
513
- name: "amount",
514
- type: "uint256",
515
- },
516
- ],
517
- internalType: "struct IPRouterStatic.TokenAmount[]",
518
- name: "unclaimedRewards",
519
- type: "tuple[]",
520
- },
521
- ],
522
- internalType: "struct IPRouterStatic.UserPYInfo",
523
- name: "userPYInfo",
524
- type: "tuple",
439
+ internalType: "uint256",
440
+ name: "",
441
+ type: "uint256",
442
+ },
443
+ ],
444
+ stateMutability: "nonpayable",
445
+ type: "function",
446
+ },
447
+ {
448
+ inputs: [],
449
+ name: "claimOwnership",
450
+ outputs: [],
451
+ stateMutability: "nonpayable",
452
+ type: "function",
453
+ },
454
+ {
455
+ inputs: [
456
+ {
457
+ internalType: "bytes4",
458
+ name: "selector",
459
+ type: "bytes4",
460
+ },
461
+ ],
462
+ name: "facetAddress",
463
+ outputs: [
464
+ {
465
+ internalType: "address",
466
+ name: "",
467
+ type: "address",
525
468
  },
526
469
  ],
527
470
  stateMutability: "view",
@@ -531,196 +474,1598 @@ const _abi = [
531
474
  inputs: [
532
475
  {
533
476
  internalType: "address",
534
- name: "user",
477
+ name: "SY",
535
478
  type: "address",
536
479
  },
537
480
  {
538
- internalType: "address[]",
539
- name: "pys",
540
- type: "address[]",
481
+ internalType: "address",
482
+ name: "tokenIn",
483
+ type: "address",
541
484
  },
542
- ],
543
- name: "getUserPYPositionsByPYs",
544
- outputs: [
545
485
  {
546
- components: [
547
- {
548
- internalType: "address",
549
- name: "yt",
550
- type: "address",
551
- },
486
+ internalType: "address",
487
+ name: "bulk",
488
+ type: "address",
489
+ },
490
+ {
491
+ internalType: "uint256",
492
+ name: "netSyOut",
493
+ type: "uint256",
494
+ },
495
+ ],
496
+ name: "getAmountTokenToMintSy",
497
+ outputs: [
498
+ {
499
+ internalType: "uint256",
500
+ name: "netTokenIn",
501
+ type: "uint256",
502
+ },
503
+ ],
504
+ stateMutability: "view",
505
+ type: "function",
506
+ },
507
+ {
508
+ inputs: [],
509
+ name: "getBulkSellerFactory",
510
+ outputs: [
511
+ {
512
+ internalType: "address",
513
+ name: "",
514
+ type: "address",
515
+ },
516
+ ],
517
+ stateMutability: "view",
518
+ type: "function",
519
+ },
520
+ {
521
+ inputs: [
522
+ {
523
+ internalType: "address",
524
+ name: "token",
525
+ type: "address",
526
+ },
527
+ {
528
+ internalType: "address",
529
+ name: "SY",
530
+ type: "address",
531
+ },
532
+ {
533
+ internalType: "uint256",
534
+ name: "netTokenIn",
535
+ type: "uint256",
536
+ },
537
+ {
538
+ internalType: "uint256",
539
+ name: "netSyIn",
540
+ type: "uint256",
541
+ },
542
+ ],
543
+ name: "getBulkSellerInfo",
544
+ outputs: [
545
+ {
546
+ internalType: "address",
547
+ name: "bulk",
548
+ type: "address",
549
+ },
550
+ {
551
+ internalType: "uint256",
552
+ name: "totalToken",
553
+ type: "uint256",
554
+ },
555
+ {
556
+ internalType: "uint256",
557
+ name: "totalSy",
558
+ type: "uint256",
559
+ },
560
+ ],
561
+ stateMutability: "view",
562
+ type: "function",
563
+ },
564
+ {
565
+ inputs: [],
566
+ name: "getDefaultApproxParams",
567
+ outputs: [
568
+ {
569
+ components: [
570
+ {
571
+ internalType: "uint256",
572
+ name: "guessMin",
573
+ type: "uint256",
574
+ },
575
+ {
576
+ internalType: "uint256",
577
+ name: "guessMax",
578
+ type: "uint256",
579
+ },
580
+ {
581
+ internalType: "uint256",
582
+ name: "guessOffchain",
583
+ type: "uint256",
584
+ },
585
+ {
586
+ internalType: "uint256",
587
+ name: "maxIteration",
588
+ type: "uint256",
589
+ },
590
+ {
591
+ internalType: "uint256",
592
+ name: "eps",
593
+ type: "uint256",
594
+ },
595
+ ],
596
+ internalType: "struct ApproxParams",
597
+ name: "",
598
+ type: "tuple",
599
+ },
600
+ ],
601
+ stateMutability: "view",
602
+ type: "function",
603
+ },
604
+ {
605
+ inputs: [
606
+ {
607
+ internalType: "address",
608
+ name: "market",
609
+ type: "address",
610
+ },
611
+ ],
612
+ name: "getMarketState",
613
+ outputs: [
614
+ {
615
+ internalType: "address",
616
+ name: "pt",
617
+ type: "address",
618
+ },
619
+ {
620
+ internalType: "address",
621
+ name: "yt",
622
+ type: "address",
623
+ },
624
+ {
625
+ internalType: "address",
626
+ name: "sy",
627
+ type: "address",
628
+ },
629
+ {
630
+ internalType: "int256",
631
+ name: "impliedYield",
632
+ type: "int256",
633
+ },
634
+ {
635
+ internalType: "uint256",
636
+ name: "marketExchangeRateExcludeFee",
637
+ type: "uint256",
638
+ },
639
+ {
640
+ components: [
641
+ {
642
+ internalType: "int256",
643
+ name: "totalPt",
644
+ type: "int256",
645
+ },
646
+ {
647
+ internalType: "int256",
648
+ name: "totalSy",
649
+ type: "int256",
650
+ },
651
+ {
652
+ internalType: "int256",
653
+ name: "totalLp",
654
+ type: "int256",
655
+ },
552
656
  {
553
657
  internalType: "address",
554
- name: "pt",
658
+ name: "treasury",
555
659
  type: "address",
556
660
  },
661
+ {
662
+ internalType: "int256",
663
+ name: "scalarRoot",
664
+ type: "int256",
665
+ },
557
666
  {
558
667
  internalType: "uint256",
559
- name: "ytBalance",
668
+ name: "expiry",
560
669
  type: "uint256",
561
670
  },
562
671
  {
563
672
  internalType: "uint256",
564
- name: "ptBalance",
673
+ name: "lnFeeRateRoot",
565
674
  type: "uint256",
566
675
  },
567
676
  {
568
- components: [
569
- {
570
- internalType: "address",
571
- name: "token",
572
- type: "address",
573
- },
574
- {
575
- internalType: "uint256",
576
- name: "amount",
577
- type: "uint256",
578
- },
579
- ],
580
- internalType: "struct IPRouterStatic.TokenAmount",
581
- name: "unclaimedInterest",
582
- type: "tuple",
677
+ internalType: "uint256",
678
+ name: "reserveFeePercent",
679
+ type: "uint256",
583
680
  },
584
681
  {
585
- components: [
586
- {
587
- internalType: "address",
588
- name: "token",
589
- type: "address",
590
- },
591
- {
592
- internalType: "uint256",
593
- name: "amount",
594
- type: "uint256",
595
- },
596
- ],
597
- internalType: "struct IPRouterStatic.TokenAmount[]",
598
- name: "unclaimedRewards",
599
- type: "tuple[]",
682
+ internalType: "uint256",
683
+ name: "lastLnImpliedRate",
684
+ type: "uint256",
600
685
  },
601
686
  ],
602
- internalType: "struct IPRouterStatic.UserPYInfo[]",
603
- name: "userPYPositions",
604
- type: "tuple[]",
687
+ internalType: "struct MarketState",
688
+ name: "state",
689
+ type: "tuple",
690
+ },
691
+ ],
692
+ stateMutability: "nonpayable",
693
+ type: "function",
694
+ },
695
+ {
696
+ inputs: [],
697
+ name: "getOwnerAndPendingOwner",
698
+ outputs: [
699
+ {
700
+ internalType: "address",
701
+ name: "",
702
+ type: "address",
703
+ },
704
+ {
705
+ internalType: "address",
706
+ name: "",
707
+ type: "address",
708
+ },
709
+ ],
710
+ stateMutability: "view",
711
+ type: "function",
712
+ },
713
+ {
714
+ inputs: [
715
+ {
716
+ internalType: "address",
717
+ name: "py",
718
+ type: "address",
719
+ },
720
+ ],
721
+ name: "getPY",
722
+ outputs: [
723
+ {
724
+ internalType: "address",
725
+ name: "pt",
726
+ type: "address",
727
+ },
728
+ {
729
+ internalType: "address",
730
+ name: "yt",
731
+ type: "address",
732
+ },
733
+ ],
734
+ stateMutability: "view",
735
+ type: "function",
736
+ },
737
+ {
738
+ inputs: [
739
+ {
740
+ internalType: "address",
741
+ name: "token",
742
+ type: "address",
743
+ },
744
+ ],
745
+ name: "getTokensInOut",
746
+ outputs: [
747
+ {
748
+ internalType: "address[]",
749
+ name: "tokensIn",
750
+ type: "address[]",
751
+ },
752
+ {
753
+ internalType: "address[]",
754
+ name: "tokensOut",
755
+ type: "address[]",
756
+ },
757
+ ],
758
+ stateMutability: "view",
759
+ type: "function",
760
+ },
761
+ {
762
+ inputs: [
763
+ {
764
+ internalType: "address",
765
+ name: "market",
766
+ type: "address",
767
+ },
768
+ {
769
+ components: [
770
+ {
771
+ internalType: "int256",
772
+ name: "totalPt",
773
+ type: "int256",
774
+ },
775
+ {
776
+ internalType: "int256",
777
+ name: "totalSy",
778
+ type: "int256",
779
+ },
780
+ {
781
+ internalType: "int256",
782
+ name: "totalLp",
783
+ type: "int256",
784
+ },
785
+ {
786
+ internalType: "address",
787
+ name: "treasury",
788
+ type: "address",
789
+ },
790
+ {
791
+ internalType: "int256",
792
+ name: "scalarRoot",
793
+ type: "int256",
794
+ },
795
+ {
796
+ internalType: "uint256",
797
+ name: "expiry",
798
+ type: "uint256",
799
+ },
800
+ {
801
+ internalType: "uint256",
802
+ name: "lnFeeRateRoot",
803
+ type: "uint256",
804
+ },
805
+ {
806
+ internalType: "uint256",
807
+ name: "reserveFeePercent",
808
+ type: "uint256",
809
+ },
810
+ {
811
+ internalType: "uint256",
812
+ name: "lastLnImpliedRate",
813
+ type: "uint256",
814
+ },
815
+ ],
816
+ internalType: "struct MarketState",
817
+ name: "state",
818
+ type: "tuple",
819
+ },
820
+ ],
821
+ name: "getTradeExchangeRateExcludeFee",
822
+ outputs: [
823
+ {
824
+ internalType: "uint256",
825
+ name: "",
826
+ type: "uint256",
827
+ },
828
+ ],
829
+ stateMutability: "nonpayable",
830
+ type: "function",
831
+ },
832
+ {
833
+ inputs: [
834
+ {
835
+ internalType: "address",
836
+ name: "market",
837
+ type: "address",
838
+ },
839
+ {
840
+ internalType: "int256",
841
+ name: "netPtOut",
842
+ type: "int256",
843
+ },
844
+ ],
845
+ name: "getTradeExchangeRateIncludeFee",
846
+ outputs: [
847
+ {
848
+ internalType: "uint256",
849
+ name: "",
850
+ type: "uint256",
851
+ },
852
+ ],
853
+ stateMutability: "nonpayable",
854
+ type: "function",
855
+ },
856
+ {
857
+ inputs: [
858
+ {
859
+ internalType: "address",
860
+ name: "market",
861
+ type: "address",
862
+ },
863
+ {
864
+ internalType: "address",
865
+ name: "user",
866
+ type: "address",
867
+ },
868
+ ],
869
+ name: "getUserMarketInfo",
870
+ outputs: [
871
+ {
872
+ components: [
873
+ {
874
+ components: [
875
+ {
876
+ internalType: "address",
877
+ name: "token",
878
+ type: "address",
879
+ },
880
+ {
881
+ internalType: "uint256",
882
+ name: "amount",
883
+ type: "uint256",
884
+ },
885
+ ],
886
+ internalType: "struct IPActionInfoStatic.TokenAmount",
887
+ name: "lpBalance",
888
+ type: "tuple",
889
+ },
890
+ {
891
+ components: [
892
+ {
893
+ internalType: "address",
894
+ name: "token",
895
+ type: "address",
896
+ },
897
+ {
898
+ internalType: "uint256",
899
+ name: "amount",
900
+ type: "uint256",
901
+ },
902
+ ],
903
+ internalType: "struct IPActionInfoStatic.TokenAmount",
904
+ name: "ptBalance",
905
+ type: "tuple",
906
+ },
907
+ {
908
+ components: [
909
+ {
910
+ internalType: "address",
911
+ name: "token",
912
+ type: "address",
913
+ },
914
+ {
915
+ internalType: "uint256",
916
+ name: "amount",
917
+ type: "uint256",
918
+ },
919
+ ],
920
+ internalType: "struct IPActionInfoStatic.TokenAmount",
921
+ name: "syBalance",
922
+ type: "tuple",
923
+ },
924
+ {
925
+ components: [
926
+ {
927
+ internalType: "address",
928
+ name: "token",
929
+ type: "address",
930
+ },
931
+ {
932
+ internalType: "uint256",
933
+ name: "amount",
934
+ type: "uint256",
935
+ },
936
+ ],
937
+ internalType: "struct IPActionInfoStatic.TokenAmount[]",
938
+ name: "unclaimedRewards",
939
+ type: "tuple[]",
940
+ },
941
+ ],
942
+ internalType: "struct IPActionInfoStatic.UserMarketInfo",
943
+ name: "res",
944
+ type: "tuple",
945
+ },
946
+ ],
947
+ stateMutability: "nonpayable",
948
+ type: "function",
949
+ },
950
+ {
951
+ inputs: [
952
+ {
953
+ internalType: "address",
954
+ name: "py",
955
+ type: "address",
956
+ },
957
+ {
958
+ internalType: "address",
959
+ name: "user",
960
+ type: "address",
961
+ },
962
+ ],
963
+ name: "getUserPYInfo",
964
+ outputs: [
965
+ {
966
+ components: [
967
+ {
968
+ components: [
969
+ {
970
+ internalType: "address",
971
+ name: "token",
972
+ type: "address",
973
+ },
974
+ {
975
+ internalType: "uint256",
976
+ name: "amount",
977
+ type: "uint256",
978
+ },
979
+ ],
980
+ internalType: "struct IPActionInfoStatic.TokenAmount",
981
+ name: "ptBalance",
982
+ type: "tuple",
983
+ },
984
+ {
985
+ components: [
986
+ {
987
+ internalType: "address",
988
+ name: "token",
989
+ type: "address",
990
+ },
991
+ {
992
+ internalType: "uint256",
993
+ name: "amount",
994
+ type: "uint256",
995
+ },
996
+ ],
997
+ internalType: "struct IPActionInfoStatic.TokenAmount",
998
+ name: "ytBalance",
999
+ type: "tuple",
1000
+ },
1001
+ {
1002
+ components: [
1003
+ {
1004
+ internalType: "address",
1005
+ name: "token",
1006
+ type: "address",
1007
+ },
1008
+ {
1009
+ internalType: "uint256",
1010
+ name: "amount",
1011
+ type: "uint256",
1012
+ },
1013
+ ],
1014
+ internalType: "struct IPActionInfoStatic.TokenAmount",
1015
+ name: "unclaimedInterest",
1016
+ type: "tuple",
1017
+ },
1018
+ {
1019
+ components: [
1020
+ {
1021
+ internalType: "address",
1022
+ name: "token",
1023
+ type: "address",
1024
+ },
1025
+ {
1026
+ internalType: "uint256",
1027
+ name: "amount",
1028
+ type: "uint256",
1029
+ },
1030
+ ],
1031
+ internalType: "struct IPActionInfoStatic.TokenAmount[]",
1032
+ name: "unclaimedRewards",
1033
+ type: "tuple[]",
1034
+ },
1035
+ ],
1036
+ internalType: "struct IPActionInfoStatic.UserPYInfo",
1037
+ name: "res",
1038
+ type: "tuple",
1039
+ },
1040
+ ],
1041
+ stateMutability: "nonpayable",
1042
+ type: "function",
1043
+ },
1044
+ {
1045
+ inputs: [
1046
+ {
1047
+ internalType: "address",
1048
+ name: "sy",
1049
+ type: "address",
1050
+ },
1051
+ {
1052
+ internalType: "address",
1053
+ name: "user",
1054
+ type: "address",
1055
+ },
1056
+ ],
1057
+ name: "getUserSYInfo",
1058
+ outputs: [
1059
+ {
1060
+ components: [
1061
+ {
1062
+ components: [
1063
+ {
1064
+ internalType: "address",
1065
+ name: "token",
1066
+ type: "address",
1067
+ },
1068
+ {
1069
+ internalType: "uint256",
1070
+ name: "amount",
1071
+ type: "uint256",
1072
+ },
1073
+ ],
1074
+ internalType: "struct IPActionInfoStatic.TokenAmount",
1075
+ name: "syBalance",
1076
+ type: "tuple",
1077
+ },
1078
+ {
1079
+ components: [
1080
+ {
1081
+ internalType: "address",
1082
+ name: "token",
1083
+ type: "address",
1084
+ },
1085
+ {
1086
+ internalType: "uint256",
1087
+ name: "amount",
1088
+ type: "uint256",
1089
+ },
1090
+ ],
1091
+ internalType: "struct IPActionInfoStatic.TokenAmount[]",
1092
+ name: "unclaimedRewards",
1093
+ type: "tuple[]",
1094
+ },
1095
+ ],
1096
+ internalType: "struct IPActionInfoStatic.UserSYInfo",
1097
+ name: "res",
1098
+ type: "tuple",
1099
+ },
1100
+ ],
1101
+ stateMutability: "nonpayable",
1102
+ type: "function",
1103
+ },
1104
+ {
1105
+ inputs: [
1106
+ {
1107
+ internalType: "address",
1108
+ name: "user",
1109
+ type: "address",
1110
+ },
1111
+ {
1112
+ internalType: "uint128",
1113
+ name: "additionalAmountToLock",
1114
+ type: "uint128",
1115
+ },
1116
+ {
1117
+ internalType: "uint128",
1118
+ name: "newExpiry",
1119
+ type: "uint128",
1120
+ },
1121
+ ],
1122
+ name: "increaseLockPositionStatic",
1123
+ outputs: [
1124
+ {
1125
+ internalType: "uint128",
1126
+ name: "newVeBalance",
1127
+ type: "uint128",
1128
+ },
1129
+ ],
1130
+ stateMutability: "view",
1131
+ type: "function",
1132
+ },
1133
+ {
1134
+ inputs: [
1135
+ {
1136
+ internalType: "address",
1137
+ name: "YT",
1138
+ type: "address",
1139
+ },
1140
+ {
1141
+ internalType: "uint256",
1142
+ name: "netSyToMint",
1143
+ type: "uint256",
1144
+ },
1145
+ ],
1146
+ name: "mintPyFromSyStatic",
1147
+ outputs: [
1148
+ {
1149
+ internalType: "uint256",
1150
+ name: "netPYOut",
1151
+ type: "uint256",
1152
+ },
1153
+ ],
1154
+ stateMutability: "nonpayable",
1155
+ type: "function",
1156
+ },
1157
+ {
1158
+ inputs: [
1159
+ {
1160
+ internalType: "address",
1161
+ name: "YT",
1162
+ type: "address",
1163
+ },
1164
+ {
1165
+ internalType: "address",
1166
+ name: "tokenIn",
1167
+ type: "address",
1168
+ },
1169
+ {
1170
+ internalType: "uint256",
1171
+ name: "netTokenIn",
1172
+ type: "uint256",
1173
+ },
1174
+ {
1175
+ internalType: "address",
1176
+ name: "bulk",
1177
+ type: "address",
1178
+ },
1179
+ ],
1180
+ name: "mintPyFromTokenStatic",
1181
+ outputs: [
1182
+ {
1183
+ internalType: "uint256",
1184
+ name: "netPyOut",
1185
+ type: "uint256",
1186
+ },
1187
+ ],
1188
+ stateMutability: "nonpayable",
1189
+ type: "function",
1190
+ },
1191
+ {
1192
+ inputs: [
1193
+ {
1194
+ internalType: "address",
1195
+ name: "SY",
1196
+ type: "address",
1197
+ },
1198
+ {
1199
+ internalType: "address",
1200
+ name: "tokenIn",
1201
+ type: "address",
1202
+ },
1203
+ {
1204
+ internalType: "uint256",
1205
+ name: "netTokenIn",
1206
+ type: "uint256",
1207
+ },
1208
+ {
1209
+ internalType: "address",
1210
+ name: "bulk",
1211
+ type: "address",
1212
+ },
1213
+ ],
1214
+ name: "mintSyFromTokenStatic",
1215
+ outputs: [
1216
+ {
1217
+ internalType: "uint256",
1218
+ name: "netSyOut",
1219
+ type: "uint256",
1220
+ },
1221
+ ],
1222
+ stateMutability: "view",
1223
+ type: "function",
1224
+ },
1225
+ {
1226
+ inputs: [
1227
+ {
1228
+ internalType: "address",
1229
+ name: "YT",
1230
+ type: "address",
1231
+ },
1232
+ {
1233
+ internalType: "uint256",
1234
+ name: "netPYToRedeem",
1235
+ type: "uint256",
1236
+ },
1237
+ ],
1238
+ name: "redeemPyToSyStatic",
1239
+ outputs: [
1240
+ {
1241
+ internalType: "uint256",
1242
+ name: "netSyOut",
1243
+ type: "uint256",
1244
+ },
1245
+ ],
1246
+ stateMutability: "nonpayable",
1247
+ type: "function",
1248
+ },
1249
+ {
1250
+ inputs: [
1251
+ {
1252
+ internalType: "address",
1253
+ name: "YT",
1254
+ type: "address",
1255
+ },
1256
+ {
1257
+ internalType: "uint256",
1258
+ name: "netPYToRedeem",
1259
+ type: "uint256",
1260
+ },
1261
+ {
1262
+ internalType: "address",
1263
+ name: "tokenOut",
1264
+ type: "address",
1265
+ },
1266
+ {
1267
+ internalType: "address",
1268
+ name: "bulk",
1269
+ type: "address",
1270
+ },
1271
+ ],
1272
+ name: "redeemPyToTokenStatic",
1273
+ outputs: [
1274
+ {
1275
+ internalType: "uint256",
1276
+ name: "netTokenOut",
1277
+ type: "uint256",
1278
+ },
1279
+ ],
1280
+ stateMutability: "nonpayable",
1281
+ type: "function",
1282
+ },
1283
+ {
1284
+ inputs: [
1285
+ {
1286
+ internalType: "address",
1287
+ name: "SY",
1288
+ type: "address",
1289
+ },
1290
+ {
1291
+ internalType: "address",
1292
+ name: "tokenOut",
1293
+ type: "address",
1294
+ },
1295
+ {
1296
+ internalType: "uint256",
1297
+ name: "netSyIn",
1298
+ type: "uint256",
1299
+ },
1300
+ {
1301
+ internalType: "address",
1302
+ name: "bulk",
1303
+ type: "address",
1304
+ },
1305
+ ],
1306
+ name: "redeemSyToTokenStatic",
1307
+ outputs: [
1308
+ {
1309
+ internalType: "uint256",
1310
+ name: "netTokenOut",
1311
+ type: "uint256",
1312
+ },
1313
+ ],
1314
+ stateMutability: "view",
1315
+ type: "function",
1316
+ },
1317
+ {
1318
+ inputs: [
1319
+ {
1320
+ internalType: "address",
1321
+ name: "market",
1322
+ type: "address",
1323
+ },
1324
+ {
1325
+ internalType: "uint256",
1326
+ name: "netLpToRemove",
1327
+ type: "uint256",
1328
+ },
1329
+ ],
1330
+ name: "removeLiquidityDualSyAndPtStatic",
1331
+ outputs: [
1332
+ {
1333
+ internalType: "uint256",
1334
+ name: "netSyOut",
1335
+ type: "uint256",
1336
+ },
1337
+ {
1338
+ internalType: "uint256",
1339
+ name: "netPtOut",
1340
+ type: "uint256",
1341
+ },
1342
+ ],
1343
+ stateMutability: "view",
1344
+ type: "function",
1345
+ },
1346
+ {
1347
+ inputs: [
1348
+ {
1349
+ internalType: "address",
1350
+ name: "market",
1351
+ type: "address",
1352
+ },
1353
+ {
1354
+ internalType: "uint256",
1355
+ name: "netLpToRemove",
1356
+ type: "uint256",
1357
+ },
1358
+ {
1359
+ internalType: "address",
1360
+ name: "tokenOut",
1361
+ type: "address",
1362
+ },
1363
+ {
1364
+ internalType: "address",
1365
+ name: "bulk",
1366
+ type: "address",
1367
+ },
1368
+ ],
1369
+ name: "removeLiquidityDualTokenAndPtStatic",
1370
+ outputs: [
1371
+ {
1372
+ internalType: "uint256",
1373
+ name: "netTokenOut",
1374
+ type: "uint256",
1375
+ },
1376
+ {
1377
+ internalType: "uint256",
1378
+ name: "netPtOut",
1379
+ type: "uint256",
1380
+ },
1381
+ {
1382
+ internalType: "uint256",
1383
+ name: "netSyToRedeem",
1384
+ type: "uint256",
1385
+ },
1386
+ ],
1387
+ stateMutability: "view",
1388
+ type: "function",
1389
+ },
1390
+ {
1391
+ inputs: [
1392
+ {
1393
+ internalType: "address",
1394
+ name: "market",
1395
+ type: "address",
1396
+ },
1397
+ {
1398
+ internalType: "uint256",
1399
+ name: "netLpToRemove",
1400
+ type: "uint256",
1401
+ },
1402
+ ],
1403
+ name: "removeLiquiditySinglePtStatic",
1404
+ outputs: [
1405
+ {
1406
+ internalType: "uint256",
1407
+ name: "netPtOut",
1408
+ type: "uint256",
1409
+ },
1410
+ {
1411
+ internalType: "uint256",
1412
+ name: "netPtFromSwap",
1413
+ type: "uint256",
1414
+ },
1415
+ {
1416
+ internalType: "uint256",
1417
+ name: "netSyFee",
1418
+ type: "uint256",
1419
+ },
1420
+ {
1421
+ internalType: "uint256",
1422
+ name: "priceImpact",
1423
+ type: "uint256",
1424
+ },
1425
+ {
1426
+ internalType: "uint256",
1427
+ name: "exchangeRateAfter",
1428
+ type: "uint256",
1429
+ },
1430
+ {
1431
+ internalType: "uint256",
1432
+ name: "netSyFromBurn",
1433
+ type: "uint256",
1434
+ },
1435
+ {
1436
+ internalType: "uint256",
1437
+ name: "netPtFromBurn",
1438
+ type: "uint256",
1439
+ },
1440
+ ],
1441
+ stateMutability: "nonpayable",
1442
+ type: "function",
1443
+ },
1444
+ {
1445
+ inputs: [
1446
+ {
1447
+ internalType: "address",
1448
+ name: "market",
1449
+ type: "address",
1450
+ },
1451
+ {
1452
+ internalType: "uint256",
1453
+ name: "netLpToRemove",
1454
+ type: "uint256",
1455
+ },
1456
+ ],
1457
+ name: "removeLiquiditySingleSyStatic",
1458
+ outputs: [
1459
+ {
1460
+ internalType: "uint256",
1461
+ name: "netSyOut",
1462
+ type: "uint256",
1463
+ },
1464
+ {
1465
+ internalType: "uint256",
1466
+ name: "netSyFee",
1467
+ type: "uint256",
1468
+ },
1469
+ {
1470
+ internalType: "uint256",
1471
+ name: "priceImpact",
1472
+ type: "uint256",
1473
+ },
1474
+ {
1475
+ internalType: "uint256",
1476
+ name: "exchangeRateAfter",
1477
+ type: "uint256",
1478
+ },
1479
+ {
1480
+ internalType: "uint256",
1481
+ name: "netSyFromBurn",
1482
+ type: "uint256",
1483
+ },
1484
+ {
1485
+ internalType: "uint256",
1486
+ name: "netPtFromBurn",
1487
+ type: "uint256",
1488
+ },
1489
+ {
1490
+ internalType: "uint256",
1491
+ name: "netSyFromSwap",
1492
+ type: "uint256",
1493
+ },
1494
+ ],
1495
+ stateMutability: "nonpayable",
1496
+ type: "function",
1497
+ },
1498
+ {
1499
+ inputs: [
1500
+ {
1501
+ internalType: "address",
1502
+ name: "market",
1503
+ type: "address",
1504
+ },
1505
+ {
1506
+ internalType: "uint256",
1507
+ name: "netLpToRemove",
1508
+ type: "uint256",
1509
+ },
1510
+ {
1511
+ internalType: "address",
1512
+ name: "tokenOut",
1513
+ type: "address",
1514
+ },
1515
+ {
1516
+ internalType: "address",
1517
+ name: "bulk",
1518
+ type: "address",
1519
+ },
1520
+ ],
1521
+ name: "removeLiquiditySingleTokenStatic",
1522
+ outputs: [
1523
+ {
1524
+ internalType: "uint256",
1525
+ name: "netTokenOut",
1526
+ type: "uint256",
1527
+ },
1528
+ {
1529
+ internalType: "uint256",
1530
+ name: "netSyToRedeem",
1531
+ type: "uint256",
1532
+ },
1533
+ {
1534
+ internalType: "uint256",
1535
+ name: "netSyFee",
1536
+ type: "uint256",
1537
+ },
1538
+ {
1539
+ internalType: "uint256",
1540
+ name: "priceImpact",
1541
+ type: "uint256",
1542
+ },
1543
+ {
1544
+ internalType: "uint256",
1545
+ name: "exchangeRateAfter",
1546
+ type: "uint256",
1547
+ },
1548
+ {
1549
+ internalType: "uint256",
1550
+ name: "netSyOut",
1551
+ type: "uint256",
1552
+ },
1553
+ {
1554
+ internalType: "uint256",
1555
+ name: "netSyFromBurn",
1556
+ type: "uint256",
1557
+ },
1558
+ {
1559
+ internalType: "uint256",
1560
+ name: "netPtFromBurn",
1561
+ type: "uint256",
1562
+ },
1563
+ {
1564
+ internalType: "uint256",
1565
+ name: "netSyFromSwap",
1566
+ type: "uint256",
1567
+ },
1568
+ ],
1569
+ stateMutability: "nonpayable",
1570
+ type: "function",
1571
+ },
1572
+ {
1573
+ inputs: [
1574
+ {
1575
+ internalType: "address",
1576
+ name: "_bulkSellerFactory",
1577
+ type: "address",
1578
+ },
1579
+ ],
1580
+ name: "setBulkSellerFactory",
1581
+ outputs: [],
1582
+ stateMutability: "nonpayable",
1583
+ type: "function",
1584
+ },
1585
+ {
1586
+ inputs: [
1587
+ {
1588
+ components: [
1589
+ {
1590
+ internalType: "uint256",
1591
+ name: "guessMin",
1592
+ type: "uint256",
1593
+ },
1594
+ {
1595
+ internalType: "uint256",
1596
+ name: "guessMax",
1597
+ type: "uint256",
1598
+ },
1599
+ {
1600
+ internalType: "uint256",
1601
+ name: "guessOffchain",
1602
+ type: "uint256",
1603
+ },
1604
+ {
1605
+ internalType: "uint256",
1606
+ name: "maxIteration",
1607
+ type: "uint256",
1608
+ },
1609
+ {
1610
+ internalType: "uint256",
1611
+ name: "eps",
1612
+ type: "uint256",
1613
+ },
1614
+ ],
1615
+ internalType: "struct ApproxParams",
1616
+ name: "params",
1617
+ type: "tuple",
1618
+ },
1619
+ ],
1620
+ name: "setDefaultApproxParams",
1621
+ outputs: [],
1622
+ stateMutability: "nonpayable",
1623
+ type: "function",
1624
+ },
1625
+ {
1626
+ inputs: [
1627
+ {
1628
+ components: [
1629
+ {
1630
+ internalType: "address",
1631
+ name: "facet",
1632
+ type: "address",
1633
+ },
1634
+ {
1635
+ internalType: "bytes4[]",
1636
+ name: "selectors",
1637
+ type: "bytes4[]",
1638
+ },
1639
+ ],
1640
+ internalType: "struct IPMiniDiamond.SelectorsToFacet[]",
1641
+ name: "arr",
1642
+ type: "tuple[]",
1643
+ },
1644
+ ],
1645
+ name: "setFacetForSelectors",
1646
+ outputs: [],
1647
+ stateMutability: "nonpayable",
1648
+ type: "function",
1649
+ },
1650
+ {
1651
+ inputs: [
1652
+ {
1653
+ internalType: "address",
1654
+ name: "market",
1655
+ type: "address",
1656
+ },
1657
+ {
1658
+ internalType: "uint256",
1659
+ name: "exactPtIn",
1660
+ type: "uint256",
1661
+ },
1662
+ ],
1663
+ name: "swapExactPtForSyStatic",
1664
+ outputs: [
1665
+ {
1666
+ internalType: "uint256",
1667
+ name: "netSyOut",
1668
+ type: "uint256",
1669
+ },
1670
+ {
1671
+ internalType: "uint256",
1672
+ name: "netSyFee",
1673
+ type: "uint256",
1674
+ },
1675
+ {
1676
+ internalType: "uint256",
1677
+ name: "priceImpact",
1678
+ type: "uint256",
1679
+ },
1680
+ {
1681
+ internalType: "uint256",
1682
+ name: "exchangeRateAfter",
1683
+ type: "uint256",
1684
+ },
1685
+ ],
1686
+ stateMutability: "nonpayable",
1687
+ type: "function",
1688
+ },
1689
+ {
1690
+ inputs: [
1691
+ {
1692
+ internalType: "address",
1693
+ name: "market",
1694
+ type: "address",
1695
+ },
1696
+ {
1697
+ internalType: "uint256",
1698
+ name: "exactPtIn",
1699
+ type: "uint256",
1700
+ },
1701
+ {
1702
+ internalType: "address",
1703
+ name: "tokenOut",
1704
+ type: "address",
1705
+ },
1706
+ {
1707
+ internalType: "address",
1708
+ name: "bulk",
1709
+ type: "address",
1710
+ },
1711
+ ],
1712
+ name: "swapExactPtForTokenStatic",
1713
+ outputs: [
1714
+ {
1715
+ internalType: "uint256",
1716
+ name: "netTokenOut",
1717
+ type: "uint256",
1718
+ },
1719
+ {
1720
+ internalType: "uint256",
1721
+ name: "netSyToRedeem",
1722
+ type: "uint256",
1723
+ },
1724
+ {
1725
+ internalType: "uint256",
1726
+ name: "netSyFee",
1727
+ type: "uint256",
1728
+ },
1729
+ {
1730
+ internalType: "uint256",
1731
+ name: "priceImpact",
1732
+ type: "uint256",
1733
+ },
1734
+ {
1735
+ internalType: "uint256",
1736
+ name: "exchangeRateAfter",
1737
+ type: "uint256",
1738
+ },
1739
+ ],
1740
+ stateMutability: "nonpayable",
1741
+ type: "function",
1742
+ },
1743
+ {
1744
+ inputs: [
1745
+ {
1746
+ internalType: "address",
1747
+ name: "market",
1748
+ type: "address",
1749
+ },
1750
+ {
1751
+ internalType: "uint256",
1752
+ name: "exactPtIn",
1753
+ type: "uint256",
1754
+ },
1755
+ ],
1756
+ name: "swapExactPtForYtStatic",
1757
+ outputs: [
1758
+ {
1759
+ internalType: "uint256",
1760
+ name: "netYtOut",
1761
+ type: "uint256",
1762
+ },
1763
+ {
1764
+ internalType: "uint256",
1765
+ name: "totalPtToSwap",
1766
+ type: "uint256",
1767
+ },
1768
+ {
1769
+ internalType: "uint256",
1770
+ name: "netSyFee",
1771
+ type: "uint256",
1772
+ },
1773
+ {
1774
+ internalType: "uint256",
1775
+ name: "priceImpact",
1776
+ type: "uint256",
1777
+ },
1778
+ {
1779
+ internalType: "uint256",
1780
+ name: "exchangeRateAfter",
1781
+ type: "uint256",
1782
+ },
1783
+ ],
1784
+ stateMutability: "nonpayable",
1785
+ type: "function",
1786
+ },
1787
+ {
1788
+ inputs: [
1789
+ {
1790
+ internalType: "address",
1791
+ name: "market",
1792
+ type: "address",
1793
+ },
1794
+ {
1795
+ internalType: "uint256",
1796
+ name: "exactSyIn",
1797
+ type: "uint256",
1798
+ },
1799
+ ],
1800
+ name: "swapExactSyForPtStatic",
1801
+ outputs: [
1802
+ {
1803
+ internalType: "uint256",
1804
+ name: "netPtOut",
1805
+ type: "uint256",
1806
+ },
1807
+ {
1808
+ internalType: "uint256",
1809
+ name: "netSyFee",
1810
+ type: "uint256",
1811
+ },
1812
+ {
1813
+ internalType: "uint256",
1814
+ name: "priceImpact",
1815
+ type: "uint256",
1816
+ },
1817
+ {
1818
+ internalType: "uint256",
1819
+ name: "exchangeRateAfter",
1820
+ type: "uint256",
1821
+ },
1822
+ ],
1823
+ stateMutability: "nonpayable",
1824
+ type: "function",
1825
+ },
1826
+ {
1827
+ inputs: [
1828
+ {
1829
+ internalType: "address",
1830
+ name: "market",
1831
+ type: "address",
1832
+ },
1833
+ {
1834
+ internalType: "uint256",
1835
+ name: "exactSyIn",
1836
+ type: "uint256",
1837
+ },
1838
+ ],
1839
+ name: "swapExactSyForYtStatic",
1840
+ outputs: [
1841
+ {
1842
+ internalType: "uint256",
1843
+ name: "netYtOut",
1844
+ type: "uint256",
1845
+ },
1846
+ {
1847
+ internalType: "uint256",
1848
+ name: "netSyFee",
1849
+ type: "uint256",
1850
+ },
1851
+ {
1852
+ internalType: "uint256",
1853
+ name: "priceImpact",
1854
+ type: "uint256",
1855
+ },
1856
+ {
1857
+ internalType: "uint256",
1858
+ name: "exchangeRateAfter",
1859
+ type: "uint256",
1860
+ },
1861
+ ],
1862
+ stateMutability: "nonpayable",
1863
+ type: "function",
1864
+ },
1865
+ {
1866
+ inputs: [
1867
+ {
1868
+ internalType: "address",
1869
+ name: "market",
1870
+ type: "address",
1871
+ },
1872
+ {
1873
+ internalType: "address",
1874
+ name: "tokenIn",
1875
+ type: "address",
1876
+ },
1877
+ {
1878
+ internalType: "uint256",
1879
+ name: "amountTokenIn",
1880
+ type: "uint256",
1881
+ },
1882
+ {
1883
+ internalType: "address",
1884
+ name: "bulk",
1885
+ type: "address",
1886
+ },
1887
+ ],
1888
+ name: "swapExactTokenForPtStatic",
1889
+ outputs: [
1890
+ {
1891
+ internalType: "uint256",
1892
+ name: "netPtOut",
1893
+ type: "uint256",
1894
+ },
1895
+ {
1896
+ internalType: "uint256",
1897
+ name: "netSyMinted",
1898
+ type: "uint256",
1899
+ },
1900
+ {
1901
+ internalType: "uint256",
1902
+ name: "netSyFee",
1903
+ type: "uint256",
1904
+ },
1905
+ {
1906
+ internalType: "uint256",
1907
+ name: "priceImpact",
1908
+ type: "uint256",
1909
+ },
1910
+ {
1911
+ internalType: "uint256",
1912
+ name: "exchangeRateAfter",
1913
+ type: "uint256",
1914
+ },
1915
+ ],
1916
+ stateMutability: "nonpayable",
1917
+ type: "function",
1918
+ },
1919
+ {
1920
+ inputs: [
1921
+ {
1922
+ internalType: "address",
1923
+ name: "market",
1924
+ type: "address",
1925
+ },
1926
+ {
1927
+ internalType: "address",
1928
+ name: "tokenIn",
1929
+ type: "address",
1930
+ },
1931
+ {
1932
+ internalType: "uint256",
1933
+ name: "amountTokenIn",
1934
+ type: "uint256",
1935
+ },
1936
+ {
1937
+ internalType: "address",
1938
+ name: "bulk",
1939
+ type: "address",
605
1940
  },
606
1941
  ],
607
- stateMutability: "view",
1942
+ name: "swapExactTokenForYtStatic",
1943
+ outputs: [
1944
+ {
1945
+ internalType: "uint256",
1946
+ name: "netYtOut",
1947
+ type: "uint256",
1948
+ },
1949
+ {
1950
+ internalType: "uint256",
1951
+ name: "netSyMinted",
1952
+ type: "uint256",
1953
+ },
1954
+ {
1955
+ internalType: "uint256",
1956
+ name: "netSyFee",
1957
+ type: "uint256",
1958
+ },
1959
+ {
1960
+ internalType: "uint256",
1961
+ name: "priceImpact",
1962
+ type: "uint256",
1963
+ },
1964
+ {
1965
+ internalType: "uint256",
1966
+ name: "exchangeRateAfter",
1967
+ type: "uint256",
1968
+ },
1969
+ ],
1970
+ stateMutability: "nonpayable",
608
1971
  type: "function",
609
1972
  },
610
1973
  {
611
1974
  inputs: [
612
1975
  {
613
1976
  internalType: "address",
614
- name: "scy",
1977
+ name: "market",
615
1978
  type: "address",
616
1979
  },
617
1980
  {
618
- internalType: "address",
619
- name: "user",
620
- type: "address",
1981
+ internalType: "uint256",
1982
+ name: "exactYtIn",
1983
+ type: "uint256",
621
1984
  },
622
1985
  ],
623
- name: "getUserSCYInfo",
1986
+ name: "swapExactYtForPtStatic",
624
1987
  outputs: [
625
1988
  {
626
1989
  internalType: "uint256",
627
- name: "balance",
1990
+ name: "netPtOut",
628
1991
  type: "uint256",
629
1992
  },
630
1993
  {
631
- components: [
632
- {
633
- internalType: "address",
634
- name: "token",
635
- type: "address",
636
- },
637
- {
638
- internalType: "uint256",
639
- name: "amount",
640
- type: "uint256",
641
- },
642
- ],
643
- internalType: "struct IPRouterStatic.TokenAmount[]",
644
- name: "rewards",
645
- type: "tuple[]",
1994
+ internalType: "uint256",
1995
+ name: "totalPtSwapped",
1996
+ type: "uint256",
1997
+ },
1998
+ {
1999
+ internalType: "uint256",
2000
+ name: "netSyFee",
2001
+ type: "uint256",
2002
+ },
2003
+ {
2004
+ internalType: "uint256",
2005
+ name: "priceImpact",
2006
+ type: "uint256",
2007
+ },
2008
+ {
2009
+ internalType: "uint256",
2010
+ name: "exchangeRateAfter",
2011
+ type: "uint256",
646
2012
  },
647
2013
  ],
648
- stateMutability: "view",
2014
+ stateMutability: "nonpayable",
649
2015
  type: "function",
650
2016
  },
651
2017
  {
652
2018
  inputs: [
653
2019
  {
654
- components: [
655
- {
656
- internalType: "address",
657
- name: "yt",
658
- type: "address",
659
- },
660
- {
661
- internalType: "address",
662
- name: "pt",
663
- type: "address",
664
- },
665
- {
666
- internalType: "uint256",
667
- name: "ytBalance",
668
- type: "uint256",
669
- },
670
- {
671
- internalType: "uint256",
672
- name: "ptBalance",
673
- type: "uint256",
674
- },
675
- {
676
- components: [
677
- {
678
- internalType: "address",
679
- name: "token",
680
- type: "address",
681
- },
682
- {
683
- internalType: "uint256",
684
- name: "amount",
685
- type: "uint256",
686
- },
687
- ],
688
- internalType: "struct IPRouterStatic.TokenAmount",
689
- name: "unclaimedInterest",
690
- type: "tuple",
691
- },
692
- {
693
- components: [
694
- {
695
- internalType: "address",
696
- name: "token",
697
- type: "address",
698
- },
699
- {
700
- internalType: "uint256",
701
- name: "amount",
702
- type: "uint256",
703
- },
704
- ],
705
- internalType: "struct IPRouterStatic.TokenAmount[]",
706
- name: "unclaimedRewards",
707
- type: "tuple[]",
708
- },
709
- ],
710
- internalType: "struct IPRouterStatic.UserPYInfo",
711
- name: "userPYInfo",
712
- type: "tuple",
2020
+ internalType: "address",
2021
+ name: "market",
2022
+ type: "address",
2023
+ },
2024
+ {
2025
+ internalType: "uint256",
2026
+ name: "exactYtIn",
2027
+ type: "uint256",
713
2028
  },
714
2029
  ],
715
- name: "hasPYPosition",
2030
+ name: "swapExactYtForSyStatic",
716
2031
  outputs: [
717
2032
  {
718
- internalType: "bool",
719
- name: "hasPosition",
720
- type: "bool",
2033
+ internalType: "uint256",
2034
+ name: "netSyOut",
2035
+ type: "uint256",
2036
+ },
2037
+ {
2038
+ internalType: "uint256",
2039
+ name: "netSyFee",
2040
+ type: "uint256",
2041
+ },
2042
+ {
2043
+ internalType: "uint256",
2044
+ name: "priceImpact",
2045
+ type: "uint256",
2046
+ },
2047
+ {
2048
+ internalType: "uint256",
2049
+ name: "exchangeRateAfter",
2050
+ type: "uint256",
2051
+ },
2052
+ {
2053
+ internalType: "uint256",
2054
+ name: "netSyOwedInt",
2055
+ type: "uint256",
2056
+ },
2057
+ {
2058
+ internalType: "uint256",
2059
+ name: "netPYToRepaySyOwedInt",
2060
+ type: "uint256",
2061
+ },
2062
+ {
2063
+ internalType: "uint256",
2064
+ name: "netPYToRedeemSyOutInt",
2065
+ type: "uint256",
721
2066
  },
722
2067
  ],
723
- stateMutability: "pure",
2068
+ stateMutability: "nonpayable",
724
2069
  type: "function",
725
2070
  },
726
2071
  {
@@ -730,12 +2075,67 @@ const _abi = [
730
2075
  name: "market",
731
2076
  type: "address",
732
2077
  },
2078
+ {
2079
+ internalType: "uint256",
2080
+ name: "exactYtIn",
2081
+ type: "uint256",
2082
+ },
2083
+ {
2084
+ internalType: "address",
2085
+ name: "tokenOut",
2086
+ type: "address",
2087
+ },
2088
+ {
2089
+ internalType: "address",
2090
+ name: "bulk",
2091
+ type: "address",
2092
+ },
733
2093
  ],
734
- name: "pyIndex",
2094
+ name: "swapExactYtForTokenStatic",
735
2095
  outputs: [
736
2096
  {
737
- internalType: "PYIndex",
738
- name: "index",
2097
+ internalType: "uint256",
2098
+ name: "netTokenOut",
2099
+ type: "uint256",
2100
+ },
2101
+ {
2102
+ internalType: "uint256",
2103
+ name: "netSyToRedeem",
2104
+ type: "uint256",
2105
+ },
2106
+ {
2107
+ internalType: "uint256",
2108
+ name: "netSyFee",
2109
+ type: "uint256",
2110
+ },
2111
+ {
2112
+ internalType: "uint256",
2113
+ name: "priceImpact",
2114
+ type: "uint256",
2115
+ },
2116
+ {
2117
+ internalType: "uint256",
2118
+ name: "exchangeRateAfter",
2119
+ type: "uint256",
2120
+ },
2121
+ {
2122
+ internalType: "uint256",
2123
+ name: "netSyOut",
2124
+ type: "uint256",
2125
+ },
2126
+ {
2127
+ internalType: "uint256",
2128
+ name: "netSyOwedInt",
2129
+ type: "uint256",
2130
+ },
2131
+ {
2132
+ internalType: "uint256",
2133
+ name: "netPYToRepaySyOwedInt",
2134
+ type: "uint256",
2135
+ },
2136
+ {
2137
+ internalType: "uint256",
2138
+ name: "netPYToRedeemSyOutInt",
739
2139
  type: "uint256",
740
2140
  },
741
2141
  ],
@@ -751,24 +2151,34 @@ const _abi = [
751
2151
  },
752
2152
  {
753
2153
  internalType: "uint256",
754
- name: "lpToRemove",
2154
+ name: "exactSyOut",
755
2155
  type: "uint256",
756
2156
  },
757
2157
  ],
758
- name: "removeLiquidityDualScyAndPtStatic",
2158
+ name: "swapPtForExactSyStatic",
759
2159
  outputs: [
760
2160
  {
761
2161
  internalType: "uint256",
762
- name: "netScyOut",
2162
+ name: "netPtIn",
763
2163
  type: "uint256",
764
2164
  },
765
2165
  {
766
2166
  internalType: "uint256",
767
- name: "netPtOut",
2167
+ name: "netSyFee",
2168
+ type: "uint256",
2169
+ },
2170
+ {
2171
+ internalType: "uint256",
2172
+ name: "priceImpact",
2173
+ type: "uint256",
2174
+ },
2175
+ {
2176
+ internalType: "uint256",
2177
+ name: "exchangeRateAfter",
768
2178
  type: "uint256",
769
2179
  },
770
2180
  ],
771
- stateMutability: "view",
2181
+ stateMutability: "nonpayable",
772
2182
  type: "function",
773
2183
  },
774
2184
  {
@@ -780,20 +2190,20 @@ const _abi = [
780
2190
  },
781
2191
  {
782
2192
  internalType: "uint256",
783
- name: "exactPtIn",
2193
+ name: "exactPtOut",
784
2194
  type: "uint256",
785
2195
  },
786
2196
  ],
787
- name: "swapExactPtForScyStatic",
2197
+ name: "swapSyForExactPtStatic",
788
2198
  outputs: [
789
2199
  {
790
2200
  internalType: "uint256",
791
- name: "netScyOut",
2201
+ name: "netSyIn",
792
2202
  type: "uint256",
793
2203
  },
794
2204
  {
795
2205
  internalType: "uint256",
796
- name: "netScyFee",
2206
+ name: "netSyFee",
797
2207
  type: "uint256",
798
2208
  },
799
2209
  {
@@ -801,6 +2211,11 @@ const _abi = [
801
2211
  name: "priceImpact",
802
2212
  type: "uint256",
803
2213
  },
2214
+ {
2215
+ internalType: "uint256",
2216
+ name: "exchangeRateAfter",
2217
+ type: "uint256",
2218
+ },
804
2219
  ],
805
2220
  stateMutability: "nonpayable",
806
2221
  type: "function",
@@ -814,20 +2229,20 @@ const _abi = [
814
2229
  },
815
2230
  {
816
2231
  internalType: "uint256",
817
- name: "exactScyIn",
2232
+ name: "exactYtOut",
818
2233
  type: "uint256",
819
2234
  },
820
2235
  ],
821
- name: "swapExactScyForPtStatic",
2236
+ name: "swapSyForExactYtStatic",
822
2237
  outputs: [
823
2238
  {
824
2239
  internalType: "uint256",
825
- name: "netPtOut",
2240
+ name: "netSyIn",
826
2241
  type: "uint256",
827
2242
  },
828
2243
  {
829
2244
  internalType: "uint256",
830
- name: "netScyFee",
2245
+ name: "netSyFee",
831
2246
  type: "uint256",
832
2247
  },
833
2248
  {
@@ -835,6 +2250,21 @@ const _abi = [
835
2250
  name: "priceImpact",
836
2251
  type: "uint256",
837
2252
  },
2253
+ {
2254
+ internalType: "uint256",
2255
+ name: "exchangeRateAfter",
2256
+ type: "uint256",
2257
+ },
2258
+ {
2259
+ internalType: "uint256",
2260
+ name: "netSyReceivedInt",
2261
+ type: "uint256",
2262
+ },
2263
+ {
2264
+ internalType: "uint256",
2265
+ name: "totalSyNeedInt",
2266
+ type: "uint256",
2267
+ },
838
2268
  ],
839
2269
  stateMutability: "nonpayable",
840
2270
  type: "function",
@@ -848,20 +2278,20 @@ const _abi = [
848
2278
  },
849
2279
  {
850
2280
  internalType: "uint256",
851
- name: "exactPtOut",
2281
+ name: "exactSyOut",
852
2282
  type: "uint256",
853
2283
  },
854
2284
  ],
855
- name: "swapScyForExactPtStatic",
2285
+ name: "swapYtForExactSyStatic",
856
2286
  outputs: [
857
2287
  {
858
2288
  internalType: "uint256",
859
- name: "netScyIn",
2289
+ name: "netYtIn",
860
2290
  type: "uint256",
861
2291
  },
862
2292
  {
863
2293
  internalType: "uint256",
864
- name: "netScyFee",
2294
+ name: "netSyFee",
865
2295
  type: "uint256",
866
2296
  },
867
2297
  {
@@ -869,7 +2299,35 @@ const _abi = [
869
2299
  name: "priceImpact",
870
2300
  type: "uint256",
871
2301
  },
2302
+ {
2303
+ internalType: "uint256",
2304
+ name: "exchangeRateAfter",
2305
+ type: "uint256",
2306
+ },
2307
+ ],
2308
+ stateMutability: "nonpayable",
2309
+ type: "function",
2310
+ },
2311
+ {
2312
+ inputs: [
2313
+ {
2314
+ internalType: "address",
2315
+ name: "newOwner",
2316
+ type: "address",
2317
+ },
2318
+ {
2319
+ internalType: "bool",
2320
+ name: "direct",
2321
+ type: "bool",
2322
+ },
2323
+ {
2324
+ internalType: "bool",
2325
+ name: "renounce",
2326
+ type: "bool",
2327
+ },
872
2328
  ],
2329
+ name: "transferOwnership",
2330
+ outputs: [],
873
2331
  stateMutability: "nonpayable",
874
2332
  type: "function",
875
2333
  },