@pendle/core-v2 6.7.0 → 6.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (680) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.json +2 -2
  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/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.json +2 -2
  13. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -2
  15. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -2
  17. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  19. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  24. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  28. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  29. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.json +2 -2
  30. package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.dbg.json +1 -1
  31. package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.json +2 -2
  32. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  34. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  36. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.json +2 -2
  39. package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.json +5 -5
  41. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
  45. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.json +2 -2
  47. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  50. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.json +2 -2
  52. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  54. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.json +2 -2
  56. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
  58. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.json +2 -2
  60. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.json +2 -2
  62. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.json +2 -2
  64. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableV2.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  66. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +2 -2
  67. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  68. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.json +2 -2
  69. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  70. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.json +2 -2
  71. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  72. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.json +2 -2
  73. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  74. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  75. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.json +2 -2
  76. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.json +2 -2
  78. package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.dbg.json +1 -1
  79. package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.json +2 -2
  80. package/build/artifacts/contracts/cross-chain/OFTPTSwapper.sol/OFTPTSwapper.dbg.json +4 -0
  81. package/build/artifacts/contracts/cross-chain/OFTPTSwapper.sol/OFTPTSwapper.json +99 -0
  82. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.dbg.json +1 -1
  83. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.json +2 -2
  84. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +1 -1
  85. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.json +2 -2
  86. package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.dbg.json +1 -1
  87. package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.json +2 -2
  88. package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +1 -1
  89. package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.json +2 -2
  90. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.dbg.json +1 -1
  91. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.json +2 -2
  92. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
  93. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.json +2 -2
  94. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.dbg.json +1 -1
  95. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.json +2 -2
  96. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.dbg.json +1 -1
  97. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.json +2 -2
  98. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
  99. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.json +2 -2
  100. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +1 -1
  101. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.json +2 -2
  102. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
  103. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +2 -2
  104. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +1 -1
  105. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  106. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
  107. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarket.dbg.json +4 -0
  113. package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarket.json +578 -0
  114. package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarketEvents.dbg.json +4 -0
  115. package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarketEvents.json +160 -0
  116. package/build/artifacts/contracts/interfaces/IMoneyMarketView.sol/IMoneyMarketView.dbg.json +4 -0
  117. package/build/artifacts/contracts/interfaces/IMoneyMarketView.sol/IMoneyMarketView.json +238 -0
  118. package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  136. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  137. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  139. package/build/artifacts/contracts/interfaces/IPBridgeDataVerifier.sol/IPBridgeDataVerifier.dbg.json +4 -0
  140. package/build/artifacts/contracts/interfaces/IPBridgeDataVerifier.sol/IPBridgeDataVerifier.json +81 -0
  141. package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.dbg.json +1 -1
  143. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
  144. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
  145. package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
  146. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
  147. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
  148. package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
  149. package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
  150. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +1 -1
  151. package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +1 -1
  152. package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +1 -1
  153. package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
  154. package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
  155. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  156. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  157. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
  158. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.dbg.json +1 -1
  159. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  160. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  161. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
  162. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  163. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  164. package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
  165. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  166. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  167. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  168. package/build/artifacts/contracts/interfaces/IPLoopPositionBox.sol/IPLoopPositionBox.dbg.json +4 -0
  169. package/build/artifacts/contracts/interfaces/IPLoopPositionBox.sol/IPLoopPositionBox.json +170 -0
  170. package/build/artifacts/contracts/interfaces/IPLoopPositionBoxFactory.sol/IPLoopPositionBoxFactory.dbg.json +4 -0
  171. package/build/artifacts/contracts/interfaces/IPLoopPositionBoxFactory.sol/IPLoopPositionBoxFactory.json +377 -0
  172. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  173. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  174. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  175. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
  176. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  177. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  178. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  179. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
  180. package/build/artifacts/contracts/interfaces/IPOFTPTSwapper.sol/IPOFTPTSwapper.dbg.json +4 -0
  181. package/build/artifacts/contracts/interfaces/{IPSwapHelper.sol/IPSwapHelper.json → IPOFTPTSwapper.sol/IPOFTPTSwapper.json} +2 -2
  182. package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
  183. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
  184. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.dbg.json +4 -0
  185. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.json +2476 -0
  186. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooperEIP712Types.dbg.json +4 -0
  187. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooperEIP712Types.json +10 -0
  188. package/build/artifacts/contracts/interfaces/IPPTLooperView.sol/IPPTLooperView.dbg.json +4 -0
  189. package/build/artifacts/contracts/interfaces/IPPTLooperView.sol/IPPTLooperView.json +209 -0
  190. package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
  191. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
  192. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  193. package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
  194. package/build/artifacts/contracts/interfaces/IPPostPtLoopStateChecker.sol/IPPostPtLoopStateChecker.dbg.json +4 -0
  195. package/build/artifacts/contracts/interfaces/IPPostPtLoopStateChecker.sol/IPPostPtLoopStateChecker.json +29 -0
  196. package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
  197. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  198. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
  199. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  200. package/build/artifacts/contracts/interfaces/IPStakedPendle.sol/IPStakedPendle.dbg.json +1 -1
  201. package/build/artifacts/contracts/interfaces/IPStaticQuoter.sol/IPStaticQuoter.dbg.json +4 -0
  202. package/build/artifacts/contracts/interfaces/IPStaticQuoter.sol/IPStaticQuoter.json +55 -0
  203. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
  204. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  205. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  206. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  207. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  208. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  209. package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
  210. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  211. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  212. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  213. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  214. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  215. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
  216. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  217. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  218. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
  219. package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +1 -1
  220. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
  221. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.json +2 -2
  222. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  223. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.json +2 -2
  224. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
  225. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
  226. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
  227. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
  228. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
  229. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.json +2 -2
  230. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.dbg.json +1 -1
  231. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  232. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.json +2 -2
  233. package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
  234. package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.json +2 -2
  235. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  236. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.json +2 -2
  237. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  238. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
  239. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
  240. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.json +2 -2
  241. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
  242. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  243. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
  244. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
  245. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
  246. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  247. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.json +2 -2
  248. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
  249. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.json +2 -2
  250. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
  251. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.json +2 -2
  252. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
  253. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +2 -2
  254. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  255. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +2 -2
  256. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
  257. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.json +2 -2
  258. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
  259. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.json +2 -2
  260. package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.dbg.json +1 -1
  261. package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.json +2 -2
  262. package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
  263. package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.json +2 -2
  264. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  265. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.json +2 -2
  266. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
  267. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.json +2 -2
  268. package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
  269. package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.json +2 -2
  270. package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.dbg.json +1 -1
  271. package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.json +2 -2
  272. package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
  273. package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.json +2 -2
  274. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
  275. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.json +2 -2
  276. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
  277. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
  278. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.json +2 -2
  279. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  280. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
  281. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
  282. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.json +2 -2
  283. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  284. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  285. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  286. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
  287. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
  288. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.json +2 -2
  289. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  290. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.json +2 -2
  291. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  292. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  293. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  294. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  295. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  296. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  297. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  298. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  299. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  300. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  301. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  302. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  303. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  304. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  305. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  306. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  307. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  308. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  309. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  310. package/build/artifacts/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol/PendleCrossChainOracleBaseApp_Init.dbg.json +1 -1
  311. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.dbg.json +1 -1
  312. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.json +2 -2
  313. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
  314. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.json +2 -2
  315. package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
  316. package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.json +2 -2
  317. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  318. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  319. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
  320. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.json +2 -2
  321. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
  322. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.json +2 -2
  323. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
  324. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.json +2 -2
  325. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
  326. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.json +2 -2
  327. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
  328. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.json +2 -2
  329. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  330. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
  331. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +2 -2
  332. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
  333. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +2 -2
  334. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  335. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
  336. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.json +2 -2
  337. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
  338. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.json +2 -2
  339. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
  340. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.json +2 -2
  341. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
  342. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.json +2 -2
  343. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
  344. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
  345. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.json +2 -2
  346. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
  347. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.json +2 -2
  348. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
  349. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.json +2 -2
  350. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
  351. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
  352. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.json +2 -2
  353. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  354. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.json +2 -2
  355. package/build/artifacts/contracts/pt-looping/BridgeDataVerifier.sol/BridgeDataVerifier.dbg.json +4 -0
  356. package/build/artifacts/contracts/pt-looping/BridgeDataVerifier.sol/BridgeDataVerifier.json +405 -0
  357. package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.dbg.json +4 -0
  358. package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.json +2626 -0
  359. package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.dbg.json +4 -0
  360. package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.json +10 -0
  361. package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.dbg.json +4 -0
  362. package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.json +2660 -0
  363. package/build/artifacts/contracts/pt-looping/PendlePTLooperView.sol/PendlePTLooperView.dbg.json +4 -0
  364. package/build/artifacts/contracts/pt-looping/PendlePTLooperView.sol/PendlePTLooperView.json +334 -0
  365. package/build/artifacts/contracts/pt-looping/PostPtLoopStateChecker.sol/PostPtLoopStateChecker.dbg.json +4 -0
  366. package/build/artifacts/contracts/pt-looping/PostPtLoopStateChecker.sol/PostPtLoopStateChecker.json +79 -0
  367. package/build/artifacts/contracts/pt-looping/StaticStableQuoter.sol/StaticStableQuoter.dbg.json +4 -0
  368. package/build/artifacts/contracts/pt-looping/StaticStableQuoter.sol/StaticStableQuoter.json +233 -0
  369. package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBox.sol/LoopPositionBox.dbg.json +4 -0
  370. package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBox.sol/LoopPositionBox.json +198 -0
  371. package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBoxFactory.sol/LoopPositionBoxFactory.dbg.json +4 -0
  372. package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBoxFactory.sol/LoopPositionBoxFactory.json +555 -0
  373. package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarket.sol/BaseMoneyMarket.dbg.json +4 -0
  374. package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarket.sol/BaseMoneyMarket.json +604 -0
  375. package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarketView.sol/BaseMoneyMarketView.dbg.json +4 -0
  376. package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarketView.sol/BaseMoneyMarketView.json +264 -0
  377. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMMPayloadLib.sol/AaveMMPayloadLib.dbg.json +4 -0
  378. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMMPayloadLib.sol/AaveMMPayloadLib.json +10 -0
  379. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.dbg.json +4 -0
  380. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.json +659 -0
  381. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.dbg.json +4 -0
  382. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.json +355 -0
  383. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/AaveDataTypes.sol/AaveDataTypes.dbg.json +4 -0
  384. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/AaveDataTypes.sol/AaveDataTypes.json +10 -0
  385. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAToken.sol/IAToken.dbg.json +4 -0
  386. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAToken.sol/IAToken.json +246 -0
  387. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveOracle.sol/IAaveOracle.dbg.json +4 -0
  388. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveOracle.sol/IAaveOracle.json +120 -0
  389. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +4 -0
  390. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveRewardsController.sol/IAaveRewardsController.json +724 -0
  391. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPool.sol/IPool.dbg.json +4 -0
  392. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPool.sol/IPool.json +1600 -0
  393. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolAddressesProvider.sol/IPoolAddressesProvider.dbg.json +4 -0
  394. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolAddressesProvider.sol/IPoolAddressesProvider.json +507 -0
  395. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolDataProviderV3.sol/IPoolDataProviderV3.dbg.json +4 -0
  396. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolDataProviderV3.sol/IPoolDataProviderV3.json +577 -0
  397. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPriceOracleGetter.sol/IPriceOracleGetter.dbg.json +4 -0
  398. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPriceOracleGetter.sol/IPriceOracleGetter.json +56 -0
  399. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.dbg.json +4 -0
  400. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.json +633 -0
  401. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.dbg.json +4 -0
  402. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.json +298 -0
  403. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IIrm.dbg.json +4 -0
  404. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IIrm.json +234 -0
  405. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IMorpho.dbg.json +4 -0
  406. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IMorpho.json +1033 -0
  407. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorphoOracle.sol/IMorphoOracle.dbg.json +4 -0
  408. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorphoOracle.sol/IMorphoOracle.json +24 -0
  409. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/MathLib.sol/MathLib.dbg.json +4 -0
  410. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/MathLib.sol/MathLib.json +10 -0
  411. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/SharesMathLib.sol/SharesMathLib.dbg.json +4 -0
  412. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/SharesMathLib.sol/SharesMathLib.json +10 -0
  413. package/build/artifacts/contracts/pt-looping/vendor/bungee/IBungeeInbox.sol/IBungeeSORInbox.dbg.json +4 -0
  414. package/build/artifacts/contracts/pt-looping/vendor/bungee/IBungeeInbox.sol/IBungeeSORInbox.json +143 -0
  415. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  416. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  417. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  418. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  419. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  420. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  421. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  422. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  423. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  424. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  425. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  426. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  427. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  428. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  429. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  430. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  431. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  432. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  433. package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
  434. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  435. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  436. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  437. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  438. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  439. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  440. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
  441. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.json +2 -2
  442. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  443. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  444. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  445. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  446. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  447. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  448. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  449. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  450. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  451. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  452. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  453. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
  454. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
  455. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.json +2 -2
  456. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  457. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  458. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  459. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  460. package/contracts/cross-chain/{PendleSwapHelper.sol → OFTPTSwapper.sol} +4 -3
  461. package/contracts/interfaces/IMoneyMarket.sol +60 -0
  462. package/contracts/interfaces/IMoneyMarketView.sol +42 -0
  463. package/contracts/interfaces/IPBridgeDataVerifier.sol +23 -0
  464. package/contracts/interfaces/IPLoopPositionBox.sol +38 -0
  465. package/contracts/interfaces/IPLoopPositionBoxFactory.sol +37 -0
  466. package/contracts/interfaces/{IPSwapHelper.sol → IPOFTPTSwapper.sol} +1 -1
  467. package/contracts/interfaces/IPPTLooper.sol +301 -0
  468. package/contracts/interfaces/IPPTLooperView.sol +35 -0
  469. package/contracts/interfaces/IPPostPtLoopStateChecker.sol +8 -0
  470. package/contracts/interfaces/IPStaticQuoter.sol +13 -0
  471. package/contracts/pt-looping/BridgeDataVerifier.sol +158 -0
  472. package/contracts/pt-looping/PTLooperBase.sol +236 -0
  473. package/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol +210 -0
  474. package/contracts/pt-looping/PendlePTLooper.sol +318 -0
  475. package/contracts/pt-looping/PendlePTLooperView.sol +42 -0
  476. package/contracts/pt-looping/PostPtLoopStateChecker.sol +79 -0
  477. package/contracts/pt-looping/StaticStableQuoter.sol +46 -0
  478. package/contracts/pt-looping/loop-position-box/LoopPositionBox.sol +85 -0
  479. package/contracts/pt-looping/loop-position-box/LoopPositionBoxFactory.sol +123 -0
  480. package/contracts/pt-looping/money-market/BaseMoneyMarket.sol +129 -0
  481. package/contracts/pt-looping/money-market/BaseMoneyMarketView.sol +123 -0
  482. package/contracts/pt-looping/money-market/implementations/aave/AaveMMPayloadLib.sol +16 -0
  483. package/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol +123 -0
  484. package/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol +200 -0
  485. package/contracts/pt-looping/money-market/implementations/aave/dependencies/AaveDataTypes.sol +259 -0
  486. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IAToken.sol +8 -0
  487. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveOracle.sol +33 -0
  488. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveRewardsController.sol +68 -0
  489. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPool.sol +664 -0
  490. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolAddressesProvider.sol +227 -0
  491. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolDataProviderV3.sol +228 -0
  492. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPriceOracleGetter.sol +32 -0
  493. package/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol +123 -0
  494. package/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol +66 -0
  495. package/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol +300 -0
  496. package/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorphoOracle.sol +14 -0
  497. package/contracts/pt-looping/money-market/implementations/morpho/dependencies/MathLib.sol +35 -0
  498. package/contracts/pt-looping/money-market/implementations/morpho/dependencies/SharesMathLib.sol +42 -0
  499. package/contracts/pt-looping/vendor/bungee/IBungeeInbox.sol +36 -0
  500. package/contracts/router/swap-aggregator/OKXScaleHelper.sol +4 -1
  501. package/deployments/1-core.json +4 -1
  502. package/deployments/130-core.json +2 -1
  503. package/deployments/143-core.json +2 -1
  504. package/deployments/42161-core.json +2 -1
  505. package/deployments/4217-core.json +5 -1
  506. package/deployments/43114-core.json +2 -1
  507. package/deployments/56-core.json +2 -1
  508. package/deployments/57073-core.json +2 -1
  509. package/deployments/747474-core.json +2 -1
  510. package/deployments/8453-core.json +2 -1
  511. package/deployments/9745-core.json +2 -1
  512. package/deployments/999-core.json +2 -1
  513. package/package.json +2 -1
  514. package/typechain-types/AaveMoneyMarket.ts +147 -290
  515. package/typechain-types/AaveMoneyMarketView.ts +0 -13
  516. package/typechain-types/BaseMoneyMarket.ts +147 -271
  517. package/typechain-types/BridgeDataVerifier.ts +564 -0
  518. package/typechain-types/IBungeeSORInbox.ts +192 -0
  519. package/typechain-types/IMoneyMarket.ts +124 -282
  520. package/typechain-types/IMoneyMarketEvents.ts +31 -56
  521. package/typechain-types/IPBridgeDataVerifier.ts +148 -0
  522. package/typechain-types/IPLoopPositionBox.ts +0 -13
  523. package/typechain-types/IPLoopPositionBoxFactory.ts +5 -39
  524. package/typechain-types/IPOFTPTSwapper.ts +161 -0
  525. package/typechain-types/IPPTLooper.ts +658 -695
  526. package/typechain-types/IPPTLooperView.ts +56 -251
  527. package/typechain-types/IPPostPtLoopStateChecker.ts +106 -0
  528. package/typechain-types/IPStaticQuoter.ts +132 -0
  529. package/typechain-types/IPool.ts +8 -8
  530. package/typechain-types/IPoolDataProviderV3.ts +76 -8
  531. package/typechain-types/LoopPositionBox.ts +25 -38
  532. package/typechain-types/LoopPositionBoxFactory.ts +17 -51
  533. package/typechain-types/MorphoBlueMoneyMarket.ts +141 -286
  534. package/typechain-types/MorphoBlueMoneyMarketView.ts +0 -21
  535. package/typechain-types/OFTPTSwapper.ts +161 -0
  536. package/typechain-types/PTLooperBase.ts +671 -708
  537. package/typechain-types/PendlePTLooper.ts +671 -708
  538. package/typechain-types/PendlePTLooperView.ts +71 -266
  539. package/typechain-types/PostPtLoopStateChecker.ts +151 -0
  540. package/typechain-types/StaticStableQuoter.ts +395 -0
  541. package/typechain-types/factories/AaveMoneyMarketView__factory.ts +1 -23
  542. package/typechain-types/factories/AaveMoneyMarket__factory.ts +265 -267
  543. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  544. package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
  545. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  546. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  547. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  548. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  549. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  550. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  551. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  552. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  553. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  554. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  555. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  556. package/typechain-types/factories/AddressCast__factory.ts +1 -1
  557. package/typechain-types/factories/AddressProvider__factory.ts +1 -1
  558. package/typechain-types/factories/BalanceReader__factory.ts +1 -1
  559. package/typechain-types/factories/BaseMoneyMarket__factory.ts +264 -244
  560. package/typechain-types/factories/BaseSplitCodeFactoryContract__factory.ts +1 -1
  561. package/typechain-types/factories/BoringOwnableUpgradeableData__factory.ts +1 -1
  562. package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +1 -1
  563. package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +1 -1
  564. package/typechain-types/factories/BridgeDataVerifier__factory.ts +463 -0
  565. package/typechain-types/factories/BridgeFunder__factory.ts +1 -1
  566. package/typechain-types/factories/DVNOptions__factory.ts +1 -1
  567. package/typechain-types/factories/DepositBoxFactory__factory.ts +1 -1
  568. package/typechain-types/factories/DepositBox__factory.ts +1 -1
  569. package/typechain-types/factories/ERC1967Proxy__factory.ts +1 -1
  570. package/typechain-types/factories/ERC20Upgradeable__factory.ts +1 -1
  571. package/typechain-types/factories/ERC20__factory.ts +1 -1
  572. package/typechain-types/factories/EmptyUUPS__factory.ts +1 -1
  573. package/typechain-types/factories/Errors__factory.ts +1 -1
  574. package/typechain-types/factories/ExchangeRateMsgCodec__factory.ts +1 -1
  575. package/typechain-types/factories/ExecutorOptions__factory.ts +1 -1
  576. package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
  577. package/typechain-types/factories/FixedPricePTAMMV2__factory.ts +1 -1
  578. package/typechain-types/factories/IBungeeSORInbox__factory.ts +158 -0
  579. package/typechain-types/factories/IMoneyMarketEvents__factory.ts +11 -61
  580. package/typechain-types/factories/IMoneyMarket__factory.ts +250 -256
  581. package/typechain-types/factories/IPBridgeDataVerifier__factory.ts +100 -0
  582. package/typechain-types/factories/IPLoopPositionBoxFactory__factory.ts +8 -32
  583. package/typechain-types/factories/IPLoopPositionBox__factory.ts +0 -13
  584. package/typechain-types/factories/IPOFTPTSwapper__factory.ts +114 -0
  585. package/typechain-types/factories/IPPTLooperView__factory.ts +94 -201
  586. package/typechain-types/factories/IPPTLooper__factory.ts +1030 -1043
  587. package/typechain-types/factories/IPPostPtLoopStateChecker__factory.ts +48 -0
  588. package/typechain-types/factories/IPStaticQuoter__factory.ts +70 -0
  589. package/typechain-types/factories/IPoolDataProviderV3__factory.ts +39 -1
  590. package/typechain-types/factories/IPool__factory.ts +2 -2
  591. package/typechain-types/factories/LegacyNFTHelper__factory.ts +1 -1
  592. package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
  593. package/typechain-types/factories/LoopPositionBoxFactory__factory.ts +26 -50
  594. package/typechain-types/factories/LoopPositionBox__factory.ts +11 -35
  595. package/typechain-types/factories/MarketSweed__factory.ts +1 -1
  596. package/typechain-types/factories/MorphoBlueMoneyMarketView__factory.ts +1 -14
  597. package/typechain-types/factories/MorphoBlueMoneyMarket__factory.ts +257 -250
  598. package/typechain-types/factories/Multicall2__factory.ts +1 -1
  599. package/typechain-types/factories/NonceManager__factory.ts +1 -1
  600. package/typechain-types/factories/OFTAdapterAltImpl__factory.ts +1 -1
  601. package/typechain-types/factories/OFTAdapterImpl__factory.ts +1 -1
  602. package/typechain-types/factories/OFTAdapter__factory.ts +0 -11
  603. package/typechain-types/factories/OFTPTSwapper__factory.ts +149 -0
  604. package/typechain-types/factories/OptionsBuilder__factory.ts +1 -1
  605. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  606. package/typechain-types/factories/PTLooperBase__factory.ts +1122 -1135
  607. package/typechain-types/factories/PendleAPIFeeDepositor__factory.ts +1 -1
  608. package/typechain-types/factories/PendleBoringOneracle__factory.ts +1 -1
  609. package/typechain-types/factories/PendleBoringSolvBTCOneracle__factory.ts +1 -1
  610. package/typechain-types/factories/PendleBridgePTFactory__factory.ts +1 -1
  611. package/typechain-types/factories/PendleBridgedPrincipalTokenAlt__factory.ts +1 -1
  612. package/typechain-types/factories/PendleBridgedPrincipalToken__factory.ts +1 -1
  613. package/typechain-types/factories/PendleChainlinkOracleFactory__factory.ts +1 -1
  614. package/typechain-types/factories/PendleChainlinkOracleWithQuote__factory.ts +1 -1
  615. package/typechain-types/factories/PendleChainlinkOracle__factory.ts +1 -1
  616. package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
  617. package/typechain-types/factories/PendleCommonSYFactory__factory.ts +1 -1
  618. package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +1 -1
  619. package/typechain-types/factories/PendleERC20__factory.ts +1 -1
  620. package/typechain-types/factories/PendleExchangeRateOracleApp__factory.ts +1 -1
  621. package/typechain-types/factories/PendleExchangeRateOracleV2__factory.ts +1 -1
  622. package/typechain-types/factories/PendleExchangeRateOracle__factory.ts +1 -1
  623. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  624. package/typechain-types/factories/PendleFeeSetter__factory.ts +1 -1
  625. package/typechain-types/factories/PendleGaugeControllerUpg__factory.ts +1 -1
  626. package/typechain-types/factories/PendleGovernanceProxy__factory.ts +1 -1
  627. package/typechain-types/factories/PendleLPWrapperFactory__factory.ts +1 -1
  628. package/typechain-types/factories/PendleLPWrapper__factory.ts +1 -1
  629. package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
  630. package/typechain-types/factories/PendleLinearDiscountOracleWrapper__factory.ts +1 -1
  631. package/typechain-types/factories/PendleLpLinearDiscountOracleFactory__factory.ts +1 -1
  632. package/typechain-types/factories/PendleLpLinearDiscountOracle__factory.ts +1 -1
  633. package/typechain-types/factories/PendleMarketFactoryV7Upg__factory.ts +1 -1
  634. package/typechain-types/factories/PendleMarketV7__factory.ts +1 -1
  635. package/typechain-types/factories/PendleMerkleDepositor__factory.ts +1 -1
  636. package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -1
  637. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  638. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  639. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -1
  640. package/typechain-types/factories/PendleMulticallOwnerV1__factory.ts +1 -1
  641. package/typechain-types/factories/PendleMulticallV1__factory.ts +1 -1
  642. package/typechain-types/factories/PendleMulticallV2__factory.ts +1 -1
  643. package/typechain-types/factories/PendleOFTAlt__factory.ts +1 -1
  644. package/typechain-types/factories/PendleOFT__factory.ts +1 -1
  645. package/typechain-types/factories/PendleOffchainStorage__factory.ts +1 -1
  646. package/typechain-types/factories/PendlePTLooperView__factory.ts +100 -207
  647. package/typechain-types/factories/PendlePTLooper__factory.ts +1132 -1136
  648. package/typechain-types/factories/PendlePTOFTAdapterFactory__factory.ts +1 -1
  649. package/typechain-types/factories/PendlePYLpOracle__factory.ts +1 -1
  650. package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
  651. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  652. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  653. package/typechain-types/factories/PendleProxyAdmin__factory.ts +1 -1
  654. package/typechain-types/factories/PendleRedStoneRateOracleAdapter__factory.ts +1 -1
  655. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  656. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  657. package/typechain-types/factories/PendleSparkLinearDiscountOracleFactoryWrapper__factory.ts +1 -1
  658. package/typechain-types/factories/PendleSparkLinearDiscountOracleFactory__factory.ts +1 -1
  659. package/typechain-types/factories/PendleSparkLinearDiscountOracle__factory.ts +1 -1
  660. package/typechain-types/factories/PendleSwapHelper__factory.ts +1 -1
  661. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  662. package/typechain-types/factories/PendleWstETHPriceFeed__factory.ts +1 -1
  663. package/typechain-types/factories/PendleYieldContractFactoryUpg__factory.ts +1 -1
  664. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  665. package/typechain-types/factories/PostPtLoopStateChecker__factory.ts +141 -0
  666. package/typechain-types/factories/ProxyAdmin__factory.ts +1 -1
  667. package/typechain-types/factories/Reflector__factory.ts +1 -1
  668. package/typechain-types/factories/SDKErrorsDirectory__factory.ts +1 -1
  669. package/typechain-types/factories/SimulateHelper__factory.ts +1 -1
  670. package/typechain-types/factories/StakedPendle__factory.ts +1 -1
  671. package/typechain-types/factories/StaticStableQuoter__factory.ts +286 -0
  672. package/typechain-types/factories/SupplyCapReader__factory.ts +1 -1
  673. package/typechain-types/factories/TransparentUpgradeableProxy__factory.ts +1 -1
  674. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  675. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  676. package/typechain-types/hardhat.d.ts +360 -0
  677. package/typechain-types/index.ts +80 -0
  678. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.dbg.json +0 -4
  679. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.json +0 -99
  680. package/build/artifacts/contracts/interfaces/IPSwapHelper.sol/IPSwapHelper.dbg.json +0 -4
