@pendle/core-v2 6.4.4-swaphubtest → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.dbg.json +4 -0
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.json +401 -0
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.dbg.json +4 -0
- package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.json +733 -0
- package/build/artifacts/contracts/StPendle.sol/RoundDataLib.dbg.json +4 -0
- package/build/artifacts/contracts/StPendle.sol/RoundDataLib.json +10 -0
- package/build/artifacts/contracts/StPendle.sol/StPendle.dbg.json +4 -0
- package/build/artifacts/contracts/StPendle.sol/StPendle.json +228 -0
- 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/PendleGauge.sol/PendleGauge.json +0 -51
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.dbg.json +4 -0
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.json +618 -0
- package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.dbg.json +4 -0
- package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.json +1157 -0
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/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/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +3 -3
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.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/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
- package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCrossChain.sol/IPActionCrossChain.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/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.json +0 -51
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.json +47 -12
- package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +0 -19
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPStakedPendle.sol/IPStakedPendle.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPStakedPendle.sol/IPStakedPendle.json +351 -0
- package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
- package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.json +30 -0
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/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/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/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/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/ActionCrossChain.sol/ActionCrossChain.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.json +2 -2
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
- package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/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/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol +112 -0
- package/contracts/LiquidityMining/sPendle/StakedPendle.sol +129 -0
- package/contracts/StPendle.sol +121 -0
- package/contracts/core/Market/PendleGauge.sol +1 -76
- package/contracts/core/Market/{PendleMarketFactoryV6Upg.sol → PendleMarketFactoryV7Upg.sol} +3 -6
- package/contracts/core/Market/{PendleMarketV6.sol → PendleMarketV7.sol} +16 -16
- package/contracts/core/libraries/Errors.sol +1 -1
- package/contracts/core/libraries/math/PMath.sol +5 -0
- package/contracts/interfaces/IPGauge.sol +0 -6
- package/contracts/interfaces/IPGaugeController.sol +16 -3
- package/contracts/interfaces/IPMarket.sol +12 -0
- package/contracts/interfaces/IPStakedPendle.sol +69 -0
- package/contracts/offchain-helpers/BalanceReader.sol +11 -1
- package/contracts/offchain-helpers/MarketSweed.sol +46 -54
- package/contracts/offchain-helpers/PendleMerkleDepositor.sol +5 -6
- package/contracts/router/ActionCrossChain.sol +14 -18
- package/contracts/router/Reflector.sol +19 -2
- package/deployments/1-core.json +3 -2
- package/deployments/10-core.json +1 -1
- package/deployments/130-core.json +2 -1
- package/deployments/146-core.json +1 -1
- package/deployments/42161-core.json +1 -1
- package/deployments/5000-core.json +1 -1
- package/deployments/56-core.json +1 -1
- package/deployments/80094-core.json +1 -1
- package/deployments/8453-core.json +1 -1
- package/deployments/9745-core.json +4 -3
- package/deployments/999-core.json +6 -6
- package/package.json +2 -2
- package/typechain-types/ERC20Upgradeable.ts +426 -0
- package/typechain-types/IERC20MetadataUpgradeable.ts +339 -0
- package/typechain-types/IERC20Upgradeable.ts +300 -0
- package/typechain-types/ILegacyMarket.ts +93 -0
- package/typechain-types/IPGauge.ts +7 -81
- package/typechain-types/IPGaugeController.ts +91 -47
- package/typechain-types/IPMarket.ts +0 -19
- package/typechain-types/IPStakedPendle.ts +558 -0
- package/typechain-types/PendleGauge.ts +0 -63
- package/typechain-types/{PendleGaugeControllerBaseUpg.ts → PendleGaugeControllerUpg.ts} +82 -171
- package/typechain-types/{PendleMarketFactoryV6Upg.ts → PendleMarketFactoryV7Upg.ts} +5 -18
- package/typechain-types/{PendleMarketV6.ts → PendleMarketV7.ts} +10 -29
- package/typechain-types/StPendle.ts +362 -0
- package/typechain-types/StakedPendle.ts +1058 -0
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCrossChain__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSimple__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/BalanceReader__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/ERC20Upgradeable__factory.ts +347 -0
- package/typechain-types/factories/Errors__factory.ts +2 -2
- 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/IERC20MetadataUpgradeable__factory.ts +252 -0
- package/typechain-types/factories/{IPGaugeControllerMainchain__factory.ts → IERC20Upgradeable__factory.ts} +90 -83
- package/typechain-types/factories/ILegacyMarket__factory.ts +42 -0
- package/typechain-types/factories/IPGaugeController__factory.ts +47 -12
- package/typechain-types/factories/IPGauge__factory.ts +0 -51
- package/typechain-types/factories/IPMarket__factory.ts +0 -19
- package/typechain-types/factories/IPStakedPendle__factory.ts +366 -0
- package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
- package/typechain-types/factories/MarketSweed__factory.ts +1 -1
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleBoringOneracle__factory.ts +1 -1
- package/typechain-types/factories/PendleBoringSolvBTCOneracle__factory.ts +1 -1
- package/typechain-types/factories/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/PendleExchangeRateOracleApp__factory.ts +1 -1
- package/typechain-types/factories/PendleExchangeRateOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeSetter__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerUpg__factory.ts +463 -0
- package/typechain-types/factories/PendleGauge__factory.ts +0 -51
- 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/PendleMarketFactoryV7Upg__factory.ts +710 -0
- package/typechain-types/factories/PendleMarketV7__factory.ts +1233 -0
- package/typechain-types/factories/PendleMerkleDepositor__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/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/PendleRedStoneRateOracleAdapter__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
- package/typechain-types/factories/PendleSparkLinearDiscountOracleFactoryWrapper__factory.ts +1 -1
- package/typechain-types/factories/PendleSparkLinearDiscountOracleFactory__factory.ts +1 -1
- package/typechain-types/factories/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/SimulateHelper__factory.ts +1 -1
- package/typechain-types/factories/StPendle__factory.ts +260 -0
- package/typechain-types/factories/StakedPendle__factory.ts +785 -0
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +69 -132
- package/typechain-types/index.ts +20 -32
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.json +0 -451
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +0 -557
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +0 -547
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +0 -1311
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +0 -764
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV6Upg.sol/PendleMarketFactoryV6Upg.dbg.json +0 -4
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV6Upg.sol/PendleMarketFactoryV6Upg.json +0 -636
- package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.dbg.json +0 -4
- package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.json +0 -1181
- package/build/artifacts/contracts/cross-chain/swap-hub/DepositBox.sol/DepositBox.dbg.json +0 -4
- package/build/artifacts/contracts/cross-chain/swap-hub/DepositBox.sol/DepositBox.json +0 -170
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +0 -4
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +0 -1214
- package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +0 -4
- package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.json +0 -1176
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +0 -4
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +0 -598
- package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.json +0 -1026
- package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.json +0 -124
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.json +0 -183
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +0 -380
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +0 -262
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +0 -164
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +0 -42
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +0 -36
- package/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +0 -304
- package/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +0 -301
- package/contracts/cross-chain/swap-hub/DepositBox.sol +0 -66
- package/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol +0 -178
- package/contracts/cross-chain/swap-hub/SwapHubBase.sol +0 -274
- package/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol +0 -204
- package/contracts/interfaces/IPCrossChainSwapHub.sol +0 -147
- package/contracts/interfaces/IPDepositBox.sol +0 -22
- package/contracts/interfaces/IPGaugeControllerMainchain.sol +0 -8
- package/contracts/interfaces/IPVotingController.sol +0 -43
- package/contracts/offchain-helpers/Broadcaster.sol +0 -48
- package/typechain-types/Broadcaster.ts +0 -455
- package/typechain-types/DepositBox.ts +0 -260
- package/typechain-types/IPCrossChainSwapHub.ts +0 -882
- package/typechain-types/IPDepositBox.ts +0 -213
- package/typechain-types/IPGaugeControllerMainchain.ts +0 -319
- package/typechain-types/IPVotingController.ts +0 -534
- package/typechain-types/PendleCrossChainSwapHub.ts +0 -1119
- package/typechain-types/PendleFeeDistributor.ts +0 -746
- package/typechain-types/PendleGaugeControllerMainchainUpg.ts +0 -778
- package/typechain-types/PendleGaugeControllerSidechainUpg.ts +0 -770
- package/typechain-types/PendleVotingControllerUpg.ts +0 -1731
- package/typechain-types/SwapHubBase.ts +0 -1094
- package/typechain-types/VotingControllerStorageUpg.ts +0 -984
- package/typechain-types/factories/Broadcaster__factory.ts +0 -317
- package/typechain-types/factories/DepositBox__factory.ts +0 -222
- package/typechain-types/factories/IPCrossChainSwapHub__factory.ts +0 -1041
- package/typechain-types/factories/IPDepositBox__factory.ts +0 -136
- package/typechain-types/factories/IPVotingController__factory.ts +0 -395
- package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +0 -1287
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +0 -671
- package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +0 -470
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +0 -648
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +0 -638
- package/typechain-types/factories/PendleMarketFactoryV6Upg__factory.ts +0 -732
- package/typechain-types/factories/PendleMarketV6__factory.ts +0 -1261
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +0 -1391
- package/typechain-types/factories/SwapHubBase__factory.ts +0 -1188
- package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +0 -783
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "Broadcaster",
|
|
4
|
-
"sourceName": "contracts/offchain-helpers/Broadcaster.sol",
|
|
5
|
-
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"inputs": [
|
|
8
|
-
{
|
|
9
|
-
"internalType": "address",
|
|
10
|
-
"name": "_votingController",
|
|
11
|
-
"type": "address"
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
"stateMutability": "nonpayable",
|
|
15
|
-
"type": "constructor"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"anonymous": false,
|
|
19
|
-
"inputs": [
|
|
20
|
-
{
|
|
21
|
-
"indexed": false,
|
|
22
|
-
"internalType": "address",
|
|
23
|
-
"name": "previousAdmin",
|
|
24
|
-
"type": "address"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"indexed": false,
|
|
28
|
-
"internalType": "address",
|
|
29
|
-
"name": "newAdmin",
|
|
30
|
-
"type": "address"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"name": "AdminChanged",
|
|
34
|
-
"type": "event"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"anonymous": false,
|
|
38
|
-
"inputs": [
|
|
39
|
-
{
|
|
40
|
-
"indexed": true,
|
|
41
|
-
"internalType": "address",
|
|
42
|
-
"name": "beacon",
|
|
43
|
-
"type": "address"
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"name": "BeaconUpgraded",
|
|
47
|
-
"type": "event"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"anonymous": false,
|
|
51
|
-
"inputs": [
|
|
52
|
-
{
|
|
53
|
-
"indexed": false,
|
|
54
|
-
"internalType": "uint8",
|
|
55
|
-
"name": "version",
|
|
56
|
-
"type": "uint8"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"name": "Initialized",
|
|
60
|
-
"type": "event"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"anonymous": false,
|
|
64
|
-
"inputs": [
|
|
65
|
-
{
|
|
66
|
-
"indexed": true,
|
|
67
|
-
"internalType": "address",
|
|
68
|
-
"name": "previousOwner",
|
|
69
|
-
"type": "address"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"indexed": true,
|
|
73
|
-
"internalType": "address",
|
|
74
|
-
"name": "newOwner",
|
|
75
|
-
"type": "address"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"name": "OwnershipTransferred",
|
|
79
|
-
"type": "event"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"anonymous": false,
|
|
83
|
-
"inputs": [
|
|
84
|
-
{
|
|
85
|
-
"indexed": true,
|
|
86
|
-
"internalType": "address",
|
|
87
|
-
"name": "implementation",
|
|
88
|
-
"type": "address"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"name": "Upgraded",
|
|
92
|
-
"type": "event"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"inputs": [],
|
|
96
|
-
"name": "claimOwnership",
|
|
97
|
-
"outputs": [],
|
|
98
|
-
"stateMutability": "nonpayable",
|
|
99
|
-
"type": "function"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"inputs": [
|
|
103
|
-
{
|
|
104
|
-
"internalType": "uint64[]",
|
|
105
|
-
"name": "chainIds",
|
|
106
|
-
"type": "uint64[]"
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"name": "finalizeAndBroadcast",
|
|
110
|
-
"outputs": [],
|
|
111
|
-
"stateMutability": "nonpayable",
|
|
112
|
-
"type": "function"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"inputs": [
|
|
116
|
-
{
|
|
117
|
-
"internalType": "address",
|
|
118
|
-
"name": "_owner",
|
|
119
|
-
"type": "address"
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
|
-
"name": "initialize",
|
|
123
|
-
"outputs": [],
|
|
124
|
-
"stateMutability": "nonpayable",
|
|
125
|
-
"type": "function"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"inputs": [],
|
|
129
|
-
"name": "lastBroadcastedWeek",
|
|
130
|
-
"outputs": [
|
|
131
|
-
{
|
|
132
|
-
"internalType": "uint256",
|
|
133
|
-
"name": "",
|
|
134
|
-
"type": "uint256"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
"stateMutability": "view",
|
|
138
|
-
"type": "function"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"inputs": [],
|
|
142
|
-
"name": "owner",
|
|
143
|
-
"outputs": [
|
|
144
|
-
{
|
|
145
|
-
"internalType": "address",
|
|
146
|
-
"name": "",
|
|
147
|
-
"type": "address"
|
|
148
|
-
}
|
|
149
|
-
],
|
|
150
|
-
"stateMutability": "view",
|
|
151
|
-
"type": "function"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"inputs": [],
|
|
155
|
-
"name": "pendingOwner",
|
|
156
|
-
"outputs": [
|
|
157
|
-
{
|
|
158
|
-
"internalType": "address",
|
|
159
|
-
"name": "",
|
|
160
|
-
"type": "address"
|
|
161
|
-
}
|
|
162
|
-
],
|
|
163
|
-
"stateMutability": "view",
|
|
164
|
-
"type": "function"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"inputs": [],
|
|
168
|
-
"name": "proxiableUUID",
|
|
169
|
-
"outputs": [
|
|
170
|
-
{
|
|
171
|
-
"internalType": "bytes32",
|
|
172
|
-
"name": "",
|
|
173
|
-
"type": "bytes32"
|
|
174
|
-
}
|
|
175
|
-
],
|
|
176
|
-
"stateMutability": "view",
|
|
177
|
-
"type": "function"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"inputs": [
|
|
181
|
-
{
|
|
182
|
-
"internalType": "address",
|
|
183
|
-
"name": "newOwner",
|
|
184
|
-
"type": "address"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"internalType": "bool",
|
|
188
|
-
"name": "direct",
|
|
189
|
-
"type": "bool"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"internalType": "bool",
|
|
193
|
-
"name": "renounce",
|
|
194
|
-
"type": "bool"
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
"name": "transferOwnership",
|
|
198
|
-
"outputs": [],
|
|
199
|
-
"stateMutability": "nonpayable",
|
|
200
|
-
"type": "function"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"inputs": [
|
|
204
|
-
{
|
|
205
|
-
"internalType": "address",
|
|
206
|
-
"name": "newImplementation",
|
|
207
|
-
"type": "address"
|
|
208
|
-
}
|
|
209
|
-
],
|
|
210
|
-
"name": "upgradeTo",
|
|
211
|
-
"outputs": [],
|
|
212
|
-
"stateMutability": "nonpayable",
|
|
213
|
-
"type": "function"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"inputs": [
|
|
217
|
-
{
|
|
218
|
-
"internalType": "address",
|
|
219
|
-
"name": "newImplementation",
|
|
220
|
-
"type": "address"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"internalType": "bytes",
|
|
224
|
-
"name": "data",
|
|
225
|
-
"type": "bytes"
|
|
226
|
-
}
|
|
227
|
-
],
|
|
228
|
-
"name": "upgradeToAndCall",
|
|
229
|
-
"outputs": [],
|
|
230
|
-
"stateMutability": "payable",
|
|
231
|
-
"type": "function"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"inputs": [],
|
|
235
|
-
"name": "votingController",
|
|
236
|
-
"outputs": [
|
|
237
|
-
{
|
|
238
|
-
"internalType": "contract IPVotingController",
|
|
239
|
-
"name": "",
|
|
240
|
-
"type": "address"
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
"stateMutability": "view",
|
|
244
|
-
"type": "function"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"inputs": [],
|
|
248
|
-
"name": "withdrawETH",
|
|
249
|
-
"outputs": [],
|
|
250
|
-
"stateMutability": "nonpayable",
|
|
251
|
-
"type": "function"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"stateMutability": "payable",
|
|
255
|
-
"type": "receive"
|
|
256
|
-
}
|
|
257
|
-
],
|
|
258
|
-
"bytecode": "0x60c060405230608052348015610013575f5ffd5b5060405161178d38038061178d83398101604081905261003291610167565b600154600160a81b900460ff1615808015610058575060018054600160a01b900460ff16105b806100785750303b158015610078575060018054600160a01b900460ff16145b6100df5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6001805460ff60a01b1916600160a01b179055801561010c576001805460ff60a81b1916600160a81b1790555b6001600160a01b03821660a0528015610160576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050610194565b5f60208284031215610177575f5ffd5b81516001600160a01b038116811461018d575f5ffd5b9392505050565b60805160a0516115a76101e65f395f81816101440152818161066401528181610708015261079501525f818161032c0152818161036c0152818161049b015281816104db015261055601526115a75ff3fe608060405260043610610099575f3560e01c8063078dfbe7146100a45780633659cfe6146100c55780633b1c6f1f146100e45780634e71e0c81461010c5780634f1ef28614610120578063517afbcf1461013357806352d1902d1461017e5780637eda170b146101925780638da5cb5b146101b1578063c4d66de8146101cf578063e086e5ec146101ee578063e30c397814610202575f5ffd5b366100a057005b5f5ffd5b3480156100af575f5ffd5b506100c36100be366004611142565b610221565b005b3480156100d0575f5ffd5b506100c36100df366004611188565b610322565b3480156100ef575f5ffd5b506100f960325481565b6040519081526020015b60405180910390f35b348015610117575f5ffd5b506100c36103e9565b6100c361012e3660046111b5565b610491565b34801561013e575f5ffd5b506101667f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610103565b348015610189575f5ffd5b506100f961054a565b34801561019d575f5ffd5b506100c36101ac366004611276565b6105f6565b3480156101bc575f5ffd5b505f54610166906001600160a01b031681565b3480156101da575f5ffd5b506100c36101e9366004611188565b610822565b3480156101f9575f5ffd5b506100c3610952565b34801561020d575f5ffd5b50600154610166906001600160a01b031681565b5f546001600160a01b031633146102535760405162461bcd60e51b815260040161024a906112e5565b60405180910390fd5b8115610301576001600160a01b03831615158061026d5750805b6102b15760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b604482015260640161024a565b5f80546040516001600160a01b03808716939216915f51602061152b5f395f51905f5291a35f80546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361036a5760405162461bcd60e51b815260040161024a9061131a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661039c610994565b6001600160a01b0316146103c25760405162461bcd60e51b815260040161024a90611353565b6103cb816109af565b604080515f808252602082019092526103e6918391906109d8565b50565b6001546001600160a01b03163381146104445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e6572604482015260640161024a565b5f80546040516001600160a01b03808516939216915f51602061152b5f395f51905f5291a35f80546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036104d95760405162461bcd60e51b815260040161024a9061131a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661050b610994565b6001600160a01b0316146105315760405162461bcd60e51b815260040161024a90611353565b61053a826109af565b610546828260016109d8565b5050565b5f306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105e45760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b606482015260840161024a565b505f51602061150b5f395f51905f5290565b5f6105ff610b42565b6001600160801b03169050806032541061065b5760405162461bcd60e51b815260206004820181905260248201527f63757272656e74207765656b20616c72656164792062726f6164636173746564604482015260640161024a565b806032819055507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166382ae9ef76040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156106ba575f5ffd5b505af11580156106cc573d5f5f3e3d5ffd5b505f925050505b8281101561081c575f8484838181106106ee576106ee61138c565b905060200201602081019061070391906113a0565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632477bfbe836040518263ffffffff1660e01b815260040161075291906113c6565b602060405180830381865afa15801561076d573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061079191906113da565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c291230d82846040518363ffffffff1660e01b81526004016107e091906113c6565b5f604051808303818588803b1580156107f7575f5ffd5b505af1158015610809573d5f5f3e3d5ffd5b5050600190950194506106d39350505050565b50505050565b600154600160a81b900460ff1615808015610848575060018054600160a01b900460ff16105b8061086f575061085730610b51565b15801561086f575060018054600160a01b900460ff16145b6108d25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161024a565b6001805460ff60a01b1916600160a01b17905580156108ff576001805460ff60a81b1916600160a81b1790555b61090882610b60565b8015610546576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b5f546001600160a01b0316331461097b5760405162461bcd60e51b815260040161024a906112e5565b5f805461099291906001600160a01b031647610bee565b565b5f51602061150b5f395f51905f52546001600160a01b031690565b5f546001600160a01b031633146103e65760405162461bcd60e51b815260040161024a906112e5565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615610a0b5761031d83610cad565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610a65575060408051601f3d908101601f19168201909252610a62918101906113da565b60015b610ac85760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161024a565b5f51602061150b5f395f51905f528114610b365760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161024a565b5061031d838383610d46565b5f610b4c42610d6a565b905090565b6001600160a01b03163b151590565b600154600160a81b900460ff16610bcd5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840161024a565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b805f03610bfa57505050565b6001600160a01b038316610c99575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610c51576040519150601f19603f3d011682016040523d82523d5f602084013e610c56565b606091505b505090508061081c5760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b604482015260640161024a565b61031d6001600160a01b0384168383610d89565b610cb681610b51565b610d185760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161024a565b5f51602061150b5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b610d4f83610ddb565b5f82511180610d5b5750805b1561031d5761081c8383610e1a565b5f62093a80610d7981846113f1565b610d83919061142b565b92915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261031d908490610e46565b610de481610cad565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b6060610e3f838360405180606001604052806027815260200161154b60279139610f19565b9392505050565b5f610e9a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f8d9092919063ffffffff16565b905080515f1480610eba575080806020019051810190610eba9190611460565b61031d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161024a565b60605f5f856001600160a01b031685604051610f35919061149d565b5f60405180830381855af49150503d805f8114610f6d576040519150601f19603f3d011682016040523d82523d5f602084013e610f72565b606091505b5091509150610f8386838387610fa3565b9695505050505050565b6060610f9b84845f85611019565b949350505050565b6060831561100f5782515f0361100857610fbc85610b51565b6110085760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161024a565b5081610f9b565b610f9b83836110f0565b60608247101561107a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161024a565b5f5f866001600160a01b03168587604051611095919061149d565b5f6040518083038185875af1925050503d805f81146110cf576040519150601f19603f3d011682016040523d82523d5f602084013e6110d4565b606091505b50915091506110e587838387610fa3565b979650505050505050565b8151156111005781518083602001fd5b8060405162461bcd60e51b815260040161024a91906114b8565b80356001600160a01b0381168114611130575f5ffd5b919050565b80151581146103e6575f5ffd5b5f5f5f60608486031215611154575f5ffd5b61115d8461111a565b9250602084013561116d81611135565b9150604084013561117d81611135565b809150509250925092565b5f60208284031215611198575f5ffd5b610e3f8261111a565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156111c6575f5ffd5b6111cf8361111a565b915060208301356001600160401b038111156111e9575f5ffd5b8301601f810185136111f9575f5ffd5b80356001600160401b03811115611212576112126111a1565b604051601f8201601f19908116603f011681016001600160401b0381118282101715611240576112406111a1565b604052818152828201602001871015611257575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f60208385031215611287575f5ffd5b82356001600160401b0381111561129c575f5ffd5b8301601f810185136112ac575f5ffd5b80356001600160401b038111156112c1575f5ffd5b8560208260051b84010111156112d5575f5ffd5b6020919091019590945092505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602c908201525f5160206114eb5f395f51905f5260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201525f5160206114eb5f395f51905f5260408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156113b0575f5ffd5b81356001600160401b0381168114610e3f575f5ffd5b6001600160401b0391909116815260200190565b5f602082840312156113ea575f5ffd5b5051919050565b5f6001600160801b0383168061141557634e487b7160e01b5f52601260045260245ffd5b6001600160801b03929092169190910492915050565b6001600160801b03818116838216029081169081811461145957634e487b7160e01b5f52601160045260245ffd5b5092915050565b5f60208284031215611470575f5ffd5b8151610e3f81611135565b5f5b8381101561149557818101518382015260200161147d565b50505f910152565b5f82516114ae81846020870161147b565b9190910192915050565b602081525f82518060208401526114d681604085016020870161147b565b601f01601f1916919091016040019291505056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220acadc6834afd7c092a722f71cca349d13f99110140bc9d4b5339ece20109e26264736f6c634300081e0033",
|
|
259
|
-
"deployedBytecode": "0x608060405260043610610099575f3560e01c8063078dfbe7146100a45780633659cfe6146100c55780633b1c6f1f146100e45780634e71e0c81461010c5780634f1ef28614610120578063517afbcf1461013357806352d1902d1461017e5780637eda170b146101925780638da5cb5b146101b1578063c4d66de8146101cf578063e086e5ec146101ee578063e30c397814610202575f5ffd5b366100a057005b5f5ffd5b3480156100af575f5ffd5b506100c36100be366004611142565b610221565b005b3480156100d0575f5ffd5b506100c36100df366004611188565b610322565b3480156100ef575f5ffd5b506100f960325481565b6040519081526020015b60405180910390f35b348015610117575f5ffd5b506100c36103e9565b6100c361012e3660046111b5565b610491565b34801561013e575f5ffd5b506101667f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610103565b348015610189575f5ffd5b506100f961054a565b34801561019d575f5ffd5b506100c36101ac366004611276565b6105f6565b3480156101bc575f5ffd5b505f54610166906001600160a01b031681565b3480156101da575f5ffd5b506100c36101e9366004611188565b610822565b3480156101f9575f5ffd5b506100c3610952565b34801561020d575f5ffd5b50600154610166906001600160a01b031681565b5f546001600160a01b031633146102535760405162461bcd60e51b815260040161024a906112e5565b60405180910390fd5b8115610301576001600160a01b03831615158061026d5750805b6102b15760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b604482015260640161024a565b5f80546040516001600160a01b03808716939216915f51602061152b5f395f51905f5291a35f80546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361036a5760405162461bcd60e51b815260040161024a9061131a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661039c610994565b6001600160a01b0316146103c25760405162461bcd60e51b815260040161024a90611353565b6103cb816109af565b604080515f808252602082019092526103e6918391906109d8565b50565b6001546001600160a01b03163381146104445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e6572604482015260640161024a565b5f80546040516001600160a01b03808516939216915f51602061152b5f395f51905f5291a35f80546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036104d95760405162461bcd60e51b815260040161024a9061131a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661050b610994565b6001600160a01b0316146105315760405162461bcd60e51b815260040161024a90611353565b61053a826109af565b610546828260016109d8565b5050565b5f306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105e45760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b606482015260840161024a565b505f51602061150b5f395f51905f5290565b5f6105ff610b42565b6001600160801b03169050806032541061065b5760405162461bcd60e51b815260206004820181905260248201527f63757272656e74207765656b20616c72656164792062726f6164636173746564604482015260640161024a565b806032819055507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166382ae9ef76040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156106ba575f5ffd5b505af11580156106cc573d5f5f3e3d5ffd5b505f925050505b8281101561081c575f8484838181106106ee576106ee61138c565b905060200201602081019061070391906113a0565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632477bfbe836040518263ffffffff1660e01b815260040161075291906113c6565b602060405180830381865afa15801561076d573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061079191906113da565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c291230d82846040518363ffffffff1660e01b81526004016107e091906113c6565b5f604051808303818588803b1580156107f7575f5ffd5b505af1158015610809573d5f5f3e3d5ffd5b5050600190950194506106d39350505050565b50505050565b600154600160a81b900460ff1615808015610848575060018054600160a01b900460ff16105b8061086f575061085730610b51565b15801561086f575060018054600160a01b900460ff16145b6108d25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161024a565b6001805460ff60a01b1916600160a01b17905580156108ff576001805460ff60a81b1916600160a81b1790555b61090882610b60565b8015610546576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b5f546001600160a01b0316331461097b5760405162461bcd60e51b815260040161024a906112e5565b5f805461099291906001600160a01b031647610bee565b565b5f51602061150b5f395f51905f52546001600160a01b031690565b5f546001600160a01b031633146103e65760405162461bcd60e51b815260040161024a906112e5565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615610a0b5761031d83610cad565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610a65575060408051601f3d908101601f19168201909252610a62918101906113da565b60015b610ac85760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161024a565b5f51602061150b5f395f51905f528114610b365760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161024a565b5061031d838383610d46565b5f610b4c42610d6a565b905090565b6001600160a01b03163b151590565b600154600160a81b900460ff16610bcd5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840161024a565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b805f03610bfa57505050565b6001600160a01b038316610c99575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610c51576040519150601f19603f3d011682016040523d82523d5f602084013e610c56565b606091505b505090508061081c5760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b604482015260640161024a565b61031d6001600160a01b0384168383610d89565b610cb681610b51565b610d185760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161024a565b5f51602061150b5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b610d4f83610ddb565b5f82511180610d5b5750805b1561031d5761081c8383610e1a565b5f62093a80610d7981846113f1565b610d83919061142b565b92915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261031d908490610e46565b610de481610cad565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b6060610e3f838360405180606001604052806027815260200161154b60279139610f19565b9392505050565b5f610e9a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f8d9092919063ffffffff16565b905080515f1480610eba575080806020019051810190610eba9190611460565b61031d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161024a565b60605f5f856001600160a01b031685604051610f35919061149d565b5f60405180830381855af49150503d805f8114610f6d576040519150601f19603f3d011682016040523d82523d5f602084013e610f72565b606091505b5091509150610f8386838387610fa3565b9695505050505050565b6060610f9b84845f85611019565b949350505050565b6060831561100f5782515f0361100857610fbc85610b51565b6110085760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161024a565b5081610f9b565b610f9b83836110f0565b60608247101561107a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161024a565b5f5f866001600160a01b03168587604051611095919061149d565b5f6040518083038185875af1925050503d805f81146110cf576040519150601f19603f3d011682016040523d82523d5f602084013e6110d4565b606091505b50915091506110e587838387610fa3565b979650505050505050565b8151156111005781518083602001fd5b8060405162461bcd60e51b815260040161024a91906114b8565b80356001600160a01b0381168114611130575f5ffd5b919050565b80151581146103e6575f5ffd5b5f5f5f60608486031215611154575f5ffd5b61115d8461111a565b9250602084013561116d81611135565b9150604084013561117d81611135565b809150509250925092565b5f60208284031215611198575f5ffd5b610e3f8261111a565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156111c6575f5ffd5b6111cf8361111a565b915060208301356001600160401b038111156111e9575f5ffd5b8301601f810185136111f9575f5ffd5b80356001600160401b03811115611212576112126111a1565b604051601f8201601f19908116603f011681016001600160401b0381118282101715611240576112406111a1565b604052818152828201602001871015611257575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f60208385031215611287575f5ffd5b82356001600160401b0381111561129c575f5ffd5b8301601f810185136112ac575f5ffd5b80356001600160401b038111156112c1575f5ffd5b8560208260051b84010111156112d5575f5ffd5b6020919091019590945092505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602c908201525f5160206114eb5f395f51905f5260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201525f5160206114eb5f395f51905f5260408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156113b0575f5ffd5b81356001600160401b0381168114610e3f575f5ffd5b6001600160401b0391909116815260200190565b5f602082840312156113ea575f5ffd5b5051919050565b5f6001600160801b0383168061141557634e487b7160e01b5f52601260045260245ffd5b6001600160801b03929092169190910492915050565b6001600160801b03818116838216029081169081811461145957634e487b7160e01b5f52601160045260245ffd5b5092915050565b5f60208284031215611470575f5ffd5b8151610e3f81611135565b5f5b8381101561149557818101518382015260200161147d565b50505f910152565b5f82516114ae81846020870161147b565b9190910192915050565b602081525f82518060208401526114d681604085016020870161147b565b601f01601f1916919091016040019291505056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220acadc6834afd7c092a722f71cca349d13f99110140bc9d4b5339ece20109e26264736f6c634300081e0033",
|
|
260
|
-
"linkReferences": {},
|
|
261
|
-
"deployedLinkReferences": {}
|
|
262
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity ^0.8.0;
|
|
3
|
-
|
|
4
|
-
import "../../core/libraries/BoringOwnableUpgradeableV2.sol";
|
|
5
|
-
import "../../core/libraries/Errors.sol";
|
|
6
|
-
import "../../core/libraries/math/PMath.sol";
|
|
7
|
-
|
|
8
|
-
import "../libraries/WeekMath.sol";
|
|
9
|
-
|
|
10
|
-
import "../../interfaces/IPGaugeController.sol";
|
|
11
|
-
import "../../interfaces/IPGaugeController.sol";
|
|
12
|
-
import "../../interfaces/IPMarket.sol";
|
|
13
|
-
import "../../interfaces/IPMarketFactory.sol";
|
|
14
|
-
|
|
15
|
-
import "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol";
|
|
16
|
-
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
|
|
17
|
-
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @dev Gauge controller provides no write function to any party other than voting controller
|
|
21
|
-
* @dev Gauge controller will receive (lpTokens[], pendle per sec[]) from voting controller and
|
|
22
|
-
* set it directly to contract state
|
|
23
|
-
* @dev All of the core data in this function are set to private to prevent unintended assignments
|
|
24
|
-
* on inheriting contracts
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
abstract contract PendleGaugeControllerBaseUpg is IPGaugeController, BoringOwnableUpgradeableV2, UUPSUpgradeable {
|
|
28
|
-
using SafeERC20 for IERC20;
|
|
29
|
-
using PMath for uint256;
|
|
30
|
-
|
|
31
|
-
struct MarketRewardData {
|
|
32
|
-
uint128 pendlePerSec;
|
|
33
|
-
uint128 accumulatedPendle;
|
|
34
|
-
uint128 lastUpdated;
|
|
35
|
-
uint128 incentiveEndsAt;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
uint128 internal constant WEEK = 1 weeks;
|
|
39
|
-
|
|
40
|
-
// solhint-disable immutable-vars-naming
|
|
41
|
-
address public immutable pendle;
|
|
42
|
-
IPMarketFactory public immutable marketFactory;
|
|
43
|
-
IPMarketFactory public immutable marketFactory2;
|
|
44
|
-
IPMarketFactory public immutable marketFactory3;
|
|
45
|
-
IPMarketFactory public immutable marketFactory4;
|
|
46
|
-
IPMarketFactory public immutable marketFactory5;
|
|
47
|
-
|
|
48
|
-
mapping(address => MarketRewardData) public rewardData;
|
|
49
|
-
mapping(uint128 => bool) public epochRewardReceived;
|
|
50
|
-
|
|
51
|
-
mapping(address => bool) public isValidMarket;
|
|
52
|
-
uint256[99] private __gap;
|
|
53
|
-
|
|
54
|
-
modifier onlyPendleMarket() {
|
|
55
|
-
if (isValidMarket[msg.sender]) {
|
|
56
|
-
_;
|
|
57
|
-
} else if (
|
|
58
|
-
marketFactory.isValidMarket(msg.sender) || marketFactory2.isValidMarket(msg.sender)
|
|
59
|
-
|| marketFactory3.isValidMarket(msg.sender) || marketFactory4.isValidMarket(msg.sender)
|
|
60
|
-
|| marketFactory5.isValidMarket(msg.sender)
|
|
61
|
-
) {
|
|
62
|
-
isValidMarket[msg.sender] = true;
|
|
63
|
-
_;
|
|
64
|
-
} else {
|
|
65
|
-
revert Errors.GCNotPendleMarket(msg.sender);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
constructor(
|
|
70
|
-
address _pendle,
|
|
71
|
-
address _marketFactory,
|
|
72
|
-
address _marketFactory2,
|
|
73
|
-
address _marketFactory3,
|
|
74
|
-
address _marketFactory4,
|
|
75
|
-
address _marketFactory5
|
|
76
|
-
) {
|
|
77
|
-
pendle = _pendle;
|
|
78
|
-
marketFactory = IPMarketFactory(_marketFactory);
|
|
79
|
-
marketFactory2 = IPMarketFactory(_marketFactory2);
|
|
80
|
-
marketFactory3 = IPMarketFactory(_marketFactory3);
|
|
81
|
-
marketFactory4 = IPMarketFactory(_marketFactory4);
|
|
82
|
-
marketFactory5 = IPMarketFactory(_marketFactory5);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @notice claim the rewards allocated by gaugeController
|
|
87
|
-
* @dev only pendle market can call this
|
|
88
|
-
*/
|
|
89
|
-
function redeemMarketReward() external onlyPendleMarket {
|
|
90
|
-
address market = msg.sender;
|
|
91
|
-
rewardData[market] = _getUpdatedMarketReward(market);
|
|
92
|
-
|
|
93
|
-
uint256 amount = rewardData[market].accumulatedPendle;
|
|
94
|
-
if (amount != 0) {
|
|
95
|
-
rewardData[market].accumulatedPendle = 0;
|
|
96
|
-
IERC20(pendle).safeTransfer(market, amount);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
emit MarketClaimReward(market, amount);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function fundPendle(uint256 amount) external {
|
|
103
|
-
IERC20(pendle).safeTransferFrom(msg.sender, address(this), amount);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function withdrawPendle(uint256 amount) external onlyOwner {
|
|
107
|
-
IERC20(pendle).safeTransfer(msg.sender, amount);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @notice receive voting results from VotingController. Only the first message for a timestamp
|
|
112
|
-
* will be accepted, all subsequent messages will be ignored
|
|
113
|
-
*/
|
|
114
|
-
function _receiveVotingResults(uint128 wTime, address[] memory markets, uint256[] memory pendleAmounts) internal {
|
|
115
|
-
if (markets.length != pendleAmounts.length) revert Errors.ArrayLengthMismatch();
|
|
116
|
-
|
|
117
|
-
if (epochRewardReceived[wTime]) return; // only accept the first message for the wTime
|
|
118
|
-
epochRewardReceived[wTime] = true;
|
|
119
|
-
|
|
120
|
-
for (uint256 i = 0; i < markets.length; ++i) {
|
|
121
|
-
if (!IPMarket(markets[i]).isExpired()) {
|
|
122
|
-
_addRewardsToMarket(markets[i], pendleAmounts[i].Uint128());
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
emit ReceiveVotingResults(wTime, markets, pendleAmounts);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @notice merge the additional rewards with the existing rewards
|
|
131
|
-
* @dev this function will calc the total amount of Pendle that hasn't been factored into
|
|
132
|
-
* accumulatedPendle yet, combined them with the additional pendleAmount, then divide them
|
|
133
|
-
* equally over the next one week
|
|
134
|
-
*/
|
|
135
|
-
function _addRewardsToMarket(address market, uint128 pendleAmount) internal {
|
|
136
|
-
MarketRewardData memory rwd = _getUpdatedMarketReward(market);
|
|
137
|
-
uint128 leftover = (rwd.incentiveEndsAt - rwd.lastUpdated) * rwd.pendlePerSec;
|
|
138
|
-
uint128 newSpeed = (leftover + pendleAmount) / WEEK;
|
|
139
|
-
|
|
140
|
-
rewardData[market] = MarketRewardData({
|
|
141
|
-
pendlePerSec: newSpeed,
|
|
142
|
-
accumulatedPendle: rwd.accumulatedPendle,
|
|
143
|
-
lastUpdated: uint128(block.timestamp),
|
|
144
|
-
incentiveEndsAt: uint128(block.timestamp) + WEEK
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
emit UpdateMarketReward(market, newSpeed, uint128(block.timestamp) + WEEK);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @notice get the updated state of the market, to the current time with all the undistributed
|
|
152
|
-
* Pendle distributed to the accumulatedPendle
|
|
153
|
-
* @dev expect to update accumulatedPendle & lastUpdated in MarketRewardData
|
|
154
|
-
*/
|
|
155
|
-
function _getUpdatedMarketReward(address market) internal view returns (MarketRewardData memory) {
|
|
156
|
-
MarketRewardData memory rwd = rewardData[market];
|
|
157
|
-
uint128 newLastUpdated = uint128(PMath.min(uint128(block.timestamp), rwd.incentiveEndsAt));
|
|
158
|
-
rwd.accumulatedPendle += rwd.pendlePerSec * (newLastUpdated - rwd.lastUpdated);
|
|
159
|
-
rwd.lastUpdated = newLastUpdated;
|
|
160
|
-
return rwd;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
function _authorizeUpgrade(address) internal virtual override onlyOwner {}
|
|
164
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity ^0.8.17;
|
|
3
|
-
|
|
4
|
-
import "../../interfaces/IPGaugeControllerMainchain.sol";
|
|
5
|
-
import "./PendleGaugeControllerBaseUpg.sol";
|
|
6
|
-
|
|
7
|
-
contract PendleGaugeControllerMainchainUpg is PendleGaugeControllerBaseUpg, IPGaugeControllerMainchain {
|
|
8
|
-
address public immutable votingController;
|
|
9
|
-
|
|
10
|
-
modifier onlyVotingController() {
|
|
11
|
-
if (msg.sender != votingController) revert Errors.GCNotVotingController(msg.sender);
|
|
12
|
-
_;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
constructor(
|
|
16
|
-
address _votingController,
|
|
17
|
-
address _pendle,
|
|
18
|
-
address _marketFactory,
|
|
19
|
-
address _marketFactory2,
|
|
20
|
-
address _marketFactory3,
|
|
21
|
-
address _marketFactory4,
|
|
22
|
-
address _marketFactory5
|
|
23
|
-
)
|
|
24
|
-
PendleGaugeControllerBaseUpg(
|
|
25
|
-
_pendle, _marketFactory, _marketFactory2, _marketFactory3, _marketFactory4, _marketFactory5
|
|
26
|
-
)
|
|
27
|
-
{
|
|
28
|
-
votingController = _votingController;
|
|
29
|
-
_disableInitializers();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function initialize(address _owner) external initializer {
|
|
33
|
-
__BoringOwnableV2_init(_owner);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function updateVotingResults(uint128 wTime, address[] memory markets, uint256[] memory pendleSpeeds)
|
|
37
|
-
external
|
|
38
|
-
onlyVotingController
|
|
39
|
-
{
|
|
40
|
-
_receiveVotingResults(wTime, markets, pendleSpeeds);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity ^0.8.17;
|
|
3
|
-
|
|
4
|
-
import "../CrossChainMsg/PendleMsgReceiverAppUpg.sol";
|
|
5
|
-
import "./PendleGaugeControllerBaseUpg.sol";
|
|
6
|
-
|
|
7
|
-
// solhint-disable no-empty-blocks
|
|
8
|
-
|
|
9
|
-
contract PendleGaugeControllerSidechainUpg is PendleGaugeControllerBaseUpg, PendleMsgReceiverAppUpg {
|
|
10
|
-
constructor(
|
|
11
|
-
address _pendle,
|
|
12
|
-
address _marketFactory,
|
|
13
|
-
address _marketFactory2,
|
|
14
|
-
address _marketFactory3,
|
|
15
|
-
address _marketFactory4,
|
|
16
|
-
address _marketFactory5,
|
|
17
|
-
address _PendleMsgReceiveEndpointUpg
|
|
18
|
-
)
|
|
19
|
-
PendleGaugeControllerBaseUpg(
|
|
20
|
-
_pendle, _marketFactory, _marketFactory2, _marketFactory3, _marketFactory4, _marketFactory5
|
|
21
|
-
)
|
|
22
|
-
PendleMsgReceiverAppUpg(_PendleMsgReceiveEndpointUpg)
|
|
23
|
-
{
|
|
24
|
-
_disableInitializers();
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function initialize(address _owner) external initializer {
|
|
28
|
-
__BoringOwnableV2_init(_owner);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function _executeMessage(bytes memory message) internal virtual override {
|
|
32
|
-
(uint128 wTime, address[] memory markets, uint256[] memory pendleAmounts) =
|
|
33
|
-
abi.decode(message, (uint128, address[], uint256[]));
|
|
34
|
-
_receiveVotingResults(wTime, markets, pendleAmounts);
|
|
35
|
-
}
|
|
36
|
-
}
|