@pendle/core-v2 1.3.0-mainnet → 1.3.0-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 (792) 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/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  7. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  14. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +3 -3
  16. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  18. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  20. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +39 -0
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  24. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +3 -3
  26. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  29. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  30. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  31. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  32. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  33. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  36. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  38. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  40. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  42. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  44. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  47. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  49. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
  53. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.json +2 -2
  57. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.json +1 -41
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSY.sol/PendleAuraWethAnkrethSY.dbg.json +4 -0
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSY.sol/PendleAuraWethAnkrethSY.json +1192 -0
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +1 -1
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.json +2 -2
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +1 -1
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +2 -41
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +1 -1
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.json +2 -2
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.json +2 -2
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +1 -1
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +1 -1
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.json +2 -2
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +1 -1
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  78. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  79. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  80. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  81. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  82. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  83. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  84. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
  85. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.json +2 -2
  86. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
  87. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.json +2 -2
  88. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
  89. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.json +2 -2
  90. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  91. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.dbg.json +4 -0
  92. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.json +50 -0
  93. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +4 -0
  94. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +1163 -0
  95. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +4 -0
  96. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +974 -0
  97. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  98. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  99. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  100. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  101. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  102. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  103. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  104. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  105. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  106. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  107. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  108. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +4 -0
  109. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.json +66 -0
  110. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +4 -0
  111. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +476 -0
  112. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +4 -0
  113. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +590 -0
  114. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +4 -0
  115. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +1017 -0
  116. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  117. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.json +2 -2
  118. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
  119. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.json +2 -2
  120. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  121. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
  122. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  123. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.json +2 -2
  124. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  125. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.json +2 -2
  126. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
  127. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  128. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.json +2 -2
  129. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  130. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +50 -2
  131. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  132. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  133. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  134. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.json +2 -2
  135. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  136. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  137. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.json +2 -2
  138. package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
  139. package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.json +2 -2
  140. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +1 -1
  141. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
  143. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +1 -1
  144. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +1 -1
  145. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +1 -1
  146. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +1 -1
  147. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +1 -1
  148. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +1 -1
  149. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
  150. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
  151. package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +1 -1
  152. package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +1 -1
  153. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  154. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
  155. package/build/artifacts/contracts/interfaces/Curve/ITriCrvPool.sol/ITriCrvPool.dbg.json +1 -1
  156. package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +4 -0
  157. package/build/artifacts/contracts/interfaces/{IAToken.sol/IAToken.json → GMX/IGMXVault.sol/IGMXVault.json} +130 -74
  158. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +4 -0
  159. package/build/artifacts/contracts/interfaces/{IREDACTEDStaking.sol/IREDACTEDStaking.json → GMX/IGlpManager.sol/IGlpManager.json} +24 -47
  160. package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +4 -0
  161. package/build/artifacts/contracts/interfaces/{IWAvax.sol/IWAvax.json → GMX/IRewardRouterV2.sol/IRewardRouterV2.json} +86 -137
  162. package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.dbg.json +4 -0
  163. package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.json +45 -0
  164. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +4 -0
  165. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.json +48 -0
  166. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
  167. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  168. package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
  169. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +4 -0
  170. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.json +93 -0
  171. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +4 -0
  172. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.json +87 -0
  173. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  174. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.json +19 -0
  175. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  176. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  177. package/build/artifacts/contracts/interfaces/ILooksFeeSharing.sol/ILooksFeeSharing.dbg.json +1 -1
  178. package/build/artifacts/contracts/interfaces/ILooksStaking.sol/ILooksStaking.dbg.json +1 -1
  179. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  180. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +338 -16
  181. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +4 -0
  182. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.json +307 -0
  183. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +4 -0
  184. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.json +269 -0
  185. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +4 -0
  186. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +1260 -0
  187. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  188. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +105 -224
  189. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +4 -0
  190. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +273 -0
  191. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
  192. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.json +56 -12
  193. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +4 -0
  194. package/build/artifacts/contracts/interfaces/{IPActionSwapPTYT.sol/IPActionSwapPTYT.json → IPActionStorageStatic.sol/IPActionStorageStatic.json} +70 -76
  195. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  196. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +52 -8
  197. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  198. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +231 -8
  199. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +4 -0
  200. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.json +40 -0
  201. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  202. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +675 -241
  203. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  204. package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +1 -1
  205. package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +1 -1
  206. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  207. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  208. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  209. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  210. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  211. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +4 -0
  212. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.json +40 -0
  213. package/build/artifacts/contracts/interfaces/IPLiquidityMigrator.sol/IPLiquidityMigrator.dbg.json +4 -0
  214. package/build/artifacts/contracts/interfaces/IPLiquidityMigrator.sol/IPLiquidityMigrator.json +655 -0
  215. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  216. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  217. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  218. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +4 -0
  219. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.json +55 -0
  220. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  221. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.json +1 -1
  222. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  223. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  224. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +4 -0
  225. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +2322 -0
  226. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  227. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  228. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +39 -0
  229. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  230. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  231. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  232. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +4 -0
  233. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.json +679 -0
  234. package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
  235. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  236. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  237. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  238. package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
  239. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  240. package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
  241. package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
  242. package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
  243. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  244. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  245. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +4 -0
  246. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.json +143 -0
  247. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  248. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.json +2 -2
  249. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +4 -0
  250. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +256 -0
  251. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  252. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  253. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  254. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.json +2 -2
  255. package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.dbg.json +4 -0
  256. package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.json +47 -0
  257. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +4 -0
  258. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +30 -0
  259. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +4 -0
  260. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +307 -0
  261. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +4 -0
  262. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +333 -0
  263. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +4 -0
  264. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +1397 -0
  265. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +4 -0
  266. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +310 -0
  267. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +4 -0
  268. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +228 -0
  269. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +4 -0
  270. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +93 -0
  271. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +4 -0
  272. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.json +10 -0
  273. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  274. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +345 -62
  275. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  276. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +107 -260
  277. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  278. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +57 -18
  279. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  280. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +54 -65
  281. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  282. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +342 -44
  283. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  284. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +76 -67
  285. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +4 -0
  286. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +773 -0
  287. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +4 -0
  288. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.json +141 -0
  289. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  290. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json +1 -15
  291. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  292. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  293. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  294. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  295. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  296. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +4 -0
  297. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.json +160 -0
  298. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +4 -0
  299. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.json +10 -0
  300. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +4 -0
  301. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.json +56 -0
  302. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.dbg.json +4 -0
  303. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.json +76 -0
  304. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.dbg.json +4 -0
  305. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.json +76 -0
  306. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
  307. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IAggregationExecutor.sol/IAggregationExecutor.json +65 -0
  308. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol/IExecutorHelper1.dbg.json +4 -0
  309. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol/IExecutorHelper1.json +388 -0
  310. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol/IExecutorHelper2.dbg.json +4 -0
  311. package/build/artifacts/contracts/router/{kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.json → swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol/IExecutorHelper2.json} +13 -8
  312. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IHashflow.sol/IHashflow.dbg.json +4 -0
  313. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IHashflow.sol/IHashflow.json +101 -0
  314. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
  315. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +215 -0
  316. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/KyberHelperArbitrum.sol/KyberHelperArbitrum.dbg.json +4 -0
  317. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/KyberHelperArbitrum.sol/KyberHelperArbitrum.json +10 -0
  318. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol/ScaleDataHelperArbitrum.dbg.json +4 -0
  319. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol/ScaleDataHelperArbitrum.json +10 -0
  320. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
  321. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol/IAggregationExecutor.json +65 -0
  322. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +4 -0
  323. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.json +388 -0
  324. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol/IHashflow.dbg.json +4 -0
  325. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol/IHashflow.json +101 -0
  326. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
  327. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +215 -0
  328. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol/KyberHelperEthereum.dbg.json +4 -0
  329. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol/KyberHelperEthereum.json +10 -0
  330. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol/ScaleDataHelperEthereum.dbg.json +4 -0
  331. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol/ScaleDataHelperEthereum.json +10 -0
  332. package/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol +4 -5
  333. package/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol +3 -6
  334. package/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol +7 -10
  335. package/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol +8 -10
  336. package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +10 -2
  337. package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +3 -5
  338. package/contracts/LiquidityMining/README.md +49 -46
  339. package/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol +9 -14
  340. package/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +4 -10
  341. package/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +23 -36
  342. package/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +18 -24
  343. package/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol +3 -4
  344. package/contracts/LiquidityMining/libraries/VeBalanceLib.sol +20 -26
  345. package/contracts/core/BulkSeller/BulkSeller.sol +1 -5
  346. package/contracts/core/BulkSeller/BulkSellerFactory.sol +4 -5
  347. package/contracts/core/BulkSeller/BulkSellerMathCore.sol +20 -25
  348. package/contracts/core/Market/MarketMathCore.sol +23 -69
  349. package/contracts/core/Market/OracleLib.sol +4 -4
  350. package/contracts/core/Market/PendleGauge.sol +7 -20
  351. package/contracts/core/Market/PendleMarket.sol +5 -15
  352. package/contracts/core/Market/PendleMarketFactory.sol +3 -9
  353. package/contracts/core/RewardManager/RewardManager.sol +5 -7
  354. package/contracts/core/RewardManager/RewardManagerAbstract.sol +4 -4
  355. package/contracts/core/StandardizedYield/PYIndex.sol +7 -36
  356. package/contracts/core/StandardizedYield/SYBase.sol +20 -26
  357. package/contracts/core/StandardizedYield/SYBaseWithRewards.sol +7 -19
  358. package/contracts/core/StandardizedYield/SYUtils.sol +4 -5
  359. package/contracts/core/StandardizedYield/StEthHelper.sol +16 -20
  360. package/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol +14 -24
  361. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSY.sol +127 -0
  362. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol +12 -20
  363. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol +12 -20
  364. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol +1 -5
  365. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol +28 -44
  366. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol +28 -47
  367. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol +6 -10
  368. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol +6 -10
  369. package/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol +13 -22
  370. package/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol +20 -27
  371. package/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol +20 -27
  372. package/contracts/core/StandardizedYield/implementations/Convex/README.md +4 -4
  373. package/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol +32 -40
  374. package/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol +10 -12
  375. package/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol +14 -18
  376. package/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol +32 -48
  377. package/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol +141 -0
  378. package/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol +214 -0
  379. package/contracts/core/StandardizedYield/implementations/GLP/README.md +63 -0
  380. package/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol +112 -0
  381. package/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol +13 -23
  382. package/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol +13 -23
  383. package/contracts/core/YieldContracts/PendleYieldToken.sol +28 -44
  384. package/contracts/core/YieldContractsV2/InterestManagerYTV2.sol +114 -0
  385. package/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol +63 -0
  386. package/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol +200 -0
  387. package/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol +471 -0
  388. package/contracts/core/erc20/PendleERC20.sol +14 -44
  389. package/contracts/core/libraries/ArrayLib.sol +20 -9
  390. package/contracts/core/libraries/BaseSplitCodeFactory.sol +5 -7
  391. package/contracts/core/libraries/BoringOwnableUpgradeable.sol +1 -5
  392. package/contracts/core/libraries/Errors.sol +5 -2
  393. package/contracts/core/libraries/StringLib.sol +14 -20
  394. package/contracts/core/libraries/TokenHelper.sol +11 -26
  395. package/contracts/core/libraries/math/LogExpMath.sol +2 -2
  396. package/contracts/core/libraries/math/Math.sol +3 -15
  397. package/contracts/interfaces/Balancer/IComposableStable.sol +4 -14
  398. package/contracts/interfaces/Balancer/IMetaStablePool.sol +4 -13
  399. package/contracts/interfaces/Balancer/IVault.sol +4 -6
  400. package/contracts/interfaces/ConvexCurve/IBooster.sol +4 -16
  401. package/contracts/interfaces/ConvexCurve/ICrvDepositor.sol +1 -5
  402. package/contracts/interfaces/ConvexCurve/IRewards.sol +1 -4
  403. package/contracts/interfaces/Curve/ICrvPool.sol +12 -11
  404. package/contracts/interfaces/Curve/ITriCrvPool.sol +4 -4
  405. package/contracts/interfaces/GMX/IGMXVault.sol +47 -0
  406. package/contracts/interfaces/GMX/IGlpManager.sol +12 -0
  407. package/contracts/interfaces/GMX/IRewardRouterV2.sol +43 -0
  408. package/contracts/interfaces/GMX/IVaultPriceFeed.sol +11 -0
  409. package/contracts/interfaces/IAddressProvider.sol +7 -0
  410. package/contracts/interfaces/IApeStaking.sol +3 -4
  411. package/contracts/interfaces/IDiamondCut.sol +36 -0
  412. package/contracts/interfaces/IDiamondLoupe.sol +40 -0
  413. package/contracts/interfaces/IERC4626.sol +3 -5
  414. package/contracts/interfaces/IPActionAddRemoveLiq.sol +38 -16
  415. package/contracts/interfaces/IPActionInfoStatic.sol +43 -0
  416. package/contracts/interfaces/IPActionMarketAuxStatic.sol +34 -0
  417. package/contracts/interfaces/IPActionMarketCoreStatic.sol +335 -0
  418. package/contracts/interfaces/IPActionMintRedeem.sol +2 -55
  419. package/contracts/interfaces/IPActionMintRedeemStatic.sol +55 -0
  420. package/contracts/interfaces/IPActionMisc.sol +18 -4
  421. package/contracts/interfaces/IPActionStorageStatic.sol +24 -0
  422. package/contracts/interfaces/IPActionSwapPT.sol +1 -1
  423. package/contracts/interfaces/IPActionSwapYT.sol +28 -4
  424. package/contracts/interfaces/IPActionVePendleStatic.sol +9 -0
  425. package/contracts/interfaces/IPAllAction.sol +5 -3
  426. package/contracts/interfaces/IPBulkSellerSYCallback.sol +1 -5
  427. package/contracts/interfaces/IPFeeDistributor.sol +4 -3
  428. package/contracts/interfaces/IPGaugeController.sol +3 -9
  429. package/contracts/interfaces/IPInterestManagerYT.sol +3 -4
  430. package/contracts/interfaces/IPInterestManagerYTV2.sol +11 -0
  431. package/contracts/interfaces/IPLiquidityMigrator.sol +130 -0
  432. package/contracts/interfaces/IPMarket.sol +5 -16
  433. package/contracts/interfaces/IPMarketFactory.sol +3 -8
  434. package/contracts/interfaces/IPMarketSwapCallback.sol +1 -5
  435. package/contracts/interfaces/IPMiniDiamond.sol +12 -0
  436. package/contracts/interfaces/IPMsgReceiverApp.sol +1 -1
  437. package/contracts/interfaces/IPRouterStatic.sol +19 -0
  438. package/contracts/interfaces/IPVotingController.sol +11 -6
  439. package/contracts/interfaces/IPVotingEscrowMainchain.sol +8 -7
  440. package/contracts/interfaces/IPYieldToken.sol +4 -3
  441. package/contracts/interfaces/IPYieldTokenV2.sol +67 -0
  442. package/contracts/interfaces/IRewardManager.sol +4 -4
  443. package/contracts/interfaces/IStETH.sol +4 -3
  444. package/contracts/interfaces/IStandardizedYield.sol +10 -14
  445. package/contracts/interfaces/IStargateRouter.sol +1 -5
  446. package/contracts/offchain-helpers/AddressProvider.sol +16 -0
  447. package/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol +4 -1
  448. package/contracts/offchain-helpers/Broadcaster.sol +48 -0
  449. package/contracts/offchain-helpers/BulkSellerOffchain.sol +7 -11
  450. package/contracts/offchain-helpers/Multicall2.sol +14 -24
  451. package/contracts/offchain-helpers/PendleMulticall.sol +26 -0
  452. package/contracts/offchain-helpers/router-static/PendleRouterStatic.sol +19 -0
  453. package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +122 -0
  454. package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +165 -0
  455. package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +780 -0
  456. package/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol +158 -0
  457. package/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol +76 -0
  458. package/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol +55 -0
  459. package/contracts/offchain-helpers/router-static/base/StorageLayout.sol +21 -0
  460. package/contracts/router/ActionAddRemoveLiq.sol +118 -24
  461. package/contracts/router/ActionMintRedeem.sol +12 -202
  462. package/contracts/router/ActionMisc.sol +45 -19
  463. package/contracts/router/ActionSwapPT.sol +0 -5
  464. package/contracts/router/ActionSwapYT.sol +109 -13
  465. package/contracts/router/PendleRouter.sol +211 -72
  466. package/contracts/router/PendleRouterHelper.sol +315 -0
  467. package/contracts/router/{ActionCallback.sol → base/ActionBaseCallback.sol} +49 -49
  468. package/contracts/router/base/ActionBaseMintRedeem.sol +108 -64
  469. package/contracts/router/base/CallbackHelper.sol +136 -54
  470. package/contracts/router/base/MarketApproxLib.sol +243 -430
  471. package/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol +39 -0
  472. package/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol +68 -0
  473. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +21 -0
  474. package/contracts/router/swap-aggregator/PendleSwapArbitrum.sol +45 -0
  475. package/contracts/router/swap-aggregator/PendleSwapEthereum.sol +44 -0
  476. package/contracts/router/swap-aggregator/kyberswap/arbitrum/IAggregationExecutor.sol +17 -0
  477. package/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol +195 -0
  478. package/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol +10 -0
  479. package/contracts/router/swap-aggregator/kyberswap/arbitrum/IHashflow.sol +30 -0
  480. package/contracts/router/swap-aggregator/kyberswap/arbitrum/IMetaAggregationRouterV2.sol +41 -0
  481. package/contracts/router/swap-aggregator/kyberswap/arbitrum/KyberHelperArbitrum.sol +200 -0
  482. package/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol +135 -0
  483. package/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol +17 -0
  484. package/contracts/router/swap-aggregator/kyberswap/ethereum/IExecutorHelperEthereum1.sol +191 -0
  485. package/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol +30 -0
  486. package/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol +41 -0
  487. package/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol +201 -0
  488. package/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol +147 -0
  489. package/deployments/43113-core.json +31 -0
  490. package/deployments/43113-markets/APE-30-MARCH.json +10 -0
  491. package/deployments/43113-markets/USDC-FEB-2ND-2024.json +10 -0
  492. package/deployments/43113-markets/USDC-FEB-2ND.json +10 -0
  493. package/deployments/43113-markets/USDC-FEB-4TH.json +10 -0
  494. package/deployments/43113-markets/WETH-FEB-2ND.json +11 -0
  495. package/deployments/43113-markets/WETH-FEB-4TH.json +11 -0
  496. package/deployments/43113-offchain-helper.json +4 -0
  497. package/deployments/43113-testenv.json +22 -0
  498. package/deployments/80001-core.json +30 -0
  499. package/deployments/80001-markets/GLP-DEC-8TH.json +10 -0
  500. package/deployments/80001-markets/USDC-DEC-8TH.json +10 -0
  501. package/deployments/80001-markets/USDC-FEB-4TH.json +10 -0
  502. package/deployments/80001-markets/WETH-FEB-4TH.json +11 -0
  503. package/deployments/80001-offchain-helper.json +4 -0
  504. package/deployments/80001-testenv.json +22 -0
  505. package/package.json +10 -10
  506. package/typechain-types/ActionAddRemoveLiq.ts +203 -23
  507. package/typechain-types/ActionBaseCallback.ts +115 -0
  508. package/typechain-types/ActionInfoStatic.ts +310 -0
  509. package/typechain-types/ActionMarketAuxStatic.ts +350 -0
  510. package/typechain-types/ActionMarketCoreStatic.ts +1485 -0
  511. package/typechain-types/ActionMintRedeem.ts +29 -230
  512. package/typechain-types/ActionMintRedeemStatic.ts +461 -0
  513. package/typechain-types/ActionMisc.ts +77 -27
  514. package/typechain-types/ActionStorageStatic.ts +405 -0
  515. package/typechain-types/ActionSwapPT.ts +26 -31
  516. package/typechain-types/ActionSwapYT.ts +202 -21
  517. package/typechain-types/ActionVePendleStatic.ts +113 -0
  518. package/typechain-types/AddressProvider.ts +280 -0
  519. package/typechain-types/Broadcaster.ts +454 -0
  520. package/typechain-types/GLPPreviewHelper.ts +121 -0
  521. package/typechain-types/GMXPreviewHelper.ts +121 -0
  522. package/typechain-types/I1inchAggregationRouterV5.ts +257 -0
  523. package/typechain-types/IAddressProvider.ts +123 -0
  524. package/typechain-types/IAggregationExecutor.ts +182 -0
  525. package/typechain-types/IChainlinkAggregator.ts +246 -0
  526. package/typechain-types/IDiamondCut.ts +152 -0
  527. package/typechain-types/IDiamondLoupe.ts +190 -0
  528. package/typechain-types/IERC4626.ts +34 -0
  529. package/typechain-types/IExecutorHelper1.ts +643 -0
  530. package/typechain-types/IExecutorHelper2.ts +115 -0
  531. package/typechain-types/IExecutorHelperEthereum1.ts +643 -0
  532. package/typechain-types/IGMXVault.ts +494 -0
  533. package/typechain-types/IGlpManager.ts +165 -0
  534. package/typechain-types/IHashflow.ts +159 -0
  535. package/typechain-types/IKyberSwapAggregationRouterHelper.ts +109 -0
  536. package/typechain-types/IMetaAggregationRouter.ts +213 -0
  537. package/typechain-types/IMetaAggregationRouterV2.ts +221 -0
  538. package/typechain-types/IPActionAddRemoveLiq.ts +213 -14
  539. package/typechain-types/IPActionInfoStatic.ts +310 -0
  540. package/typechain-types/IPActionMarketAuxStatic.ts +350 -0
  541. package/typechain-types/IPActionMarketCoreStatic.ts +1485 -0
  542. package/typechain-types/IPActionMintRedeem.ts +29 -211
  543. package/typechain-types/IPActionMintRedeemStatic.ts +461 -0
  544. package/typechain-types/IPActionMisc.ts +77 -27
  545. package/typechain-types/IPActionStorageStatic.ts +328 -0
  546. package/typechain-types/IPActionSwapPT.ts +26 -12
  547. package/typechain-types/IPActionSwapYT.ts +168 -12
  548. package/typechain-types/IPActionVePendleStatic.ts +113 -0
  549. package/typechain-types/IPAllAction.ts +445 -227
  550. package/typechain-types/IPInterestManagerYTV2.ts +117 -0
  551. package/typechain-types/IPLiquidityMigrator.ts +565 -0
  552. package/typechain-types/IPMiniDiamond.ts +147 -0
  553. package/typechain-types/IPMsgReceiverApp.ts +5 -5
  554. package/typechain-types/IPRouterStatic.ts +2392 -509
  555. package/typechain-types/IPSwapAggregator.ts +126 -0
  556. package/typechain-types/IPVotingController.ts +96 -0
  557. package/typechain-types/IPYieldTokenV2.ts +901 -0
  558. package/typechain-types/IRewardRouterV2.ts +346 -0
  559. package/typechain-types/IStargateLP.ts +306 -0
  560. package/typechain-types/IStargateStaking.ts +232 -0
  561. package/typechain-types/ISwapAggregator.ts +124 -0
  562. package/typechain-types/IVaultPriceFeed.ts +114 -0
  563. package/typechain-types/InputScalingHelper.ts +108 -0
  564. package/typechain-types/InterestManagerYTV2.ts +157 -0
  565. package/typechain-types/PendleAura3EthSY.ts +0 -39
  566. package/typechain-types/PendleAuraCbethWstethSY.ts +0 -39
  567. package/typechain-types/PendleAuraWethAnkrethSY.ts +1523 -0
  568. package/typechain-types/PendleAuraWethWstethSY.ts +0 -39
  569. package/typechain-types/PendleGDaiSY.ts +1229 -0
  570. package/typechain-types/PendleGaugeControllerSidechainUpg.ts +4 -4
  571. package/typechain-types/PendleGlpSY.ts +1463 -0
  572. package/typechain-types/PendleMsgReceiverAppUpg.ts +5 -5
  573. package/typechain-types/PendleMulticall.ts +110 -0
  574. package/typechain-types/PendlePrincipalTokenV2.ts +614 -0
  575. package/typechain-types/PendlePtOracleBase.ts +139 -0
  576. package/typechain-types/PendleRouter.ts +109 -131
  577. package/typechain-types/PendleRouterHelper.ts +647 -0
  578. package/typechain-types/PendleRouterStatic.ts +57 -0
  579. package/typechain-types/PendleStargateLP.ts +1442 -0
  580. package/typechain-types/PendleSwapAggregator.ts +126 -0
  581. package/typechain-types/PendleSwapArbitrum.ts +126 -0
  582. package/typechain-types/PendleSwapEthereum.ts +126 -0
  583. package/typechain-types/PendleYieldContractFactoryV2.ts +801 -0
  584. package/typechain-types/PendleYieldTokenV2.ts +1298 -0
  585. package/typechain-types/PtFraxUsdcOracle.ts +176 -0
  586. package/typechain-types/PtStETHOracle.ts +163 -0
  587. package/typechain-types/RouterStatic.ts +92 -0
  588. package/typechain-types/SwapAggregator.ts +406 -0
  589. package/typechain-types/VotingControllerStorageUpg.ts +96 -0
  590. package/typechain-types/VotingEscrowPendleSidechain.ts +4 -5
  591. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +346 -68
  592. package/typechain-types/factories/ActionBaseCallback__factory.ts +156 -0
  593. package/typechain-types/factories/ActionInfoStatic__factory.ts +360 -0
  594. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +390 -0
  595. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1454 -0
  596. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +367 -0
  597. package/typechain-types/factories/ActionMintRedeem__factory.ts +108 -266
  598. package/typechain-types/factories/ActionMisc__factory.ts +56 -17
  599. package/typechain-types/factories/ActionStorageStatic__factory.ts +281 -0
  600. package/typechain-types/factories/ActionSwapPT__factory.ts +55 -71
  601. package/typechain-types/factories/ActionSwapYT__factory.ts +356 -48
  602. package/typechain-types/factories/ActionVePendleStatic__factory.ts +155 -0
  603. package/typechain-types/factories/AddressProvider__factory.ts +196 -0
  604. package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
  605. package/typechain-types/factories/BaseSplitCodeFactoryContract__factory.ts +1 -1
  606. package/typechain-types/factories/BoringOwnableUpgradeableData__factory.ts +1 -1
  607. package/typechain-types/factories/Broadcaster__factory.ts +311 -0
  608. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  609. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  610. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  611. package/typechain-types/factories/Errors__factory.ts +49 -1
  612. package/typechain-types/factories/GLPPreviewHelper__factory.ts +65 -0
  613. package/typechain-types/factories/GMXPreviewHelper__factory.ts +65 -0
  614. package/typechain-types/factories/I1inchAggregationRouterV5__factory.ts +179 -0
  615. package/typechain-types/factories/IAddressProvider__factory.ts +63 -0
  616. package/typechain-types/factories/IAggregationExecutor__factory.ts +84 -0
  617. package/typechain-types/factories/IChainlinkAggregator__factory.ts +170 -0
  618. package/typechain-types/factories/IDiamondCut__factory.ts +105 -0
  619. package/typechain-types/factories/IDiamondLoupe__factory.ts +99 -0
  620. package/typechain-types/factories/IERC4626__factory.ts +19 -0
  621. package/typechain-types/factories/IExecutorHelper1__factory.ts +403 -0
  622. package/typechain-types/factories/IExecutorHelper2__factory.ts +55 -0
  623. package/typechain-types/factories/IExecutorHelperEthereum1__factory.ts +407 -0
  624. package/typechain-types/factories/IGMXVault__factory.ts +320 -0
  625. package/typechain-types/factories/IGlpManager__factory.ts +81 -0
  626. package/typechain-types/factories/IHashflow__factory.ts +113 -0
  627. package/typechain-types/factories/IKyberSwapAggregationRouterHelper__factory.ts +56 -0
  628. package/typechain-types/factories/IMetaAggregationRouterV2__factory.ts +234 -0
  629. package/typechain-types/factories/IMetaAggregationRouter__factory.ts +202 -0
  630. package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +338 -16
  631. package/typechain-types/factories/IPActionInfoStatic__factory.ts +322 -0
  632. package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +288 -0
  633. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +1279 -0
  634. package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +292 -0
  635. package/typechain-types/factories/IPActionMintRedeem__factory.ts +105 -224
  636. package/typechain-types/factories/IPActionMisc__factory.ts +55 -11
  637. package/typechain-types/factories/IPActionStorageStatic__factory.ts +203 -0
  638. package/typechain-types/factories/IPActionSwapPT__factory.ts +52 -8
  639. package/typechain-types/factories/IPActionSwapYT__factory.ts +231 -8
  640. package/typechain-types/factories/IPActionVePendleStatic__factory.ts +59 -0
  641. package/typechain-types/factories/IPAllAction__factory.ts +675 -241
  642. package/typechain-types/factories/IPInterestManagerYTV2__factory.ts +59 -0
  643. package/typechain-types/factories/IPLiquidityMigrator__factory.ts +677 -0
  644. package/typechain-types/factories/IPMiniDiamond__factory.ts +67 -0
  645. package/typechain-types/factories/IPMsgReceiverApp__factory.ts +1 -1
  646. package/typechain-types/factories/IPRouterStatic__factory.ts +1942 -494
  647. package/typechain-types/factories/IPSwapAggregator__factory.ts +71 -0
  648. package/typechain-types/factories/IPVotingController__factory.ts +39 -0
  649. package/typechain-types/factories/IPYieldTokenV2__factory.ts +694 -0
  650. package/typechain-types/factories/IRewardRouterV2__factory.ts +216 -0
  651. package/typechain-types/factories/IStargateLP__factory.ts +212 -0
  652. package/typechain-types/factories/IStargateStaking__factory.ts +145 -0
  653. package/typechain-types/factories/ISwapAggregator__factory.ts +66 -0
  654. package/typechain-types/factories/IVaultPriceFeed__factory.ts +60 -0
  655. package/typechain-types/factories/InputScalingHelper__factory.ts +88 -0
  656. package/typechain-types/factories/InterestManagerYTV2__factory.ts +81 -0
  657. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -27
  658. package/typechain-types/factories/MetaStableMath__factory.ts +1 -1
  659. package/typechain-types/factories/MetaStablePreview__factory.ts +1 -1
  660. package/typechain-types/factories/Multicall2__factory.ts +1 -1
  661. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  662. package/typechain-types/factories/PendleAura3EthSY__factory.ts +1 -40
  663. package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +1 -40
  664. package/typechain-types/factories/PendleAuraWethAnkrethSY__factory.ts +1265 -0
  665. package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1 -1
  666. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1 -40
  667. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  668. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  669. package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
  670. package/typechain-types/factories/PendleERC20__factory.ts +1 -1
  671. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  672. package/typechain-types/factories/PendleGDaiSY__factory.ts +1035 -0
  673. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  674. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +2 -2
  675. package/typechain-types/factories/PendleGlpSY__factory.ts +1249 -0
  676. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  677. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  678. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  679. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  680. package/typechain-types/factories/PendleMsgReceiverAppUpg__factory.ts +1 -1
  681. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  682. package/typechain-types/factories/PendleMulticall__factory.ts +100 -0
  683. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +564 -0
  684. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  685. package/typechain-types/factories/PendlePtOracleBase__factory.ts +78 -0
  686. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  687. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  688. package/typechain-types/factories/PendleRouterHelper__factory.ts +841 -0
  689. package/typechain-types/factories/PendleRouterStatic__factory.ts +88 -0
  690. package/typechain-types/factories/PendleRouter__factory.ts +75 -74
  691. package/typechain-types/factories/PendleStargateLP__factory.ts +1241 -0
  692. package/typechain-types/factories/PendleSwapAggregator__factory.ts +129 -0
  693. package/typechain-types/factories/PendleSwapArbitrum__factory.ts +129 -0
  694. package/typechain-types/factories/PendleSwapEthereum__factory.ts +129 -0
  695. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  696. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  697. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +674 -0
  698. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  699. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1109 -0
  700. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  701. package/typechain-types/factories/PtFraxUsdcOracle__factory.ts +226 -0
  702. package/typechain-types/factories/PtStETHOracle__factory.ts +201 -0
  703. package/typechain-types/factories/RouterStatic__factory.ts +69 -1
  704. package/typechain-types/factories/SAPE__factory.ts +1 -1
  705. package/typechain-types/factories/SwapAggregator__factory.ts +309 -0
  706. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +39 -0
  707. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  708. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +2 -2
  709. package/typechain-types/hardhat.d.ts +481 -193
  710. package/typechain-types/index.ts +106 -56
  711. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.dbg.json +0 -4
  712. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.json +0 -1296
  713. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.dbg.json +0 -4
  714. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.json +0 -1283
  715. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +0 -4
  716. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.json +0 -10
  717. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +0 -4
  718. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.json +0 -133
  719. package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +0 -4
  720. package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +0 -4
  721. package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.json +0 -87
  722. package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +0 -4
  723. package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.json +0 -59
  724. package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.dbg.json +0 -4
  725. package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.json +0 -34
  726. package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.dbg.json +0 -4
  727. package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.json +0 -162
  728. package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.dbg.json +0 -4
  729. package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.json +0 -87
  730. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +0 -4
  731. package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +0 -4
  732. package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.json +0 -24
  733. package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +0 -4
  734. package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.json +0 -24
  735. package/build/artifacts/contracts/interfaces/IREDACTEDStaking.sol/IREDACTEDStaking.dbg.json +0 -4
  736. package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.dbg.json +0 -4
  737. package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.json +0 -199
  738. package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +0 -4
  739. package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.json +0 -168
  740. package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +0 -4
  741. package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.dbg.json +0 -4
  742. package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.json +0 -132
  743. package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +0 -4
  744. package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.json +0 -148
  745. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +0 -4
  746. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +0 -285
  747. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +0 -4
  748. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +0 -2741
  749. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +0 -4
  750. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +0 -165
  751. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +0 -4
  752. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +0 -343
  753. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +0 -4
  754. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +0 -224
  755. package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.dbg.json +0 -4
  756. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.dbg.json +0 -4
  757. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.json +0 -136
  758. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +0 -4
  759. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.json +0 -24
  760. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol +0 -170
  761. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol +0 -162
  762. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol +0 -289
  763. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol +0 -618
  764. package/contracts/interfaces/IAToken.sol +0 -44
  765. package/contracts/interfaces/IAavePool.sol +0 -41
  766. package/contracts/interfaces/IAaveRewardsController.sol +0 -32
  767. package/contracts/interfaces/IBoringOwnableUpgradeable.sol +0 -10
  768. package/contracts/interfaces/IEulerEToken.sol +0 -60
  769. package/contracts/interfaces/IEulerMarkets.sol +0 -46
  770. package/contracts/interfaces/IPActionSwapPTYT.sol +0 -31
  771. package/contracts/interfaces/IPGovernanceManager.sol +0 -28
  772. package/contracts/interfaces/IPPermissionsV2Upg.sol +0 -28
  773. package/contracts/interfaces/IREDACTEDStaking.sol +0 -35
  774. package/contracts/interfaces/ISAvax.sol +0 -61
  775. package/contracts/interfaces/ISJoe.sol +0 -57
  776. package/contracts/interfaces/IWAvax.sol +0 -34
  777. package/contracts/interfaces/IWXBTRFLY.sol +0 -39
  778. package/contracts/interfaces/IYearnVault.sol +0 -46
  779. package/contracts/offchain-helpers/MarketMathStatic.sol +0 -557
  780. package/contracts/offchain-helpers/RouterStatic.sol +0 -903
  781. package/contracts/router/ActionSwapPTYT.sol +0 -108
  782. package/contracts/router/kyberswap/AggregationRouterHelper.sol +0 -341
  783. package/contracts/router/kyberswap/IAggregatorRouterHelper.sol +0 -10
  784. package/contracts/router/kyberswap/IMultihopRouterEthereum.sol +0 -141
  785. package/contracts/router/kyberswap/KyberSwapHelper.sol +0 -79
  786. package/deployments/1-core.json +0 -30
  787. package/deployments/1-markets/APE-JUNE-29.json +0 -8
  788. package/deployments/1-markets/BALANCER-LP-AURA-RETH-WETH-28DEC.json +0 -11
  789. package/deployments/1-markets/FRAXUSDC-CURVELP-MARCH30.json +0 -11
  790. package/deployments/1-markets/LOOKS-STAKING-MARCH30.json +0 -10
  791. package/deployments/1-markets/STETH-JUNE29.json +0 -10
  792. package/deployments/1-markets/STETH-MARCH30.json +0 -10
