@pendle/core-v2 6.6.0 → 6.7.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/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/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/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -88
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -122
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- 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/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- 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/PendleMarketV7.sol/PendleMarketV7.dbg.json +1 -1
- 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/SYUtils.sol/SYUtils.dbg.json +1 -1
- 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/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
- 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/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
- 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/PMath.sol/PMath.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.json +766 -0
- package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.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/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.json +1388 -0
- package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.json +210 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.json +1326 -0
- 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 +46 -14
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.json +1541 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.json +1570 -0
- 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 +57 -35
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.json +1624 -0
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
- 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/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/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/IPAllActionV3.sol/IPAllActionV3.json +0 -88
- 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/IPBridgeFunder.sol/IPBridgeFunder.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.json +85 -0
- package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.json +1026 -0
- package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.json +11 -0
- 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 +4 -0
- package/build/artifacts/contracts/interfaces/{IPFixedPricePTAMM.sol → IPFixedPricePTAMMV2.sol}/IPFixedPricePTAMMSwapCallback.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPFixedPricePTAMM.sol/IPFixedPricePTAMM.json → IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.json} +285 -93
- 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/IPLimitRouter.json +156 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
- 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/IPMerkleDistributor.sol/IPMerkleDistributor.json +0 -67
- 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/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.json +0 -120
- 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/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/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/IPSwapHelper.sol/IPSwapHelper.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPActionCrossChain.sol/IPActionCrossChain.json → IPSwapHelper.sol/IPSwapHelper.json} +2 -2
- 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/LimitRouterBase.sol/LimitRouterBase.json +258 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +265 -3
- package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +4 -0
- package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.json +156 -0
- package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
- 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/ILegacyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
- 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/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/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +33 -2
- package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.json +171 -0
- package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
- 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/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/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/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
- 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/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
- 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/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
- 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/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
- 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/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
- 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/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
- 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/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/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/LiquidityMining/PendleMerkleDistributor.sol +1 -28
- package/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol +1 -36
- package/contracts/cross-chain/FixedPricePTAMMV2.sol +162 -0
- package/contracts/{router/ActionCrossChain.sol → cross-chain/PendleSwapHelper.sol} +11 -7
- package/contracts/cross-chain/factory/PendleBridgePTFactory.sol +495 -0
- package/contracts/cross-chain/funder/BridgeFunder.sol +61 -0
- package/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol +56 -0
- package/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol +14 -6
- package/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol +11 -0
- package/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol +52 -0
- package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol +33 -24
- package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol +55 -0
- package/contracts/interfaces/IPAllActionTypeV3.sol +1 -0
- package/contracts/interfaces/IPAllActionV3.sol +1 -3
- package/contracts/interfaces/IPBridgeFunder.sol +17 -0
- package/contracts/interfaces/IPBridgePTFactory.sol +129 -0
- package/contracts/interfaces/IPBridgedPrincipalToken.sol +4 -2
- package/contracts/interfaces/IPFixedPricePTAMMV2.sol +58 -0
- package/contracts/interfaces/IPLimitRouter.sol +22 -0
- package/contracts/interfaces/IPMerkleDistributor.sol +0 -7
- package/contracts/interfaces/IPMultiTokenMerkleDistributor.sol +0 -10
- package/contracts/interfaces/{IPActionCrossChain.sol → IPSwapHelper.sol} +1 -1
- package/contracts/limit/LimitRouterBase.sol +101 -47
- package/contracts/limit/PendleLimitRouter.sol +1 -1
- package/contracts/limit/helpers/MintSyHelper.sol +114 -0
- package/contracts/offchain-helpers/PendleFeeSetter.sol +19 -1
- package/contracts/offchain-helpers/PendleProxyAdmin.sol +11 -0
- package/contracts/router/base/ActionBase.sol +16 -2
- package/contracts/router/swap-aggregator/OKXScaleHelper.sol +4 -1
- package/deployments/1-core.json +1 -0
- package/deployments/1-offchain-helper.json +1 -1
- package/deployments/10-core.json +1 -0
- package/deployments/10-offchain-helper.json +1 -1
- package/deployments/130-core.json +1 -0
- package/deployments/143-core.json +39 -2
- package/deployments/143-offchain-helper.json +11 -0
- package/deployments/146-core.json +1 -0
- package/deployments/146-offchain-helper.json +1 -1
- package/deployments/42161-core.json +1 -0
- package/deployments/42161-offchain-helper.json +1 -1
- package/deployments/4217-core.json +15 -0
- package/deployments/43114-core.json +2 -0
- package/deployments/5000-core.json +1 -0
- package/deployments/5000-offchain-helper.json +1 -1
- package/deployments/56-core.json +1 -0
- package/deployments/56-offchain-helper.json +1 -1
- package/deployments/57073-core.json +3 -0
- package/deployments/747474-core.json +3 -0
- package/deployments/80094-core.json +1 -0
- package/deployments/80094-offchain-helper.json +1 -1
- package/deployments/8453-core.json +1 -0
- package/deployments/8453-offchain-helper.json +1 -1
- package/deployments/9745-core.json +1 -0
- package/deployments/9745-offchain-helper.json +1 -1
- package/deployments/999-core.json +1 -0
- package/deployments/999-offchain-helper.json +1 -1
- package/package.json +12 -9
- package/typechain-types/AaveMoneyMarket.ts +763 -0
- package/typechain-types/AaveMoneyMarketView.ts +460 -0
- package/typechain-types/BaseMoneyMarket.ts +697 -0
- package/typechain-types/BaseMoneyMarketView.ts +362 -0
- package/typechain-types/BridgeFunder.ts +344 -0
- package/typechain-types/DVNOptions.ts +57 -0
- package/typechain-types/ExecutorOptions.ts +57 -0
- package/typechain-types/FixedPricePTAMMV2.ts +1104 -0
- package/typechain-types/IAToken.ts +358 -0
- package/typechain-types/IAaveOracle.ts +235 -0
- package/typechain-types/IAaveRewardsController.ts +1186 -0
- package/typechain-types/IDefaultReserveInterestRateStrategyV3.ts +431 -0
- package/typechain-types/IDefaultReserveInterestRateStrategyV31.ts +606 -0
- package/typechain-types/IDssPsm.ts +194 -0
- package/typechain-types/IERC4626.ts +864 -0
- package/typechain-types/IFlashLoanReceiver.ts +125 -0
- package/typechain-types/IIrm.ts +260 -0
- package/typechain-types/IMoneyMarket.ts +700 -0
- package/typechain-types/IMoneyMarketEvents.ts +196 -0
- package/typechain-types/IMoneyMarketView.ts +331 -0
- package/typechain-types/IMorpho.ts +1147 -0
- package/typechain-types/IMorphoOracle.ts +81 -0
- package/typechain-types/IMulticall.ts +117 -0
- package/typechain-types/IPAllActionV3.ts +0 -54
- package/typechain-types/IPBridgeFunder.ts +165 -0
- package/typechain-types/IPBridgePTFactory.ts +936 -0
- package/typechain-types/IPFixedPricePTAMMV2.ts +864 -0
- package/typechain-types/IPLimitRouter.ts +104 -0
- package/typechain-types/IPLoopPositionBox.ts +298 -0
- package/typechain-types/IPLoopPositionBoxFactory.ts +434 -0
- package/typechain-types/IPMerkleDistributor.ts +0 -90
- package/typechain-types/IPMultiTokenMerkleDistributor.ts +0 -158
- package/typechain-types/IPPTLooper.ts +1550 -0
- package/typechain-types/IPPTLooperView.ts +468 -0
- package/typechain-types/IPSwapHelper.ts +161 -0
- package/typechain-types/IPool.ts +2220 -0
- package/typechain-types/IPoolAddressesProvider.ts +789 -0
- package/typechain-types/IPoolDataProviderV3.ts +865 -0
- package/typechain-types/IPoolDataProviderV31.ts +933 -0
- package/typechain-types/IPot.ts +181 -0
- package/typechain-types/IPriceOracleGetter.ts +133 -0
- package/typechain-types/ISDAI.ts +877 -0
- package/typechain-types/LimitRouterBase.ts +233 -5
- package/typechain-types/LoopPositionBox.ts +309 -0
- package/typechain-types/LoopPositionBoxFactory.ts +609 -0
- package/typechain-types/MintSyHelper.ts +230 -0
- package/typechain-types/MorphoBlueMoneyMarket.ts +731 -0
- package/typechain-types/MorphoBlueMoneyMarketView.ts +396 -0
- package/typechain-types/Multicall.ts +117 -0
- package/typechain-types/OAppPreCrimeSimulatorUpgradeable.ts +410 -0
- package/typechain-types/OFTAdapterAltImpl.ts +1381 -0
- package/typechain-types/OFTAdapterImpl.ts +50 -19
- package/typechain-types/OFTAdapterUpgradeable.ts +1337 -0
- package/typechain-types/OFTCoreUpgradeable.ts +1337 -0
- package/typechain-types/OFTUpgradeable.ts +1681 -0
- package/typechain-types/OptionsBuilder.ts +57 -0
- package/typechain-types/PTLooperBase.ts +1759 -0
- package/typechain-types/PTLooperView.ts +618 -0
- package/typechain-types/PendleBridgePTFactory.ts +1311 -0
- package/typechain-types/PendleBridgedPrincipalToken.ts +67 -20
- package/typechain-types/PendleBridgedPrincipalTokenAlt.ts +1755 -0
- package/typechain-types/PendleFeeSetter.ts +53 -0
- package/typechain-types/PendleLimitRouter.ts +233 -5
- package/typechain-types/PendleMerkleDistributor.ts +0 -106
- package/typechain-types/PendleMultiTokenMerkleDistributor.ts +0 -158
- package/typechain-types/PendleOFT.ts +1675 -0
- package/typechain-types/PendleOFTAlt.ts +1694 -0
- package/typechain-types/PendlePTLooper.ts +1784 -0
- package/typechain-types/PendlePTLooperView.ts +648 -0
- package/typechain-types/PendleProxyAdmin.ts +341 -0
- package/typechain-types/PendleSwapHelper.ts +161 -0
- package/typechain-types/ProxyAdmin.ts +341 -0
- package/typechain-types/UUPSUpgradeable.ts +0 -9
- package/typechain-types/factories/AaveMoneyMarketView__factory.ts +450 -0
- package/typechain-types/factories/AaveMoneyMarket__factory.ts +726 -0
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCrossChain__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/BaseMoneyMarketView__factory.ts +279 -0
- package/typechain-types/factories/BaseMoneyMarket__factory.ts +599 -0
- package/typechain-types/factories/BridgeFunder__factory.ts +265 -0
- package/typechain-types/factories/DVNOptions__factory.ts +77 -0
- package/typechain-types/factories/ExecutorOptions__factory.ts +84 -0
- package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
- package/typechain-types/factories/FixedPricePTAMMV2__factory.ts +824 -0
- package/typechain-types/factories/FixedPricePTAMM__factory.ts +1 -1
- package/typechain-types/factories/IAToken__factory.ts +258 -0
- package/typechain-types/factories/IAaveOracle__factory.ts +132 -0
- package/typechain-types/factories/IAaveRewardsController__factory.ts +743 -0
- package/typechain-types/factories/IDefaultReserveInterestRateStrategyV31__factory.ts +441 -0
- package/typechain-types/factories/IDefaultReserveInterestRateStrategyV3__factory.ts +278 -0
- package/typechain-types/factories/IDssPsm__factory.ts +122 -0
- package/typechain-types/factories/IERC4626__factory.ts +635 -0
- package/typechain-types/factories/IFlashLoanReceiver__factory.ts +65 -0
- package/typechain-types/factories/IIrm__factory.ts +243 -0
- package/typechain-types/factories/IMoneyMarketEvents__factory.ts +225 -0
- package/typechain-types/factories/IMoneyMarketView__factory.ts +253 -0
- package/typechain-types/factories/IMoneyMarket__factory.ts +596 -0
- package/typechain-types/factories/IMorphoOracle__factory.ts +36 -0
- package/typechain-types/factories/IMorpho__factory.ts +1045 -0
- package/typechain-types/factories/IMulticall__factory.ts +66 -0
- package/typechain-types/factories/IOFT__factory.ts +11 -0
- package/typechain-types/factories/IPAllActionV3__factory.ts +0 -88
- package/typechain-types/factories/IPBridgeFunder__factory.ts +100 -0
- package/typechain-types/factories/IPBridgePTFactory__factory.ts +1041 -0
- package/typechain-types/factories/IPBridgedPrincipalToken__factory.ts +11 -0
- package/typechain-types/factories/IPFixedPricePTAMMV2__factory.ts +621 -0
- package/typechain-types/factories/IPLimitRouter__factory.ts +156 -0
- package/typechain-types/factories/IPLoopPositionBoxFactory__factory.ts +420 -0
- package/typechain-types/factories/IPLoopPositionBox__factory.ts +198 -0
- package/typechain-types/factories/IPMerkleDistributor__factory.ts +0 -67
- package/typechain-types/factories/IPMultiTokenMerkleDistributor__factory.ts +0 -120
- package/typechain-types/factories/IPPTLooperView__factory.ts +331 -0
- package/typechain-types/factories/IPPTLooper__factory.ts +2506 -0
- package/typechain-types/factories/IPSwapHelper__factory.ts +111 -0
- package/typechain-types/factories/IPoolAddressesProvider__factory.ts +526 -0
- package/typechain-types/factories/IPoolDataProviderV31__factory.ts +596 -0
- package/typechain-types/factories/IPoolDataProviderV3__factory.ts +554 -0
- package/typechain-types/factories/IPool__factory.ts +1609 -0
- package/typechain-types/factories/IPot__factory.ts +98 -0
- package/typechain-types/factories/IPriceOracleGetter__factory.ts +71 -0
- package/typechain-types/factories/ISDAI__factory.ts +645 -0
- package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
- package/typechain-types/factories/LimitRouterBase__factory.ts +258 -1
- package/typechain-types/factories/LoopPositionBoxFactory__factory.ts +648 -0
- package/typechain-types/factories/LoopPositionBox__factory.ts +277 -0
- package/typechain-types/factories/MarketSweed__factory.ts +1 -1
- package/typechain-types/factories/MintSyHelper__factory.ts +168 -0
- package/typechain-types/factories/MorphoBlueMoneyMarketView__factory.ts +384 -0
- package/typechain-types/factories/MorphoBlueMoneyMarket__factory.ts +691 -0
- package/typechain-types/factories/Multicall__factory.ts +104 -0
- package/typechain-types/factories/OAppPreCrimeSimulatorUpgradeable__factory.ts +311 -0
- package/typechain-types/factories/OFTAdapterAltImpl__factory.ts +1387 -0
- package/typechain-types/factories/OFTAdapterImpl__factory.ts +49 -25
- package/typechain-types/factories/OFTAdapterUpgradeable__factory.ts +1287 -0
- package/typechain-types/factories/OFTAdapter__factory.ts +11 -0
- package/typechain-types/factories/OFTCoreUpgradeable__factory.ts +1283 -0
- package/typechain-types/factories/OFTCore__factory.ts +11 -0
- package/typechain-types/factories/OFTUpgradeable__factory.ts +1553 -0
- package/typechain-types/factories/OFT__factory.ts +11 -0
- package/typechain-types/factories/OptionsBuilder__factory.ts +91 -0
- package/typechain-types/factories/PTLooperBase__factory.ts +2656 -0
- package/typechain-types/factories/PTLooperView__factory.ts +467 -0
- package/typechain-types/factories/PendleBridgePTFactory__factory.ts +1481 -0
- package/typechain-types/factories/PendleBridgedPrincipalTokenAlt__factory.ts +1704 -0
- package/typechain-types/factories/PendleBridgedPrincipalToken__factory.ts +60 -58
- package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeSetter__factory.ts +36 -1
- package/typechain-types/factories/PendleLimitRouter__factory.ts +268 -3
- package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -87
- package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -121
- package/typechain-types/factories/PendleOFTAlt__factory.ts +1628 -0
- package/typechain-types/factories/PendleOFT__factory.ts +1599 -0
- package/typechain-types/factories/PendlePTLooperView__factory.ts +499 -0
- package/typechain-types/factories/PendlePTLooper__factory.ts +2738 -0
- package/typechain-types/factories/PendlePTOFTAdapterFactory__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/PendleProxyAdmin__factory.ts +229 -0
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapHelper__factory.ts +152 -0
- package/typechain-types/factories/PendleSwap__factory.ts +1 -1
- package/typechain-types/factories/ProxyAdmin__factory.ts +210 -0
- package/typechain-types/factories/Reflector__factory.ts +1 -1
- package/typechain-types/factories/UUPSUpgradeable__factory.ts +0 -13
- package/typechain-types/hardhat.d.ts +196 -34
- package/typechain-types/index.ts +46 -10
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +0 -4
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +0 -667
- package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.dbg.json +0 -4
- package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.json +0 -280
- package/build/artifacts/contracts/interfaces/IPActionCrossChain.sol/IPActionCrossChain.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.json +0 -99
- package/contracts/cross-chain/FixedPricePTAMM.sol +0 -200
- package/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol +0 -38
- package/contracts/interfaces/IPFixedPricePTAMM.sol +0 -69
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity ^0.8.22;
|
|
3
|
+
|
|
4
|
+
import {PendleOFT} from "./PendleOFT.sol";
|
|
5
|
+
import {
|
|
6
|
+
MessagingParams,
|
|
7
|
+
MessagingFee,
|
|
8
|
+
MessagingReceipt
|
|
9
|
+
} from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol";
|
|
10
|
+
import {IERC20, SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
|
|
11
|
+
|
|
12
|
+
/// @dev This contract inherits Ownable from OpenZeppelin v4.
|
|
13
|
+
contract PendleOFTAlt is PendleOFT {
|
|
14
|
+
using SafeERC20 for IERC20;
|
|
15
|
+
|
|
16
|
+
error MsgValueNotZero(uint256 msgValue);
|
|
17
|
+
error NativeTokenUnavailable();
|
|
18
|
+
|
|
19
|
+
address public immutable nativeToken;
|
|
20
|
+
|
|
21
|
+
constructor(address _lzEndpoint, address _delegate) PendleOFT(_lzEndpoint, _delegate) {
|
|
22
|
+
nativeToken = endpoint.nativeToken();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function _lzSend(
|
|
26
|
+
uint32 _dstEid,
|
|
27
|
+
bytes memory _message,
|
|
28
|
+
bytes memory _options,
|
|
29
|
+
MessagingFee memory _fee,
|
|
30
|
+
address _refundAddress
|
|
31
|
+
) internal override returns (MessagingReceipt memory receipt) {
|
|
32
|
+
// In Alt implementation, msg.value should always be 0 since we use ERC20 tokens for fees
|
|
33
|
+
if (msg.value > 0) revert MsgValueNotZero(msg.value);
|
|
34
|
+
|
|
35
|
+
// Push corresponding fees to the endpoint, any excess is sent back to the _refundAddress from the endpoint.
|
|
36
|
+
_payNative(_fee.nativeFee);
|
|
37
|
+
if (_fee.lzTokenFee > 0) _payLzToken(_fee.lzTokenFee);
|
|
38
|
+
|
|
39
|
+
return endpoint.send(
|
|
40
|
+
MessagingParams(_dstEid, _getPeerOrRevert(_dstEid), _message, _options, _fee.lzTokenFee > 0), _refundAddress
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function _payNative(uint256 _nativeFee) internal override returns (uint256 nativeFee) {
|
|
45
|
+
if (nativeToken == address(0)) revert NativeTokenUnavailable();
|
|
46
|
+
|
|
47
|
+
// Pay Native token fee by sending tokens to the endpoint.
|
|
48
|
+
IERC20(nativeToken).safeTransferFrom(msg.sender, address(endpoint), _nativeFee);
|
|
49
|
+
|
|
50
|
+
return _nativeFee;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -2,40 +2,49 @@
|
|
|
2
2
|
pragma solidity ^0.8.19;
|
|
3
3
|
|
|
4
4
|
import {IPBridgedPrincipalToken} from "../../../interfaces/IPBridgedPrincipalToken.sol";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import {
|
|
6
|
+
IOFT,
|
|
7
|
+
OFTCoreUpgradeable,
|
|
8
|
+
OFTUpgradeable
|
|
9
|
+
} from "@layerzerolabs/oft-evm-upgradeable/contracts/oft/OFTUpgradeable.sol";
|
|
10
|
+
import {ERC20Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
|
|
11
|
+
import {
|
|
12
|
+
IERC20MetadataUpgradeable
|
|
13
|
+
} from "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol";
|
|
8
14
|
|
|
9
|
-
|
|
15
|
+
/// @notice Contract deployer must be IPBridgePTFactory for additional information.
|
|
16
|
+
/// This is for deterministic deployment.
|
|
17
|
+
contract PendleBridgedPrincipalToken is IPBridgedPrincipalToken, OFTUpgradeable {
|
|
10
18
|
uint256 public immutable expiry;
|
|
11
19
|
uint8 internal immutable LOCAL_DECIMALS;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
constructor(
|
|
15
|
-
string memory _name,
|
|
16
|
-
string memory _symbol,
|
|
17
|
-
address _lzEndpoint,
|
|
18
|
-
address _delegate,
|
|
19
|
-
uint256 _expiry,
|
|
20
|
-
uint8 _localDecimals,
|
|
21
|
-
uint8 _sharedDecimals,
|
|
22
|
-
address initialOwner
|
|
23
|
-
) OFT(_name, _symbol, _lzEndpoint, _delegate) {
|
|
20
|
+
|
|
21
|
+
constructor(address _lzEndpoint, uint256 _expiry, uint8 _decimals) OFTUpgradeable(_lzEndpoint) {
|
|
24
22
|
expiry = _expiry;
|
|
25
|
-
_transferOwnership(initialOwner);
|
|
26
23
|
|
|
27
|
-
LOCAL_DECIMALS =
|
|
28
|
-
|
|
24
|
+
LOCAL_DECIMALS = _decimals;
|
|
25
|
+
|
|
26
|
+
uint8 shared = sharedDecimals();
|
|
27
|
+
require(LOCAL_DECIMALS >= shared, "InvalidLocalDecimals");
|
|
29
28
|
|
|
30
29
|
// override decimalConversionRate set in OFTCore constructor
|
|
31
|
-
decimalConversionRate = 10 ** (LOCAL_DECIMALS -
|
|
30
|
+
decimalConversionRate = 10 ** (LOCAL_DECIMALS - sharedDecimals());
|
|
31
|
+
|
|
32
|
+
_disableInitializers();
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
function
|
|
35
|
-
|
|
35
|
+
function initialize(string memory _name, string memory _symbol, address ownerDelegate) external initializer {
|
|
36
|
+
__OFT_init(_name, _symbol, ownerDelegate);
|
|
37
|
+
_transferOwnership(ownerDelegate);
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
/// @dev This functions is used to passed in the decimals to OFTCoreUpgradeable's constructor.
|
|
41
|
+
/// Since `LOCAL_DECIMALS` was not initialized at that point, we return 18 to avoid the `InvalidLocalDecimals`
|
|
42
|
+
/// revert.
|
|
43
|
+
///
|
|
44
|
+
/// See
|
|
45
|
+
/// https://github.com/LayerZero-Labs/devtools/blob/128b697838f4b0fd53ae748093fd66cc409ae5c4/packages/oft-evm-upgradeable/contracts/oft/OFTCoreUpgradeable.sol#L72
|
|
46
|
+
function decimals() public view override(ERC20Upgradeable, IERC20MetadataUpgradeable) returns (uint8 res) {
|
|
47
|
+
res = LOCAL_DECIMALS;
|
|
48
|
+
if (res == 0) res = 18;
|
|
40
49
|
}
|
|
41
50
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity ^0.8.19;
|
|
3
|
+
|
|
4
|
+
import {PendleBridgedPrincipalToken} from "./PendleBridgedPrincipalToken.sol";
|
|
5
|
+
import {
|
|
6
|
+
MessagingParams,
|
|
7
|
+
MessagingFee,
|
|
8
|
+
MessagingReceipt
|
|
9
|
+
} from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol";
|
|
10
|
+
import {IERC20, SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
|
|
11
|
+
|
|
12
|
+
/// @notice Contract deployer must be IPBridgePTFactory for additional information.
|
|
13
|
+
/// This is for deterministic deployment.
|
|
14
|
+
contract PendleBridgedPrincipalTokenAlt is PendleBridgedPrincipalToken {
|
|
15
|
+
using SafeERC20 for IERC20;
|
|
16
|
+
|
|
17
|
+
error MsgValueNotZero(uint256 msgValue);
|
|
18
|
+
error NativeTokenUnavailable();
|
|
19
|
+
|
|
20
|
+
address public immutable nativeToken;
|
|
21
|
+
|
|
22
|
+
constructor(address _lzEndpoint, uint256 _expiry, uint8 _decimals)
|
|
23
|
+
PendleBridgedPrincipalToken(_lzEndpoint, _expiry, _decimals)
|
|
24
|
+
{
|
|
25
|
+
nativeToken = endpoint.nativeToken();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function _lzSend(
|
|
29
|
+
uint32 _dstEid,
|
|
30
|
+
bytes memory _message,
|
|
31
|
+
bytes memory _options,
|
|
32
|
+
MessagingFee memory _fee,
|
|
33
|
+
address _refundAddress
|
|
34
|
+
) internal override returns (MessagingReceipt memory receipt) {
|
|
35
|
+
// In Alt implementation, msg.value should always be 0 since we use ERC20 tokens for fees
|
|
36
|
+
if (msg.value > 0) revert MsgValueNotZero(msg.value);
|
|
37
|
+
|
|
38
|
+
// Push corresponding fees to the endpoint, any excess is sent back to the _refundAddress from the endpoint.
|
|
39
|
+
_payNative(_fee.nativeFee);
|
|
40
|
+
if (_fee.lzTokenFee > 0) _payLzToken(_fee.lzTokenFee);
|
|
41
|
+
|
|
42
|
+
return endpoint.send(
|
|
43
|
+
MessagingParams(_dstEid, _getPeerOrRevert(_dstEid), _message, _options, _fee.lzTokenFee > 0), _refundAddress
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function _payNative(uint256 _nativeFee) internal override returns (uint256 nativeFee) {
|
|
48
|
+
if (nativeToken == address(0)) revert NativeTokenUnavailable();
|
|
49
|
+
|
|
50
|
+
// Pay Native token fee by sending tokens to the endpoint.
|
|
51
|
+
IERC20(nativeToken).safeTransferFrom(msg.sender, address(endpoint), _nativeFee);
|
|
52
|
+
|
|
53
|
+
return _nativeFee;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -4,7 +4,6 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
|
|
5
5
|
import "./IPActionAddRemoveLiqV3.sol";
|
|
6
6
|
import "./IPActionCallbackV3.sol";
|
|
7
|
-
import "./IPActionCrossChain.sol";
|
|
8
7
|
import "./IPActionMiscV3.sol";
|
|
9
8
|
import "./IPActionSimple.sol";
|
|
10
9
|
import "./IPActionStorageV4.sol";
|
|
@@ -18,6 +17,5 @@ interface IPAllActionV3 is
|
|
|
18
17
|
IPActionMiscV3,
|
|
19
18
|
IPActionCallbackV3,
|
|
20
19
|
IPActionStorageV4,
|
|
21
|
-
IPActionSimple
|
|
22
|
-
IPActionCrossChain
|
|
20
|
+
IPActionSimple
|
|
23
21
|
{}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity ^0.8.0;
|
|
3
|
+
|
|
4
|
+
struct BridgeData {
|
|
5
|
+
address bridgeToken;
|
|
6
|
+
uint256 bridgeAmount;
|
|
7
|
+
address feeToken;
|
|
8
|
+
uint256 feeAmount;
|
|
9
|
+
address bridgeExtRouter;
|
|
10
|
+
bytes bridgeCalldata;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface IPBridgeFunder {
|
|
14
|
+
function bridge(BridgeData memory data) external returns (bytes memory);
|
|
15
|
+
|
|
16
|
+
function withdraw(address receiver, address token, uint256 amount) external;
|
|
17
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity ^0.8.0;
|
|
3
|
+
|
|
4
|
+
import {IPGovernanceProxy} from "./IPGovernanceProxy.sol";
|
|
5
|
+
import {SetConfigParam} from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol";
|
|
6
|
+
import {MessagingFee, MessagingReceipt} from "@layerzerolabs/oapp-evm/contracts/oapp/OApp.sol";
|
|
7
|
+
import {IOAppCore} from "@layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppCore.sol";
|
|
8
|
+
|
|
9
|
+
interface IPBridgePTFactory is IOAppCore {
|
|
10
|
+
event PTOFTDeployed(uint32 indexed lzEid, bytes32 indexed originalPt, address indexed oft);
|
|
11
|
+
|
|
12
|
+
event PTOFTWired(uint32 indexed hubLzEid, address indexed hubPt, uint32[] toPeerEids);
|
|
13
|
+
|
|
14
|
+
event FactoryWired(uint32 indexed peerEid, address indexed peer);
|
|
15
|
+
|
|
16
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
17
|
+
/// Getters
|
|
18
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
19
|
+
|
|
20
|
+
function LZ_EID() external view returns (uint32);
|
|
21
|
+
|
|
22
|
+
function GOV_PROXY() external view returns (IPGovernanceProxy);
|
|
23
|
+
|
|
24
|
+
function HUB_PT_OFT_ADAPTER_CREATION_CODE() external view returns (address);
|
|
25
|
+
|
|
26
|
+
function SPOKE_PT_OFT_CREATION_CODE() external view returns (address);
|
|
27
|
+
|
|
28
|
+
function SELF_CHAIN_SHORT_NAME() external view returns (string memory);
|
|
29
|
+
|
|
30
|
+
function OFT_PROXY_ADMIN() external view returns (address);
|
|
31
|
+
|
|
32
|
+
function derivePtOftAddress(uint32 peerLzEid, uint32 hubLzEid, address hubPt) external view returns (address oft);
|
|
33
|
+
|
|
34
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
35
|
+
/// Deploy hub PT OFT adapter
|
|
36
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
37
|
+
|
|
38
|
+
function deployHubPtOftAdapter(address hubPt) external returns (address oft);
|
|
39
|
+
|
|
40
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
41
|
+
/// Deploy spoke PT OFT
|
|
42
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
43
|
+
|
|
44
|
+
struct SpokePtDeploymentParams {
|
|
45
|
+
address hubPt;
|
|
46
|
+
string name;
|
|
47
|
+
string symbol;
|
|
48
|
+
uint256 expiry;
|
|
49
|
+
uint8 decimals;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function quoteDeploySpokePtOft(address hubPt, uint32 toPeerEid, bytes calldata options, bool payInLzToken)
|
|
53
|
+
external
|
|
54
|
+
view
|
|
55
|
+
returns (MessagingFee memory fee);
|
|
56
|
+
|
|
57
|
+
function deploySpokePtOft(address hubPt, uint32 toPeerEid, bytes calldata options, MessagingFee memory fee)
|
|
58
|
+
external
|
|
59
|
+
payable
|
|
60
|
+
returns (MessagingReceipt memory msgReceipt);
|
|
61
|
+
|
|
62
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
63
|
+
/// wirePtOft on the self chain
|
|
64
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
65
|
+
|
|
66
|
+
struct WirePtOftParams {
|
|
67
|
+
uint32 hubLzEid;
|
|
68
|
+
address hubPt;
|
|
69
|
+
uint32[] toPeerEids;
|
|
70
|
+
/// @notice enforcedReceiveGas[i] is the gas limit for the receive call on toPeerEids[i];
|
|
71
|
+
/// use 0 value = use DEFAULT_PT_OFT_ENFORCED_RECEIVE_GAS
|
|
72
|
+
uint128[] enforcedReceiveGas;
|
|
73
|
+
bool setSendLib;
|
|
74
|
+
bool setReceiveLib;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function wirePtOft(WirePtOftParams memory params) external;
|
|
78
|
+
|
|
79
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
80
|
+
/// Remote wirePtOft on the other chains
|
|
81
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
82
|
+
|
|
83
|
+
function quoteRemoteWirePtOft(
|
|
84
|
+
uint32 peerEid,
|
|
85
|
+
WirePtOftParams calldata wireParams,
|
|
86
|
+
bytes calldata options,
|
|
87
|
+
bool payInLzToken
|
|
88
|
+
) external view returns (MessagingFee memory fee);
|
|
89
|
+
|
|
90
|
+
function remoteWirePtOft(
|
|
91
|
+
uint32 peerEid,
|
|
92
|
+
WirePtOftParams calldata wireParams,
|
|
93
|
+
bytes calldata options,
|
|
94
|
+
MessagingFee memory fee
|
|
95
|
+
) external payable returns (MessagingReceipt memory msgReceipt);
|
|
96
|
+
|
|
97
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
98
|
+
/// Self wire
|
|
99
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
100
|
+
|
|
101
|
+
struct SelfWireParams {
|
|
102
|
+
uint32 peerEid;
|
|
103
|
+
address peer;
|
|
104
|
+
SetConfigParam[] sendConfigParam;
|
|
105
|
+
SetConfigParam[] receiveConfigParam;
|
|
106
|
+
bool setSendLib;
|
|
107
|
+
bool setReceiveLib;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function selfWire(SelfWireParams memory params) external;
|
|
111
|
+
|
|
112
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
113
|
+
/// Remote self wire
|
|
114
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
115
|
+
|
|
116
|
+
function quoteRemoteSelfWire(
|
|
117
|
+
uint32 peerEid,
|
|
118
|
+
SelfWireParams calldata wireParams,
|
|
119
|
+
bytes calldata options,
|
|
120
|
+
bool payInLzToken
|
|
121
|
+
) external view returns (MessagingFee memory fee);
|
|
122
|
+
|
|
123
|
+
function remoteSelfWire(
|
|
124
|
+
uint32 peerEid,
|
|
125
|
+
SelfWireParams calldata wireParams,
|
|
126
|
+
bytes calldata options,
|
|
127
|
+
MessagingFee memory fee
|
|
128
|
+
) external payable returns (MessagingReceipt memory msgReceipt);
|
|
129
|
+
}
|
|
@@ -4,8 +4,10 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
import {IOAppCore} from "@layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppCore.sol";
|
|
5
5
|
import {IOAppOptionsType3} from "@layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppOptionsType3.sol";
|
|
6
6
|
import {IOFT} from "@layerzerolabs/oft-evm/contracts/interfaces/IOFT.sol";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
IERC20MetadataUpgradeable
|
|
9
|
+
} from "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol";
|
|
8
10
|
|
|
9
|
-
interface IPBridgedPrincipalToken is IOFT, IOAppCore, IOAppOptionsType3,
|
|
11
|
+
interface IPBridgedPrincipalToken is IOFT, IOAppCore, IOAppOptionsType3, IERC20MetadataUpgradeable {
|
|
10
12
|
function expiry() external view returns (uint256);
|
|
11
13
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
|
|
2
|
+
pragma solidity ^0.8.19;
|
|
3
|
+
|
|
4
|
+
import {IPChainlinkOracleEssential} from "../interfaces/IPChainlinkOracleEssential.sol";
|
|
5
|
+
import {
|
|
6
|
+
IERC20MetadataUpgradeable
|
|
7
|
+
} from "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol";
|
|
8
|
+
|
|
9
|
+
interface IPFixedPricePTAMMV2 is IERC20MetadataUpgradeable {
|
|
10
|
+
event Swap(address indexed caller, address indexed receiver, address PT, uint256 netPtIn, uint256 netTokenOut);
|
|
11
|
+
|
|
12
|
+
event PriceOracleUpdated(address indexed PT, address indexed priceOracle);
|
|
13
|
+
|
|
14
|
+
event TokenFunded(address indexed sender, uint256 amount);
|
|
15
|
+
|
|
16
|
+
event TokenWithdrawn(address indexed sender, uint256 amount);
|
|
17
|
+
|
|
18
|
+
event WhitelistUpdated(address indexed user, bool isWhitelisted);
|
|
19
|
+
|
|
20
|
+
event PauseStatusUpdated(address indexed PT, bool isPaused);
|
|
21
|
+
|
|
22
|
+
function outputToken() external view returns (address);
|
|
23
|
+
|
|
24
|
+
function priceOracle(address PT)
|
|
25
|
+
external
|
|
26
|
+
view
|
|
27
|
+
returns (bool isPaused, IPChainlinkOracleEssential, uint256 multiplier);
|
|
28
|
+
|
|
29
|
+
function totalPt(address PT) external view returns (uint256);
|
|
30
|
+
|
|
31
|
+
function isWhitelisted(address user) external view returns (bool);
|
|
32
|
+
|
|
33
|
+
function previewSwapExactPtForToken(address PT, uint256 exactPtIn) external view returns (uint256 amountTokenOut);
|
|
34
|
+
|
|
35
|
+
function swapExactPtForToken(address receiver, address PT, uint256 exactPtIn, bytes calldata data)
|
|
36
|
+
external
|
|
37
|
+
returns (uint256 netTokenOut);
|
|
38
|
+
|
|
39
|
+
// Add/remove funds
|
|
40
|
+
|
|
41
|
+
function addFundWhitelisted(uint256 amount) external;
|
|
42
|
+
|
|
43
|
+
function removeFund(uint256 amount) external;
|
|
44
|
+
|
|
45
|
+
// Admin functions
|
|
46
|
+
|
|
47
|
+
function withdrawPt(address PT, uint256 amount) external;
|
|
48
|
+
|
|
49
|
+
function setWhitelist(address user, bool isWhitelisted) external;
|
|
50
|
+
|
|
51
|
+
function setPriceOracle(address PT, address priceOracle, uint256 multiplier) external;
|
|
52
|
+
|
|
53
|
+
function setPausePtTrading(address PT, bool isPaused) external;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface IPFixedPricePTAMMSwapCallback {
|
|
57
|
+
function swapCallback(uint256 exactTokenOut, uint256 netPtIn, bytes calldata data) external;
|
|
58
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
4
|
import "../core/StandardizedYield/PYIndex.sol";
|
|
5
|
+
import "../interfaces/IPAllActionTypeV3.sol";
|
|
5
6
|
|
|
6
7
|
interface IPLimitOrderType {
|
|
7
8
|
enum OrderType {
|
|
@@ -59,6 +60,16 @@ struct FillOrderParams {
|
|
|
59
60
|
uint256 makingAmount;
|
|
60
61
|
}
|
|
61
62
|
|
|
63
|
+
struct MintSyData {
|
|
64
|
+
TokenInput[] inps;
|
|
65
|
+
uint256[] minSyOuts;
|
|
66
|
+
uint256 expiry;
|
|
67
|
+
bytes32 fillParamsHash;
|
|
68
|
+
|
|
69
|
+
bytes sig1;
|
|
70
|
+
bytes sig2;
|
|
71
|
+
}
|
|
72
|
+
|
|
62
73
|
interface IPLimitRouterCallback is IPLimitOrderType {
|
|
63
74
|
function limitRouterCallback(uint256 actualMaking, uint256 actualTaking, uint256 totalFee, bytes memory data)
|
|
64
75
|
external
|
|
@@ -94,6 +105,9 @@ interface IPLimitRouter is IPLimitOrderType {
|
|
|
94
105
|
// event added on 2/1/2025
|
|
95
106
|
event LnFeeRateRootsSet(address[] YTs, uint256[] lnFeeRateRoots);
|
|
96
107
|
|
|
108
|
+
// event added on 11/3/2026
|
|
109
|
+
event MintSySignersSet(address signer1, address signer2);
|
|
110
|
+
|
|
97
111
|
// @dev actualMaking, actualTaking are in the SY form
|
|
98
112
|
function fill(
|
|
99
113
|
FillOrderParams[] memory params,
|
|
@@ -105,6 +119,12 @@ interface IPLimitRouter is IPLimitOrderType {
|
|
|
105
119
|
|
|
106
120
|
function feeRecipient() external view returns (address);
|
|
107
121
|
|
|
122
|
+
function mintSySigner1() external view returns (address);
|
|
123
|
+
|
|
124
|
+
function mintSySigner2() external view returns (address);
|
|
125
|
+
|
|
126
|
+
function hashFillParams(FillOrderParams[] memory params) external pure returns (bytes32);
|
|
127
|
+
|
|
108
128
|
function hashOrder(Order memory order) external view returns (bytes32);
|
|
109
129
|
|
|
110
130
|
function preSignSingle(Order calldata order) external;
|
|
@@ -131,6 +151,8 @@ interface IPLimitRouter is IPLimitOrderType {
|
|
|
131
151
|
|
|
132
152
|
function WNATIVE() external view returns (address);
|
|
133
153
|
|
|
154
|
+
function ROUTER() external view returns (address);
|
|
155
|
+
|
|
134
156
|
function _checkSig(Order memory order, bytes memory signature)
|
|
135
157
|
external
|
|
136
158
|
view
|
|
@@ -3,7 +3,6 @@ pragma solidity ^0.8.0;
|
|
|
3
3
|
|
|
4
4
|
interface IPMerkleDistributor {
|
|
5
5
|
event Claimed(address indexed user, address indexed receiver, uint256 amount);
|
|
6
|
-
event Verified(address indexed user, uint256 amountClaimable);
|
|
7
6
|
event SetMerkleRoot(bytes32 indexed merkleRoot);
|
|
8
7
|
|
|
9
8
|
error InvalidMerkleProof();
|
|
@@ -11,10 +10,4 @@ interface IPMerkleDistributor {
|
|
|
11
10
|
function claim(address receiver, uint256 totalAccrued, bytes32[] calldata proof)
|
|
12
11
|
external
|
|
13
12
|
returns (uint256 amountOut);
|
|
14
|
-
|
|
15
|
-
function claimVerified(address receiver) external returns (uint256 amountOut);
|
|
16
|
-
|
|
17
|
-
function verify(address user, uint256 totalAccrued, bytes32[] calldata proof)
|
|
18
|
-
external
|
|
19
|
-
returns (uint256 amountVerified);
|
|
20
13
|
}
|
|
@@ -3,9 +3,7 @@ pragma solidity ^0.8.0;
|
|
|
3
3
|
|
|
4
4
|
interface IPMultiTokenMerkleDistributor {
|
|
5
5
|
event Claimed(address indexed token, address indexed user, address indexed receiver, uint256 amount);
|
|
6
|
-
event Verified(address indexed token, address indexed user, uint256 amountClaimable);
|
|
7
6
|
event SetMerkleRoot(bytes32 indexed merkleRoot);
|
|
8
|
-
event SetDefaultTokenList(address[] defaultTokenList);
|
|
9
7
|
|
|
10
8
|
error InvalidMerkleProof();
|
|
11
9
|
|
|
@@ -13,15 +11,7 @@ interface IPMultiTokenMerkleDistributor {
|
|
|
13
11
|
|
|
14
12
|
function claimed(address token, address user) external view returns (uint256);
|
|
15
13
|
|
|
16
|
-
function verified(address token, address user) external view returns (uint256);
|
|
17
|
-
|
|
18
14
|
function claim(address receiver, address[] memory tokens, uint256[] memory totalAccrueds, bytes32[][] memory proofs)
|
|
19
15
|
external
|
|
20
16
|
returns (uint256[] memory amountOuts);
|
|
21
|
-
|
|
22
|
-
function claimVerified(address receiver, address[] memory tokens) external returns (uint256[] memory amountOuts);
|
|
23
|
-
|
|
24
|
-
function verify(address user, address[] memory tokens, uint256[] memory totalAccrueds, bytes32[][] memory proofs)
|
|
25
|
-
external
|
|
26
|
-
returns (uint256[] memory amountClaimable);
|
|
27
17
|
}
|