@@ -0,0 +1,227 @@
1
+ // SPDX-License-Identifier: AGPL-3.0
2
+ pragma solidity ^0.8.4;
3
+
4
+ import {IPool} from "./IPool.sol";
5
+ import {IAaveOracle} from "./IAaveOracle.sol";
6
+ import {IPoolDataProviderV3} from "./IPoolDataProviderV3.sol";
7
+
8
+ /**
9
+ * @title IPoolAddressesProvider
10
+ * @author Aave
11
+ * @notice Defines the basic interface for a Pool Addresses Provider.
12
+ */
13
+ interface IPoolAddressesProvider {
14
+ /**
15
+ * @dev Emitted when the market identifier is updated.
16
+ * @param oldMarketId The old id of the market
17
+ * @param newMarketId The new id of the market
18
+ */
19
+ event MarketIdSet(string indexed oldMarketId, string indexed newMarketId);
20
+
21
+ /**
22
+ * @dev Emitted when the pool is updated.
23
+ * @param oldAddress The old address of the Pool
24
+ * @param newAddress The new address of the Pool
25
+ */
26
+ event PoolUpdated(address indexed oldAddress, address indexed newAddress);
27
+
28
+ /**
29
+ * @dev Emitted when the pool configurator is updated.
30
+ * @param oldAddress The old address of the PoolConfigurator
31
+ * @param newAddress The new address of the PoolConfigurator
32
+ */
33
+ event PoolConfiguratorUpdated(address indexed oldAddress, address indexed newAddress);
34
+
35
+ /**
36
+ * @dev Emitted when the price oracle is updated.
37
+ * @param oldAddress The old address of the PriceOracle
38
+ * @param newAddress The new address of the PriceOracle
39
+ */
40
+ event PriceOracleUpdated(address indexed oldAddress, address indexed newAddress);
41
+
42
+ /**
43
+ * @dev Emitted when the ACL manager is updated.
44
+ * @param oldAddress The old address of the ACLManager
45
+ * @param newAddress The new address of the ACLManager
46
+ */
47
+ event ACLManagerUpdated(address indexed oldAddress, address indexed newAddress);
48
+
49
+ /**
50
+ * @dev Emitted when the ACL admin is updated.
51
+ * @param oldAddress The old address of the ACLAdmin
52
+ * @param newAddress The new address of the ACLAdmin
53
+ */
54
+ event ACLAdminUpdated(address indexed oldAddress, address indexed newAddress);
55
+
56
+ /**
57
+ * @dev Emitted when the price oracle sentinel is updated.
58
+ * @param oldAddress The old address of the PriceOracleSentinel
59
+ * @param newAddress The new address of the PriceOracleSentinel
60
+ */
61
+ event PriceOracleSentinelUpdated(address indexed oldAddress, address indexed newAddress);
62
+
63
+ /**
64
+ * @dev Emitted when the pool data provider is updated.
65
+ * @param oldAddress The old address of the PoolDataProvider
66
+ * @param newAddress The new address of the PoolDataProvider
67
+ */
68
+ event PoolDataProviderUpdated(address indexed oldAddress, address indexed newAddress);
69
+
70
+ /**
71
+ * @dev Emitted when a new proxy is created.
72
+ * @param id The identifier of the proxy
73
+ * @param proxyAddress The address of the created proxy contract
74
+ * @param implementationAddress The address of the implementation contract
75
+ */
76
+ event ProxyCreated(bytes32 indexed id, address indexed proxyAddress, address indexed implementationAddress);
77
+
78
+ /**
79
+ * @dev Emitted when a new non-proxied contract address is registered.
80
+ * @param id The identifier of the contract
81
+ * @param oldAddress The address of the old contract
82
+ * @param newAddress The address of the new contract
83
+ */
84
+ event AddressSet(bytes32 indexed id, address indexed oldAddress, address indexed newAddress);
85
+
86
+ /**
87
+ * @dev Emitted when the implementation of the proxy registered with id is updated
88
+ * @param id The identifier of the contract
89
+ * @param proxyAddress The address of the proxy contract
90
+ * @param oldImplementationAddress The address of the old implementation contract
91
+ * @param newImplementationAddress The address of the new implementation contract
92
+ */
93
+ event AddressSetAsProxy(
94
+ bytes32 indexed id,
95
+ address indexed proxyAddress,
96
+ address oldImplementationAddress,
97
+ address indexed newImplementationAddress
98
+ );
99
+
100
+ /**
101
+ * @notice Returns the id of the Aave market to which this contract points to.
102
+ * @return The market id
103
+ */
104
+ function getMarketId() external view returns (string memory);
105
+
106
+ /**
107
+ * @notice Associates an id with a specific PoolAddressesProvider.
108
+ * @dev This can be used to create an onchain registry of PoolAddressesProviders to
109
+ * identify and validate multiple Aave markets.
110
+ * @param newMarketId The market id
111
+ */
112
+ function setMarketId(string calldata newMarketId) external;
113
+
114
+ /**
115
+ * @notice Returns an address by its identifier.
116
+ * @dev The returned address might be an EOA or a contract, potentially proxied
117
+ * @dev It returns ZERO if there is no registered address with the given id
118
+ * @param id The id
119
+ * @return The address of the registered for the specified id
120
+ */
121
+ function getAddress(bytes32 id) external view returns (address);
122
+
123
+ /**
124
+ * @notice General function to update the implementation of a proxy registered with
125
+ * certain `id`. If there is no proxy registered, it will instantiate one and
126
+ * set as implementation the `newImplementationAddress`.
127
+ * @dev IMPORTANT Use this function carefully, only for ids that don't have an explicit
128
+ * setter function, in order to avoid unexpected consequences
129
+ * @param id The id
130
+ * @param newImplementationAddress The address of the new implementation
131
+ */
132
+ function setAddressAsProxy(bytes32 id, address newImplementationAddress) external;
133
+
134
+ /**
135
+ * @notice Sets an address for an id replacing the address saved in the addresses map.
136
+ * @dev IMPORTANT Use this function carefully, as it will do a hard replacement
137
+ * @param id The id
138
+ * @param newAddress The address to set
139
+ */
140
+ function setAddress(bytes32 id, address newAddress) external;
141
+
142
+ /**
143
+ * @notice Returns the address of the Pool proxy.
144
+ * @return The Pool proxy address
145
+ */
146
+ function getPool() external view returns (IPool);
147
+
148
+ /**
149
+ * @notice Updates the implementation of the Pool, or creates a proxy
150
+ * setting the new `pool` implementation when the function is called for the first time.
151
+ * @param newPoolImpl The new Pool implementation
152
+ */
153
+ function setPoolImpl(address newPoolImpl) external;
154
+
155
+ /**
156
+ * @notice Returns the address of the PoolConfigurator proxy.
157
+ * @return The PoolConfigurator proxy address
158
+ */
159
+ function getPoolConfigurator() external view returns (address);
160
+
161
+ /**
162
+ * @notice Updates the implementation of the PoolConfigurator, or creates a proxy
163
+ * setting the new `PoolConfigurator` implementation when the function is called for the first time.
164
+ * @param newPoolConfiguratorImpl The new PoolConfigurator implementation
165
+ */
166
+ function setPoolConfiguratorImpl(address newPoolConfiguratorImpl) external;
167
+
168
+ /**
169
+ * @notice Returns the address of the price oracle.
170
+ * @return The address of the PriceOracle
171
+ */
172
+ function getPriceOracle() external view returns (IAaveOracle);
173
+
174
+ /**
175
+ * @notice Updates the address of the price oracle.
176
+ * @param newPriceOracle The address of the new PriceOracle
177
+ */
178
+ function setPriceOracle(address newPriceOracle) external;
179
+
180
+ /**
181
+ * @notice Returns the address of the ACL manager.
182
+ * @return The address of the ACLManager
183
+ */
184
+ function getACLManager() external view returns (address);
185
+
186
+ /**
187
+ * @notice Updates the address of the ACL manager.
188
+ * @param newAclManager The address of the new ACLManager
189
+ */
190
+ function setACLManager(address newAclManager) external;
191
+
192
+ /**
193
+ * @notice Returns the address of the ACL admin.
194
+ * @return The address of the ACL admin
195
+ */
196
+ function getACLAdmin() external view returns (address);
197
+
198
+ /**
199
+ * @notice Updates the address of the ACL admin.
200
+ * @param newAclAdmin The address of the new ACL admin
201
+ */
202
+ function setACLAdmin(address newAclAdmin) external;
203
+
204
+ /**
205
+ * @notice Returns the address of the price oracle sentinel.
206
+ * @return The address of the PriceOracleSentinel
207
+ */
208
+ function getPriceOracleSentinel() external view returns (address);
209
+
210
+ /**
211
+ * @notice Updates the address of the price oracle sentinel.
212
+ * @param newPriceOracleSentinel The address of the new PriceOracleSentinel
213
+ */
214
+ function setPriceOracleSentinel(address newPriceOracleSentinel) external;
215
+
216
+ /**
217
+ * @notice Returns the address of the data provider.
218
+ * @return The address of the DataProvider
219
+ */
220
+ function getPoolDataProvider() external view returns (IPoolDataProviderV3);
221
+
222
+ /**
223
+ * @notice Updates the address of the data provider.
224
+ * @param newDataProvider The address of the new DataProvider
225
+ */
226
+ function setPoolDataProvider(address newDataProvider) external;
227
+ }
@@ -0,0 +1,228 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity ^0.8.0;
3
+
4
+ /// https://github.com/aave/aave-v3-horizon/blob/311a59fb1cec23ee254e84b28759fd1faf9c3711/src/contracts/interfaces/IPoolDataProvider.sol
5
+ /// Modifications:
6
+ /// - Rename IPoolDataProvider -> IPoolDataProviderV3
7
+ /// - Make `getReserveData` return a `ReserveData` struct instead of individual fields.
8
+
9
+ import {IPoolAddressesProvider} from "./IPoolAddressesProvider.sol";
10
+
11
+ /**
12
+ * @title IPoolDataProviderV3
13
+ * @author Aave
14
+ * @notice Defines the basic interface of a PoolDataProvider
15
+ */
16
+ interface IPoolDataProviderV3 {
17
+ struct TokenData {
18
+ string symbol;
19
+ address tokenAddress;
20
+ }
21
+
22
+ /**
23
+ * @notice Returns the address for the PoolAddressesProvider contract.
24
+ * @return The address for the PoolAddressesProvider contract
25
+ */
26
+ function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider);
27
+
28
+ /**
29
+ * @notice Returns the list of the existing reserves in the pool.
30
+ * @dev Handling MKR and ETH in a different way since they do not have standard `symbol` functions.
31
+ * @return The list of reserves, pairs of symbols and addresses
32
+ */
33
+ function getAllReservesTokens() external view returns (TokenData[] memory);
34
+
35
+ /**
36
+ * @notice Returns the list of the existing ATokens in the pool.
37
+ * @return The list of ATokens, pairs of symbols and addresses
38
+ */
39
+ function getAllATokens() external view returns (TokenData[] memory);
40
+
41
+ /**
42
+ * @notice Returns the configuration data of the reserve
43
+ * @dev Not returning borrow and supply caps for compatibility, nor pause flag
44
+ * @param asset The address of the underlying asset of the reserve
45
+ * @return decimals The number of decimals of the reserve
46
+ * @return ltv The ltv of the reserve
47
+ * @return liquidationThreshold The liquidationThreshold of the reserve
48
+ * @return liquidationBonus The liquidationBonus of the reserve
49
+ * @return reserveFactor The reserveFactor of the reserve
50
+ * @return usageAsCollateralEnabled True if the usage as collateral is enabled, false otherwise
51
+ * @return borrowingEnabled True if borrowing is enabled, false otherwise
52
+ * @return stableBorrowRateEnabled True if stable rate borrowing is enabled, false otherwise
53
+ * @return isActive True if it is active, false otherwise
54
+ * @return isFrozen True if it is frozen, false otherwise
55
+ */
56
+ function getReserveConfigurationData(address asset)
57
+ external
58
+ view
59
+ returns (
60
+ uint256 decimals,
61
+ uint256 ltv,
62
+ uint256 liquidationThreshold,
63
+ uint256 liquidationBonus,
64
+ uint256 reserveFactor,
65
+ bool usageAsCollateralEnabled,
66
+ bool borrowingEnabled,
67
+ bool stableBorrowRateEnabled,
68
+ bool isActive,
69
+ bool isFrozen
70
+ );
71
+
72
+ /**
73
+ * @notice Returns the caps parameters of the reserve
74
+ * @param asset The address of the underlying asset of the reserve
75
+ * @return borrowCap The borrow cap of the reserve
76
+ * @return supplyCap The supply cap of the reserve
77
+ */
78
+ function getReserveCaps(address asset) external view returns (uint256 borrowCap, uint256 supplyCap);
79
+
80
+ /**
81
+ * @notice Returns if the pool is paused
82
+ * @param asset The address of the underlying asset of the reserve
83
+ * @return isPaused True if the pool is paused, false otherwise
84
+ */
85
+ function getPaused(address asset) external view returns (bool isPaused);
86
+
87
+ /**
88
+ * @notice Returns the siloed borrowing flag
89
+ * @param asset The address of the underlying asset of the reserve
90
+ * @return True if the asset is siloed for borrowing
91
+ */
92
+ function getSiloedBorrowing(address asset) external view returns (bool);
93
+
94
+ /**
95
+ * @notice Returns the protocol fee on the liquidation bonus
96
+ * @param asset The address of the underlying asset of the reserve
97
+ * @return The protocol fee on liquidation
98
+ */
99
+ function getLiquidationProtocolFee(address asset) external view returns (uint256);
100
+
101
+ /**
102
+ * @notice Returns the unbacked mint cap of the reserve
103
+ * @param asset The address of the underlying asset of the reserve
104
+ * @return The unbacked mint cap of the reserve
105
+ */
106
+ function getUnbackedMintCap(address asset) external view returns (uint256);
107
+
108
+ /**
109
+ * @notice Returns the debt ceiling of the reserve
110
+ * @param asset The address of the underlying asset of the reserve
111
+ * @return The debt ceiling of the reserve
112
+ */
113
+ function getDebtCeiling(address asset) external view returns (uint256);
114
+
115
+ /**
116
+ * @notice Returns the debt ceiling decimals
117
+ * @return The debt ceiling decimals
118
+ */
119
+ function getDebtCeilingDecimals() external pure returns (uint256);
120
+
121
+ struct ReserveData {
122
+ uint256 unbacked;
123
+ uint256 accruedToTreasuryScaled;
124
+ uint256 totalAToken;
125
+ uint256 totalStableDebt;
126
+ uint256 totalVariableDebt;
127
+ uint256 liquidityRate;
128
+ uint256 variableBorrowRate;
129
+ uint256 stableBorrowRate;
130
+ uint256 averageStableBorrowRate;
131
+ uint256 liquidityIndex;
132
+ uint256 variableBorrowIndex;
133
+ uint40 lastUpdateTimestamp;
134
+ }
135
+
136
+ function getReserveData(address asset) external view returns (ReserveData memory);
137
+
138
+ /**
139
+ * @notice Returns the total supply of aTokens for a given asset
140
+ * @param asset The address of the underlying asset of the reserve
141
+ * @return The total supply of the aToken
142
+ */
143
+ function getATokenTotalSupply(address asset) external view returns (uint256);
144
+
145
+ /**
146
+ * @notice Returns the total debt for a given asset
147
+ * @param asset The address of the underlying asset of the reserve
148
+ * @return The total debt for asset
149
+ */
150
+ function getTotalDebt(address asset) external view returns (uint256);
151
+
152
+ /**
153
+ * @notice Returns the user data in a reserve
154
+ * @param asset The address of the underlying asset of the reserve
155
+ * @param user The address of the user
156
+ * @return currentATokenBalance The current AToken balance of the user
157
+ * @return currentStableDebt The current stable debt of the user
158
+ * @return currentVariableDebt The current variable debt of the user
159
+ * @return principalStableDebt The principal stable debt of the user
160
+ * @return scaledVariableDebt The scaled variable debt of the user
161
+ * @return stableBorrowRate The stable borrow rate of the user
162
+ * @return liquidityRate The liquidity rate of the reserve
163
+ * @return stableRateLastUpdated The timestamp of the last update of the user stable rate
164
+ * @return usageAsCollateralEnabled True if the user is using the asset as collateral, false
165
+ * otherwise
166
+ */
167
+ function getUserReserveData(address asset, address user)
168
+ external
169
+ view
170
+ returns (
171
+ uint256 currentATokenBalance,
172
+ uint256 currentStableDebt,
173
+ uint256 currentVariableDebt,
174
+ uint256 principalStableDebt,
175
+ uint256 scaledVariableDebt,
176
+ uint256 stableBorrowRate,
177
+ uint256 liquidityRate,
178
+ uint40 stableRateLastUpdated,
179
+ bool usageAsCollateralEnabled
180
+ );
181
+
182
+ /**
183
+ * @notice Returns the token addresses of the reserve
184
+ * @param asset The address of the underlying asset of the reserve
185
+ * @return aTokenAddress The AToken address of the reserve
186
+ * @return stableDebtTokenAddress DEPRECATED in v3.2.0
187
+ * @return variableDebtTokenAddress The VariableDebtToken address of the reserve
188
+ */
189
+ function getReserveTokensAddresses(address asset)
190
+ external
191
+ view
192
+ returns (address aTokenAddress, address stableDebtTokenAddress, address variableDebtTokenAddress);
193
+
194
+ /**
195
+ * @notice Returns the address of the Interest Rate strategy
196
+ * @param asset The address of the underlying asset of the reserve
197
+ * @return irStrategyAddress The address of the Interest Rate strategy
198
+ */
199
+ function getInterestRateStrategyAddress(address asset) external view returns (address irStrategyAddress);
200
+
201
+ /**
202
+ * @notice Returns whether the reserve has FlashLoans enabled or disabled
203
+ * @param asset The address of the underlying asset of the reserve
204
+ * @return True if FlashLoans are enabled, false otherwise
205
+ */
206
+ function getFlashLoanEnabled(address asset) external view returns (bool);
207
+
208
+ /**
209
+ * @notice Returns whether virtual accounting is enabled/not for a reserve
210
+ * @param asset The address of the underlying asset of the reserve
211
+ * @return True if active, false otherwise
212
+ */
213
+ function getIsVirtualAccActive(address asset) external view returns (bool);
214
+
215
+ /**
216
+ * @notice Returns the virtual underlying balance of the reserve
217
+ * @param asset The address of the underlying asset of the reserve
218
+ * @return The reserve virtual underlying balance
219
+ */
220
+ function getVirtualUnderlyingBalance(address asset) external view returns (uint256);
221
+
222
+ /**
223
+ * @notice Returns the deficit of the reserve
224
+ * @param asset The address of the underlying asset of the reserve
225
+ * @return The reserve deficit
226
+ */
227
+ function getReserveDeficit(address asset) external view returns (uint256);
228
+ }
@@ -0,0 +1,32 @@
1
+ // SPDX-License-Identifier: AGPL-3.0
2
+ pragma solidity ^0.8.4;
3
+
4
+ import {IERC20Metadata as IERC20} from "@openzeppelin/contracts/interfaces/IERC20Metadata.sol";
5
+
6
+ /**
7
+ * @title IPriceOracleGetter
8
+ * @author Aave
9
+ * @notice Interface for the Aave price oracle.
10
+ */
11
+ interface IPriceOracleGetter {
12
+ /**
13
+ * @notice Returns the base currency address
14
+ * @dev Address 0x0 is reserved for USD as base currency.
15
+ * @return Returns the base currency address.
16
+ */
17
+ function BASE_CURRENCY() external view returns (IERC20);
18
+
19
+ /**
20
+ * @notice Returns the base currency unit
21
+ * @dev 1 ether for ETH, 1e8 for USD.
22
+ * @return Returns the base currency unit.
23
+ */
24
+ function BASE_CURRENCY_UNIT() external view returns (uint256);
25
+
26
+ /**
27
+ * @notice Returns the asset price in the base currency
28
+ * @param asset The address of the asset
29
+ * @return The price of the asset
30
+ */
31
+ function getAssetPrice(IERC20 asset) external view returns (uint256);
32
+ }
@@ -0,0 +1,123 @@
1
+ //SPDX-License-Identifier: BUSL-1.1
2
+ pragma solidity ^0.8.20;
3
+
4
+ import {PMath} from "../../../../core/libraries/math/PMath.sol";
5
+ import {MarketCtx} from "../../../../interfaces/IMoneyMarket.sol";
6
+ import {BaseMoneyMarket} from "../../BaseMoneyMarket.sol";
7
+ import {
8
+ IMorpho,
9
+ Market as MorphoMarketState,
10
+ MarketParams as MorphoMarketParams,
11
+ MorphoMarketId,
12
+ Position as MorphoPosition
13
+ } from "./dependencies/IMorpho.sol";
14
+ import {SharesMathLib} from "./dependencies/SharesMathLib.sol";
15
+
16
+ contract MorphoBlueMoneyMarket is BaseMoneyMarket {
17
+ using SharesMathLib for *;
18
+
19
+ /// @dev Morpho oracle returns price scaled by 1e36. PMath WAD is 1e18, so the divisor
20
+ /// `1e36 / WAD = 1e18` normalises the rate. Kept as a named constant for clarity.
21
+ uint256 internal constant ORACLE_PRICE_SCALE_TO_WAD_NUMERATOR = 1e36 / PMath.ONE;
22
+
23
+ IMorpho public immutable MORPHO;
24
+
25
+ constructor(address ptLooper, address _morpho) BaseMoneyMarket(ptLooper) {
26
+ MORPHO = IMorpho(_morpho);
27
+ }
28
+
29
+ // ========== IMoneyMarket ==========
30
+
31
+ function _initialize(MarketCtx memory ctx) internal virtual override {
32
+ _safeApproveInf(ctx.collateral, address(MORPHO));
33
+ _safeApproveInf(ctx.debtAsset, address(MORPHO));
34
+ }
35
+
36
+ function collateralBalance(MarketCtx memory ctx) public view override returns (uint256 balance) {
37
+ balance = _selfPosition(ctx.mmPayload).collateral;
38
+ }
39
+
40
+ /// @dev Mutating, not `view`: calls `MORPHO.accrueInterest` before reading. Sibling math is
41
+ /// duplicated in `MorphoBlueMoneyMarketView._moneyMarketBalances` — keep in sync on Morpho
42
+ /// protocol updates.
43
+ function debtBalance(MarketCtx memory ctx) public override returns (uint256 balance) {
44
+ MORPHO.accrueInterest(_marketParams(ctx.mmPayload)); // Accrue interest before loading the market state
45
+ MorphoMarketState memory market = _marketState(ctx.mmPayload);
46
+ MorphoPosition memory position = _selfPosition(ctx.mmPayload);
47
+ balance = position.borrowShares.toAssetsUp(market.totalBorrowAssets, market.totalBorrowShares);
48
+ }
49
+
50
+ function _lend(MarketCtx memory ctx, uint256 amount) internal virtual override returns (uint256 actualAmount) {
51
+ _transferIn(ctx.collateral, address(ctx.box), amount);
52
+ MORPHO.supplyCollateral({
53
+ marketParams: _marketParams(ctx.mmPayload), assets: amount, onBehalf: address(this), data: ""
54
+ });
55
+ return amount;
56
+ }
57
+
58
+ function _borrow(MarketCtx memory ctx, uint256 amount) internal virtual override returns (uint256 actualAmount) {
59
+ (actualAmount,) = MORPHO.borrow({
60
+ marketParams: _marketParams(ctx.mmPayload),
61
+ assets: amount,
62
+ shares: 0,
63
+ onBehalf: address(this),
64
+ receiver: address(ctx.box)
65
+ });
66
+ }
67
+
68
+ /// @dev Pull `actualShares.toAssetsUp(...)` — exactly the assets Morpho consumes when burning
69
+ /// `actualShares` — for both full and partial repays. `toAssetsUp(toSharesDown(amount)) <= amount`,
70
+ /// so this never over-pulls and leaves no debt-token dust stranded in this contract.
71
+ function _repay(MarketCtx memory ctx, uint256 amount, uint256)
72
+ internal
73
+ virtual
74
+ override
75
+ returns (uint256 actualAmount)
76
+ {
77
+ // Parent `BaseMoneyMarket.repay` called `debtBalance` which already accrued interest.
78
+ MorphoMarketParams memory marketParams = _marketParams(ctx.mmPayload);
79
+ MorphoMarketState memory market = _marketState(ctx.mmPayload);
80
+ uint256 borrowShares = _selfPosition(ctx.mmPayload).borrowShares;
81
+ uint256 actualShares =
82
+ PMath.min(amount.toSharesDown(market.totalBorrowAssets, market.totalBorrowShares), borrowShares);
83
+
84
+ if (actualShares > 0) {
85
+ uint256 pullAmount = actualShares.toAssetsUp(market.totalBorrowAssets, market.totalBorrowShares);
86
+ _transferIn(ctx.debtAsset, address(ctx.box), pullAmount);
87
+
88
+ (actualAmount,) = MORPHO.repay({
89
+ marketParams: marketParams, assets: 0, shares: actualShares, onBehalf: address(this), data: ""
90
+ });
91
+ }
92
+ }
93
+
94
+ function _withdraw(MarketCtx memory ctx, uint256 amount) internal virtual override returns (uint256 actualAmount) {
95
+ MORPHO.withdrawCollateral({
96
+ marketParams: _marketParams(ctx.mmPayload),
97
+ assets: amount,
98
+ onBehalf: address(this),
99
+ receiver: address(ctx.box)
100
+ });
101
+ return amount;
102
+ }
103
+
104
+ /// @dev Morpho's oracle is keyed by the market (resolved from `mmPayload`), not by individual
105
+ /// asset addresses — so `ctx.collateral` and `ctx.debtAsset` are unused here.
106
+ function oraclePtDebtRate(MarketCtx memory ctx) public view override returns (uint256) {
107
+ return _marketParams(ctx.mmPayload).oracle.price() / ORACLE_PRICE_SCALE_TO_WAD_NUMERATOR;
108
+ }
109
+
110
+ // ========== Internal helpers ==========
111
+
112
+ function _marketState(bytes32 mmPayload) internal view returns (MorphoMarketState memory) {
113
+ return MORPHO.market(MorphoMarketId.wrap(mmPayload));
114
+ }
115
+
116
+ function _marketParams(bytes32 mmPayload) internal view returns (MorphoMarketParams memory) {
117
+ return MORPHO.idToMarketParams(MorphoMarketId.wrap(mmPayload));
118
+ }
119
+
120
+ function _selfPosition(bytes32 mmPayload) internal view returns (MorphoPosition memory) {
121
+ return MORPHO.position(MorphoMarketId.wrap(mmPayload), address(this));
122
+ }
123
+ }
@@ -0,0 +1,66 @@
1
+ //SPDX-License-Identifier: BUSL-1.1
2
+ pragma solidity ^0.8.20;
3
+
4
+ import {IMorpho, MorphoMarketId, MarketParams, Market as MorphoMarketState} from "./dependencies/IMorpho.sol";
5
+ import {BaseMoneyMarketView} from "../../BaseMoneyMarketView.sol";
6
+ import {IPLoopPositionBox, BoxData} from "../../../../interfaces/IPLoopPositionBox.sol";
7
+ import {IERC20Metadata as IERC20} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
8
+
9
+ contract MorphoBlueMoneyMarketView is BaseMoneyMarketView {
10
+ IMorpho public immutable MORPHO;
11
+
12
+ constructor(string memory _moneyMarketName, address _ptLooper, address _morpho)
13
+ BaseMoneyMarketView(_moneyMarketName, _ptLooper)
14
+ {
15
+ MORPHO = IMorpho(_morpho);
16
+ }
17
+
18
+ // ========== IMoneyMarketView ==========
19
+
20
+ // `_moneyMarketBalances` is inherited from `BaseMoneyMarketView`, which reads the
21
+ // canonical `collateralBalance` / `debtBalance` off the spoke MM clone (the latter accrues
22
+ // interest before reading) — no need to re-implement Morpho's shares math here.
23
+
24
+ function _thresholds(IPLoopPositionBox, BoxData memory bd)
25
+ internal
26
+ view
27
+ virtual
28
+ override
29
+ returns (uint256 ltv, uint256 liquidationThreshold)
30
+ {
31
+ // Morpho has a single LLTV, so ltv == liquidationThreshold
32
+ ltv = liquidationThreshold = MORPHO.idToMarketParams(_morphoMarketId(bd)).lltv;
33
+ }
34
+
35
+ function _liquidity(IPLoopPositionBox, BoxData memory bd)
36
+ internal
37
+ view
38
+ virtual
39
+ override
40
+ returns (uint256 borrowing, uint256 lending)
41
+ {
42
+ MorphoMarketState memory market = MORPHO.market(_morphoMarketId(bd));
43
+ borrowing = market.totalSupplyAssets - market.totalBorrowAssets;
44
+ lending = IERC20(bd.spokePt).totalSupply();
45
+ }
46
+
47
+ function _rates(IPLoopPositionBox, BoxData memory bd)
48
+ internal
49
+ view
50
+ virtual
51
+ override
52
+ returns (uint256 borrowing, uint256 lending)
53
+ {
54
+ MorphoMarketId marketId = _morphoMarketId(bd);
55
+ MarketParams memory params = MORPHO.idToMarketParams(marketId);
56
+
57
+ borrowing = _apy({rate: params.irm.borrowRateView(params, MORPHO.market(marketId)), perSeconds: 1});
58
+ lending = 0;
59
+ }
60
+
61
+ // ========== Other internal helpers ==========
62
+
63
+ function _morphoMarketId(BoxData memory bd) internal pure returns (MorphoMarketId) {
64
+ return MorphoMarketId.wrap(bd.mmPayload);
65
+ }
66
+ }