@@ -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,1593 @@ 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: "_owner",
702
+ type: "address",
703
+ },
704
+ {
705
+ internalType: "address",
706
+ name: "_pendingOwner",
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: "netSyFee",
1531
+ type: "uint256",
1532
+ },
1533
+ {
1534
+ internalType: "uint256",
1535
+ name: "priceImpact",
1536
+ type: "uint256",
1537
+ },
1538
+ {
1539
+ internalType: "uint256",
1540
+ name: "exchangeRateAfter",
1541
+ type: "uint256",
1542
+ },
1543
+ {
1544
+ internalType: "uint256",
1545
+ name: "netSyOut",
1546
+ type: "uint256",
1547
+ },
1548
+ {
1549
+ internalType: "uint256",
1550
+ name: "netSyFromBurn",
1551
+ type: "uint256",
1552
+ },
1553
+ {
1554
+ internalType: "uint256",
1555
+ name: "netPtFromBurn",
1556
+ type: "uint256",
1557
+ },
1558
+ {
1559
+ internalType: "uint256",
1560
+ name: "netSyFromSwap",
1561
+ type: "uint256",
1562
+ },
1563
+ ],
1564
+ stateMutability: "nonpayable",
1565
+ type: "function",
1566
+ },
1567
+ {
1568
+ inputs: [
1569
+ {
1570
+ internalType: "address",
1571
+ name: "_bulkSellerFactory",
1572
+ type: "address",
1573
+ },
1574
+ ],
1575
+ name: "setBulkSellerFactory",
1576
+ outputs: [],
1577
+ stateMutability: "nonpayable",
1578
+ type: "function",
1579
+ },
1580
+ {
1581
+ inputs: [
1582
+ {
1583
+ components: [
1584
+ {
1585
+ internalType: "uint256",
1586
+ name: "guessMin",
1587
+ type: "uint256",
1588
+ },
1589
+ {
1590
+ internalType: "uint256",
1591
+ name: "guessMax",
1592
+ type: "uint256",
1593
+ },
1594
+ {
1595
+ internalType: "uint256",
1596
+ name: "guessOffchain",
1597
+ type: "uint256",
1598
+ },
1599
+ {
1600
+ internalType: "uint256",
1601
+ name: "maxIteration",
1602
+ type: "uint256",
1603
+ },
1604
+ {
1605
+ internalType: "uint256",
1606
+ name: "eps",
1607
+ type: "uint256",
1608
+ },
1609
+ ],
1610
+ internalType: "struct ApproxParams",
1611
+ name: "params",
1612
+ type: "tuple",
1613
+ },
1614
+ ],
1615
+ name: "setDefaultApproxParams",
1616
+ outputs: [],
1617
+ stateMutability: "nonpayable",
1618
+ type: "function",
1619
+ },
1620
+ {
1621
+ inputs: [
1622
+ {
1623
+ components: [
1624
+ {
1625
+ internalType: "address",
1626
+ name: "facet",
1627
+ type: "address",
1628
+ },
1629
+ {
1630
+ internalType: "bytes4[]",
1631
+ name: "selectors",
1632
+ type: "bytes4[]",
1633
+ },
1634
+ ],
1635
+ internalType: "struct IPMiniDiamond.SelectorsToFacet[]",
1636
+ name: "arr",
1637
+ type: "tuple[]",
1638
+ },
1639
+ ],
1640
+ name: "setFacetForSelectors",
1641
+ outputs: [],
1642
+ stateMutability: "nonpayable",
1643
+ type: "function",
1644
+ },
1645
+ {
1646
+ inputs: [
1647
+ {
1648
+ internalType: "address",
1649
+ name: "market",
1650
+ type: "address",
1651
+ },
1652
+ {
1653
+ internalType: "uint256",
1654
+ name: "exactPtIn",
1655
+ type: "uint256",
1656
+ },
1657
+ ],
1658
+ name: "swapExactPtForSyStatic",
1659
+ outputs: [
1660
+ {
1661
+ internalType: "uint256",
1662
+ name: "netSyOut",
1663
+ type: "uint256",
1664
+ },
1665
+ {
1666
+ internalType: "uint256",
1667
+ name: "netSyFee",
1668
+ type: "uint256",
1669
+ },
1670
+ {
1671
+ internalType: "uint256",
1672
+ name: "priceImpact",
1673
+ type: "uint256",
1674
+ },
1675
+ {
1676
+ internalType: "uint256",
1677
+ name: "exchangeRateAfter",
1678
+ type: "uint256",
1679
+ },
1680
+ ],
1681
+ stateMutability: "nonpayable",
1682
+ type: "function",
1683
+ },
1684
+ {
1685
+ inputs: [
1686
+ {
1687
+ internalType: "address",
1688
+ name: "market",
1689
+ type: "address",
1690
+ },
1691
+ {
1692
+ internalType: "uint256",
1693
+ name: "exactPtIn",
1694
+ type: "uint256",
1695
+ },
1696
+ {
1697
+ internalType: "address",
1698
+ name: "tokenOut",
1699
+ type: "address",
1700
+ },
1701
+ {
1702
+ internalType: "address",
1703
+ name: "bulk",
1704
+ type: "address",
1705
+ },
1706
+ ],
1707
+ name: "swapExactPtForTokenStatic",
1708
+ outputs: [
1709
+ {
1710
+ internalType: "uint256",
1711
+ name: "netTokenOut",
1712
+ type: "uint256",
1713
+ },
1714
+ {
1715
+ internalType: "uint256",
1716
+ name: "netSyToRedeem",
1717
+ type: "uint256",
1718
+ },
1719
+ {
1720
+ internalType: "uint256",
1721
+ name: "netSyFee",
1722
+ type: "uint256",
1723
+ },
1724
+ {
1725
+ internalType: "uint256",
1726
+ name: "priceImpact",
1727
+ type: "uint256",
1728
+ },
1729
+ {
1730
+ internalType: "uint256",
1731
+ name: "exchangeRateAfter",
1732
+ type: "uint256",
1733
+ },
1734
+ ],
1735
+ stateMutability: "nonpayable",
1736
+ type: "function",
1737
+ },
1738
+ {
1739
+ inputs: [
1740
+ {
1741
+ internalType: "address",
1742
+ name: "market",
1743
+ type: "address",
1744
+ },
1745
+ {
1746
+ internalType: "uint256",
1747
+ name: "exactPtIn",
1748
+ type: "uint256",
1749
+ },
1750
+ ],
1751
+ name: "swapExactPtForYtStatic",
1752
+ outputs: [
1753
+ {
1754
+ internalType: "uint256",
1755
+ name: "netYtOut",
1756
+ type: "uint256",
1757
+ },
1758
+ {
1759
+ internalType: "uint256",
1760
+ name: "totalPtToSwap",
1761
+ type: "uint256",
1762
+ },
1763
+ {
1764
+ internalType: "uint256",
1765
+ name: "netSyFee",
1766
+ type: "uint256",
1767
+ },
1768
+ {
1769
+ internalType: "uint256",
1770
+ name: "priceImpact",
1771
+ type: "uint256",
1772
+ },
1773
+ {
1774
+ internalType: "uint256",
1775
+ name: "exchangeRateAfter",
1776
+ type: "uint256",
1777
+ },
1778
+ ],
1779
+ stateMutability: "nonpayable",
1780
+ type: "function",
1781
+ },
1782
+ {
1783
+ inputs: [
1784
+ {
1785
+ internalType: "address",
1786
+ name: "market",
1787
+ type: "address",
1788
+ },
1789
+ {
1790
+ internalType: "uint256",
1791
+ name: "exactSyIn",
1792
+ type: "uint256",
1793
+ },
1794
+ ],
1795
+ name: "swapExactSyForPtStatic",
1796
+ outputs: [
1797
+ {
1798
+ internalType: "uint256",
1799
+ name: "netPtOut",
1800
+ type: "uint256",
1801
+ },
1802
+ {
1803
+ internalType: "uint256",
1804
+ name: "netSyFee",
1805
+ type: "uint256",
1806
+ },
1807
+ {
1808
+ internalType: "uint256",
1809
+ name: "priceImpact",
1810
+ type: "uint256",
1811
+ },
1812
+ {
1813
+ internalType: "uint256",
1814
+ name: "exchangeRateAfter",
1815
+ type: "uint256",
1816
+ },
1817
+ ],
1818
+ stateMutability: "nonpayable",
1819
+ type: "function",
1820
+ },
1821
+ {
1822
+ inputs: [
1823
+ {
1824
+ internalType: "address",
1825
+ name: "market",
1826
+ type: "address",
1827
+ },
1828
+ {
1829
+ internalType: "uint256",
1830
+ name: "exactSyIn",
1831
+ type: "uint256",
1832
+ },
1833
+ ],
1834
+ name: "swapExactSyForYtStatic",
1835
+ outputs: [
1836
+ {
1837
+ internalType: "uint256",
1838
+ name: "netYtOut",
1839
+ type: "uint256",
1840
+ },
1841
+ {
1842
+ internalType: "uint256",
1843
+ name: "netSyFee",
1844
+ type: "uint256",
1845
+ },
1846
+ {
1847
+ internalType: "uint256",
1848
+ name: "priceImpact",
1849
+ type: "uint256",
1850
+ },
1851
+ {
1852
+ internalType: "uint256",
1853
+ name: "exchangeRateAfter",
1854
+ type: "uint256",
1855
+ },
1856
+ ],
1857
+ stateMutability: "nonpayable",
1858
+ type: "function",
1859
+ },
1860
+ {
1861
+ inputs: [
1862
+ {
1863
+ internalType: "address",
1864
+ name: "market",
1865
+ type: "address",
1866
+ },
1867
+ {
1868
+ internalType: "address",
1869
+ name: "tokenIn",
1870
+ type: "address",
1871
+ },
1872
+ {
1873
+ internalType: "uint256",
1874
+ name: "amountTokenIn",
1875
+ type: "uint256",
1876
+ },
1877
+ {
1878
+ internalType: "address",
1879
+ name: "bulk",
1880
+ type: "address",
1881
+ },
1882
+ ],
1883
+ name: "swapExactTokenForPtStatic",
1884
+ outputs: [
1885
+ {
1886
+ internalType: "uint256",
1887
+ name: "netPtOut",
1888
+ type: "uint256",
1889
+ },
1890
+ {
1891
+ internalType: "uint256",
1892
+ name: "netSyMinted",
1893
+ type: "uint256",
1894
+ },
1895
+ {
1896
+ internalType: "uint256",
1897
+ name: "netSyFee",
1898
+ type: "uint256",
1899
+ },
1900
+ {
1901
+ internalType: "uint256",
1902
+ name: "priceImpact",
1903
+ type: "uint256",
1904
+ },
1905
+ {
1906
+ internalType: "uint256",
1907
+ name: "exchangeRateAfter",
1908
+ type: "uint256",
1909
+ },
1910
+ ],
1911
+ stateMutability: "nonpayable",
1912
+ type: "function",
1913
+ },
1914
+ {
1915
+ inputs: [
1916
+ {
1917
+ internalType: "address",
1918
+ name: "market",
1919
+ type: "address",
1920
+ },
1921
+ {
1922
+ internalType: "address",
1923
+ name: "tokenIn",
1924
+ type: "address",
1925
+ },
1926
+ {
1927
+ internalType: "uint256",
1928
+ name: "amountTokenIn",
1929
+ type: "uint256",
1930
+ },
1931
+ {
1932
+ internalType: "address",
1933
+ name: "bulk",
1934
+ type: "address",
605
1935
  },
606
1936
  ],
607
- stateMutability: "view",
1937
+ name: "swapExactTokenForYtStatic",
1938
+ outputs: [
1939
+ {
1940
+ internalType: "uint256",
1941
+ name: "netYtOut",
1942
+ type: "uint256",
1943
+ },
1944
+ {
1945
+ internalType: "uint256",
1946
+ name: "netSyMinted",
1947
+ type: "uint256",
1948
+ },
1949
+ {
1950
+ internalType: "uint256",
1951
+ name: "netSyFee",
1952
+ type: "uint256",
1953
+ },
1954
+ {
1955
+ internalType: "uint256",
1956
+ name: "priceImpact",
1957
+ type: "uint256",
1958
+ },
1959
+ {
1960
+ internalType: "uint256",
1961
+ name: "exchangeRateAfter",
1962
+ type: "uint256",
1963
+ },
1964
+ ],
1965
+ stateMutability: "nonpayable",
608
1966
  type: "function",
609
1967
  },
