@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,8 +1,8 @@
|
|
|
1
1
|
// SPDX-License-Identifier: None
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
|
-
import {ApproxParams} from "../router/math/MarketApproxLibV2.sol";
|
|
5
4
|
import "./IPMarket.sol";
|
|
5
|
+
import {ApproxParams} from "../router/math/MarketApproxLibV2.sol";
|
|
6
6
|
|
|
7
7
|
interface IPActionMarketAuxStatic {
|
|
8
8
|
function calcPriceImpactPY(address market, int256 netPtOut) external view returns (uint256);
|
|
@@ -11,7 +11,9 @@ interface IPActionMarketAuxStatic {
|
|
|
11
11
|
|
|
12
12
|
function calcPriceImpactYt(address market, int256 netPtOut) external view returns (uint256);
|
|
13
13
|
|
|
14
|
-
function getMarketState(
|
|
14
|
+
function getMarketState(
|
|
15
|
+
address market
|
|
16
|
+
)
|
|
15
17
|
external
|
|
16
18
|
view
|
|
17
19
|
returns (
|
|
@@ -27,15 +29,13 @@ interface IPActionMarketAuxStatic {
|
|
|
27
29
|
|
|
28
30
|
function getTradeExchangeRateIncludeFee(address market, int256 netPtOut) external view returns (uint256);
|
|
29
31
|
|
|
30
|
-
function getYieldTokenAndPtRate(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
returns (address yieldToken, uint256 netPtOut, uint256 netYieldTokenOut);
|
|
32
|
+
function getYieldTokenAndPtRate(
|
|
33
|
+
address market
|
|
34
|
+
) external view returns (address yieldToken, uint256 netPtOut, uint256 netYieldTokenOut);
|
|
34
35
|
|
|
35
|
-
function getYieldTokenAndYtRate(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
returns (address yieldToken, uint256 netYtOut, uint256 netYieldTokenOut);
|
|
36
|
+
function getYieldTokenAndYtRate(
|
|
37
|
+
address market
|
|
38
|
+
) external view returns (address yieldToken, uint256 netYtOut, uint256 netYieldTokenOut);
|
|
39
39
|
|
|
40
40
|
function getLpToSyRate(address market) external view returns (uint256);
|
|
41
41
|
|
|
@@ -50,7 +50,11 @@ interface IPActionMarketAuxStatic {
|
|
|
50
50
|
function getYtToAssetRate(address market) external view returns (uint256);
|
|
51
51
|
|
|
52
52
|
/// @param slippage A fixed-point number with 18 decimal places
|
|
53
|
-
function swapExactSyForPtStaticAndGenerateApproxParams(
|
|
53
|
+
function swapExactSyForPtStaticAndGenerateApproxParams(
|
|
54
|
+
address market,
|
|
55
|
+
uint256 exactSyIn,
|
|
56
|
+
uint256 slippage
|
|
57
|
+
)
|
|
54
58
|
external
|
|
55
59
|
view
|
|
56
60
|
returns (
|
|
@@ -4,10 +4,11 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
import "./IPMarket.sol";
|
|
5
5
|
|
|
6
6
|
interface IPActionMarketCoreStatic {
|
|
7
|
-
function addLiquidityDualSyAndPtStatic(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
function addLiquidityDualSyAndPtStatic(
|
|
8
|
+
address market,
|
|
9
|
+
uint256 netSyDesired,
|
|
10
|
+
uint256 netPtDesired
|
|
11
|
+
) external view returns (uint256 netLpOut, uint256 netSyUsed, uint256 netPtUsed);
|
|
11
12
|
|
|
12
13
|
function addLiquidityDualTokenAndPtStatic(
|
|
13
14
|
address market,
|
|
@@ -19,7 +20,10 @@ interface IPActionMarketCoreStatic {
|
|
|
19
20
|
view
|
|
20
21
|
returns (uint256 netLpOut, uint256 netTokenUsed, uint256 netPtUsed, uint256 netSyUsed, uint256 netSyDesired);
|
|
21
22
|
|
|
22
|
-
function addLiquiditySinglePtStatic(
|
|
23
|
+
function addLiquiditySinglePtStatic(
|
|
24
|
+
address market,
|
|
25
|
+
uint256 netPtIn
|
|
26
|
+
)
|
|
23
27
|
external
|
|
24
28
|
view
|
|
25
29
|
returns (
|
|
@@ -31,12 +35,15 @@ interface IPActionMarketCoreStatic {
|
|
|
31
35
|
uint256 netSyFromSwap
|
|
32
36
|
);
|
|
33
37
|
|
|
34
|
-
function addLiquiditySingleSyKeepYtStatic(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
function addLiquiditySingleSyKeepYtStatic(
|
|
39
|
+
address market,
|
|
40
|
+
uint256 netSyIn
|
|
41
|
+
) external view returns (uint256 netLpOut, uint256 netYtOut, uint256 netSyToPY);
|
|
38
42
|
|
|
39
|
-
function addLiquiditySingleSyStatic(
|
|
43
|
+
function addLiquiditySingleSyStatic(
|
|
44
|
+
address market,
|
|
45
|
+
uint256 netSyIn
|
|
46
|
+
)
|
|
40
47
|
external
|
|
41
48
|
view
|
|
42
49
|
returns (
|
|
@@ -48,12 +55,17 @@ interface IPActionMarketCoreStatic {
|
|
|
48
55
|
uint256 netSyToSwap
|
|
49
56
|
);
|
|
50
57
|
|
|
51
|
-
function addLiquiditySingleTokenKeepYtStatic(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
58
|
+
function addLiquiditySingleTokenKeepYtStatic(
|
|
59
|
+
address market,
|
|
60
|
+
address tokenIn,
|
|
61
|
+
uint256 netTokenIn
|
|
62
|
+
) external view returns (uint256 netLpOut, uint256 netYtOut, uint256 netSyMinted, uint256 netSyToPY);
|
|
55
63
|
|
|
56
|
-
function addLiquiditySingleTokenStatic(
|
|
64
|
+
function addLiquiditySingleTokenStatic(
|
|
65
|
+
address market,
|
|
66
|
+
address tokenIn,
|
|
67
|
+
uint256 netTokenIn
|
|
68
|
+
)
|
|
57
69
|
external
|
|
58
70
|
view
|
|
59
71
|
returns (
|
|
@@ -66,17 +78,21 @@ interface IPActionMarketCoreStatic {
|
|
|
66
78
|
uint256 netSyToSwap
|
|
67
79
|
);
|
|
68
80
|
|
|
69
|
-
function removeLiquidityDualSyAndPtStatic(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
81
|
+
function removeLiquidityDualSyAndPtStatic(
|
|
82
|
+
address market,
|
|
83
|
+
uint256 netLpToRemove
|
|
84
|
+
) external view returns (uint256 netSyOut, uint256 netPtOut);
|
|
73
85
|
|
|
74
|
-
function removeLiquidityDualTokenAndPtStatic(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
86
|
+
function removeLiquidityDualTokenAndPtStatic(
|
|
87
|
+
address market,
|
|
88
|
+
uint256 netLpToRemove,
|
|
89
|
+
address tokenOut
|
|
90
|
+
) external view returns (uint256 netTokenOut, uint256 netPtOut, uint256 netSyToRedeem);
|
|
78
91
|
|
|
79
|
-
function removeLiquiditySinglePtStatic(
|
|
92
|
+
function removeLiquiditySinglePtStatic(
|
|
93
|
+
address market,
|
|
94
|
+
uint256 netLpToRemove
|
|
95
|
+
)
|
|
80
96
|
external
|
|
81
97
|
view
|
|
82
98
|
returns (
|
|
@@ -89,7 +105,10 @@ interface IPActionMarketCoreStatic {
|
|
|
89
105
|
uint256 netPtFromBurn
|
|
90
106
|
);
|
|
91
107
|
|
|
92
|
-
function removeLiquiditySingleSyStatic(
|
|
108
|
+
function removeLiquiditySingleSyStatic(
|
|
109
|
+
address market,
|
|
110
|
+
uint256 netLpToRemove
|
|
111
|
+
)
|
|
93
112
|
external
|
|
94
113
|
view
|
|
95
114
|
returns (
|
|
@@ -102,7 +121,11 @@ interface IPActionMarketCoreStatic {
|
|
|
102
121
|
uint256 netSyFromSwap
|
|
103
122
|
);
|
|
104
123
|
|
|
105
|
-
function removeLiquiditySingleTokenStatic(
|
|
124
|
+
function removeLiquiditySingleTokenStatic(
|
|
125
|
+
address market,
|
|
126
|
+
uint256 netLpToRemove,
|
|
127
|
+
address tokenOut
|
|
128
|
+
)
|
|
106
129
|
external
|
|
107
130
|
view
|
|
108
131
|
returns (
|
|
@@ -116,12 +139,16 @@ interface IPActionMarketCoreStatic {
|
|
|
116
139
|
uint256 netSyFromSwap
|
|
117
140
|
);
|
|
118
141
|
|
|
119
|
-
function swapExactPtForSyStatic(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
142
|
+
function swapExactPtForSyStatic(
|
|
143
|
+
address market,
|
|
144
|
+
uint256 exactPtIn
|
|
145
|
+
) external view returns (uint256 netSyOut, uint256 netSyFee, uint256 priceImpact, uint256 exchangeRateAfter);
|
|
123
146
|
|
|
124
|
-
function swapExactPtForTokenStatic(
|
|
147
|
+
function swapExactPtForTokenStatic(
|
|
148
|
+
address market,
|
|
149
|
+
uint256 exactPtIn,
|
|
150
|
+
address tokenOut
|
|
151
|
+
)
|
|
125
152
|
external
|
|
126
153
|
view
|
|
127
154
|
returns (
|
|
@@ -132,7 +159,10 @@ interface IPActionMarketCoreStatic {
|
|
|
132
159
|
uint256 exchangeRateAfter
|
|
133
160
|
);
|
|
134
161
|
|
|
135
|
-
function swapExactPtForYtStatic(
|
|
162
|
+
function swapExactPtForYtStatic(
|
|
163
|
+
address market,
|
|
164
|
+
uint256 exactPtIn
|
|
165
|
+
)
|
|
136
166
|
external
|
|
137
167
|
view
|
|
138
168
|
returns (
|
|
@@ -143,17 +173,21 @@ interface IPActionMarketCoreStatic {
|
|
|
143
173
|
uint256 exchangeRateAfter
|
|
144
174
|
);
|
|
145
175
|
|
|
146
|
-
function swapExactSyForPtStatic(
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
176
|
+
function swapExactSyForPtStatic(
|
|
177
|
+
address market,
|
|
178
|
+
uint256 exactSyIn
|
|
179
|
+
) external view returns (uint256 netPtOut, uint256 netSyFee, uint256 priceImpact, uint256 exchangeRateAfter);
|
|
150
180
|
|
|
151
|
-
function swapExactSyForYtStatic(
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
181
|
+
function swapExactSyForYtStatic(
|
|
182
|
+
address market,
|
|
183
|
+
uint256 exactSyIn
|
|
184
|
+
) external view returns (uint256 netYtOut, uint256 netSyFee, uint256 priceImpact, uint256 exchangeRateAfter);
|
|
155
185
|
|
|
156
|
-
function swapExactTokenForPtStatic(
|
|
186
|
+
function swapExactTokenForPtStatic(
|
|
187
|
+
address market,
|
|
188
|
+
address tokenIn,
|
|
189
|
+
uint256 amountTokenIn
|
|
190
|
+
)
|
|
157
191
|
external
|
|
158
192
|
view
|
|
159
193
|
returns (
|
|
@@ -164,7 +198,11 @@ interface IPActionMarketCoreStatic {
|
|
|
164
198
|
uint256 exchangeRateAfter
|
|
165
199
|
);
|
|
166
200
|
|
|
167
|
-
function swapExactTokenForYtStatic(
|
|
201
|
+
function swapExactTokenForYtStatic(
|
|
202
|
+
address market,
|
|
203
|
+
address tokenIn,
|
|
204
|
+
uint256 amountTokenIn
|
|
205
|
+
)
|
|
168
206
|
external
|
|
169
207
|
view
|
|
170
208
|
returns (
|
|
@@ -175,7 +213,10 @@ interface IPActionMarketCoreStatic {
|
|
|
175
213
|
uint256 exchangeRateAfter
|
|
176
214
|
);
|
|
177
215
|
|
|
178
|
-
function swapExactYtForPtStatic(
|
|
216
|
+
function swapExactYtForPtStatic(
|
|
217
|
+
address market,
|
|
218
|
+
uint256 exactYtIn
|
|
219
|
+
)
|
|
179
220
|
external
|
|
180
221
|
view
|
|
181
222
|
returns (
|
|
@@ -186,7 +227,10 @@ interface IPActionMarketCoreStatic {
|
|
|
186
227
|
uint256 exchangeRateAfter
|
|
187
228
|
);
|
|
188
229
|
|
|
189
|
-
function swapExactYtForSyStatic(
|
|
230
|
+
function swapExactYtForSyStatic(
|
|
231
|
+
address market,
|
|
232
|
+
uint256 exactYtIn
|
|
233
|
+
)
|
|
190
234
|
external
|
|
191
235
|
view
|
|
192
236
|
returns (
|
|
@@ -199,7 +243,11 @@ interface IPActionMarketCoreStatic {
|
|
|
199
243
|
uint256 netPYToRedeemSyOutInt
|
|
200
244
|
);
|
|
201
245
|
|
|
202
|
-
function swapExactYtForTokenStatic(
|
|
246
|
+
function swapExactYtForTokenStatic(
|
|
247
|
+
address market,
|
|
248
|
+
uint256 exactYtIn,
|
|
249
|
+
address tokenOut
|
|
250
|
+
)
|
|
203
251
|
external
|
|
204
252
|
view
|
|
205
253
|
returns (
|
|
@@ -213,17 +261,20 @@ interface IPActionMarketCoreStatic {
|
|
|
213
261
|
uint256 netPYToRedeemSyOutInt
|
|
214
262
|
);
|
|
215
263
|
|
|
216
|
-
function swapPtForExactSyStatic(
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
264
|
+
function swapPtForExactSyStatic(
|
|
265
|
+
address market,
|
|
266
|
+
uint256 exactSyOut
|
|
267
|
+
) external view returns (uint256 netPtIn, uint256 netSyFee, uint256 priceImpact, uint256 exchangeRateAfter);
|
|
220
268
|
|
|
221
|
-
function swapSyForExactPtStatic(
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
269
|
+
function swapSyForExactPtStatic(
|
|
270
|
+
address market,
|
|
271
|
+
uint256 exactPtOut
|
|
272
|
+
) external view returns (uint256 netSyIn, uint256 netSyFee, uint256 priceImpact, uint256 exchangeRateAfter);
|
|
225
273
|
|
|
226
|
-
function swapSyForExactYtStatic(
|
|
274
|
+
function swapSyForExactYtStatic(
|
|
275
|
+
address market,
|
|
276
|
+
uint256 exactYtOut
|
|
277
|
+
)
|
|
227
278
|
external
|
|
228
279
|
view
|
|
229
280
|
returns (
|
|
@@ -235,10 +286,10 @@ interface IPActionMarketCoreStatic {
|
|
|
235
286
|
uint256 totalSyNeedInt
|
|
236
287
|
);
|
|
237
288
|
|
|
238
|
-
function swapYtForExactSyStatic(
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
289
|
+
function swapYtForExactSyStatic(
|
|
290
|
+
address market,
|
|
291
|
+
uint256 exactSyOut
|
|
292
|
+
) external view returns (uint256 netYtIn, uint256 netSyFee, uint256 priceImpact, uint256 exchangeRateAfter);
|
|
242
293
|
|
|
243
294
|
function readMarketState(address market) external view returns (MarketState memory);
|
|
244
295
|
}
|
|
@@ -2,34 +2,39 @@
|
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
4
|
interface IPActionMintRedeemStatic {
|
|
5
|
-
function getAmountTokenToMintSy(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
function getAmountTokenToMintSy(
|
|
6
|
+
address SY,
|
|
7
|
+
address tokenIn,
|
|
8
|
+
uint256 netSyOut
|
|
9
|
+
) external view returns (uint256 netTokenIn);
|
|
9
10
|
|
|
10
11
|
function mintPyFromSyStatic(address YT, uint256 netSyToMint) external view returns (uint256 netPYOut);
|
|
11
12
|
|
|
12
|
-
function mintPyFromTokenStatic(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
function mintPyFromTokenStatic(
|
|
14
|
+
address YT,
|
|
15
|
+
address tokenIn,
|
|
16
|
+
uint256 netTokenIn
|
|
17
|
+
) external view returns (uint256 netPyOut);
|
|
16
18
|
|
|
17
|
-
function mintSyFromTokenStatic(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
function mintSyFromTokenStatic(
|
|
20
|
+
address SY,
|
|
21
|
+
address tokenIn,
|
|
22
|
+
uint256 netTokenIn
|
|
23
|
+
) external view returns (uint256 netSyOut);
|
|
21
24
|
|
|
22
25
|
function redeemPyToSyStatic(address YT, uint256 netPYToRedeem) external view returns (uint256 netSyOut);
|
|
23
26
|
|
|
24
|
-
function redeemPyToTokenStatic(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
function redeemPyToTokenStatic(
|
|
28
|
+
address YT,
|
|
29
|
+
uint256 netPYToRedeem,
|
|
30
|
+
address tokenOut
|
|
31
|
+
) external view returns (uint256 netTokenOut);
|
|
32
|
+
|
|
33
|
+
function redeemSyToTokenStatic(
|
|
34
|
+
address SY,
|
|
35
|
+
address tokenOut,
|
|
36
|
+
uint256 netSyIn
|
|
37
|
+
) external view returns (uint256 netTokenOut);
|
|
33
38
|
|
|
34
39
|
function pyIndexCurrentViewMarket(address market) external view returns (uint256);
|
|
35
40
|
|
|
@@ -4,8 +4,8 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
import "../router/math/MarketApproxLibV2.sol";
|
|
5
5
|
import "./IPAllActionTypeV3.sol";
|
|
6
6
|
import {IPAllEventsV3} from "./IPAllEventsV3.sol";
|
|
7
|
-
import "./IPMarket.sol";
|
|
8
7
|
import "./IStandardizedYield.sol";
|
|
8
|
+
import "./IPMarket.sol";
|
|
9
9
|
|
|
10
10
|
/// Refer to IPAllActionTypeV3.sol for details on the parameters
|
|
11
11
|
interface IPActionMiscV3 is IPAllEventsV3 {
|
|
@@ -19,31 +19,47 @@ interface IPActionMiscV3 is IPAllEventsV3 {
|
|
|
19
19
|
bytes returnData;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
function mintSyFromToken(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
function mintSyFromToken(
|
|
23
|
+
address receiver,
|
|
24
|
+
address SY,
|
|
25
|
+
uint256 minSyOut,
|
|
26
|
+
TokenInput calldata input
|
|
27
|
+
) external payable returns (uint256 netSyOut);
|
|
26
28
|
|
|
27
|
-
function redeemSyToToken(
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
function redeemSyToToken(
|
|
30
|
+
address receiver,
|
|
31
|
+
address SY,
|
|
32
|
+
uint256 netSyIn,
|
|
33
|
+
TokenOutput calldata output
|
|
34
|
+
) external returns (uint256 netTokenOut);
|
|
30
35
|
|
|
31
|
-
function mintPyFromToken(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
function mintPyFromToken(
|
|
37
|
+
address receiver,
|
|
38
|
+
address YT,
|
|
39
|
+
uint256 minPyOut,
|
|
40
|
+
TokenInput calldata input
|
|
41
|
+
) external payable returns (uint256 netPyOut, uint256 netSyInterm);
|
|
35
42
|
|
|
36
|
-
function redeemPyToToken(
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
function redeemPyToToken(
|
|
44
|
+
address receiver,
|
|
45
|
+
address YT,
|
|
46
|
+
uint256 netPyIn,
|
|
47
|
+
TokenOutput calldata output
|
|
48
|
+
) external returns (uint256 netTokenOut, uint256 netSyInterm);
|
|
39
49
|
|
|
40
|
-
function mintPyFromSy(
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
function mintPyFromSy(
|
|
51
|
+
address receiver,
|
|
52
|
+
address YT,
|
|
53
|
+
uint256 netSyIn,
|
|
54
|
+
uint256 minPyOut
|
|
55
|
+
) external returns (uint256 netPyOut);
|
|
43
56
|
|
|
44
|
-
function redeemPyToSy(
|
|
45
|
-
|
|
46
|
-
|
|
57
|
+
function redeemPyToSy(
|
|
58
|
+
address receiver,
|
|
59
|
+
address YT,
|
|
60
|
+
uint256 netPyIn,
|
|
61
|
+
uint256 minSyOut
|
|
62
|
+
) external returns (uint256 netSyOut);
|
|
47
63
|
|
|
48
64
|
function redeemDueInterestAndRewards(
|
|
49
65
|
address user,
|
|
@@ -102,9 +118,13 @@ interface IPActionMiscV3 is IPAllEventsV3 {
|
|
|
102
118
|
TokenOutput calldata output
|
|
103
119
|
) external returns (uint256 netTokenOut, ExitPostExpReturnParams memory params);
|
|
104
120
|
|
|
105
|
-
function exitPostExpToSy(
|
|
106
|
-
|
|
107
|
-
|
|
121
|
+
function exitPostExpToSy(
|
|
122
|
+
address receiver,
|
|
123
|
+
address market,
|
|
124
|
+
uint256 netPtIn,
|
|
125
|
+
uint256 netLpIn,
|
|
126
|
+
uint256 minSyOut
|
|
127
|
+
) external returns (ExitPostExpReturnParams memory params);
|
|
108
128
|
|
|
109
129
|
function callAndReflect(
|
|
110
130
|
address payable reflector,
|
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
4
|
import {TokenInput} from "./IPAllActionTypeV3.sol";
|
|
5
|
-
import "./IPAllActionTypeV3.sol";
|
|
6
5
|
import {IPAllEventsV3} from "./IPAllEventsV3.sol";
|
|
6
|
+
import "./IPAllActionTypeV3.sol";
|
|
7
7
|
|
|
8
8
|
/// All of these functions are for internal router use only and should not be called directly.
|
|
9
9
|
interface IPActionSimple is IPAllEventsV3 {
|
|
10
|
-
function addLiquiditySinglePtSimple(
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
function addLiquiditySinglePtSimple(
|
|
11
|
+
address receiver,
|
|
12
|
+
address market,
|
|
13
|
+
uint256 netPtIn,
|
|
14
|
+
uint256 minLpOut
|
|
15
|
+
) external returns (uint256 netLpOut, uint256 netSyFee);
|
|
13
16
|
|
|
14
17
|
function addLiquiditySingleTokenSimple(
|
|
15
18
|
address receiver,
|
|
@@ -18,29 +21,45 @@ interface IPActionSimple is IPAllEventsV3 {
|
|
|
18
21
|
TokenInput calldata input
|
|
19
22
|
) external payable returns (uint256 netLpOut, uint256 netSyFee, uint256 netSyInterm);
|
|
20
23
|
|
|
21
|
-
function addLiquiditySingleSySimple(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
function addLiquiditySingleSySimple(
|
|
25
|
+
address receiver,
|
|
26
|
+
address market,
|
|
27
|
+
uint256 netSyIn,
|
|
28
|
+
uint256 minLpOut
|
|
29
|
+
) external returns (uint256 netLpOut, uint256 netSyFee);
|
|
24
30
|
|
|
25
|
-
function removeLiquiditySinglePtSimple(
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
function removeLiquiditySinglePtSimple(
|
|
32
|
+
address receiver,
|
|
33
|
+
address market,
|
|
34
|
+
uint256 netLpToRemove,
|
|
35
|
+
uint256 minPtOut
|
|
36
|
+
) external returns (uint256 netPtOut, uint256 netSyFee);
|
|
28
37
|
|
|
29
|
-
function swapExactTokenForPtSimple(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
function swapExactTokenForPtSimple(
|
|
39
|
+
address receiver,
|
|
40
|
+
address market,
|
|
41
|
+
uint256 minPtOut,
|
|
42
|
+
TokenInput calldata input
|
|
43
|
+
) external payable returns (uint256 netPtOut, uint256 netSyFee, uint256 netSyInterm);
|
|
33
44
|
|
|
34
|
-
function swapExactSyForPtSimple(
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
function swapExactSyForPtSimple(
|
|
46
|
+
address receiver,
|
|
47
|
+
address market,
|
|
48
|
+
uint256 exactSyIn,
|
|
49
|
+
uint256 minPtOut
|
|
50
|
+
) external returns (uint256 netPtOut, uint256 netSyFee);
|
|
37
51
|
|
|
38
|
-
function swapExactTokenForYtSimple(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
52
|
+
function swapExactTokenForYtSimple(
|
|
53
|
+
address receiver,
|
|
54
|
+
address market,
|
|
55
|
+
uint256 minYtOut,
|
|
56
|
+
TokenInput calldata input
|
|
57
|
+
) external payable returns (uint256 netYtOut, uint256 netSyFee, uint256 netSyInterm);
|
|
42
58
|
|
|
43
|
-
function swapExactSyForYtSimple(
|
|
44
|
-
|
|
45
|
-
|
|
59
|
+
function swapExactSyForYtSimple(
|
|
60
|
+
address receiver,
|
|
61
|
+
address market,
|
|
62
|
+
uint256 exactSyIn,
|
|
63
|
+
uint256 minYtOut
|
|
64
|
+
) external returns (uint256 netYtOut, uint256 netSyFee);
|
|
46
65
|
}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
4
|
interface IPActionVePendleStatic {
|
|
5
|
-
function increaseLockPositionStatic(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
function increaseLockPositionStatic(
|
|
6
|
+
address user,
|
|
7
|
+
uint128 additionalAmountToLock,
|
|
8
|
+
uint128 newExpiry
|
|
9
|
+
) external view returns (uint128 newVeBalance);
|
|
9
10
|
}
|
|
@@ -47,26 +47,28 @@ import "./IPLimitRouter.sol";
|
|
|
47
47
|
/// @param tokenIn must be one of the SY's tokens in (obtain via `IStandardizedYield#getTokensIn`)
|
|
48
48
|
/// @param netTokenIn amount of token in
|
|
49
49
|
function createTokenInputSimple(address tokenIn, uint256 netTokenIn) pure returns (TokenInput memory) {
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
return
|
|
51
|
+
TokenInput({
|
|
52
|
+
tokenIn: tokenIn,
|
|
53
|
+
netTokenIn: netTokenIn,
|
|
54
|
+
tokenMintSy: tokenIn,
|
|
55
|
+
pendleSwap: address(0),
|
|
56
|
+
swapData: createSwapTypeNoAggregator()
|
|
57
|
+
});
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
/// @dev Creates a TokenOutput struct without using any swap aggregator
|
|
60
61
|
/// @param tokenOut must be one of the SY's tokens out (obtain via `IStandardizedYield#getTokensOut`)
|
|
61
62
|
/// @param minTokenOut minimum amount of token out
|
|
62
63
|
function createTokenOutputSimple(address tokenOut, uint256 minTokenOut) pure returns (TokenOutput memory) {
|
|
63
|
-
return
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
return
|
|
65
|
+
TokenOutput({
|
|
66
|
+
tokenOut: tokenOut,
|
|
67
|
+
minTokenOut: minTokenOut,
|
|
68
|
+
tokenRedeemSy: tokenOut,
|
|
69
|
+
pendleSwap: address(0),
|
|
70
|
+
swapData: createSwapTypeNoAggregator()
|
|
71
|
+
});
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
function createEmptyLimitOrderData() pure returns (LimitOrderData memory) {}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
pragma solidity ^0.8.0;
|
|
4
4
|
|
|
5
5
|
import "./IPActionAddRemoveLiqV3.sol";
|
|
6
|
-
import "./IPActionCallbackV3.sol";
|
|
7
|
-
import "./IPActionMiscV3.sol";
|
|
8
|
-
import "./IPActionSimple.sol";
|
|
9
|
-
import "./IPActionStorageV4.sol";
|
|
10
6
|
import "./IPActionSwapPTV3.sol";
|
|
11
7
|
import "./IPActionSwapYTV3.sol";
|
|
8
|
+
import "./IPActionMiscV3.sol";
|
|
9
|
+
import "./IPActionCallbackV3.sol";
|
|
10
|
+
import "./IPActionStorageV4.sol";
|
|
11
|
+
import "./IPActionSimple.sol";
|
|
12
12
|
|
|
13
13
|
interface IPAllActionV3 is
|
|
14
14
|
IPActionAddRemoveLiqV3,
|