@pendle/core-v2 6.5.0 → 6.6.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/LICENSE +12 -82
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.json +58 -2
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.json +2 -2
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.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/SYUtils.sol/SYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/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/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/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/deposit-box/DepositBox.sol/DepositBox.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.json +170 -0
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.json +124 -0
- 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/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +1005 -0
- package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.json +976 -0
- 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/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.json +813 -0
- package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.json +124 -0
- package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.json +108 -0
- 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/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.json +56 -0
- package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.json +231 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/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 +1 -1
- package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.json +226 -21
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +228 -23
- package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/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/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/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol/PendleCrossChainOracleBaseApp_Init.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
- package/build/artifacts/contracts/router/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/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol +12 -2
- package/contracts/core/libraries/TokenHelper.sol +6 -2
- package/contracts/cross-chain/deposit-box/DepositBox.sol +66 -0
- package/contracts/cross-chain/deposit-box/DepositBoxFactory.sol +44 -0
- package/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol +101 -0
- package/contracts/cross-chain/swap-hub/SwapHubBase.sol +184 -0
- package/contracts/interfaces/IPCrossChainSwapHub.sol +108 -0
- package/contracts/interfaces/IPDepositBox.sol +22 -0
- package/contracts/interfaces/IPDepositBoxFactory.sol +19 -0
- package/contracts/interfaces/IPGaugeController.sol +7 -3
- package/contracts/interfaces/IPLimitRouter.sol +7 -0
- package/contracts/limit/LimitRouterBase.sol +2 -11
- package/contracts/limit/PendleLimitRouter.sol +23 -1
- package/deployments/1-core.json +10 -6
- package/deployments/10-core.json +8 -4
- package/deployments/130-core.json +8 -2
- package/deployments/143-core.json +18 -0
- package/deployments/146-core.json +8 -4
- package/deployments/42161-core.json +8 -4
- package/deployments/43114-core.json +5 -2
- package/deployments/43114-offchain-helper.json +3 -0
- package/deployments/5000-core.json +8 -4
- package/deployments/56-core.json +8 -4
- package/deployments/57073-core.json +18 -0
- package/deployments/747474-core.json +18 -0
- package/deployments/80094-core.json +8 -4
- package/deployments/8453-core.json +8 -4
- package/deployments/9745-core.json +7 -3
- package/deployments/999-core.json +7 -3
- package/package.json +2 -2
- package/typechain-types/DepositBox.ts +260 -0
- package/typechain-types/DepositBoxFactory.ts +226 -0
- package/typechain-types/IPCrossChainSwapHub.ts +656 -0
- package/typechain-types/IPDepositBox.ts +213 -0
- package/typechain-types/IPDepositBoxFactory.ts +226 -0
- package/typechain-types/IPGaugeController.ts +86 -0
- package/typechain-types/IPLimitRouter.ts +83 -0
- package/typechain-types/LimitRouterBase.ts +79 -46
- package/typechain-types/PendleCrossChainSwapHub.ts +911 -0
- package/typechain-types/PendleGaugeControllerUpg.ts +86 -0
- package/typechain-types/PendleLimitRouter.ts +79 -46
- package/typechain-types/SwapHubBase.ts +886 -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/DepositBoxFactory__factory.ts +189 -0
- package/typechain-types/factories/DepositBox__factory.ts +222 -0
- package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
- package/typechain-types/factories/FixedPricePTAMM__factory.ts +1 -1
- package/typechain-types/factories/IPCrossChainSwapHub__factory.ts +828 -0
- package/typechain-types/factories/IPDepositBoxFactory__factory.ts +123 -0
- package/typechain-types/factories/IPDepositBox__factory.ts +136 -0
- package/typechain-types/factories/IPGaugeController__factory.ts +56 -0
- package/typechain-types/factories/IPLimitRouter__factory.ts +231 -0
- package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
- package/typechain-types/factories/LimitRouterBase__factory.ts +226 -21
- package/typechain-types/factories/MarketSweed__factory.ts +1 -1
- package/typechain-types/factories/PendleAPIFeeDepositor__factory.ts +1 -1
- package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
- package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +1074 -0
- 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 +57 -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 +227 -22
- package/typechain-types/factories/PendleMarketV7__factory.ts +1 -1
- package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleMultiTokenMerkleDistributor__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/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
- package/typechain-types/factories/PendleSwap__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/StakedPendle__factory.ts +1 -1
- package/typechain-types/factories/SwapHubBase__factory.ts +988 -0
- package/typechain-types/hardhat.d.ts +72 -9
- package/typechain-types/index.ts +14 -2
- package/build/artifacts/contracts/StPendle.sol/RoundDataLib.dbg.json +0 -4
- package/build/artifacts/contracts/StPendle.sol/RoundDataLib.json +0 -10
- package/build/artifacts/contracts/StPendle.sol/StPendle.dbg.json +0 -4
- package/build/artifacts/contracts/StPendle.sol/StPendle.json +0 -228
- package/contracts/StPendle.sol +0 -121
- package/typechain-types/StPendle.ts +0 -362
- package/typechain-types/factories/StPendle__factory.ts +0 -260
|
@@ -256,6 +256,10 @@ declare module "hardhat/types/runtime" {
|
|
|
256
256
|
name: "TransparentUpgradeableProxy",
|
|
257
257
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
258
258
|
): Promise<Contracts.TransparentUpgradeableProxy__factory>;
|
|
259
|
+
getContractFactory(
|
|
260
|
+
name: "Initializable",
|
|
261
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
262
|
+
): Promise<Contracts.Initializable__factory>;
|
|
259
263
|
getContractFactory(
|
|
260
264
|
name: "UUPSUpgradeable",
|
|
261
265
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -336,6 +340,14 @@ declare module "hardhat/types/runtime" {
|
|
|
336
340
|
name: "PendleYieldToken",
|
|
337
341
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
338
342
|
): Promise<Contracts.PendleYieldToken__factory>;
|
|
343
|
+
getContractFactory(
|
|
344
|
+
name: "DepositBox",
|
|
345
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
346
|
+
): Promise<Contracts.DepositBox__factory>;
|
|
347
|
+
getContractFactory(
|
|
348
|
+
name: "DepositBoxFactory",
|
|
349
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
350
|
+
): Promise<Contracts.DepositBoxFactory__factory>;
|
|
339
351
|
getContractFactory(
|
|
340
352
|
name: "PendlePTOFTAdapterFactory",
|
|
341
353
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -352,6 +364,14 @@ declare module "hardhat/types/runtime" {
|
|
|
352
364
|
name: "PendleBridgedPrincipalToken",
|
|
353
365
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
354
366
|
): Promise<Contracts.PendleBridgedPrincipalToken__factory>;
|
|
367
|
+
getContractFactory(
|
|
368
|
+
name: "PendleCrossChainSwapHub",
|
|
369
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
370
|
+
): Promise<Contracts.PendleCrossChainSwapHub__factory>;
|
|
371
|
+
getContractFactory(
|
|
372
|
+
name: "SwapHubBase",
|
|
373
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
374
|
+
): Promise<Contracts.SwapHubBase__factory>;
|
|
355
375
|
getContractFactory(
|
|
356
376
|
name: "PendleFeeDistributorV2",
|
|
357
377
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -492,6 +512,18 @@ declare module "hardhat/types/runtime" {
|
|
|
492
512
|
name: "IPCommonSYFactory",
|
|
493
513
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
494
514
|
): Promise<Contracts.IPCommonSYFactory__factory>;
|
|
515
|
+
getContractFactory(
|
|
516
|
+
name: "IPCrossChainSwapHub",
|
|
517
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
518
|
+
): Promise<Contracts.IPCrossChainSwapHub__factory>;
|
|
519
|
+
getContractFactory(
|
|
520
|
+
name: "IPDepositBox",
|
|
521
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
522
|
+
): Promise<Contracts.IPDepositBox__factory>;
|
|
523
|
+
getContractFactory(
|
|
524
|
+
name: "IPDepositBoxFactory",
|
|
525
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
526
|
+
): Promise<Contracts.IPDepositBoxFactory__factory>;
|
|
495
527
|
getContractFactory(
|
|
496
528
|
name: "IPExchangeRateOracle",
|
|
497
529
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -1044,10 +1076,6 @@ declare module "hardhat/types/runtime" {
|
|
|
1044
1076
|
name: "PendleSwap",
|
|
1045
1077
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
1046
1078
|
): Promise<Contracts.PendleSwap__factory>;
|
|
1047
|
-
getContractFactory(
|
|
1048
|
-
name: "StPendle",
|
|
1049
|
-
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
1050
|
-
): Promise<Contracts.StPendle__factory>;
|
|
1051
1079
|
|
|
1052
1080
|
getContractAt(
|
|
1053
1081
|
name: "AggregatorInterface",
|
|
@@ -1354,6 +1382,11 @@ declare module "hardhat/types/runtime" {
|
|
|
1354
1382
|
address: string,
|
|
1355
1383
|
signer?: ethers.Signer
|
|
1356
1384
|
): Promise<Contracts.TransparentUpgradeableProxy>;
|
|
1385
|
+
getContractAt(
|
|
1386
|
+
name: "Initializable",
|
|
1387
|
+
address: string,
|
|
1388
|
+
signer?: ethers.Signer
|
|
1389
|
+
): Promise<Contracts.Initializable>;
|
|
1357
1390
|
getContractAt(
|
|
1358
1391
|
name: "UUPSUpgradeable",
|
|
1359
1392
|
address: string,
|
|
@@ -1454,6 +1487,16 @@ declare module "hardhat/types/runtime" {
|
|
|
1454
1487
|
address: string,
|
|
1455
1488
|
signer?: ethers.Signer
|
|
1456
1489
|
): Promise<Contracts.PendleYieldToken>;
|
|
1490
|
+
getContractAt(
|
|
1491
|
+
name: "DepositBox",
|
|
1492
|
+
address: string,
|
|
1493
|
+
signer?: ethers.Signer
|
|
1494
|
+
): Promise<Contracts.DepositBox>;
|
|
1495
|
+
getContractAt(
|
|
1496
|
+
name: "DepositBoxFactory",
|
|
1497
|
+
address: string,
|
|
1498
|
+
signer?: ethers.Signer
|
|
1499
|
+
): Promise<Contracts.DepositBoxFactory>;
|
|
1457
1500
|
getContractAt(
|
|
1458
1501
|
name: "PendlePTOFTAdapterFactory",
|
|
1459
1502
|
address: string,
|
|
@@ -1474,6 +1517,16 @@ declare module "hardhat/types/runtime" {
|
|
|
1474
1517
|
address: string,
|
|
1475
1518
|
signer?: ethers.Signer
|
|
1476
1519
|
): Promise<Contracts.PendleBridgedPrincipalToken>;
|
|
1520
|
+
getContractAt(
|
|
1521
|
+
name: "PendleCrossChainSwapHub",
|
|
1522
|
+
address: string,
|
|
1523
|
+
signer?: ethers.Signer
|
|
1524
|
+
): Promise<Contracts.PendleCrossChainSwapHub>;
|
|
1525
|
+
getContractAt(
|
|
1526
|
+
name: "SwapHubBase",
|
|
1527
|
+
address: string,
|
|
1528
|
+
signer?: ethers.Signer
|
|
1529
|
+
): Promise<Contracts.SwapHubBase>;
|
|
1477
1530
|
getContractAt(
|
|
1478
1531
|
name: "PendleFeeDistributorV2",
|
|
1479
1532
|
address: string,
|
|
@@ -1649,6 +1702,21 @@ declare module "hardhat/types/runtime" {
|
|
|
1649
1702
|
address: string,
|
|
1650
1703
|
signer?: ethers.Signer
|
|
1651
1704
|
): Promise<Contracts.IPCommonSYFactory>;
|
|
1705
|
+
getContractAt(
|
|
1706
|
+
name: "IPCrossChainSwapHub",
|
|
1707
|
+
address: string,
|
|
1708
|
+
signer?: ethers.Signer
|
|
1709
|
+
): Promise<Contracts.IPCrossChainSwapHub>;
|
|
1710
|
+
getContractAt(
|
|
1711
|
+
name: "IPDepositBox",
|
|
1712
|
+
address: string,
|
|
1713
|
+
signer?: ethers.Signer
|
|
1714
|
+
): Promise<Contracts.IPDepositBox>;
|
|
1715
|
+
getContractAt(
|
|
1716
|
+
name: "IPDepositBoxFactory",
|
|
1717
|
+
address: string,
|
|
1718
|
+
signer?: ethers.Signer
|
|
1719
|
+
): Promise<Contracts.IPDepositBoxFactory>;
|
|
1652
1720
|
getContractAt(
|
|
1653
1721
|
name: "IPExchangeRateOracle",
|
|
1654
1722
|
address: string,
|
|
@@ -2339,11 +2407,6 @@ declare module "hardhat/types/runtime" {
|
|
|
2339
2407
|
address: string,
|
|
2340
2408
|
signer?: ethers.Signer
|
|
2341
2409
|
): Promise<Contracts.PendleSwap>;
|
|
2342
|
-
getContractAt(
|
|
2343
|
-
name: "StPendle",
|
|
2344
|
-
address: string,
|
|
2345
|
-
signer?: ethers.Signer
|
|
2346
|
-
): Promise<Contracts.StPendle>;
|
|
2347
2410
|
|
|
2348
2411
|
// default types
|
|
2349
2412
|
getContractFactory(
|
package/typechain-types/index.ts
CHANGED
|
@@ -81,10 +81,14 @@ export type { InterestManagerYT } from "./InterestManagerYT";
|
|
|
81
81
|
export type { PendlePrincipalToken } from "./PendlePrincipalToken";
|
|
82
82
|
export type { PendleYieldContractFactoryUpg } from "./PendleYieldContractFactoryUpg";
|
|
83
83
|
export type { PendleYieldToken } from "./PendleYieldToken";
|
|
84
|
+
export type { DepositBox } from "./DepositBox";
|
|
85
|
+
export type { DepositBoxFactory } from "./DepositBoxFactory";
|
|
84
86
|
export type { PendlePTOFTAdapterFactory } from "./PendlePTOFTAdapterFactory";
|
|
85
87
|
export type { FixedPricePTAMM } from "./FixedPricePTAMM";
|
|
86
88
|
export type { OFTAdapterImpl } from "./OFTAdapterImpl";
|
|
87
89
|
export type { PendleBridgedPrincipalToken } from "./PendleBridgedPrincipalToken";
|
|
90
|
+
export type { PendleCrossChainSwapHub } from "./PendleCrossChainSwapHub";
|
|
91
|
+
export type { SwapHubBase } from "./SwapHubBase";
|
|
88
92
|
export type { PendleFeeDistributorV2 } from "./PendleFeeDistributorV2";
|
|
89
93
|
export type { IAddressProvider } from "./IAddressProvider";
|
|
90
94
|
export type { ILayerZeroEndpoint } from "./ILayerZeroEndpoint";
|
|
@@ -119,6 +123,9 @@ export type { IPChainlinkOracleFactory } from "./IPChainlinkOracleFactory";
|
|
|
119
123
|
export type { IPChainlinkOracleWithQuote } from "./IPChainlinkOracleWithQuote";
|
|
120
124
|
export type { IPCommonPoolDeployHelperV2 } from "./IPCommonPoolDeployHelperV2";
|
|
121
125
|
export type { IPCommonSYFactory } from "./IPCommonSYFactory";
|
|
126
|
+
export type { IPCrossChainSwapHub } from "./IPCrossChainSwapHub";
|
|
127
|
+
export type { IPDepositBox } from "./IPDepositBox";
|
|
128
|
+
export type { IPDepositBoxFactory } from "./IPDepositBoxFactory";
|
|
122
129
|
export type { IPExchangeRateOracle } from "./IPExchangeRateOracle";
|
|
123
130
|
export type { IPExchangeRateOracleApp } from "./IPExchangeRateOracleApp";
|
|
124
131
|
export type { IPFeeDistributor } from "./IPFeeDistributor";
|
|
@@ -257,7 +264,6 @@ export type { IAugustusV6 } from "./IAugustusV6";
|
|
|
257
264
|
export type { IKyberScalingHelper } from "./IKyberScalingHelper";
|
|
258
265
|
export type { IOdosRouterV2 } from "./IOdosRouterV2";
|
|
259
266
|
export type { PendleSwap } from "./PendleSwap";
|
|
260
|
-
export type { StPendle } from "./StPendle";
|
|
261
267
|
|
|
262
268
|
export { AggregatorInterface__factory } from "./factories/AggregatorInterface__factory";
|
|
263
269
|
export { AggregatorV2V3Interface__factory } from "./factories/AggregatorV2V3Interface__factory";
|
|
@@ -339,10 +345,14 @@ export { InterestManagerYT__factory } from "./factories/InterestManagerYT__facto
|
|
|
339
345
|
export { PendlePrincipalToken__factory } from "./factories/PendlePrincipalToken__factory";
|
|
340
346
|
export { PendleYieldContractFactoryUpg__factory } from "./factories/PendleYieldContractFactoryUpg__factory";
|
|
341
347
|
export { PendleYieldToken__factory } from "./factories/PendleYieldToken__factory";
|
|
348
|
+
export { DepositBox__factory } from "./factories/DepositBox__factory";
|
|
349
|
+
export { DepositBoxFactory__factory } from "./factories/DepositBoxFactory__factory";
|
|
342
350
|
export { PendlePTOFTAdapterFactory__factory } from "./factories/PendlePTOFTAdapterFactory__factory";
|
|
343
351
|
export { FixedPricePTAMM__factory } from "./factories/FixedPricePTAMM__factory";
|
|
344
352
|
export { OFTAdapterImpl__factory } from "./factories/OFTAdapterImpl__factory";
|
|
345
353
|
export { PendleBridgedPrincipalToken__factory } from "./factories/PendleBridgedPrincipalToken__factory";
|
|
354
|
+
export { PendleCrossChainSwapHub__factory } from "./factories/PendleCrossChainSwapHub__factory";
|
|
355
|
+
export { SwapHubBase__factory } from "./factories/SwapHubBase__factory";
|
|
346
356
|
export { PendleFeeDistributorV2__factory } from "./factories/PendleFeeDistributorV2__factory";
|
|
347
357
|
export { IAddressProvider__factory } from "./factories/IAddressProvider__factory";
|
|
348
358
|
export { ILayerZeroEndpoint__factory } from "./factories/ILayerZeroEndpoint__factory";
|
|
@@ -377,6 +387,9 @@ export { IPChainlinkOracleFactory__factory } from "./factories/IPChainlinkOracle
|
|
|
377
387
|
export { IPChainlinkOracleWithQuote__factory } from "./factories/IPChainlinkOracleWithQuote__factory";
|
|
378
388
|
export { IPCommonPoolDeployHelperV2__factory } from "./factories/IPCommonPoolDeployHelperV2__factory";
|
|
379
389
|
export { IPCommonSYFactory__factory } from "./factories/IPCommonSYFactory__factory";
|
|
390
|
+
export { IPCrossChainSwapHub__factory } from "./factories/IPCrossChainSwapHub__factory";
|
|
391
|
+
export { IPDepositBox__factory } from "./factories/IPDepositBox__factory";
|
|
392
|
+
export { IPDepositBoxFactory__factory } from "./factories/IPDepositBoxFactory__factory";
|
|
380
393
|
export { IPExchangeRateOracle__factory } from "./factories/IPExchangeRateOracle__factory";
|
|
381
394
|
export { IPExchangeRateOracleApp__factory } from "./factories/IPExchangeRateOracleApp__factory";
|
|
382
395
|
export { IPFeeDistributor__factory } from "./factories/IPFeeDistributor__factory";
|
|
@@ -515,4 +528,3 @@ export { IAugustusV6__factory } from "./factories/IAugustusV6__factory";
|
|
|
515
528
|
export { IKyberScalingHelper__factory } from "./factories/IKyberScalingHelper__factory";
|
|
516
529
|
export { IOdosRouterV2__factory } from "./factories/IOdosRouterV2__factory";
|
|
517
530
|
export { PendleSwap__factory } from "./factories/PendleSwap__factory";
|
|
518
|
-
export { StPendle__factory } from "./factories/StPendle__factory";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "RoundDataLib",
|
|
4
|
-
"sourceName": "contracts/StPendle.sol",
|
|
5
|
-
"abi": [],
|
|
6
|
-
"bytecode": "0x6101ab610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610610055575f3560e01c80631b102f241461005957806345ad4c0314610080578063573a2edd14610093578063b0589b9a146100a6575b5f5ffd5b61006e610067366004610120565b6003015490565b60405190815260200160405180910390f35b61006e61008e366004610120565b6100bb565b61006e6100a1366004610120565b6100d6565b61006e6100b4366004610120565b6004015490565b5f816004015482600201546100d0919061014b565b92915050565b5f81600301546100f78360020154846001015461010190919063ffffffff16565b6100d0919061014b565b5f8061010d838561015e565b670de0b6b3a76400009004949350505050565b5f60208284031215610130575f5ffd5b5035919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156100d0576100d0610137565b80820281158282048414176100d0576100d061013756fea26469706673582212207e1e080bf01068aa60ae8d61c81fd1f8f6866e6b5de7fcbce40d641f3a8daa2364736f6c634300081e0033",
|
|
7
|
-
"deployedBytecode": "0x7300000000000000000000000000000000000000003014608060405260043610610055575f3560e01c80631b102f241461005957806345ad4c0314610080578063573a2edd14610093578063b0589b9a146100a6575b5f5ffd5b61006e610067366004610120565b6003015490565b60405190815260200160405180910390f35b61006e61008e366004610120565b6100bb565b61006e6100a1366004610120565b6100d6565b61006e6100b4366004610120565b6004015490565b5f816004015482600201546100d0919061014b565b92915050565b5f81600301546100f78360020154846001015461010190919063ffffffff16565b6100d0919061014b565b5f8061010d838561015e565b670de0b6b3a76400009004949350505050565b5f60208284031215610130575f5ffd5b5035919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156100d0576100d0610137565b80820281158282048414176100d0576100d061013756fea26469706673582212207e1e080bf01068aa60ae8d61c81fd1f8f6866e6b5de7fcbce40d641f3a8daa2364736f6c634300081e0033",
|
|
8
|
-
"linkReferences": {},
|
|
9
|
-
"deployedLinkReferences": {}
|
|
10
|
-
}
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "StPendle",
|
|
4
|
-
"sourceName": "contracts/StPendle.sol",
|
|
5
|
-
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"inputs": [
|
|
8
|
-
{
|
|
9
|
-
"internalType": "address",
|
|
10
|
-
"name": "user",
|
|
11
|
-
"type": "address"
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
"name": "balanceOf",
|
|
15
|
-
"outputs": [
|
|
16
|
-
{
|
|
17
|
-
"internalType": "uint256",
|
|
18
|
-
"name": "",
|
|
19
|
-
"type": "uint256"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"stateMutability": "view",
|
|
23
|
-
"type": "function"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"inputs": [
|
|
27
|
-
{
|
|
28
|
-
"internalType": "uint256",
|
|
29
|
-
"name": "amount",
|
|
30
|
-
"type": "uint256"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"name": "distribute",
|
|
34
|
-
"outputs": [],
|
|
35
|
-
"stateMutability": "nonpayable",
|
|
36
|
-
"type": "function"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"inputs": [],
|
|
40
|
-
"name": "doVote",
|
|
41
|
-
"outputs": [],
|
|
42
|
-
"stateMutability": "nonpayable",
|
|
43
|
-
"type": "function"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"inputs": [
|
|
47
|
-
{
|
|
48
|
-
"internalType": "enum State",
|
|
49
|
-
"name": "state",
|
|
50
|
-
"type": "uint8"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"name": "getSideData",
|
|
54
|
-
"outputs": [
|
|
55
|
-
{
|
|
56
|
-
"internalType": "uint256",
|
|
57
|
-
"name": "sidedPooled",
|
|
58
|
-
"type": "uint256"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"internalType": "uint256",
|
|
62
|
-
"name": "sidedShares",
|
|
63
|
-
"type": "uint256"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"stateMutability": "view",
|
|
67
|
-
"type": "function"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"inputs": [
|
|
71
|
-
{
|
|
72
|
-
"internalType": "address",
|
|
73
|
-
"name": "user",
|
|
74
|
-
"type": "address"
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
"name": "getUserData",
|
|
78
|
-
"outputs": [
|
|
79
|
-
{
|
|
80
|
-
"components": [
|
|
81
|
-
{
|
|
82
|
-
"internalType": "enum State",
|
|
83
|
-
"name": "state",
|
|
84
|
-
"type": "uint8"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"internalType": "uint256",
|
|
88
|
-
"name": "metaShares",
|
|
89
|
-
"type": "uint256"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"internalType": "uint256",
|
|
93
|
-
"name": "lastVotedRound",
|
|
94
|
-
"type": "uint256"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"internalType": "uint256",
|
|
98
|
-
"name": "forfeitedUntilRound",
|
|
99
|
-
"type": "uint256"
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"internalType": "struct UserData",
|
|
103
|
-
"name": "",
|
|
104
|
-
"type": "tuple"
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"stateMutability": "view",
|
|
108
|
-
"type": "function"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"inputs": [
|
|
112
|
-
{
|
|
113
|
-
"internalType": "address",
|
|
114
|
-
"name": "user",
|
|
115
|
-
"type": "address"
|
|
116
|
-
}
|
|
117
|
-
],
|
|
118
|
-
"name": "hasInteractedBefore",
|
|
119
|
-
"outputs": [
|
|
120
|
-
{
|
|
121
|
-
"internalType": "bool",
|
|
122
|
-
"name": "",
|
|
123
|
-
"type": "bool"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"stateMutability": "view",
|
|
127
|
-
"type": "function"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"inputs": [
|
|
131
|
-
{
|
|
132
|
-
"internalType": "address",
|
|
133
|
-
"name": "user",
|
|
134
|
-
"type": "address"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
"name": "sharesOf",
|
|
138
|
-
"outputs": [
|
|
139
|
-
{
|
|
140
|
-
"internalType": "uint256",
|
|
141
|
-
"name": "",
|
|
142
|
-
"type": "uint256"
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
"stateMutability": "view",
|
|
146
|
-
"type": "function"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"inputs": [
|
|
150
|
-
{
|
|
151
|
-
"internalType": "uint256",
|
|
152
|
-
"name": "numShares",
|
|
153
|
-
"type": "uint256"
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"name": "sharesValue",
|
|
157
|
-
"outputs": [
|
|
158
|
-
{
|
|
159
|
-
"internalType": "uint256",
|
|
160
|
-
"name": "",
|
|
161
|
-
"type": "uint256"
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
"stateMutability": "view",
|
|
165
|
-
"type": "function"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"inputs": [],
|
|
169
|
-
"name": "votingBegin",
|
|
170
|
-
"outputs": [],
|
|
171
|
-
"stateMutability": "nonpayable",
|
|
172
|
-
"type": "function"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"inputs": [],
|
|
176
|
-
"name": "votingFinalize",
|
|
177
|
-
"outputs": [],
|
|
178
|
-
"stateMutability": "nonpayable",
|
|
179
|
-
"type": "function"
|
|
180
|
-
}
|
|
181
|
-
],
|
|
182
|
-
"bytecode": "0x6080604052348015600e575f5ffd5b5061071b8061001c5f395ff3fe608060405234801561000f575f5ffd5b506004361061008c575f3560e01c80631e936ff7146100905780633554fd8f1461009257806350e3b1571461009a57806370a08231146100c057806391c05b0b146100d3578063ab0519d6146100e6578063ab38ff2414610123578063dd5117b014610090578063f5eb42dc1461014b578063ffc9896b1461015e575b5f5ffd5b005b61009061017e565b6100ad6100a836600461059f565b610192565b6040519081526020015b60405180910390f35b6100ad6100ce3660046105b6565b6101d6565b6100906100e136600461059f565b6101e9565b6101136100f43660046105b6565b6001600160a01b03165f90815260208190526040902060010154151590565b60405190151581526020016100b7565b6101366101313660046105dc565b61023c565b604080519283526020830191909152016100b7565b6100ad6101593660046105b6565b610438565b61017161016c3660046105b6565b6104d2565b6040516100b7919061060e565b60025f815461018c9061066d565b90915550565b5f5f61019c61056d565b905080600201545f036101b157505f92915050565b600281015460018201546101c59085610685565b6101cf919061069c565b9392505050565b5f6101e36100a883610438565b92915050565b5f6101f261056d565b905081816001015f82825461020791906106bb565b909155505060018101546003820154610220919061069c565b6004820155600380545f906102349061066d565b909155505050565b5f5f5f61024761056d565b90505f84600181111561025c5761025c6105fa565b1461034a576040516306c40bc960e21b81526004810182905273__$d454e8b73aca09d7edc6b19c3e938f0f8b$__90631b102f2490602401602060405180830381865af41580156102af573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102d391906106ce565b60405163582c4dcd60e11b81526004810183905273__$d454e8b73aca09d7edc6b19c3e938f0f8b$__9063b0589b9a90602401602060405180830381865af4158015610321573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061034591906106ce565b61042e565b60405163573a2edd60e01b81526004810182905273__$d454e8b73aca09d7edc6b19c3e938f0f8b$__9063573a2edd90602401602060405180830381865af4158015610398573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103bc91906106ce565b6040516345ad4c0360e01b81526004810183905273__$d454e8b73aca09d7edc6b19c3e938f0f8b$__906345ad4c0390602401602060405180830381865af415801561040a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061042e91906106ce565b9250925050915091565b6001600160a01b0381165f90815260208190526040808220815160808101909252805483929190829060ff166001811115610475576104756105fa565b6001811115610486576104866105fa565b8152602001600182015481526020016002820154815260200160038201548152505090505f6104b7825f015161023c565b60208401519092506104ca915082610580565b949350505050565b6104fa6040805160808101909152805f81526020015f81526020015f81526020015f81525090565b6001600160a01b0382165f90815260208190526040908190208151608081019092528054829060ff166001811115610534576105346105fa565b6001811115610545576105456105fa565b8152600182015460208201526002820154604082015260039091015460609091015292915050565b6002545f90815260016020526040902090565b5f8061058c8385610685565b670de0b6b3a76400009004949350505050565b5f602082840312156105af575f5ffd5b5035919050565b5f602082840312156105c6575f5ffd5b81356001600160a01b03811681146101cf575f5ffd5b5f602082840312156105ec575f5ffd5b8135600281106101cf575f5ffd5b634e487b7160e01b5f52602160045260245ffd5b815160808201906002811061063157634e487b7160e01b5f52602160045260245ffd5b8083525060208301516020830152604083015160408301526060830151606083015292915050565b634e487b7160e01b5f52601160045260245ffd5b5f6001820161067e5761067e610659565b5060010190565b80820281158282048414176101e3576101e3610659565b5f826106b657634e487b7160e01b5f52601260045260245ffd5b500490565b808201808211156101e3576101e3610659565b5f602082840312156106de575f5ffd5b505191905056fea2646970667358221220502e12bbfd45875a3cbacd87192ecbb766c8817b8b036a8109b0008d696cc26164736f6c634300081e0033",
|
|
183
|
-
"deployedBytecode": "0x608060405234801561000f575f5ffd5b506004361061008c575f3560e01c80631e936ff7146100905780633554fd8f1461009257806350e3b1571461009a57806370a08231146100c057806391c05b0b146100d3578063ab0519d6146100e6578063ab38ff2414610123578063dd5117b014610090578063f5eb42dc1461014b578063ffc9896b1461015e575b5f5ffd5b005b61009061017e565b6100ad6100a836600461059f565b610192565b6040519081526020015b60405180910390f35b6100ad6100ce3660046105b6565b6101d6565b6100906100e136600461059f565b6101e9565b6101136100f43660046105b6565b6001600160a01b03165f90815260208190526040902060010154151590565b60405190151581526020016100b7565b6101366101313660046105dc565b61023c565b604080519283526020830191909152016100b7565b6100ad6101593660046105b6565b610438565b61017161016c3660046105b6565b6104d2565b6040516100b7919061060e565b60025f815461018c9061066d565b90915550565b5f5f61019c61056d565b905080600201545f036101b157505f92915050565b600281015460018201546101c59085610685565b6101cf919061069c565b9392505050565b5f6101e36100a883610438565b92915050565b5f6101f261056d565b905081816001015f82825461020791906106bb565b909155505060018101546003820154610220919061069c565b6004820155600380545f906102349061066d565b909155505050565b5f5f5f61024761056d565b90505f84600181111561025c5761025c6105fa565b1461034a576040516306c40bc960e21b81526004810182905273__$d454e8b73aca09d7edc6b19c3e938f0f8b$__90631b102f2490602401602060405180830381865af41580156102af573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102d391906106ce565b60405163582c4dcd60e11b81526004810183905273__$d454e8b73aca09d7edc6b19c3e938f0f8b$__9063b0589b9a90602401602060405180830381865af4158015610321573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061034591906106ce565b61042e565b60405163573a2edd60e01b81526004810182905273__$d454e8b73aca09d7edc6b19c3e938f0f8b$__9063573a2edd90602401602060405180830381865af4158015610398573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103bc91906106ce565b6040516345ad4c0360e01b81526004810183905273__$d454e8b73aca09d7edc6b19c3e938f0f8b$__906345ad4c0390602401602060405180830381865af415801561040a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061042e91906106ce565b9250925050915091565b6001600160a01b0381165f90815260208190526040808220815160808101909252805483929190829060ff166001811115610475576104756105fa565b6001811115610486576104866105fa565b8152602001600182015481526020016002820154815260200160038201548152505090505f6104b7825f015161023c565b60208401519092506104ca915082610580565b949350505050565b6104fa6040805160808101909152805f81526020015f81526020015f81526020015f81525090565b6001600160a01b0382165f90815260208190526040908190208151608081019092528054829060ff166001811115610534576105346105fa565b6001811115610545576105456105fa565b8152600182015460208201526002820154604082015260039091015460609091015292915050565b6002545f90815260016020526040902090565b5f8061058c8385610685565b670de0b6b3a76400009004949350505050565b5f602082840312156105af575f5ffd5b5035919050565b5f602082840312156105c6575f5ffd5b81356001600160a01b03811681146101cf575f5ffd5b5f602082840312156105ec575f5ffd5b8135600281106101cf575f5ffd5b634e487b7160e01b5f52602160045260245ffd5b815160808201906002811061063157634e487b7160e01b5f52602160045260245ffd5b8083525060208301516020830152604083015160408301526060830151606083015292915050565b634e487b7160e01b5f52601160045260245ffd5b5f6001820161067e5761067e610659565b5060010190565b80820281158282048414176101e3576101e3610659565b5f826106b657634e487b7160e01b5f52601260045260245ffd5b500490565b808201808211156101e3576101e3610659565b5f602082840312156106de575f5ffd5b505191905056fea2646970667358221220502e12bbfd45875a3cbacd87192ecbb766c8817b8b036a8109b0008d696cc26164736f6c634300081e0033",
|
|
184
|
-
"linkReferences": {
|
|
185
|
-
"contracts/StPendle.sol": {
|
|
186
|
-
"RoundDataLib": [
|
|
187
|
-
{
|
|
188
|
-
"length": 20,
|
|
189
|
-
"start": 659
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"length": 20,
|
|
193
|
-
"start": 773
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"length": 20,
|
|
197
|
-
"start": 892
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"length": 20,
|
|
201
|
-
"start": 1006
|
|
202
|
-
}
|
|
203
|
-
]
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
"deployedLinkReferences": {
|
|
207
|
-
"contracts/StPendle.sol": {
|
|
208
|
-
"RoundDataLib": [
|
|
209
|
-
{
|
|
210
|
-
"length": 20,
|
|
211
|
-
"start": 631
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"length": 20,
|
|
215
|
-
"start": 745
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"length": 20,
|
|
219
|
-
"start": 864
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"length": 20,
|
|
223
|
-
"start": 978
|
|
224
|
-
}
|
|
225
|
-
]
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
package/contracts/StPendle.sol
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
|
|
3
|
-
pragma solidity ^0.8.28;
|
|
4
|
-
|
|
5
|
-
import {PMath} from "./core/libraries/math/PMath.sol";
|
|
6
|
-
|
|
7
|
-
enum State {
|
|
8
|
-
B, // Benefitting
|
|
9
|
-
F // Forfeited
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
struct RoundData {
|
|
13
|
-
uint256 roundId;
|
|
14
|
-
uint256 totalPooled;
|
|
15
|
-
uint256 totalShares;
|
|
16
|
-
|
|
17
|
-
uint256 _pooledForfeited;
|
|
18
|
-
uint256 _sharesForfeited;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
library RoundDataLib {
|
|
22
|
-
using PMath for uint256;
|
|
23
|
-
|
|
24
|
-
function sharesForfeited(RoundData storage self) public view returns (uint256) {
|
|
25
|
-
return self._sharesForfeited;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function sharesBenefitting(RoundData storage self) public view returns (uint256) {
|
|
29
|
-
return self.totalShares - self._sharesForfeited;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function pooledForfeited(RoundData storage self) public view returns (uint256) {
|
|
33
|
-
return self._pooledForfeited;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function pooledBenefitting(RoundData storage self) public view returns (uint256) {
|
|
37
|
-
return self.totalPooled.mulDown(self.totalShares) - self._pooledForfeited;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
using RoundDataLib for RoundData;
|
|
42
|
-
|
|
43
|
-
struct UserData {
|
|
44
|
-
State state;
|
|
45
|
-
uint256 metaShares;
|
|
46
|
-
uint256 lastVotedRound;
|
|
47
|
-
uint256 forfeitedUntilRound;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
contract StPendle {
|
|
51
|
-
using PMath for uint256;
|
|
52
|
-
|
|
53
|
-
mapping(address user => UserData) users;
|
|
54
|
-
mapping(uint256 roundId => RoundData) rounds;
|
|
55
|
-
|
|
56
|
-
uint256 curRound;
|
|
57
|
-
uint256 processedRound;
|
|
58
|
-
|
|
59
|
-
modifier onlyAdmin() {
|
|
60
|
-
// placeholder
|
|
61
|
-
_;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function hasInteractedBefore(address user) public view returns (bool) {
|
|
65
|
-
return users[user].metaShares > 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function curRoundData() internal view returns (RoundData storage stf) {
|
|
69
|
-
return rounds[curRound];
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function getSideData(State state) public view returns (uint256 sidedPooled, uint256 sidedShares) {
|
|
73
|
-
RoundData storage rd = curRoundData();
|
|
74
|
-
return state == State.B //
|
|
75
|
-
? (rd.pooledBenefitting(), rd.sharesBenefitting())
|
|
76
|
-
: (rd.pooledForfeited(), rd.sharesForfeited());
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// helper to get user data with adjusted state and meta shares
|
|
80
|
-
function getUserData(address user) external view returns (UserData memory) {
|
|
81
|
-
// need to adjust user data based on curRound and processedRound
|
|
82
|
-
return users[user];
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function sharesValue(uint256 numShares) public view returns (uint256) {
|
|
86
|
-
RoundData storage rd = curRoundData();
|
|
87
|
-
if (rd.totalShares == 0) {
|
|
88
|
-
return 0;
|
|
89
|
-
}
|
|
90
|
-
return (numShares * rd.totalPooled) / rd.totalShares;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function sharesOf(address user) public view returns (uint256) {
|
|
94
|
-
UserData memory data = users[user];
|
|
95
|
-
(, uint256 sidedShares) = getSideData(data.state);
|
|
96
|
-
return data.metaShares.mulDown(sidedShares);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function balanceOf(address user) external view returns (uint256) {
|
|
100
|
-
return sharesValue(sharesOf(user)); // demonstration only, need to be more precise
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function distribute(uint256 amount) external onlyAdmin {
|
|
104
|
-
RoundData storage rd = curRoundData();
|
|
105
|
-
rd.totalPooled += amount;
|
|
106
|
-
rd._sharesForfeited = rd._pooledForfeited / rd.totalPooled;
|
|
107
|
-
|
|
108
|
-
++processedRound;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function votingBegin() public onlyAdmin {
|
|
112
|
-
++curRound;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function votingFinalize() public onlyAdmin {
|
|
116
|
-
// todo moving group logic
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// just record a vote, no actual voting logic
|
|
120
|
-
function doVote() external {}
|
|
121
|
-
}
|