610
1968
  {
611
1969
  inputs: [
612
1970
  {
613
1971
  internalType: "address",
614
- name: "scy",
1972
+ name: "market",
615
1973
  type: "address",
616
1974
  },
617
1975
  {
618
- internalType: "address",
619
- name: "user",
620
- type: "address",
1976
+ internalType: "uint256",
1977
+ name: "exactYtIn",
1978
+ type: "uint256",
621
1979
  },
622
1980
  ],
623
- name: "getUserSCYInfo",
1981
+ name: "swapExactYtForPtStatic",
624
1982
  outputs: [
625
1983
  {
626
1984
  internalType: "uint256",
627
- name: "balance",
1985
+ name: "netPtOut",
628
1986
  type: "uint256",
629
1987
  },
630
1988
  {
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[]",
1989
+ internalType: "uint256",
1990
+ name: "totalPtSwapped",
1991
+ type: "uint256",
1992
+ },
1993
+ {
1994
+ internalType: "uint256",
1995
+ name: "netSyFee",
1996
+ type: "uint256",
1997
+ },
1998
+ {
1999
+ internalType: "uint256",
2000
+ name: "priceImpact",
2001
+ type: "uint256",
2002
+ },
2003
+ {
2004
+ internalType: "uint256",
2005
+ name: "exchangeRateAfter",
2006
+ type: "uint256",
646
2007
  },
647
2008
  ],
648
- stateMutability: "view",
2009
+ stateMutability: "nonpayable",
649
2010
  type: "function",
650
2011
  },
