@pendle/core-v2 6.3.1 → 6.3.2-pendle-merkle-transfer
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/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.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/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- 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/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/PendleMarketFactoryV6Upg.sol/PendleMarketFactoryV6Upg.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV6Upg.sol/PendleMarketFactoryV6Upg.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.json +2 -2
- 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/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/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/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +2 -2
- package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.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/deprecated/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
- 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/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.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/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.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 +0 -42
- 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/IPMarket.sol/IPMarket.json +0 -13
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.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/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.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/IStandardizedYield.sol/IStandardizedYield.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/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/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/Broadcaster.sol/Broadcaster.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.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/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/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/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 +4 -0
- package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.json +102 -0
- 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/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/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/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/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.json +2 -2
- 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/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/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.json +0 -171
- 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/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol +17 -15
- package/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol +1 -1
- package/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol +16 -14
- package/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol +3 -2
- package/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol +12 -9
- package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +12 -12
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +10 -8
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +12 -6
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +11 -4
- package/contracts/LiquidityMining/PendleMerkleDistributor.sol +13 -11
- package/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol +22 -17
- package/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +28 -21
- package/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +27 -31
- package/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +23 -19
- package/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol +8 -7
- package/contracts/LiquidityMining/libraries/VeBalanceLib.sol +5 -6
- package/contracts/core/Market/MarketMathCore.sol +112 -78
- package/contracts/core/Market/OracleLib.sol +41 -34
- package/contracts/core/Market/PendleGauge.sol +8 -8
- package/contracts/core/Market/PendleMarketFactoryV6Upg.sol +16 -19
- package/contracts/core/Market/PendleMarketV6.sol +65 -63
- package/contracts/core/RewardManager/RewardManager.sol +8 -8
- package/contracts/core/RewardManager/RewardManagerAbstract.sol +5 -6
- package/contracts/core/StandardizedYield/PYIndex.sol +2 -2
- package/contracts/core/YieldContracts/InterestManagerYT.sol +9 -8
- package/contracts/core/YieldContracts/PendlePrincipalToken.sol +8 -4
- package/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol +12 -15
- package/contracts/core/YieldContracts/PendleYieldToken.sol +41 -54
- package/contracts/core/erc20/PendleERC20.sol +6 -9
- package/contracts/core/libraries/ArrayLib.sol +13 -11
- package/contracts/core/libraries/BaseSplitCodeFactory.sol +29 -22
- package/contracts/core/libraries/BoringOwnableUpgradeableV2.sol +1 -2
- package/contracts/core/libraries/Errors.sol +4 -1
- package/contracts/core/libraries/ExpiryUtilsLib.sol +10 -10
- package/contracts/core/libraries/StringLib.sol +13 -13
- package/contracts/core/libraries/TokenHelper.sol +3 -3
- package/contracts/core/libraries/math/LogExpMath.sol +67 -77
- package/contracts/cross-chain/FixedPricePTAMM.sol +39 -38
- package/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol +1 -1
- package/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol +1 -1
- package/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol +12 -15
- package/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol +24 -21
- package/contracts/interfaces/ILayerZeroEndpoint.sol +3 -5
- package/contracts/interfaces/IPActionCallbackV3.sol +1 -1
- package/contracts/interfaces/IPActionInfoStatic.sol +3 -1
- package/contracts/interfaces/IPActionMarketAuxStatic.sol +15 -11
- package/contracts/interfaces/IPActionMarketCoreStatic.sol +109 -58
- package/contracts/interfaces/IPActionMintRedeemStatic.sol +26 -21
- package/contracts/interfaces/IPActionMiscV3.sol +44 -24
- package/contracts/interfaces/IPActionSimple.sol +43 -24
- package/contracts/interfaces/IPActionVePendleStatic.sol +5 -4
- package/contracts/interfaces/IPAllActionTypeV3.sol +16 -14
- package/contracts/interfaces/IPAllActionV3.sol +4 -4
- package/contracts/interfaces/IPAllEventsV3.sol +21 -5
- package/contracts/interfaces/IPBridgedPrincipalToken.sol +2 -2
- package/contracts/interfaces/IPCommonSYFactory.sol +6 -3
- package/contracts/interfaces/IPExchangeRateOracleApp.sol +26 -25
- package/contracts/interfaces/IPFeeDistributorV2.sol +16 -13
- package/contracts/interfaces/IPFixedPricePTAMM.sol +34 -22
- package/contracts/interfaces/IPGovernanceProxy.sol +6 -2
- package/contracts/interfaces/IPInterestManagerYTV2.sol +3 -4
- package/contracts/interfaces/IPLimitRouter.sol +16 -16
- package/contracts/interfaces/IPMarket.sol +35 -25
- package/contracts/interfaces/IPMarketFactory.sol +16 -9
- package/contracts/interfaces/IPMerkleDistributor.sol +10 -6
- package/contracts/interfaces/IPMsgSendEndpoint.sol +12 -7
- package/contracts/interfaces/IPMultiTokenMerkleDistributor.sol +12 -6
- package/contracts/interfaces/IPPYLpOracle.sol +4 -1
- package/contracts/interfaces/IPRouterStatic.sol +3 -3
- package/contracts/interfaces/IPVotingController.sol +4 -4
- package/contracts/interfaces/IPVotingEscrowMainchain.sol +1 -1
- package/contracts/interfaces/IPYieldContractFactory.sol +5 -3
- package/contracts/interfaces/IPYieldToken.sol +11 -8
- package/contracts/interfaces/IPYieldTokenV2.sol +11 -8
- package/contracts/interfaces/IStandardizedYield.sol +17 -16
- package/contracts/limit/LimitMathCore.sol +56 -38
- package/contracts/limit/LimitRouterBase.sol +88 -66
- package/contracts/limit/PendleLimitRouter.sol +7 -11
- package/contracts/offchain-helpers/AddressProvider.sol +1 -1
- package/contracts/offchain-helpers/AutomateReady.sol +2 -2
- package/contracts/offchain-helpers/BalanceReader.sol +9 -21
- package/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol +7 -5
- package/contracts/offchain-helpers/Broadcaster.sol +3 -3
- package/contracts/offchain-helpers/BytesLib.sol +5 -3
- package/contracts/offchain-helpers/EmptyUUPS.sol +2 -2
- package/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol +8 -5
- package/contracts/offchain-helpers/LegacyNFTHelper.sol +5 -1
- package/contracts/offchain-helpers/LimitBackendHelperV2.sol +12 -12
- package/contracts/offchain-helpers/Multicall2.sol +7 -9
- package/contracts/offchain-helpers/PendleExchangeRateOracle.sol +8 -4
- package/contracts/offchain-helpers/PendleGovernanceProxy.sol +10 -7
- package/contracts/offchain-helpers/PendleLPWrapper.sol +3 -12
- package/contracts/offchain-helpers/PendleLPWrapperFactory.sol +2 -2
- package/contracts/offchain-helpers/PendleMerkleDepositor.sol +64 -0
- package/contracts/offchain-helpers/PendleMulticallV1.sol +7 -7
- package/contracts/offchain-helpers/PendleMulticallV2.sol +12 -13
- package/contracts/offchain-helpers/PendleOffchainStorage.sol +1 -1
- package/contracts/offchain-helpers/PendleWstETHPriceFeed.sol +2 -4
- package/contracts/offchain-helpers/SimulateHelper.sol +6 -7
- package/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol +32 -13
- package/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol +11 -7
- package/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol +35 -16
- package/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol +35 -15
- package/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol +13 -12
- package/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol +4 -1
- package/contracts/offchain-helpers/router-static/PendleRouterStatic.sol +1 -1
- package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +9 -12
- package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +91 -60
- package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +190 -103
- package/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol +26 -26
- package/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol +3 -3
- package/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol +10 -8
- package/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol +40 -100
- package/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol +6 -14
- package/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol +47 -55
- package/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol +3 -2
- package/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol +12 -12
- package/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol +20 -17
- package/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol +19 -15
- package/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol +6 -7
- package/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol +9 -13
- package/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol +21 -20
- package/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol +7 -4
- package/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol +2 -2
- package/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol +10 -13
- package/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol +10 -13
- package/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol +5 -6
- package/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol +1 -1
- package/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol +3 -3
- package/contracts/router/ActionAddRemoveLiqV3.sol +150 -55
- package/contracts/router/ActionCallbackV3.sol +13 -20
- package/contracts/router/ActionMiscV3.sol +78 -54
- package/contracts/router/ActionSimple.sol +128 -76
- package/contracts/router/ActionSwapPTV3.sol +19 -7
- package/contracts/router/ActionSwapYTV3.sol +20 -8
- package/contracts/router/PendleRouterV4.sol +1 -1
- package/contracts/router/Reflector.sol +21 -15
- package/contracts/router/base/ActionBase.sol +105 -61
- package/contracts/router/base/ActionDelegateBase.sol +38 -39
- package/contracts/router/base/CallbackHelper.sol +19 -21
- package/contracts/router/math/ApproxStateLib.sol +28 -28
- package/contracts/router/math/MarketApproxEstimateLib.sol +13 -11
- package/contracts/router/math/MarketApproxLibOnchain.sol +24 -47
- package/contracts/router/math/MarketApproxLibV2.sol +44 -63
- package/contracts/router/swap-aggregator/OKXScaleHelper.sol +55 -191
- package/contracts/router/swap-aggregator/ParaswapScaleHelper.sol +48 -34
- package/contracts/router/swap-aggregator/PendleSwap.sol +28 -26
- package/deployments/1-core.json +2 -1
- package/deployments/1-offchain-helper.json +1 -2
- package/deployments/10-core.json +2 -1
- package/deployments/10-offchain-helper.json +1 -2
- package/deployments/146-core.json +2 -1
- package/deployments/146-offchain-helper.json +1 -2
- package/deployments/42161-core.json +2 -1
- package/deployments/42161-offchain-helper.json +1 -2
- package/deployments/5000-core.json +2 -1
- package/deployments/5000-offchain-helper.json +1 -2
- package/deployments/56-core.json +2 -1
- package/deployments/56-offchain-helper.json +1 -2
- package/deployments/80094-core.json +2 -1
- package/deployments/80094-offchain-helper.json +1 -2
- package/deployments/8453-core.json +2 -1
- package/deployments/8453-offchain-helper.json +1 -2
- package/deployments/9745-core.json +2 -1
- package/deployments/9745-offchain-helper.json +1 -2
- package/deployments/999-core.json +2 -1
- package/deployments/999-offchain-helper.json +1 -2
- package/package.json +4 -2
- package/typechain-types/IOKXDexRouter.ts +0 -99
- package/typechain-types/IPLimitRouter.ts +0 -69
- package/typechain-types/IPMarket.ts +0 -13
- package/typechain-types/PendleMerkleDepositor.ts +171 -0
- 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/AddressProvider__factory.ts +1 -1
- package/typechain-types/factories/BalanceReader__factory.ts +1 -1
- 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/Broadcaster__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/ExpiredLpPtRedeemer__factory.ts +1 -1
- package/typechain-types/factories/FixedPricePTAMM__factory.ts +1 -1
- package/typechain-types/factories/IOKXDexRouter__factory.ts +0 -171
- package/typechain-types/factories/IPLimitRouter__factory.ts +0 -42
- package/typechain-types/factories/IPMarket__factory.ts +0 -13
- package/typechain-types/factories/LegacyNFTHelper__factory.ts +1 -1
- package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
- package/typechain-types/factories/Multicall2__factory.ts +1 -1
- package/typechain-types/factories/OracleLib__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/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/PendleFeeDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__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/PendleMarketFactoryV6Upg__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketV6__factory.ts +1 -1
- package/typechain-types/factories/PendleMerkleDepositor__factory.ts +164 -0
- 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/PendleOffchainStorage__factory.ts +1 -1
- 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/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/PendleSwap__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__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/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/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +9 -18
- package/typechain-types/index.ts +2 -4
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +0 -326
- package/contracts/offchain-helpers/PendleFeeSetter.sol +0 -149
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {ExitPreExpReturnParams, ExitPostExpReturnParams} from "./IPAllActionTypeV3.sol";
|
|
5
5
|
|
|
6
6
|
interface IPActionAddRemoveLiqV3Events {
|
|
7
7
|
event AddLiquidityDualSyAndPt(
|
|
@@ -25,11 +25,19 @@ interface IPActionAddRemoveLiqV3Events {
|
|
|
25
25
|
);
|
|
26
26
|
|
|
27
27
|
event AddLiquiditySinglePt(
|
|
28
|
-
address indexed caller,
|
|
28
|
+
address indexed caller,
|
|
29
|
+
address indexed market,
|
|
30
|
+
address indexed receiver,
|
|
31
|
+
uint256 netPtIn,
|
|
32
|
+
uint256 netLpOut
|
|
29
33
|
);
|
|
30
34
|
|
|
31
35
|
event AddLiquiditySingleSy(
|
|
32
|
-
address indexed caller,
|
|
36
|
+
address indexed caller,
|
|
37
|
+
address indexed market,
|
|
38
|
+
address indexed receiver,
|
|
39
|
+
uint256 netSyIn,
|
|
40
|
+
uint256 netLpOut
|
|
33
41
|
);
|
|
34
42
|
|
|
35
43
|
event AddLiquiditySingleToken(
|
|
@@ -171,11 +179,19 @@ interface IPActionMiscV3Events {
|
|
|
171
179
|
);
|
|
172
180
|
|
|
173
181
|
event MintPyFromSy(
|
|
174
|
-
address indexed caller,
|
|
182
|
+
address indexed caller,
|
|
183
|
+
address indexed receiver,
|
|
184
|
+
address indexed YT,
|
|
185
|
+
uint256 netSyIn,
|
|
186
|
+
uint256 netPyOut
|
|
175
187
|
);
|
|
176
188
|
|
|
177
189
|
event RedeemPyToSy(
|
|
178
|
-
address indexed caller,
|
|
190
|
+
address indexed caller,
|
|
191
|
+
address indexed receiver,
|
|
192
|
+
address indexed YT,
|
|
193
|
+
uint256 netPyIn,
|
|
194
|
+
uint256 netSyOut
|
|
179
195
|
);
|
|
180
196
|
|
|
181
197
|
event MintPyFromToken(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
|
+
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
|
|
5
|
+
import {IOFT} from "@layerzerolabs/oft-evm/contracts/interfaces/IOFT.sol";
|
|
4
6
|
import {IOAppCore} from "@layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppCore.sol";
|
|
5
7
|
import {IOAppOptionsType3} from "@layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppOptionsType3.sol";
|
|
6
|
-
import {IOFT} from "@layerzerolabs/oft-evm/contracts/interfaces/IOFT.sol";
|
|
7
|
-
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
|
|
8
8
|
|
|
9
9
|
interface IPBridgedPrincipalToken is IOFT, IOAppCore, IOAppOptionsType3, IERC20Metadata {
|
|
10
10
|
function expiry() external view returns (uint256);
|
|
@@ -4,7 +4,10 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
interface IPCommonSYFactory {
|
|
5
5
|
function deploySY(bytes32 id, bytes memory constructorParams, address syOwner) external returns (address SY);
|
|
6
6
|
|
|
7
|
-
function deployUpgradableSY(
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
function deployUpgradableSY(
|
|
8
|
+
bytes32 id,
|
|
9
|
+
bytes memory constructorParams,
|
|
10
|
+
bytes memory initData,
|
|
11
|
+
address syOwner
|
|
12
|
+
) external returns (address SY);
|
|
10
13
|
}
|
|
@@ -5,7 +5,10 @@ import {MessagingFee, MessagingReceipt} from "@layerzerolabs/oapp-evm-upgradeabl
|
|
|
5
5
|
|
|
6
6
|
interface IPExchangeRateOracleApp {
|
|
7
7
|
event ExchangeRateSent(
|
|
8
|
-
bytes32 indexed guid,
|
|
8
|
+
bytes32 indexed guid,
|
|
9
|
+
uint32 indexed dstEid,
|
|
10
|
+
address indexed exchangeRateSource,
|
|
11
|
+
uint256 exchangeRate
|
|
9
12
|
);
|
|
10
13
|
|
|
11
14
|
event ExchangeRateReceived(
|
|
@@ -46,10 +49,10 @@ interface IPExchangeRateOracleApp {
|
|
|
46
49
|
* @param _srcEid Endpoint ID of the source chain
|
|
47
50
|
* @param exchangeRateSource The exchange rate source identifier on the source chain
|
|
48
51
|
*/
|
|
49
|
-
function getExchangeRate(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
function getExchangeRate(
|
|
53
|
+
uint32 _srcEid,
|
|
54
|
+
bytes32 exchangeRateSource
|
|
55
|
+
) external view returns (ExchangeRateData memory exchangeRateData);
|
|
53
56
|
|
|
54
57
|
/**
|
|
55
58
|
* @dev Quote the fee required for sendExchangeRate execution
|
|
@@ -59,10 +62,10 @@ interface IPExchangeRateOracleApp {
|
|
|
59
62
|
* - nativeFee: the fee paid in native token
|
|
60
63
|
* - lzTokenFee: the fee paid in lzToken
|
|
61
64
|
*/
|
|
62
|
-
function quoteSendExchangeRate(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
function quoteSendExchangeRate(
|
|
66
|
+
SendExchangeRateParam calldata sendParam,
|
|
67
|
+
bool payInLzToken
|
|
68
|
+
) external view returns (MessagingFee memory fee);
|
|
66
69
|
|
|
67
70
|
/**
|
|
68
71
|
* @dev Quote the fees required for batch sendExchangeRate execution
|
|
@@ -72,24 +75,23 @@ interface IPExchangeRateOracleApp {
|
|
|
72
75
|
* - nativeFee: the fee paid in native token for each operation
|
|
73
76
|
* - lzTokenFee: the fee paid in lzToken for each operation
|
|
74
77
|
*/
|
|
75
|
-
function quoteSendExchangeRateBatch(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
function quoteSendExchangeRateBatch(
|
|
79
|
+
SendExchangeRateParam[] calldata sendParams,
|
|
80
|
+
bool[] calldata payInLzTokens
|
|
81
|
+
) external view returns (MessagingFee[] memory fees);
|
|
79
82
|
|
|
80
83
|
/**
|
|
81
84
|
* @dev Execute sending exchange rate to another chain
|
|
82
85
|
* @param sendParam The parameters required for the operation
|
|
83
|
-
* @param fee The calculated fee for the operation. This can be retrieved through quoteSendExchangeRate() for
|
|
84
|
-
* estimation
|
|
86
|
+
* @param fee The calculated fee for the operation. This can be retrieved through quoteSendExchangeRate() for estimation
|
|
85
87
|
* - nativeFee: the fee paid in native token
|
|
86
88
|
* - lzTokenFee: the fee paid in lzToken
|
|
87
89
|
* @return receipt The message receipt for the send operation, contains guid, nonce and the actual fee required
|
|
88
90
|
*/
|
|
89
|
-
function sendExchangeRate(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
function sendExchangeRate(
|
|
92
|
+
SendExchangeRateParam calldata sendParam,
|
|
93
|
+
MessagingFee calldata fee
|
|
94
|
+
) external payable returns (MessagingReceipt memory receipt);
|
|
93
95
|
|
|
94
96
|
/**
|
|
95
97
|
* @dev Execute batch sending of exchange rates in a single transaction
|
|
@@ -97,15 +99,14 @@ interface IPExchangeRateOracleApp {
|
|
|
97
99
|
* @param fees Array of calculated fees for each operation. Retrieve via quoteSendExchangeRateBatch() for estimation
|
|
98
100
|
* - nativeFee: the fee paid in native token for each operation
|
|
99
101
|
* - lzTokenFee: the fee paid in lzToken for each operation
|
|
100
|
-
* @return receipts Array of message receipts for each send operation, contains guid, nonce and the actual fee
|
|
101
|
-
* required
|
|
102
|
+
* @return receipts Array of message receipts for each send operation, contains guid, nonce and the actual fee required
|
|
102
103
|
* @notice msg.value must equal or exceed sum of all fees[i].nativeFee. Excess refunded to refundAddress
|
|
103
104
|
* @notice If any operation fails, entire batch reverts
|
|
104
105
|
*/
|
|
105
|
-
function sendExchangeRateBatch(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
function sendExchangeRateBatch(
|
|
107
|
+
SendExchangeRateParam[] calldata sendParams,
|
|
108
|
+
MessagingFee[] calldata fees
|
|
109
|
+
) external payable returns (MessagingReceipt[] memory receipts);
|
|
109
110
|
|
|
110
111
|
// ====== Admin functions ======
|
|
111
112
|
|
|
@@ -17,28 +17,31 @@ interface IPFeeDistributorV2 {
|
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @notice submit total ETH accrued & proof to claim the outstanding amount. Intended to be
|
|
20
|
-
|
|
20
|
+
used by retail users
|
|
21
21
|
*/
|
|
22
|
-
function claimRetail(
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
function claimRetail(
|
|
23
|
+
address receiver,
|
|
24
|
+
uint256 totalAccrued,
|
|
25
|
+
bytes32[] calldata proof
|
|
26
|
+
) external returns (uint256 amountOut);
|
|
25
27
|
|
|
26
28
|
/**
|
|
27
29
|
* @notice Protocols that require the use of this function & feeData should contact the Pendle team.
|
|
28
30
|
* @notice Protocols should NOT EVER use claimRetail. Using it will make getProtocolFeeData unreliable.
|
|
29
31
|
*/
|
|
30
|
-
function claimProtocol(
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
function claimProtocol(
|
|
33
|
+
address receiver,
|
|
34
|
+
address[] calldata pools
|
|
35
|
+
) external returns (uint256 totalAmountOut, uint256[] memory amountsOut);
|
|
33
36
|
|
|
34
37
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
* @notice returns the claimable fees per pool. Only available if the Pendle team has specifically
|
|
39
|
+
set up the data
|
|
37
40
|
*/
|
|
38
|
-
function getProtocolClaimables(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
function getProtocolClaimables(
|
|
42
|
+
address user,
|
|
43
|
+
address[] calldata pools
|
|
44
|
+
) external view returns (uint256[] memory claimables);
|
|
42
45
|
|
|
43
46
|
function getProtocolTotalAccrued(address user) external view returns (uint256);
|
|
44
47
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
|
|
2
2
|
pragma solidity ^0.8.19;
|
|
3
3
|
|
|
4
|
-
import {IPChainlinkOracleEssential} from "../interfaces/IPChainlinkOracleEssential.sol";
|
|
5
4
|
import {IPBridgedPrincipalToken} from "./IPBridgedPrincipalToken.sol";
|
|
5
|
+
import {IPChainlinkOracleEssential} from "../interfaces/IPChainlinkOracleEssential.sol";
|
|
6
6
|
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
7
7
|
|
|
8
8
|
interface IPFixedPricePTAMM {
|
|
@@ -20,20 +20,22 @@ interface IPFixedPricePTAMM {
|
|
|
20
20
|
event Seeded(address indexed token, uint256 amount);
|
|
21
21
|
event Unseeded(address indexed token, uint256 amount);
|
|
22
22
|
|
|
23
|
-
function priceOracle(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
function priceOracle(
|
|
24
|
+
address PT,
|
|
25
|
+
address token
|
|
26
|
+
) external view returns (IPChainlinkOracleEssential, uint256 multiplier);
|
|
27
27
|
|
|
28
|
-
function previewSwapPtForExactToken(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
function previewSwapPtForExactToken(
|
|
29
|
+
address PT,
|
|
30
|
+
address token,
|
|
31
|
+
uint256 exactTokenOut
|
|
32
|
+
) external view returns (uint256 amountPtIn);
|
|
32
33
|
|
|
33
|
-
function previewSwapExactPtForToken(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
function previewSwapExactPtForToken(
|
|
35
|
+
address PT,
|
|
36
|
+
uint256 exactPtIn,
|
|
37
|
+
address token
|
|
38
|
+
) external view returns (uint256 amountTokenOut);
|
|
37
39
|
|
|
38
40
|
function swapPtForExactToken(
|
|
39
41
|
address receiver,
|
|
@@ -43,17 +45,27 @@ interface IPFixedPricePTAMM {
|
|
|
43
45
|
bytes calldata data
|
|
44
46
|
) external returns (uint256 netPtIn);
|
|
45
47
|
|
|
46
|
-
function swapExactPtForToken(
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
function swapExactPtForToken(
|
|
49
|
+
address receiver,
|
|
50
|
+
address PT,
|
|
51
|
+
uint256 exactPtIn,
|
|
52
|
+
address token,
|
|
53
|
+
bytes calldata data
|
|
54
|
+
) external returns (uint256 netTokenOut);
|
|
49
55
|
|
|
50
|
-
function transferInThenSwapPtForExactToken(
|
|
51
|
-
|
|
52
|
-
|
|
56
|
+
function transferInThenSwapPtForExactToken(
|
|
57
|
+
address receiver,
|
|
58
|
+
address PT,
|
|
59
|
+
address token,
|
|
60
|
+
uint256 exactTokenOut
|
|
61
|
+
) external returns (uint256 netPtIn);
|
|
53
62
|
|
|
54
|
-
function transferInThenSwapExactPtForToken(
|
|
55
|
-
|
|
56
|
-
|
|
63
|
+
function transferInThenSwapExactPtForToken(
|
|
64
|
+
address receiver,
|
|
65
|
+
address PT,
|
|
66
|
+
uint256 exactPtIn,
|
|
67
|
+
address token
|
|
68
|
+
) external returns (uint256 netPtIn);
|
|
57
69
|
|
|
58
70
|
// Admin functions
|
|
59
71
|
|
|
@@ -26,6 +26,10 @@ interface IPGovernanceProxy {
|
|
|
26
26
|
|
|
27
27
|
function modifySelectorAdmin(address addr, bytes4[] memory selectors, bool[] memory isAdmins) external;
|
|
28
28
|
|
|
29
|
-
function modifyScopedAccess(
|
|
30
|
-
|
|
29
|
+
function modifyScopedAccess(
|
|
30
|
+
address caller,
|
|
31
|
+
address[] memory targets,
|
|
32
|
+
bytes4 selector,
|
|
33
|
+
bool[] memory accesses
|
|
34
|
+
) external;
|
|
31
35
|
}
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
4
|
interface IPInterestManagerYTV2 {
|
|
5
|
-
function userInterest(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
returns (uint128 lastInterestIndex, uint128 accruedInterest, uint256 lastPYIndex);
|
|
5
|
+
function userInterest(
|
|
6
|
+
address user
|
|
7
|
+
) external view returns (uint128 lastInterestIndex, uint128 accruedInterest, uint256 lastPYIndex);
|
|
9
8
|
}
|
|
@@ -60,9 +60,12 @@ struct FillOrderParams {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
interface IPLimitRouterCallback is IPLimitOrderType {
|
|
63
|
-
function limitRouterCallback(
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
function limitRouterCallback(
|
|
64
|
+
uint256 actualMaking,
|
|
65
|
+
uint256 actualTaking,
|
|
66
|
+
uint256 totalFee,
|
|
67
|
+
bytes memory data
|
|
68
|
+
) external returns (bytes memory);
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
interface IPLimitRouter is IPLimitOrderType {
|
|
@@ -108,15 +111,13 @@ interface IPLimitRouter is IPLimitOrderType {
|
|
|
108
111
|
|
|
109
112
|
function cancelBatch(Order[] calldata orders) external;
|
|
110
113
|
|
|
111
|
-
function orderStatusesRaw(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
returns (uint256[] memory remainingsRaw, uint256[] memory filledAmounts);
|
|
114
|
+
function orderStatusesRaw(
|
|
115
|
+
bytes32[] memory orderHashes
|
|
116
|
+
) external view returns (uint256[] memory remainingsRaw, uint256[] memory filledAmounts);
|
|
115
117
|
|
|
116
|
-
function orderStatuses(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
returns (uint256[] memory remainings, uint256[] memory filledAmounts);
|
|
118
|
+
function orderStatuses(
|
|
119
|
+
bytes32[] memory orderHashes
|
|
120
|
+
) external view returns (uint256[] memory remainings, uint256[] memory filledAmounts);
|
|
120
121
|
|
|
121
122
|
function DOMAIN_SEPARATOR() external view returns (bytes32);
|
|
122
123
|
|
|
@@ -124,7 +125,10 @@ interface IPLimitRouter is IPLimitOrderType {
|
|
|
124
125
|
|
|
125
126
|
function WNATIVE() external view returns (address);
|
|
126
127
|
|
|
127
|
-
function _checkSig(
|
|
128
|
+
function _checkSig(
|
|
129
|
+
Order memory order,
|
|
130
|
+
bytes memory signature
|
|
131
|
+
)
|
|
128
132
|
external
|
|
129
133
|
view
|
|
130
134
|
returns (
|
|
@@ -135,10 +139,6 @@ interface IPLimitRouter is IPLimitOrderType {
|
|
|
135
139
|
uint256
|
|
136
140
|
); /*filledMakerAmount*/
|
|
137
141
|
|
|
138
|
-
function setLnFeeRateRoots(address[] memory YTs, uint256[] memory lnFeeRateRoots, bool allowZeroFees) external;
|
|
139
|
-
|
|
140
|
-
function getLnFeeRateRoot(address YT) external view returns (uint256 res);
|
|
141
|
-
|
|
142
142
|
/* --- Deprecated events --- */
|
|
143
143
|
|
|
144
144
|
// deprecate on 7/1/2024, prior to official launch
|
|
@@ -2,17 +2,21 @@
|
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
4
|
// import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
|
|
5
|
-
import "../core/Market/MarketMathCore.sol";
|
|
6
|
-
import "./IPGauge.sol";
|
|
7
5
|
import "./IPPrincipalToken.sol";
|
|
8
6
|
import "./IPYieldToken.sol";
|
|
9
7
|
import "./IStandardizedYield.sol";
|
|
8
|
+
import "./IPGauge.sol";
|
|
9
|
+
import "../core/Market/MarketMathCore.sol";
|
|
10
10
|
|
|
11
11
|
interface IPMarket is IPGauge, IERC20Metadata {
|
|
12
12
|
event Mint(address indexed receiver, uint256 netLpMinted, uint256 netSyUsed, uint256 netPtUsed);
|
|
13
13
|
|
|
14
14
|
event Burn(
|
|
15
|
-
address indexed receiverSy,
|
|
15
|
+
address indexed receiverSy,
|
|
16
|
+
address indexed receiverPt,
|
|
17
|
+
uint256 netLpBurned,
|
|
18
|
+
uint256 netSyOut,
|
|
19
|
+
uint256 netPtOut
|
|
16
20
|
);
|
|
17
21
|
|
|
18
22
|
event Swap(
|
|
@@ -27,24 +31,33 @@ interface IPMarket is IPGauge, IERC20Metadata {
|
|
|
27
31
|
event UpdateImpliedRate(uint256 indexed timestamp, uint256 lnLastImpliedRate);
|
|
28
32
|
|
|
29
33
|
event IncreaseObservationCardinalityNext(
|
|
30
|
-
uint16 observationCardinalityNextOld,
|
|
34
|
+
uint16 observationCardinalityNextOld,
|
|
35
|
+
uint16 observationCardinalityNextNew
|
|
31
36
|
);
|
|
32
37
|
|
|
33
|
-
function mint(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
function
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
function mint(
|
|
39
|
+
address receiver,
|
|
40
|
+
uint256 netSyDesired,
|
|
41
|
+
uint256 netPtDesired
|
|
42
|
+
) external returns (uint256 netLpOut, uint256 netSyUsed, uint256 netPtUsed);
|
|
43
|
+
|
|
44
|
+
function burn(
|
|
45
|
+
address receiverSy,
|
|
46
|
+
address receiverPt,
|
|
47
|
+
uint256 netLpToBurn
|
|
48
|
+
) external returns (uint256 netSyOut, uint256 netPtOut);
|
|
49
|
+
|
|
50
|
+
function swapExactPtForSy(
|
|
51
|
+
address receiver,
|
|
52
|
+
uint256 exactPtIn,
|
|
53
|
+
bytes calldata data
|
|
54
|
+
) external returns (uint256 netSyOut, uint256 netSyFee);
|
|
55
|
+
|
|
56
|
+
function swapSyForExactPt(
|
|
57
|
+
address receiver,
|
|
58
|
+
uint256 exactPtOut,
|
|
59
|
+
bytes calldata data
|
|
60
|
+
) external returns (uint256 netSyIn, uint256 netSyFee);
|
|
48
61
|
|
|
49
62
|
function redeemRewards(address user) external returns (uint256[] memory);
|
|
50
63
|
|
|
@@ -60,14 +73,11 @@ interface IPMarket is IPGauge, IERC20Metadata {
|
|
|
60
73
|
|
|
61
74
|
function isExpired() external view returns (bool);
|
|
62
75
|
|
|
63
|
-
function factory() external view returns (address);
|
|
64
|
-
|
|
65
76
|
function expiry() external view returns (uint256);
|
|
66
77
|
|
|
67
|
-
function observations(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
returns (uint32 blockTimestamp, uint216 lnImpliedRateCumulative, bool initialized);
|
|
78
|
+
function observations(
|
|
79
|
+
uint256 index
|
|
80
|
+
) external view returns (uint32 blockTimestamp, uint216 lnImpliedRateCumulative, bool initialized);
|
|
71
81
|
|
|
72
82
|
function _storage()
|
|
73
83
|
external
|
|
@@ -5,7 +5,11 @@ interface IPMarketFactory {
|
|
|
5
5
|
event SetOverriddenFee(address indexed router, address indexed market, uint80 lnFeeRateRoot);
|
|
6
6
|
|
|
7
7
|
event CreateNewMarket(
|
|
8
|
-
address indexed market,
|
|
8
|
+
address indexed market,
|
|
9
|
+
address indexed PT,
|
|
10
|
+
int256 scalarRoot,
|
|
11
|
+
int256 initialAnchor,
|
|
12
|
+
uint256 lnFeeRateRoot
|
|
9
13
|
);
|
|
10
14
|
|
|
11
15
|
event NewTreasuryAndFeeReserve(address indexed treasury, uint8 reserveFeePercent);
|
|
@@ -15,14 +19,17 @@ interface IPMarketFactory {
|
|
|
15
19
|
function isValidMarket(address market) external view returns (bool);
|
|
16
20
|
|
|
17
21
|
// If this is changed, change the readState function in market as well
|
|
18
|
-
function getMarketConfig(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
function createNewMarket(
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
function getMarketConfig(
|
|
23
|
+
address market,
|
|
24
|
+
address router
|
|
25
|
+
) external view returns (address treasury, uint80 overriddenFee, uint8 reserveFeePercent);
|
|
26
|
+
|
|
27
|
+
function createNewMarket(
|
|
28
|
+
address PT,
|
|
29
|
+
int256 scalarRoot,
|
|
30
|
+
int256 initialAnchor,
|
|
31
|
+
uint80 lnFeeRateRoot
|
|
32
|
+
) external returns (address market);
|
|
26
33
|
|
|
27
34
|
function setOverriddenFee(address router, address market, uint80 newFee) external;
|
|
28
35
|
}
|
|
@@ -8,13 +8,17 @@ interface IPMerkleDistributor {
|
|
|
8
8
|
|
|
9
9
|
error InvalidMerkleProof();
|
|
10
10
|
|
|
11
|
-
function claim(
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
function claim(
|
|
12
|
+
address receiver,
|
|
13
|
+
uint256 totalAccrued,
|
|
14
|
+
bytes32[] calldata proof
|
|
15
|
+
) external returns (uint256 amountOut);
|
|
14
16
|
|
|
15
17
|
function claimVerified(address receiver) external returns (uint256 amountOut);
|
|
16
18
|
|
|
17
|
-
function verify(
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
function verify(
|
|
20
|
+
address user,
|
|
21
|
+
uint256 totalAccrued,
|
|
22
|
+
bytes32[] calldata proof
|
|
23
|
+
) external returns (uint256 amountVerified);
|
|
20
24
|
}
|
|
@@ -3,12 +3,17 @@
|
|
|
3
3
|
pragma solidity >=0.8.0;
|
|
4
4
|
|
|
5
5
|
interface IPMsgSendEndpoint {
|
|
6
|
-
function calcFee(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
function calcFee(
|
|
7
|
+
address dstAddress,
|
|
8
|
+
uint256 dstChainId,
|
|
9
|
+
bytes memory payload,
|
|
10
|
+
uint256 estimatedGasAmount
|
|
11
|
+
) external view returns (uint256 fee);
|
|
10
12
|
|
|
11
|
-
function sendMessage(
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
function sendMessage(
|
|
14
|
+
address dstAddress,
|
|
15
|
+
uint256 dstChainId,
|
|
16
|
+
bytes calldata payload,
|
|
17
|
+
uint256 estimatedGasAmount
|
|
18
|
+
) external payable;
|
|
14
19
|
}
|
|
@@ -15,13 +15,19 @@ interface IPMultiTokenMerkleDistributor {
|
|
|
15
15
|
|
|
16
16
|
function verified(address token, address user) external view returns (uint256);
|
|
17
17
|
|
|
18
|
-
function claim(
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
function claim(
|
|
19
|
+
address receiver,
|
|
20
|
+
address[] memory tokens,
|
|
21
|
+
uint256[] memory totalAccrueds,
|
|
22
|
+
bytes32[][] memory proofs
|
|
23
|
+
) external returns (uint256[] memory amountOuts);
|
|
21
24
|
|
|
22
25
|
function claimVerified(address receiver, address[] memory tokens) external returns (uint256[] memory amountOuts);
|
|
23
26
|
|
|
24
|
-
function verify(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
function verify(
|
|
28
|
+
address user,
|
|
29
|
+
address[] memory tokens,
|
|
30
|
+
uint256[] memory totalAccrueds,
|
|
31
|
+
bytes32[][] memory proofs
|
|
32
|
+
) external returns (uint256[] memory amountClaimable);
|
|
27
33
|
}
|
|
@@ -16,7 +16,10 @@ interface IPPYLpOracle {
|
|
|
16
16
|
|
|
17
17
|
function getLpToSyRate(address market, uint32 duration) external view returns (uint256);
|
|
18
18
|
|
|
19
|
-
function getOracleState(
|
|
19
|
+
function getOracleState(
|
|
20
|
+
address market,
|
|
21
|
+
uint32 duration
|
|
22
|
+
)
|
|
20
23
|
external
|
|
21
24
|
view
|
|
22
25
|
returns (bool increaseCardinalityRequired, uint16 cardinalityRequired, bool oldestObservationSatisfied);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
|
-
import "./IPActionInfoStatic.sol";
|
|
5
4
|
import "./IPActionMarketAuxStatic.sol";
|
|
6
|
-
import "./IPActionMarketCoreStatic.sol";
|
|
7
5
|
import "./IPActionMintRedeemStatic.sol";
|
|
8
|
-
import "./
|
|
6
|
+
import "./IPActionInfoStatic.sol";
|
|
7
|
+
import "./IPActionMarketCoreStatic.sol";
|
|
9
8
|
import "./IPActionVePendleStatic.sol";
|
|
10
9
|
import "./IPMiniDiamond.sol";
|
|
10
|
+
import "./IPActionStorageStatic.sol";
|
|
11
11
|
|
|
12
12
|
//solhint-disable-next-line no-empty-blocks
|
|
13
13
|
interface IPRouterStatic is
|
|
@@ -28,10 +28,10 @@ interface IPVotingController {
|
|
|
28
28
|
/// @notice deprecated, only kept for compatibility reasons
|
|
29
29
|
function getUserPoolHistoryAt(address user, address pool, uint256 index) external view returns (Checkpoint memory);
|
|
30
30
|
|
|
31
|
-
function getWeekData(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
function getWeekData(
|
|
32
|
+
uint128 wTime,
|
|
33
|
+
address[] calldata pools
|
|
34
|
+
) external view returns (bool isEpochFinalized, uint128 totalVotes, uint128[] memory poolVotes);
|
|
35
35
|
|
|
36
36
|
function getPoolTotalVoteAt(address pool, uint128 wTime) external view returns (uint128);
|
|
37
37
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
pragma solidity ^0.8.0;
|
|
4
4
|
|
|
5
|
+
import "./IPVeToken.sol";
|
|
5
6
|
import "../LiquidityMining/libraries/VeBalanceLib.sol";
|
|
6
7
|
import "../LiquidityMining/libraries/VeHistoryLib.sol";
|
|
7
|
-
import "./IPVeToken.sol";
|
|
8
8
|
|
|
9
9
|
interface IPVotingEscrowMainchain is IPVeToken {
|
|
10
10
|
event NewLockPosition(address indexed user, uint128 amount, uint128 expiry);
|