@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.
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.json +2 -2
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.json +5 -5
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.json +2 -2
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.json +2 -2
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.json +2 -2
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.json +2 -2
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +2 -2
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.json +2 -2
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.json +2 -2
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.json +2 -2
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.json +2 -2
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.json +2 -2
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.json +2 -2
- package/build/artifacts/contracts/cross-chain/OFTPTSwapper.sol/OFTPTSwapper.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/OFTPTSwapper.sol/OFTPTSwapper.json +99 -0
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.json +2 -2
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.json +2 -2
- package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.json +2 -2
- package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.json +2 -2
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.json +2 -2
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.json +2 -2
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.json +2 -2
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.json +2 -2
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.json +2 -2
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.json +2 -2
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +2 -2
- package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +1 -1
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
- package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarket.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarket.json +578 -0
- package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarketEvents.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarketEvents.json +160 -0
- package/build/artifacts/contracts/interfaces/IMoneyMarketView.sol/IMoneyMarketView.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IMoneyMarketView.sol/IMoneyMarketView.json +238 -0
- package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBridgeDataVerifier.sol/IPBridgeDataVerifier.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPBridgeDataVerifier.sol/IPBridgeDataVerifier.json +81 -0
- package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLoopPositionBox.sol/IPLoopPositionBox.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPLoopPositionBox.sol/IPLoopPositionBox.json +170 -0
- package/build/artifacts/contracts/interfaces/IPLoopPositionBoxFactory.sol/IPLoopPositionBoxFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPLoopPositionBoxFactory.sol/IPLoopPositionBoxFactory.json +377 -0
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPOFTPTSwapper.sol/IPOFTPTSwapper.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPSwapHelper.sol/IPSwapHelper.json → IPOFTPTSwapper.sol/IPOFTPTSwapper.json} +2 -2
- package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.json +2476 -0
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooperEIP712Types.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooperEIP712Types.json +10 -0
- package/build/artifacts/contracts/interfaces/IPPTLooperView.sol/IPPTLooperView.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPPTLooperView.sol/IPPTLooperView.json +209 -0
- package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPostPtLoopStateChecker.sol/IPPostPtLoopStateChecker.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPPostPtLoopStateChecker.sol/IPPostPtLoopStateChecker.json +29 -0
- package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPStakedPendle.sol/IPStakedPendle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPStaticQuoter.sol/IPStaticQuoter.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPStaticQuoter.sol/IPStaticQuoter.json +55 -0
- package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
- package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +1 -1
- package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
- package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol/PendleCrossChainOracleBaseApp_Init.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.json +2 -2
- package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.json +2 -2
- package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.json +2 -2
- package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.json +2 -2
- package/build/artifacts/contracts/pt-looping/BridgeDataVerifier.sol/BridgeDataVerifier.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/BridgeDataVerifier.sol/BridgeDataVerifier.json +405 -0
- package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.json +2626 -0
- package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.json +2660 -0
- package/build/artifacts/contracts/pt-looping/PendlePTLooperView.sol/PendlePTLooperView.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/PendlePTLooperView.sol/PendlePTLooperView.json +334 -0
- package/build/artifacts/contracts/pt-looping/PostPtLoopStateChecker.sol/PostPtLoopStateChecker.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/PostPtLoopStateChecker.sol/PostPtLoopStateChecker.json +79 -0
- package/build/artifacts/contracts/pt-looping/StaticStableQuoter.sol/StaticStableQuoter.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/StaticStableQuoter.sol/StaticStableQuoter.json +233 -0
- package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBox.sol/LoopPositionBox.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBox.sol/LoopPositionBox.json +198 -0
- package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBoxFactory.sol/LoopPositionBoxFactory.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBoxFactory.sol/LoopPositionBoxFactory.json +555 -0
- package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarket.sol/BaseMoneyMarket.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarket.sol/BaseMoneyMarket.json +604 -0
- package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarketView.sol/BaseMoneyMarketView.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarketView.sol/BaseMoneyMarketView.json +264 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMMPayloadLib.sol/AaveMMPayloadLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMMPayloadLib.sol/AaveMMPayloadLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.json +659 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.json +355 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/AaveDataTypes.sol/AaveDataTypes.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/AaveDataTypes.sol/AaveDataTypes.json +10 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAToken.sol/IAToken.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAToken.sol/IAToken.json +246 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveOracle.sol/IAaveOracle.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveOracle.sol/IAaveOracle.json +120 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveRewardsController.sol/IAaveRewardsController.json +724 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPool.sol/IPool.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPool.sol/IPool.json +1600 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolAddressesProvider.sol/IPoolAddressesProvider.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolAddressesProvider.sol/IPoolAddressesProvider.json +507 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolDataProviderV3.sol/IPoolDataProviderV3.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolDataProviderV3.sol/IPoolDataProviderV3.json +577 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPriceOracleGetter.sol/IPriceOracleGetter.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPriceOracleGetter.sol/IPriceOracleGetter.json +56 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.json +633 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.json +298 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IIrm.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IIrm.json +234 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IMorpho.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IMorpho.json +1033 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorphoOracle.sol/IMorphoOracle.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorphoOracle.sol/IMorphoOracle.json +24 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/MathLib.sol/MathLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/MathLib.sol/MathLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/SharesMathLib.sol/SharesMathLib.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/SharesMathLib.sol/SharesMathLib.json +10 -0
- package/build/artifacts/contracts/pt-looping/vendor/bungee/IBungeeInbox.sol/IBungeeSORInbox.dbg.json +4 -0
- package/build/artifacts/contracts/pt-looping/vendor/bungee/IBungeeInbox.sol/IBungeeSORInbox.json +143 -0
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
- package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
- package/contracts/cross-chain/{PendleSwapHelper.sol → OFTPTSwapper.sol} +4 -3
- package/contracts/interfaces/IMoneyMarket.sol +60 -0
- package/contracts/interfaces/IMoneyMarketView.sol +42 -0
- package/contracts/interfaces/IPBridgeDataVerifier.sol +23 -0
- package/contracts/interfaces/IPLoopPositionBox.sol +38 -0
- package/contracts/interfaces/IPLoopPositionBoxFactory.sol +37 -0
- package/contracts/interfaces/{IPSwapHelper.sol → IPOFTPTSwapper.sol} +1 -1
- package/contracts/interfaces/IPPTLooper.sol +301 -0
- package/contracts/interfaces/IPPTLooperView.sol +35 -0
- package/contracts/interfaces/IPPostPtLoopStateChecker.sol +8 -0
- package/contracts/interfaces/IPStaticQuoter.sol +13 -0
- package/contracts/pt-looping/BridgeDataVerifier.sol +158 -0
- package/contracts/pt-looping/PTLooperBase.sol +236 -0
- package/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol +210 -0
- package/contracts/pt-looping/PendlePTLooper.sol +318 -0
- package/contracts/pt-looping/PendlePTLooperView.sol +42 -0
- package/contracts/pt-looping/PostPtLoopStateChecker.sol +79 -0
- package/contracts/pt-looping/StaticStableQuoter.sol +46 -0
- package/contracts/pt-looping/loop-position-box/LoopPositionBox.sol +85 -0
- package/contracts/pt-looping/loop-position-box/LoopPositionBoxFactory.sol +123 -0
- package/contracts/pt-looping/money-market/BaseMoneyMarket.sol +129 -0
- package/contracts/pt-looping/money-market/BaseMoneyMarketView.sol +123 -0
- package/contracts/pt-looping/money-market/implementations/aave/AaveMMPayloadLib.sol +16 -0
- package/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol +123 -0
- package/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol +200 -0
- package/contracts/pt-looping/money-market/implementations/aave/dependencies/AaveDataTypes.sol +259 -0
- package/contracts/pt-looping/money-market/implementations/aave/dependencies/IAToken.sol +8 -0
- package/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveOracle.sol +33 -0
- package/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveRewardsController.sol +68 -0
- package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPool.sol +664 -0
- package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolAddressesProvider.sol +227 -0
- package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolDataProviderV3.sol +228 -0
- package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPriceOracleGetter.sol +32 -0
- package/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol +123 -0
- package/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol +66 -0
- package/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol +300 -0
- package/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorphoOracle.sol +14 -0
- package/contracts/pt-looping/money-market/implementations/morpho/dependencies/MathLib.sol +35 -0
- package/contracts/pt-looping/money-market/implementations/morpho/dependencies/SharesMathLib.sol +42 -0
- package/contracts/pt-looping/vendor/bungee/IBungeeInbox.sol +36 -0
- package/contracts/router/swap-aggregator/OKXScaleHelper.sol +4 -1
- package/deployments/1-core.json +4 -1
- package/deployments/130-core.json +2 -1
- package/deployments/143-core.json +2 -1
- package/deployments/42161-core.json +2 -1
- package/deployments/4217-core.json +5 -1
- package/deployments/43114-core.json +2 -1
- package/deployments/56-core.json +2 -1
- package/deployments/57073-core.json +2 -1
- package/deployments/747474-core.json +2 -1
- package/deployments/8453-core.json +2 -1
- package/deployments/9745-core.json +2 -1
- package/deployments/999-core.json +2 -1
- package/package.json +2 -1
- package/typechain-types/AaveMoneyMarket.ts +147 -290
- package/typechain-types/AaveMoneyMarketView.ts +0 -13
- package/typechain-types/BaseMoneyMarket.ts +147 -271
- package/typechain-types/BridgeDataVerifier.ts +564 -0
- package/typechain-types/IBungeeSORInbox.ts +192 -0
- package/typechain-types/IMoneyMarket.ts +124 -282
- package/typechain-types/IMoneyMarketEvents.ts +31 -56
- package/typechain-types/IPBridgeDataVerifier.ts +148 -0
- package/typechain-types/IPLoopPositionBox.ts +0 -13
- package/typechain-types/IPLoopPositionBoxFactory.ts +5 -39
- package/typechain-types/IPOFTPTSwapper.ts +161 -0
- package/typechain-types/IPPTLooper.ts +658 -695
- package/typechain-types/IPPTLooperView.ts +56 -251
- package/typechain-types/IPPostPtLoopStateChecker.ts +106 -0
- package/typechain-types/IPStaticQuoter.ts +132 -0
- package/typechain-types/IPool.ts +8 -8
- package/typechain-types/IPoolDataProviderV3.ts +76 -8
- package/typechain-types/LoopPositionBox.ts +25 -38
- package/typechain-types/LoopPositionBoxFactory.ts +17 -51
- package/typechain-types/MorphoBlueMoneyMarket.ts +141 -286
- package/typechain-types/MorphoBlueMoneyMarketView.ts +0 -21
- package/typechain-types/OFTPTSwapper.ts +161 -0
- package/typechain-types/PTLooperBase.ts +671 -708
- package/typechain-types/PendlePTLooper.ts +671 -708
- package/typechain-types/PendlePTLooperView.ts +71 -266
- package/typechain-types/PostPtLoopStateChecker.ts +151 -0
- package/typechain-types/StaticStableQuoter.ts +395 -0
- package/typechain-types/factories/AaveMoneyMarketView__factory.ts +1 -23
- package/typechain-types/factories/AaveMoneyMarket__factory.ts +265 -267
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSimple__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/AddressCast__factory.ts +1 -1
- package/typechain-types/factories/AddressProvider__factory.ts +1 -1
- package/typechain-types/factories/BalanceReader__factory.ts +1 -1
- package/typechain-types/factories/BaseMoneyMarket__factory.ts +264 -244
- package/typechain-types/factories/BaseSplitCodeFactoryContract__factory.ts +1 -1
- package/typechain-types/factories/BoringOwnableUpgradeableData__factory.ts +1 -1
- package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +1 -1
- package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +1 -1
- package/typechain-types/factories/BridgeDataVerifier__factory.ts +463 -0
- package/typechain-types/factories/BridgeFunder__factory.ts +1 -1
- package/typechain-types/factories/DVNOptions__factory.ts +1 -1
- package/typechain-types/factories/DepositBoxFactory__factory.ts +1 -1
- package/typechain-types/factories/DepositBox__factory.ts +1 -1
- package/typechain-types/factories/ERC1967Proxy__factory.ts +1 -1
- package/typechain-types/factories/ERC20Upgradeable__factory.ts +1 -1
- package/typechain-types/factories/ERC20__factory.ts +1 -1
- package/typechain-types/factories/EmptyUUPS__factory.ts +1 -1
- package/typechain-types/factories/Errors__factory.ts +1 -1
- package/typechain-types/factories/ExchangeRateMsgCodec__factory.ts +1 -1
- package/typechain-types/factories/ExecutorOptions__factory.ts +1 -1
- package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
- package/typechain-types/factories/FixedPricePTAMMV2__factory.ts +1 -1
- package/typechain-types/factories/IBungeeSORInbox__factory.ts +158 -0
- package/typechain-types/factories/IMoneyMarketEvents__factory.ts +11 -61
- package/typechain-types/factories/IMoneyMarket__factory.ts +250 -256
- package/typechain-types/factories/IPBridgeDataVerifier__factory.ts +100 -0
- package/typechain-types/factories/IPLoopPositionBoxFactory__factory.ts +8 -32
- package/typechain-types/factories/IPLoopPositionBox__factory.ts +0 -13
- package/typechain-types/factories/IPOFTPTSwapper__factory.ts +114 -0
- package/typechain-types/factories/IPPTLooperView__factory.ts +94 -201
- package/typechain-types/factories/IPPTLooper__factory.ts +1030 -1043
- package/typechain-types/factories/IPPostPtLoopStateChecker__factory.ts +48 -0
- package/typechain-types/factories/IPStaticQuoter__factory.ts +70 -0
- package/typechain-types/factories/IPoolDataProviderV3__factory.ts +39 -1
- package/typechain-types/factories/IPool__factory.ts +2 -2
- package/typechain-types/factories/LegacyNFTHelper__factory.ts +1 -1
- package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
- package/typechain-types/factories/LoopPositionBoxFactory__factory.ts +26 -50
- package/typechain-types/factories/LoopPositionBox__factory.ts +11 -35
- package/typechain-types/factories/MarketSweed__factory.ts +1 -1
- package/typechain-types/factories/MorphoBlueMoneyMarketView__factory.ts +1 -14
- package/typechain-types/factories/MorphoBlueMoneyMarket__factory.ts +257 -250
- package/typechain-types/factories/Multicall2__factory.ts +1 -1
- package/typechain-types/factories/NonceManager__factory.ts +1 -1
- package/typechain-types/factories/OFTAdapterAltImpl__factory.ts +1 -1
- package/typechain-types/factories/OFTAdapterImpl__factory.ts +1 -1
- package/typechain-types/factories/OFTAdapter__factory.ts +0 -11
- package/typechain-types/factories/OFTPTSwapper__factory.ts +149 -0
- package/typechain-types/factories/OptionsBuilder__factory.ts +1 -1
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PTLooperBase__factory.ts +1122 -1135
- package/typechain-types/factories/PendleAPIFeeDepositor__factory.ts +1 -1
- package/typechain-types/factories/PendleBoringOneracle__factory.ts +1 -1
- package/typechain-types/factories/PendleBoringSolvBTCOneracle__factory.ts +1 -1
- package/typechain-types/factories/PendleBridgePTFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleBridgedPrincipalTokenAlt__factory.ts +1 -1
- package/typechain-types/factories/PendleBridgedPrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendleChainlinkOracleFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleChainlinkOracleWithQuote__factory.ts +1 -1
- package/typechain-types/factories/PendleChainlinkOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
- package/typechain-types/factories/PendleCommonSYFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +1 -1
- package/typechain-types/factories/PendleERC20__factory.ts +1 -1
- package/typechain-types/factories/PendleExchangeRateOracleApp__factory.ts +1 -1
- package/typechain-types/factories/PendleExchangeRateOracleV2__factory.ts +1 -1
- package/typechain-types/factories/PendleExchangeRateOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeSetter__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGovernanceProxy__factory.ts +1 -1
- package/typechain-types/factories/PendleLPWrapperFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleLPWrapper__factory.ts +1 -1
- package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleLinearDiscountOracleWrapper__factory.ts +1 -1
- package/typechain-types/factories/PendleLpLinearDiscountOracleFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleLpLinearDiscountOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactoryV7Upg__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketV7__factory.ts +1 -1
- package/typechain-types/factories/PendleMerkleDepositor__factory.ts +1 -1
- package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleMulticallOwnerV1__factory.ts +1 -1
- package/typechain-types/factories/PendleMulticallV1__factory.ts +1 -1
- package/typechain-types/factories/PendleMulticallV2__factory.ts +1 -1
- package/typechain-types/factories/PendleOFTAlt__factory.ts +1 -1
- package/typechain-types/factories/PendleOFT__factory.ts +1 -1
- package/typechain-types/factories/PendleOffchainStorage__factory.ts +1 -1
- package/typechain-types/factories/PendlePTLooperView__factory.ts +100 -207
- package/typechain-types/factories/PendlePTLooper__factory.ts +1132 -1136
- package/typechain-types/factories/PendlePTOFTAdapterFactory__factory.ts +1 -1
- package/typechain-types/factories/PendlePYLpOracle__factory.ts +1 -1
- package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendleProxyAdmin__factory.ts +1 -1
- package/typechain-types/factories/PendleRedStoneRateOracleAdapter__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
- package/typechain-types/factories/PendleSparkLinearDiscountOracleFactoryWrapper__factory.ts +1 -1
- package/typechain-types/factories/PendleSparkLinearDiscountOracleFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleSparkLinearDiscountOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleSwap__factory.ts +1 -1
- package/typechain-types/factories/PendleWstETHPriceFeed__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactoryUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/PostPtLoopStateChecker__factory.ts +141 -0
- package/typechain-types/factories/ProxyAdmin__factory.ts +1 -1
- package/typechain-types/factories/Reflector__factory.ts +1 -1
- package/typechain-types/factories/SDKErrorsDirectory__factory.ts +1 -1
- package/typechain-types/factories/SimulateHelper__factory.ts +1 -1
- package/typechain-types/factories/StakedPendle__factory.ts +1 -1
- package/typechain-types/factories/StaticStableQuoter__factory.ts +286 -0
- package/typechain-types/factories/SupplyCapReader__factory.ts +1 -1
- package/typechain-types/factories/TransparentUpgradeableProxy__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +360 -0
- package/typechain-types/index.ts +80 -0
- package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.dbg.json +0 -4
- package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.json +0 -99
- 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
|
+
}
|
package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolDataProviderV3.sol
ADDED
|
@@ -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
|
+
}
|
package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPriceOracleGetter.sol
ADDED
|
@@ -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
|
+
}
|
package/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol
ADDED
|
@@ -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
|
+
}
|