651
2012
  {
652
2013
  inputs: [
653
2014
  {
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",
2015
+ internalType: "address",
2016
+ name: "market",
2017
+ type: "address",
2018
+ },
2019
+ {
2020
+ internalType: "uint256",
2021
+ name: "exactYtIn",
2022
+ type: "uint256",
713
2023
  },
714
2024
  ],
715
- name: "hasPYPosition",
2025
+ name: "swapExactYtForSyStatic",
716
2026
  outputs: [
717
2027
  {
718
- internalType: "bool",
719
- name: "hasPosition",
720
- type: "bool",
2028
+ internalType: "uint256",
2029
+ name: "netSyOut",
2030
+ type: "uint256",
2031
+ },
2032
+ {
2033
+ internalType: "uint256",
2034
+ name: "netSyFee",
2035
+ type: "uint256",
2036
+ },
2037
+ {
2038
+ internalType: "uint256",
2039
+ name: "priceImpact",
2040
+ type: "uint256",
2041
+ },
2042
+ {
2043
+ internalType: "uint256",
2044
+ name: "exchangeRateAfter",
2045
+ type: "uint256",
2046
+ },
2047
+ {
2048
+ internalType: "uint256",
2049
+ name: "netSyOwedInt",
2050
+ type: "uint256",
2051
+ },
2052
+ {
2053
+ internalType: "uint256",
2054
+ name: "netPYToRepaySyOwedInt",
2055
+ type: "uint256",
2056
+ },
2057
+ {
2058
+ internalType: "uint256",
2059
+ name: "netPYToRedeemSyOutInt",
2060
+ type: "uint256",
721
2061
  },
722
2062
  ],
723
- stateMutability: "pure",
2063
+ stateMutability: "nonpayable",
724
2064
  type: "function",
725
2065
  },
726
2066
  {
@@ -730,12 +2070,62 @@ const _abi = [
730
2070
  name: "market",
731
2071
  type: "address",
732
2072
  },
2073
+ {
2074
+ internalType: "uint256",
2075
+ name: "exactYtIn",
2076
+ type: "uint256",
2077
+ },
2078
+ {
2079
+ internalType: "address",
2080
+ name: "tokenOut",
2081
+ type: "address",
2082
+ },
2083
+ {
2084
+ internalType: "address",
2085
+ name: "bulk",
2086
+ type: "address",
2087
+ },
733
2088
  ],
734
- name: "pyIndex",
2089
+ name: "swapExactYtForTokenStatic",
735
2090
  outputs: [
736
2091
  {
737
- internalType: "PYIndex",
738
- name: "index",
2092
+ internalType: "uint256",
2093
+ name: "netTokenOut",
2094
+ type: "uint256",
2095
+ },
2096
+ {
2097
+ internalType: "uint256",
2098
+ name: "netSyFee",
2099
+ type: "uint256",
2100
+ },
2101
+ {
2102
+ internalType: "uint256",
2103
+ name: "priceImpact",
2104
+ type: "uint256",
2105
+ },
2106
+ {
2107
+ internalType: "uint256",
2108
+ name: "exchangeRateAfter",
2109
+ type: "uint256",
2110
+ },
2111
+ {
2112
+ internalType: "uint256",
2113
+ name: "netSyOut",
2114
+ type: "uint256",
2115
+ },
2116
+ {
2117
+ internalType: "uint256",
2118
+ name: "netSyOwedInt",
2119
+ type: "uint256",
2120
+ },
2121
+ {
2122
+ internalType: "uint256",
2123
+ name: "netPYToRepaySyOwedInt",
2124
+ type: "uint256",
2125
+ },
2126
+ {
2127
+ internalType: "uint256",
2128
+ name: "netPYToRedeemSyOutInt",
739
2129
  type: "uint256",
740
2130
  },
741
2131
  ],
@@ -751,24 +2141,34 @@ const _abi = [
751
2141
  },
752
2142
  {
753
2143
  internalType: "uint256",
754
- name: "lpToRemove",
2144
+ name: "exactSyOut",
755
2145
  type: "uint256",
756
2146
  },
757
2147
  ],
758
- name: "removeLiquidityDualScyAndPtStatic",
2148
+ name: "swapPtForExactSyStatic",
759
2149
  outputs: [
760
2150
  {
761
2151
  internalType: "uint256",
762
- name: "netScyOut",
2152
+ name: "netPtIn",
763
2153
  type: "uint256",
764
2154
  },
765
2155
  {
766
2156
  internalType: "uint256",
767
- name: "netPtOut",
2157
+ name: "netSyFee",
2158
+ type: "uint256",
2159
+ },
2160
+ {
2161
+ internalType: "uint256",
2162
+ name: "priceImpact",
2163
+ type: "uint256",
2164
+ },
2165
+ {
2166
+ internalType: "uint256",
2167
+ name: "exchangeRateAfter",
768
2168
  type: "uint256",
769
2169
  },
770
2170
  ],
771
- stateMutability: "view",
2171
+ stateMutability: "nonpayable",
772
2172
  type: "function",
773
2173
  },
774
2174
  {
@@ -780,20 +2180,20 @@ const _abi = [
780
2180
  },
781
2181
  {
782
2182
  internalType: "uint256",
783
- name: "exactPtIn",
2183
+ name: "exactPtOut",
784
2184
  type: "uint256",
785
2185
  },
786
2186
  ],
787
- name: "swapExactPtForScyStatic",
2187
+ name: "swapSyForExactPtStatic",
788
2188
  outputs: [
789
2189
  {
790
2190
  internalType: "uint256",
791
- name: "netScyOut",
2191
+ name: "netSyIn",
792
2192
  type: "uint256",
793
2193
  },
794
2194
  {
795
2195
  internalType: "uint256",
796
- name: "netScyFee",
2196
+ name: "netSyFee",
797
2197
  type: "uint256",
798
2198
  },
799
2199
  {
@@ -801,6 +2201,11 @@ const _abi = [
801
2201
  name: "priceImpact",
802
2202
  type: "uint256",
803
2203
  },
2204
+ {
2205
+ internalType: "uint256",
2206
+ name: "exchangeRateAfter",
2207
+ type: "uint256",
2208
+ },
804
2209
  ],
805
2210
  stateMutability: "nonpayable",
806
2211
  type: "function",
@@ -814,20 +2219,20 @@ const _abi = [
814
2219
  },
815
2220
  {
816
2221
  internalType: "uint256",
817
- name: "exactScyIn",
2222
+ name: "exactYtOut",
818
2223
  type: "uint256",
819
2224
  },
820
2225
  ],
821
- name: "swapExactScyForPtStatic",
2226
+ name: "swapSyForExactYtStatic",
822
2227
  outputs: [
823
2228
  {
824
2229
  internalType: "uint256",
825
- name: "netPtOut",
2230
+ name: "netSyIn",
826
2231
  type: "uint256",
827
2232
  },
828
2233
  {
829
2234
  internalType: "uint256",
830
- name: "netScyFee",
2235
+ name: "netSyFee",
831
2236
  type: "uint256",
832
2237
  },
833
2238
  {
@@ -835,6 +2240,21 @@ const _abi = [
835
2240
  name: "priceImpact",
836
2241
  type: "uint256",
837
2242
  },
2243
+ {
2244
+ internalType: "uint256",
2245
+ name: "exchangeRateAfter",
2246
+ type: "uint256",
2247
+ },
2248
+ {
2249
+ internalType: "uint256",
2250
+ name: "netSyReceivedInt",
2251
+ type: "uint256",
2252
+ },
2253
+ {
2254
+ internalType: "uint256",
2255
+ name: "totalSyNeedInt",
2256
+ type: "uint256",
2257
+ },
838
2258
  ],
839
2259
  stateMutability: "nonpayable",
840
2260
  type: "function",
@@ -848,20 +2268,20 @@ const _abi = [
848
2268
  },
849
2269
  {
850
2270
  internalType: "uint256",
851
- name: "exactPtOut",
2271
+ name: "exactSyOut",
852
2272
  type: "uint256",
853
2273
  },
854
2274
  ],
855
- name: "swapScyForExactPtStatic",
2275
+ name: "swapYtForExactSyStatic",
856
2276
  outputs: [
857
2277
  {
858
2278
  internalType: "uint256",
859
- name: "netScyIn",
2279
+ name: "netYtIn",
860
2280
  type: "uint256",
861
2281
  },
862
2282
  {
863
2283
  internalType: "uint256",
864
- name: "netScyFee",
2284
+ name: "netSyFee",
865
2285
  type: "uint256",
866
2286
  },
867
2287
  {
@@ -869,7 +2289,35 @@ const _abi = [
869
2289
  name: "priceImpact",
870
2290
  type: "uint256",
871
2291
  },
2292
+ {
2293
+ internalType: "uint256",
2294
+ name: "exchangeRateAfter",
2295
+ type: "uint256",
2296
+ },
2297
+ ],
2298
+ stateMutability: "nonpayable",
2299
+ type: "function",
2300
+ },
2301
+ {
2302
+ inputs: [
2303
+ {
2304
+ internalType: "address",
2305
+ name: "newOwner",
2306
+ type: "address",
2307
+ },
2308
+ {
2309
+ internalType: "bool",
2310
+ name: "direct",
2311
+ type: "bool",
2312
+ },
2313
+ {
2314
+ internalType: "bool",
2315
+ name: "renounce",
2316
+ type: "bool",
2317
+ },
872
2318
  ],
2319
+ name: "transferOwnership",
2320
+ outputs: [],
873
2321
  stateMutability: "nonpayable",
874
2322
  type: "function",
875
2323
  },