@pendle/core-v2 6.11.0 → 6.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.dbg.json +1 -1
- package/build/artifacts/contracts/core/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/ArrayLib.sol/ArrayLib.json +2 -2
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/OFTPTSwapper.sol/OFTPTSwapper.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/OFTPTSwapper.sol/OFTPTSwapper.json +2 -2
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.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/pendleOft/PendleOFT.sol/PendleOFT.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.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/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +1 -1
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarketEvents.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IMoneyMarketView.sol/IMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.json +13 -0
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBridgeDataVerifier.sol/IPBridgeDataVerifier.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.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/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.json +6 -172
- package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.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/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/IPLoopPositionBox.sol/IPLoopPositionBox.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLoopPositionBox.sol/IPLoopPositionBox.json +13 -8
- package/build/artifacts/contracts/interfaces/IPLoopPositionBoxFactory.sol/IPLoopPositionBoxFactory.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/IPOFTPTSwapper.sol/IPOFTPTSwapper.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/IPPTLooper.sol/IPPTLooper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.json +215 -102
- package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooperEIP712Types.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPTLooperView.sol/IPPTLooperView.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/IPPostPtLoopStateChecker.sol/IPPostPtLoopStateChecker.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/IPStaticQuoter.sol/IPStaticQuoter.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/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
- package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +1 -1
- package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +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/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.dbg.json +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 +6 -547
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/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/pt-looping/BridgeDataVerifier.sol/BridgeDataVerifier.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.json +213 -100
- package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.json +2 -2
- package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.json +215 -102
- package/build/artifacts/contracts/pt-looping/PendlePTLooperView.sol/PendlePTLooperView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PendlePTLooperView.sol/PendlePTLooperView.json +2 -2
- package/build/artifacts/contracts/pt-looping/PostPtLoopStateChecker.sol/PostPtLoopStateChecker.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/PostPtLoopStateChecker.sol/PostPtLoopStateChecker.json +2 -2
- package/build/artifacts/contracts/pt-looping/StaticStableQuoter.sol/StaticStableQuoter.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBox.sol/LoopPositionBox.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBox.sol/LoopPositionBox.json +15 -10
- package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBoxFactory.sol/LoopPositionBoxFactory.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBoxFactory.sol/LoopPositionBoxFactory.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarket.sol/BaseMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarketView.sol/BaseMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMMPayloadLib.sol/AaveMMPayloadLib.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMMPayloadLib.sol/AaveMMPayloadLib.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/AaveDataTypes.sol/AaveDataTypes.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAToken.sol/IAToken.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveOracle.sol/IAaveOracle.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPool.sol/IPool.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPool.sol/IPool.json +38 -0
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolAddressesProvider.sol/IPoolAddressesProvider.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolDataProviderV3.sol/IPoolDataProviderV3.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPriceOracleGetter.sol/IPriceOracleGetter.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MMPayloadLib.sol/AaveV4MMPayloadLib.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol/AaveV4MoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarket.sol/AaveV4MoneyMarket.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol/AaveV4MoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/AaveV4MoneyMarketView.sol/AaveV4MoneyMarketView.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IAaveOracle.sol/IAaveOracle.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/IHubBase.sol/IHubBase.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/aave-v4/dependencies/ISpoke.sol/ISpoke.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMMPayloadLib.sol/EulerMMPayloadLib.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol/EulerMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarket.sol/EulerMoneyMarket.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol/EulerMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/EulerMoneyMarketView.sol/EulerMoneyMarketView.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEthereumVaultConnector.sol/IEVC.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerFactory.sol/IEulerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerPriceOracle.sol/IEulerPriceOracle.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/AmountCapLib.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/euler/dependencies/IEulerVault.sol/IEulerVault.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.json +2 -2
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IIrm.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IMorpho.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorphoOracle.sol/IMorphoOracle.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/MathLib.sol/MathLib.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/SharesMathLib.sol/SharesMathLib.dbg.json +1 -1
- package/build/artifacts/contracts/pt-looping/vendor/bungee/IBungeeInbox.sol/IBungeeSORInbox.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
- package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
- package/contracts/core/libraries/ArrayLib.sol +6 -0
- package/contracts/interfaces/IOwnable.sol +1 -0
- package/contracts/interfaces/IPCommonPoolDeployHelperV2.sol +3 -17
- package/contracts/interfaces/IPLoopPositionBox.sol +12 -2
- package/contracts/interfaces/IPPTLooper.sol +37 -6
- package/contracts/limit/LimitRouterBase.sol +0 -2
- package/contracts/offchain-helpers/PendleFeeSetter.sol +5 -6
- package/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol +4 -75
- package/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol +8 -2
- package/contracts/pt-looping/PTLooperBase.sol +13 -1
- package/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol +4 -3
- package/contracts/pt-looping/PendlePTLooper.sol +77 -29
- package/contracts/pt-looping/loop-position-box/LoopPositionBox.sol +20 -14
- package/contracts/pt-looping/money-market/implementations/aave/AaveMMPayloadLib.sol +1 -5
- package/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol +24 -8
- package/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol +1 -1
- package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPool.sol +16 -7
- package/contracts/router/swap-aggregator/IPSwapAggregator.sol +2 -2
- package/contracts/router/swap-aggregator/PendleSwap.sol +27 -47
- package/package.json +1 -1
- package/typechain-types/IOwnable.ts +21 -0
- package/typechain-types/IPCommonPoolDeployHelperV2.ts +21 -145
- package/typechain-types/IPLoopPositionBox.ts +23 -20
- package/typechain-types/IPPTLooper.ts +196 -67
- package/typechain-types/IPool.ts +62 -0
- package/typechain-types/LoopPositionBox.ts +23 -20
- package/typechain-types/PTLooperBase.ts +196 -67
- package/typechain-types/PendleCommonPoolDeployHelperV2.ts +15 -498
- package/typechain-types/PendlePTLooper.ts +196 -67
- package/typechain-types/factories/AaveMoneyMarketView__factory.ts +1 -1
- package/typechain-types/factories/AaveMoneyMarket__factory.ts +1 -1
- package/typechain-types/factories/AaveV4MoneyMarketView__factory.ts +1 -1
- package/typechain-types/factories/AaveV4MoneyMarket__factory.ts +1 -1
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSimple__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/EulerMoneyMarketView__factory.ts +1 -1
- package/typechain-types/factories/EulerMoneyMarket__factory.ts +1 -1
- package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
- package/typechain-types/factories/IOwnable__factory.ts +13 -0
- package/typechain-types/factories/IPCommonPoolDeployHelperV2__factory.ts +6 -172
- package/typechain-types/factories/IPLoopPositionBox__factory.ts +13 -8
- package/typechain-types/factories/IPPTLooper__factory.ts +215 -102
- package/typechain-types/factories/IPool__factory.ts +38 -0
- package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
- package/typechain-types/factories/LoopPositionBoxFactory__factory.ts +1 -1
- package/typechain-types/factories/LoopPositionBox__factory.ts +14 -9
- package/typechain-types/factories/MarketSweed__factory.ts +1 -1
- package/typechain-types/factories/MorphoBlueMoneyMarketView__factory.ts +1 -1
- package/typechain-types/factories/MorphoBlueMoneyMarket__factory.ts +1 -1
- package/typechain-types/factories/OFTPTSwapper__factory.ts +1 -1
- package/typechain-types/factories/PTLooperBase__factory.ts +213 -100
- package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +5 -546
- package/typechain-types/factories/PendleCommonSYFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeSetter__factory.ts +1 -1
- package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketV7__factory.ts +1 -1
- package/typechain-types/factories/PendlePTLooperView__factory.ts +1 -1
- package/typechain-types/factories/PendlePTLooper__factory.ts +214 -101
- 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/PostPtLoopStateChecker__factory.ts +1 -1
- package/typechain-types/factories/Reflector__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +0 -9
- package/typechain-types/index.ts +0 -2
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.json +0 -82
- package/typechain-types/IOdosRouterV2.ts +0 -147
- package/typechain-types/factories/IOdosRouterV2__factory.ts +0 -94
|
@@ -33,13 +33,32 @@ contract AaveMoneyMarket is BaseMoneyMarket {
|
|
|
33
33
|
function _initialize(MarketCtx memory ctx) internal virtual override {
|
|
34
34
|
IPool _pool = pool();
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
_pool
|
|
36
|
+
uint8 eModeCategoryId = AaveMMPayloadLib.unwrap(ctx.mmPayload);
|
|
37
|
+
_forceSetEModeAtInit(_pool, eModeCategoryId);
|
|
38
38
|
|
|
39
39
|
_safeApproveInf(ctx.collateral, address(_pool));
|
|
40
40
|
_safeApproveInf(ctx.debtAsset, address(_pool));
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
/// @notice Enters eMode, unset any pre-existing asset that is used as
|
|
44
|
+
/// collateral if needed.
|
|
45
|
+
/// @dev A counterfactual mm address can be funded by anyone before
|
|
46
|
+
/// deployment, which can make the asset as collateral for the mm address.
|
|
47
|
+
/// Such collateral that Aave flagged (LTV != 0 outside eMode, e.g. WETH)
|
|
48
|
+
/// makes `setUserEMode` revert with InvalidCollateralInEmode.
|
|
49
|
+
/// Therefore, we unset all collateral assets before setting EMode.
|
|
50
|
+
function _forceSetEModeAtInit(IPool _pool, uint8 eModeCategoryId) internal {
|
|
51
|
+
// https://github.com/aave-dao/aave-v3-origin/blob/cff15de6d1271b0c800fc001f4aea4c263e8a597/src/contracts/protocol/libraries/logic/ValidationLogic.sol#L448
|
|
52
|
+
// We use the similar shortcut as Aave for happy case (do nothing if no bit is set in userConfBitmap)
|
|
53
|
+
uint256 userConfBitmap = _pool.getUserConfiguration(address(this)).data;
|
|
54
|
+
for (uint16 id = 0; userConfBitmap != 0; (id, userConfBitmap) = (id + 1, userConfBitmap >> 2)) {
|
|
55
|
+
bool isUsingAsCollat = (userConfBitmap & 2) != 0;
|
|
56
|
+
if (isUsingAsCollat) _pool.setUserUseReserveAsCollateral(_pool.getReserveAddressById(id), false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
_pool.setUserEMode(eModeCategoryId);
|
|
60
|
+
}
|
|
61
|
+
|
|
43
62
|
function collateralBalance(MarketCtx memory ctx) public view override returns (uint256 balance) {
|
|
44
63
|
return _aToken(pool(), ctx.collateral).balanceOf(address(this));
|
|
45
64
|
}
|
|
@@ -56,10 +75,7 @@ contract AaveMoneyMarket is BaseMoneyMarket {
|
|
|
56
75
|
|
|
57
76
|
actualAmount = amount;
|
|
58
77
|
|
|
59
|
-
(,
|
|
60
|
-
if (isolationMode) {
|
|
61
|
-
_pool.setUserUseReserveAsCollateral(asset, true);
|
|
62
|
-
}
|
|
78
|
+
_pool.setUserUseReserveAsCollateral(asset, true);
|
|
63
79
|
}
|
|
64
80
|
|
|
65
81
|
function _borrow(MarketCtx memory ctx, uint256 amount) internal virtual override returns (uint256 actualAmount) {
|
|
@@ -97,11 +113,11 @@ contract AaveMoneyMarket is BaseMoneyMarket {
|
|
|
97
113
|
}
|
|
98
114
|
|
|
99
115
|
function _aToken(IPool _pool, address asset) internal view virtual returns (IERC20) {
|
|
100
|
-
return IERC20(_pool.
|
|
116
|
+
return IERC20(_pool.getReserveAToken(asset));
|
|
101
117
|
}
|
|
102
118
|
|
|
103
119
|
function _vToken(IPool _pool, address asset) internal view virtual returns (IERC20) {
|
|
104
|
-
return IERC20(_pool.
|
|
120
|
+
return IERC20(_pool.getReserveVariableDebtToken(asset));
|
|
105
121
|
}
|
|
106
122
|
|
|
107
123
|
/// @dev `mmPayload` unused: Aave's price oracle is queried directly by asset address.
|
|
@@ -72,7 +72,7 @@ contract AaveMoneyMarketView is BaseMoneyMarketView, TokenHelper {
|
|
|
72
72
|
override
|
|
73
73
|
returns (uint256 ltv, uint256 liquidationThreshold)
|
|
74
74
|
{
|
|
75
|
-
|
|
75
|
+
uint8 eModeCategoryId = AaveMMPayloadLib.unwrap(bd.mmPayload);
|
|
76
76
|
|
|
77
77
|
if (eModeCategoryId == 0) {
|
|
78
78
|
(, ltv, liquidationThreshold,,,,,,,) = dataProvider().getReserveConfigurationData(bd.spokePt);
|
|
@@ -379,13 +379,8 @@ interface IPool {
|
|
|
379
379
|
* @param receiveAToken True if the liquidators wants to receive the collateral aTokens, `false` if he wants
|
|
380
380
|
* to receive the underlying collateral asset directly
|
|
381
381
|
*/
|
|
382
|
-
function liquidationCall(
|
|
383
|
-
|
|
384
|
-
IERC20 debtAsset,
|
|
385
|
-
address user,
|
|
386
|
-
uint256 debtToCover,
|
|
387
|
-
bool receiveAToken
|
|
388
|
-
) external;
|
|
382
|
+
function liquidationCall(IERC20 collateral, IERC20 debtAsset, address user, uint256 debtToCover, bool receiveAToken)
|
|
383
|
+
external;
|
|
389
384
|
|
|
390
385
|
/**
|
|
391
386
|
* @notice Allows smartcontracts to access the liquidity of the pool within one transaction,
|
|
@@ -661,4 +656,18 @@ interface IPool {
|
|
|
661
656
|
* 0 if the action is executed directly by the user, without any middle-man
|
|
662
657
|
*/
|
|
663
658
|
function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* @notice Returns the aToken address of a reserve.
|
|
662
|
+
* @param asset The address of the underlying asset of the reserve
|
|
663
|
+
* @return The address of the aToken
|
|
664
|
+
*/
|
|
665
|
+
function getReserveAToken(address asset) external view returns (address);
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* @notice Returns the variableDebtToken address of a reserve.
|
|
669
|
+
* @param asset The address of the underlying asset of the reserve
|
|
670
|
+
* @return The address of the variableDebtToken
|
|
671
|
+
*/
|
|
672
|
+
function getReserveVariableDebtToken(address asset) external view returns (address);
|
|
664
673
|
}
|
|
@@ -33,15 +33,37 @@ contract PendleSwap is
|
|
|
33
33
|
|
|
34
34
|
function swap(address tokenIn, uint256 amountIn, SwapData calldata data) external payable {
|
|
35
35
|
_approveForExtRouter(tokenIn, data);
|
|
36
|
-
data.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
if (data.swapType == SwapType.ZEROX) {
|
|
37
|
+
_zeroExSwap(tokenIn, amountIn, data);
|
|
38
|
+
} else {
|
|
39
|
+
data.extRouter
|
|
40
|
+
.functionCallWithValue(
|
|
41
|
+
data.needScale ? _getScaledInputData(data.swapType, data.extCalldata, amountIn) : data.extCalldata,
|
|
42
|
+
tokenIn == NATIVE ? amountIn : 0
|
|
43
|
+
);
|
|
44
|
+
}
|
|
41
45
|
|
|
42
46
|
emit SwapSingle(data.swapType, tokenIn, amountIn);
|
|
43
47
|
}
|
|
44
48
|
|
|
49
|
+
/// @dev extCalldata = abi.encode(tokenOut, quotedAmountIn, quotedMinOut, execCalldata), where execCalldata is the
|
|
50
|
+
/// 0x AllowanceHolder.exec calldata, quoted with sellEntireBalance and the taker as recipient. 0x's own minBuyAmount
|
|
51
|
+
/// is a fixed number, so it is only a backstop. The binding minimum is enforced here, scaled to the actual amountIn
|
|
52
|
+
/// if needScale. The output is forwarded to msg.sender.
|
|
53
|
+
function _zeroExSwap(address tokenIn, uint256 amountIn, SwapData calldata data) internal {
|
|
54
|
+
(address tokenOut, uint256 quotedAmountIn, uint256 quotedMinOut, bytes memory execCalldata) =
|
|
55
|
+
abi.decode(data.extCalldata, (address, uint256, uint256, bytes));
|
|
56
|
+
|
|
57
|
+
uint256 balBefore = _selfBalance(tokenOut);
|
|
58
|
+
data.extRouter.functionCallWithValue(execCalldata, tokenIn == NATIVE ? amountIn : 0);
|
|
59
|
+
uint256 netOut = _selfBalance(tokenOut) - balBefore;
|
|
60
|
+
|
|
61
|
+
uint256 minOut = data.needScale ? (quotedMinOut * amountIn) / quotedAmountIn : quotedMinOut;
|
|
62
|
+
require(netOut >= minOut, "PendleSwap: 0x insufficient out");
|
|
63
|
+
|
|
64
|
+
_transferOut(tokenOut, msg.sender, netOut);
|
|
65
|
+
}
|
|
66
|
+
|
|
45
67
|
function _approveForExtRouter(address token, SwapData calldata data) internal {
|
|
46
68
|
if (token == NATIVE) return;
|
|
47
69
|
|
|
@@ -69,8 +91,6 @@ contract PendleSwap is
|
|
|
69
91
|
IKyberScalingHelper(KYBER_SCALING_HELPER).getScaledInputData(rawCallData, amountIn);
|
|
70
92
|
|
|
71
93
|
require(isSuccess, "PendleSwap: Kyber scaling failed");
|
|
72
|
-
} else if (swapType == SwapType.ODOS) {
|
|
73
|
-
scaledCallData = _odosScaling(rawCallData, amountIn);
|
|
74
94
|
} else if (swapType == SwapType.PARASWAP) {
|
|
75
95
|
scaledCallData = _paraswapScaling(rawCallData, amountIn);
|
|
76
96
|
} else if (swapType == SwapType.OKX) {
|
|
@@ -80,29 +100,6 @@ contract PendleSwap is
|
|
|
80
100
|
}
|
|
81
101
|
}
|
|
82
102
|
|
|
83
|
-
function _odosScaling(bytes calldata rawCallData, uint256 amountIn)
|
|
84
|
-
internal
|
|
85
|
-
pure
|
|
86
|
-
returns (bytes memory scaledCallData)
|
|
87
|
-
{
|
|
88
|
-
bytes4 selector = bytes4(rawCallData[:4]);
|
|
89
|
-
bytes calldata dataToDecode = rawCallData[4:];
|
|
90
|
-
|
|
91
|
-
assert(selector == IOdosRouterV2.swap.selector);
|
|
92
|
-
(
|
|
93
|
-
IOdosRouterV2.swapTokenInfo memory tokenInfo,
|
|
94
|
-
bytes memory pathDefinition,
|
|
95
|
-
address executor,
|
|
96
|
-
uint32 referralCode
|
|
97
|
-
) = abi.decode(dataToDecode, (IOdosRouterV2.swapTokenInfo, bytes, address, uint32));
|
|
98
|
-
|
|
99
|
-
tokenInfo.outputQuote = (tokenInfo.outputQuote * amountIn) / tokenInfo.inputAmount;
|
|
100
|
-
tokenInfo.outputMin = (tokenInfo.outputMin * amountIn) / tokenInfo.inputAmount;
|
|
101
|
-
tokenInfo.inputAmount = amountIn;
|
|
102
|
-
|
|
103
|
-
return abi.encodeWithSelector(selector, tokenInfo, pathDefinition, executor, referralCode);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
103
|
receive() external payable {}
|
|
107
104
|
|
|
108
105
|
function _authorizeUpgrade(address) internal virtual override onlyOwner {}
|
|
@@ -114,20 +111,3 @@ interface IKyberScalingHelper {
|
|
|
114
111
|
view
|
|
115
112
|
returns (bool isSuccess, bytes memory data);
|
|
116
113
|
}
|
|
117
|
-
|
|
118
|
-
interface IOdosRouterV2 {
|
|
119
|
-
struct swapTokenInfo {
|
|
120
|
-
address inputToken;
|
|
121
|
-
uint256 inputAmount;
|
|
122
|
-
address inputReceiver;
|
|
123
|
-
address outputToken;
|
|
124
|
-
uint256 outputQuote;
|
|
125
|
-
uint256 outputMin;
|
|
126
|
-
address outputReceiver;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
function swap(swapTokenInfo memory tokenInfo, bytes calldata pathDefinition, address executor, uint32 referralCode)
|
|
130
|
-
external
|
|
131
|
-
payable
|
|
132
|
-
returns (uint256 amountOut);
|
|
133
|
-
}
|
package/package.json
CHANGED
|
@@ -24,14 +24,17 @@ import type {
|
|
|
24
24
|
export interface IOwnableInterface extends utils.Interface {
|
|
25
25
|
contractName: "IOwnable";
|
|
26
26
|
functions: {
|
|
27
|
+
"owner()": FunctionFragment;
|
|
27
28
|
"transferOwnership(address,bool,bool)": FunctionFragment;
|
|
28
29
|
};
|
|
29
30
|
|
|
31
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
30
32
|
encodeFunctionData(
|
|
31
33
|
functionFragment: "transferOwnership",
|
|
32
34
|
values: [string, boolean, boolean]
|
|
33
35
|
): string;
|
|
34
36
|
|
|
37
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
35
38
|
decodeFunctionResult(
|
|
36
39
|
functionFragment: "transferOwnership",
|
|
37
40
|
data: BytesLike
|
|
@@ -68,6 +71,10 @@ export interface IOwnable extends BaseContract {
|
|
|
68
71
|
removeListener: OnEvent<this>;
|
|
69
72
|
|
|
70
73
|
functions: {
|
|
74
|
+
owner(
|
|
75
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
76
|
+
): Promise<ContractTransaction>;
|
|
77
|
+
|
|
71
78
|
transferOwnership(
|
|
72
79
|
newOwner: string,
|
|
73
80
|
direct: boolean,
|
|
@@ -76,6 +83,10 @@ export interface IOwnable extends BaseContract {
|
|
|
76
83
|
): Promise<ContractTransaction>;
|
|
77
84
|
};
|
|
78
85
|
|
|
86
|
+
owner(
|
|
87
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
88
|
+
): Promise<ContractTransaction>;
|
|
89
|
+
|
|
79
90
|
transferOwnership(
|
|
80
91
|
newOwner: string,
|
|
81
92
|
direct: boolean,
|
|
@@ -84,6 +95,8 @@ export interface IOwnable extends BaseContract {
|
|
|
84
95
|
): Promise<ContractTransaction>;
|
|
85
96
|
|
|
86
97
|
callStatic: {
|
|
98
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
99
|
+
|
|
87
100
|
transferOwnership(
|
|
88
101
|
newOwner: string,
|
|
89
102
|
direct: boolean,
|
|
@@ -95,6 +108,10 @@ export interface IOwnable extends BaseContract {
|
|
|
95
108
|
filters: {};
|
|
96
109
|
|
|
97
110
|
estimateGas: {
|
|
111
|
+
owner(
|
|
112
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
113
|
+
): Promise<BigNumber>;
|
|
114
|
+
|
|
98
115
|
transferOwnership(
|
|
99
116
|
newOwner: string,
|
|
100
117
|
direct: boolean,
|
|
@@ -104,6 +121,10 @@ export interface IOwnable extends BaseContract {
|
|
|
104
121
|
};
|
|
105
122
|
|
|
106
123
|
populateTransaction: {
|
|
124
|
+
owner(
|
|
125
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
126
|
+
): Promise<PopulatedTransaction>;
|
|
127
|
+
|
|
107
128
|
transferOwnership(
|
|
108
129
|
newOwner: string,
|
|
109
130
|
direct: boolean,
|
|
@@ -87,10 +87,7 @@ export interface IPCommonPoolDeployHelperV2Interface extends utils.Interface {
|
|
|
87
87
|
contractName: "IPCommonPoolDeployHelperV2";
|
|
88
88
|
functions: {
|
|
89
89
|
"deploy5115MarketAndSeedLiquidity(address,(uint32,uint256,uint256,uint256,uint256),address,uint256)": FunctionFragment;
|
|
90
|
-
"deployCommonMarketById(bytes32,bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)": FunctionFragment;
|
|
91
|
-
"deployERC20Market(bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)": FunctionFragment;
|
|
92
|
-
"deployERC4626Market(bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)": FunctionFragment;
|
|
93
|
-
"deployERC4626NotRedeemableMarket(bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)": FunctionFragment;
|
|
90
|
+
"deployCommonMarketById(bytes32,bytes,bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)": FunctionFragment;
|
|
94
91
|
};
|
|
95
92
|
|
|
96
93
|
encodeFunctionData(
|
|
@@ -107,35 +104,6 @@ export interface IPCommonPoolDeployHelperV2Interface extends utils.Interface {
|
|
|
107
104
|
values: [
|
|
108
105
|
BytesLike,
|
|
109
106
|
BytesLike,
|
|
110
|
-
IPPoolDeployHelperV2.PoolConfigStruct,
|
|
111
|
-
string,
|
|
112
|
-
BigNumberish,
|
|
113
|
-
string
|
|
114
|
-
]
|
|
115
|
-
): string;
|
|
116
|
-
encodeFunctionData(
|
|
117
|
-
functionFragment: "deployERC20Market",
|
|
118
|
-
values: [
|
|
119
|
-
BytesLike,
|
|
120
|
-
IPPoolDeployHelperV2.PoolConfigStruct,
|
|
121
|
-
string,
|
|
122
|
-
BigNumberish,
|
|
123
|
-
string
|
|
124
|
-
]
|
|
125
|
-
): string;
|
|
126
|
-
encodeFunctionData(
|
|
127
|
-
functionFragment: "deployERC4626Market",
|
|
128
|
-
values: [
|
|
129
|
-
BytesLike,
|
|
130
|
-
IPPoolDeployHelperV2.PoolConfigStruct,
|
|
131
|
-
string,
|
|
132
|
-
BigNumberish,
|
|
133
|
-
string
|
|
134
|
-
]
|
|
135
|
-
): string;
|
|
136
|
-
encodeFunctionData(
|
|
137
|
-
functionFragment: "deployERC4626NotRedeemableMarket",
|
|
138
|
-
values: [
|
|
139
107
|
BytesLike,
|
|
140
108
|
IPPoolDeployHelperV2.PoolConfigStruct,
|
|
141
109
|
string,
|
|
@@ -152,18 +120,6 @@ export interface IPCommonPoolDeployHelperV2Interface extends utils.Interface {
|
|
|
152
120
|
functionFragment: "deployCommonMarketById",
|
|
153
121
|
data: BytesLike
|
|
154
122
|
): Result;
|
|
155
|
-
decodeFunctionResult(
|
|
156
|
-
functionFragment: "deployERC20Market",
|
|
157
|
-
data: BytesLike
|
|
158
|
-
): Result;
|
|
159
|
-
decodeFunctionResult(
|
|
160
|
-
functionFragment: "deployERC4626Market",
|
|
161
|
-
data: BytesLike
|
|
162
|
-
): Result;
|
|
163
|
-
decodeFunctionResult(
|
|
164
|
-
functionFragment: "deployERC4626NotRedeemableMarket",
|
|
165
|
-
data: BytesLike
|
|
166
|
-
): Result;
|
|
167
123
|
|
|
168
124
|
events: {
|
|
169
125
|
"MarketDeployment(tuple,tuple)": EventFragment;
|
|
@@ -222,9 +178,10 @@ export interface IPCommonPoolDeployHelperV2 extends BaseContract {
|
|
|
222
178
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
223
179
|
): Promise<ContractTransaction>;
|
|
224
180
|
|
|
225
|
-
deployCommonMarketById(
|
|
181
|
+
"deployCommonMarketById(bytes32,bytes,bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)"(
|
|
226
182
|
id: BytesLike,
|
|
227
183
|
constructorParams: BytesLike,
|
|
184
|
+
initData: BytesLike,
|
|
228
185
|
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
229
186
|
tokenToSeedLiqudity: string,
|
|
230
187
|
amountToSeed: BigNumberish,
|
|
@@ -232,25 +189,8 @@ export interface IPCommonPoolDeployHelperV2 extends BaseContract {
|
|
|
232
189
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
233
190
|
): Promise<ContractTransaction>;
|
|
234
191
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
238
|
-
tokenToSeedLiqudity: string,
|
|
239
|
-
amountToSeed: BigNumberish,
|
|
240
|
-
syOwner: string,
|
|
241
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
242
|
-
): Promise<ContractTransaction>;
|
|
243
|
-
|
|
244
|
-
deployERC4626Market(
|
|
245
|
-
constructorParams: BytesLike,
|
|
246
|
-
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
247
|
-
tokenToSeedLiqudity: string,
|
|
248
|
-
amountToSeed: BigNumberish,
|
|
249
|
-
syOwner: string,
|
|
250
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
251
|
-
): Promise<ContractTransaction>;
|
|
252
|
-
|
|
253
|
-
deployERC4626NotRedeemableMarket(
|
|
192
|
+
"deployCommonMarketById(bytes32,bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)"(
|
|
193
|
+
id: BytesLike,
|
|
254
194
|
constructorParams: BytesLike,
|
|
255
195
|
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
256
196
|
tokenToSeedLiqudity: string,
|
|
@@ -268,9 +208,10 @@ export interface IPCommonPoolDeployHelperV2 extends BaseContract {
|
|
|
268
208
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
269
209
|
): Promise<ContractTransaction>;
|
|
270
210
|
|
|
271
|
-
deployCommonMarketById(
|
|
211
|
+
"deployCommonMarketById(bytes32,bytes,bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)"(
|
|
272
212
|
id: BytesLike,
|
|
273
213
|
constructorParams: BytesLike,
|
|
214
|
+
initData: BytesLike,
|
|
274
215
|
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
275
216
|
tokenToSeedLiqudity: string,
|
|
276
217
|
amountToSeed: BigNumberish,
|
|
@@ -278,25 +219,8 @@ export interface IPCommonPoolDeployHelperV2 extends BaseContract {
|
|
|
278
219
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
279
220
|
): Promise<ContractTransaction>;
|
|
280
221
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
284
|
-
tokenToSeedLiqudity: string,
|
|
285
|
-
amountToSeed: BigNumberish,
|
|
286
|
-
syOwner: string,
|
|
287
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
288
|
-
): Promise<ContractTransaction>;
|
|
289
|
-
|
|
290
|
-
deployERC4626Market(
|
|
291
|
-
constructorParams: BytesLike,
|
|
292
|
-
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
293
|
-
tokenToSeedLiqudity: string,
|
|
294
|
-
amountToSeed: BigNumberish,
|
|
295
|
-
syOwner: string,
|
|
296
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
297
|
-
): Promise<ContractTransaction>;
|
|
298
|
-
|
|
299
|
-
deployERC4626NotRedeemableMarket(
|
|
222
|
+
"deployCommonMarketById(bytes32,bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)"(
|
|
223
|
+
id: BytesLike,
|
|
300
224
|
constructorParams: BytesLike,
|
|
301
225
|
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
302
226
|
tokenToSeedLiqudity: string,
|
|
@@ -314,9 +238,10 @@ export interface IPCommonPoolDeployHelperV2 extends BaseContract {
|
|
|
314
238
|
overrides?: CallOverrides
|
|
315
239
|
): Promise<IPPoolDeployHelperV2.PoolDeploymentAddrsStructOutput>;
|
|
316
240
|
|
|
317
|
-
deployCommonMarketById(
|
|
241
|
+
"deployCommonMarketById(bytes32,bytes,bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)"(
|
|
318
242
|
id: BytesLike,
|
|
319
243
|
constructorParams: BytesLike,
|
|
244
|
+
initData: BytesLike,
|
|
320
245
|
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
321
246
|
tokenToSeedLiqudity: string,
|
|
322
247
|
amountToSeed: BigNumberish,
|
|
@@ -324,25 +249,8 @@ export interface IPCommonPoolDeployHelperV2 extends BaseContract {
|
|
|
324
249
|
overrides?: CallOverrides
|
|
325
250
|
): Promise<IPPoolDeployHelperV2.PoolDeploymentAddrsStructOutput>;
|
|
326
251
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
330
|
-
tokenToSeedLiqudity: string,
|
|
331
|
-
amountToSeed: BigNumberish,
|
|
332
|
-
syOwner: string,
|
|
333
|
-
overrides?: CallOverrides
|
|
334
|
-
): Promise<IPPoolDeployHelperV2.PoolDeploymentAddrsStructOutput>;
|
|
335
|
-
|
|
336
|
-
deployERC4626Market(
|
|
337
|
-
constructorParams: BytesLike,
|
|
338
|
-
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
339
|
-
tokenToSeedLiqudity: string,
|
|
340
|
-
amountToSeed: BigNumberish,
|
|
341
|
-
syOwner: string,
|
|
342
|
-
overrides?: CallOverrides
|
|
343
|
-
): Promise<IPPoolDeployHelperV2.PoolDeploymentAddrsStructOutput>;
|
|
344
|
-
|
|
345
|
-
deployERC4626NotRedeemableMarket(
|
|
252
|
+
"deployCommonMarketById(bytes32,bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)"(
|
|
253
|
+
id: BytesLike,
|
|
346
254
|
constructorParams: BytesLike,
|
|
347
255
|
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
348
256
|
tokenToSeedLiqudity: string,
|
|
@@ -369,9 +277,10 @@ export interface IPCommonPoolDeployHelperV2 extends BaseContract {
|
|
|
369
277
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
370
278
|
): Promise<BigNumber>;
|
|
371
279
|
|
|
372
|
-
deployCommonMarketById(
|
|
280
|
+
"deployCommonMarketById(bytes32,bytes,bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)"(
|
|
373
281
|
id: BytesLike,
|
|
374
282
|
constructorParams: BytesLike,
|
|
283
|
+
initData: BytesLike,
|
|
375
284
|
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
376
285
|
tokenToSeedLiqudity: string,
|
|
377
286
|
amountToSeed: BigNumberish,
|
|
@@ -379,25 +288,8 @@ export interface IPCommonPoolDeployHelperV2 extends BaseContract {
|
|
|
379
288
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
380
289
|
): Promise<BigNumber>;
|
|
381
290
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
385
|
-
tokenToSeedLiqudity: string,
|
|
386
|
-
amountToSeed: BigNumberish,
|
|
387
|
-
syOwner: string,
|
|
388
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
389
|
-
): Promise<BigNumber>;
|
|
390
|
-
|
|
391
|
-
deployERC4626Market(
|
|
392
|
-
constructorParams: BytesLike,
|
|
393
|
-
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
394
|
-
tokenToSeedLiqudity: string,
|
|
395
|
-
amountToSeed: BigNumberish,
|
|
396
|
-
syOwner: string,
|
|
397
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
398
|
-
): Promise<BigNumber>;
|
|
399
|
-
|
|
400
|
-
deployERC4626NotRedeemableMarket(
|
|
291
|
+
"deployCommonMarketById(bytes32,bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)"(
|
|
292
|
+
id: BytesLike,
|
|
401
293
|
constructorParams: BytesLike,
|
|
402
294
|
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
403
295
|
tokenToSeedLiqudity: string,
|
|
@@ -416,9 +308,10 @@ export interface IPCommonPoolDeployHelperV2 extends BaseContract {
|
|
|
416
308
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
417
309
|
): Promise<PopulatedTransaction>;
|
|
418
310
|
|
|
419
|
-
deployCommonMarketById(
|
|
311
|
+
"deployCommonMarketById(bytes32,bytes,bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)"(
|
|
420
312
|
id: BytesLike,
|
|
421
313
|
constructorParams: BytesLike,
|
|
314
|
+
initData: BytesLike,
|
|
422
315
|
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
423
316
|
tokenToSeedLiqudity: string,
|
|
424
317
|
amountToSeed: BigNumberish,
|
|
@@ -426,25 +319,8 @@ export interface IPCommonPoolDeployHelperV2 extends BaseContract {
|
|
|
426
319
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
427
320
|
): Promise<PopulatedTransaction>;
|
|
428
321
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
432
|
-
tokenToSeedLiqudity: string,
|
|
433
|
-
amountToSeed: BigNumberish,
|
|
434
|
-
syOwner: string,
|
|
435
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
436
|
-
): Promise<PopulatedTransaction>;
|
|
437
|
-
|
|
438
|
-
deployERC4626Market(
|
|
439
|
-
constructorParams: BytesLike,
|
|
440
|
-
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
441
|
-
tokenToSeedLiqudity: string,
|
|
442
|
-
amountToSeed: BigNumberish,
|
|
443
|
-
syOwner: string,
|
|
444
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
445
|
-
): Promise<PopulatedTransaction>;
|
|
446
|
-
|
|
447
|
-
deployERC4626NotRedeemableMarket(
|
|
322
|
+
"deployCommonMarketById(bytes32,bytes,(uint32,uint256,uint256,uint256,uint256),address,uint256,address)"(
|
|
323
|
+
id: BytesLike,
|
|
448
324
|
constructorParams: BytesLike,
|
|
449
325
|
config: IPPoolDeployHelperV2.PoolConfigStruct,
|
|
450
326
|
tokenToSeedLiqudity: string,
|
|
@@ -23,26 +23,29 @@ import type {
|
|
|
23
23
|
OnEvent,
|
|
24
24
|
} from "./common";
|
|
25
25
|
|
|
26
|
-
export type
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
export type BoxCallStruct = {
|
|
27
|
+
tokens: string[];
|
|
28
|
+
amounts: BigNumberish[];
|
|
29
|
+
nativeAmount: BigNumberish;
|
|
30
|
+
approve: string;
|
|
31
|
+
extRouter: string;
|
|
32
|
+
callData: BytesLike;
|
|
32
33
|
};
|
|
33
34
|
|
|
34
|
-
export type
|
|
35
|
-
string,
|
|
35
|
+
export type BoxCallStructOutput = [
|
|
36
|
+
string[],
|
|
37
|
+
BigNumber[],
|
|
36
38
|
BigNumber,
|
|
37
39
|
string,
|
|
38
40
|
string,
|
|
39
41
|
string
|
|
40
42
|
] & {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
tokens: string[];
|
|
44
|
+
amounts: BigNumber[];
|
|
45
|
+
nativeAmount: BigNumber;
|
|
46
|
+
approve: string;
|
|
47
|
+
extRouter: string;
|
|
48
|
+
callData: string;
|
|
46
49
|
};
|
|
47
50
|
|
|
48
51
|
export interface IPLoopPositionBoxInterface extends utils.Interface {
|
|
@@ -52,7 +55,7 @@ export interface IPLoopPositionBoxInterface extends utils.Interface {
|
|
|
52
55
|
"MANAGER()": FunctionFragment;
|
|
53
56
|
"OWNER()": FunctionFragment;
|
|
54
57
|
"SPOKE_MONEY_MARKET()": FunctionFragment;
|
|
55
|
-
"approveAndCall((address,uint256,address,address,bytes),address)": FunctionFragment;
|
|
58
|
+
"approveAndCall((address[],uint256[],uint256,address,address,bytes),address)": FunctionFragment;
|
|
56
59
|
"initialize(address,bytes32,address,address,address)": FunctionFragment;
|
|
57
60
|
"withdrawTo(address,address,uint256)": FunctionFragment;
|
|
58
61
|
};
|
|
@@ -66,7 +69,7 @@ export interface IPLoopPositionBoxInterface extends utils.Interface {
|
|
|
66
69
|
): string;
|
|
67
70
|
encodeFunctionData(
|
|
68
71
|
functionFragment: "approveAndCall",
|
|
69
|
-
values: [
|
|
72
|
+
values: [BoxCallStruct, string]
|
|
70
73
|
): string;
|
|
71
74
|
encodeFunctionData(
|
|
72
75
|
functionFragment: "initialize",
|
|
@@ -131,7 +134,7 @@ export interface IPLoopPositionBox extends BaseContract {
|
|
|
131
134
|
SPOKE_MONEY_MARKET(overrides?: CallOverrides): Promise<[string]>;
|
|
132
135
|
|
|
133
136
|
approveAndCall(
|
|
134
|
-
call:
|
|
137
|
+
call: BoxCallStruct,
|
|
135
138
|
nativeRefund: string,
|
|
136
139
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
137
140
|
): Promise<ContractTransaction>;
|
|
@@ -162,7 +165,7 @@ export interface IPLoopPositionBox extends BaseContract {
|
|
|
162
165
|
SPOKE_MONEY_MARKET(overrides?: CallOverrides): Promise<string>;
|
|
163
166
|
|
|
164
167
|
approveAndCall(
|
|
165
|
-
call:
|
|
168
|
+
call: BoxCallStruct,
|
|
166
169
|
nativeRefund: string,
|
|
167
170
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
168
171
|
): Promise<ContractTransaction>;
|
|
@@ -193,7 +196,7 @@ export interface IPLoopPositionBox extends BaseContract {
|
|
|
193
196
|
SPOKE_MONEY_MARKET(overrides?: CallOverrides): Promise<string>;
|
|
194
197
|
|
|
195
198
|
approveAndCall(
|
|
196
|
-
call:
|
|
199
|
+
call: BoxCallStruct,
|
|
197
200
|
nativeRefund: string,
|
|
198
201
|
overrides?: CallOverrides
|
|
199
202
|
): Promise<string>;
|
|
@@ -227,7 +230,7 @@ export interface IPLoopPositionBox extends BaseContract {
|
|
|
227
230
|
SPOKE_MONEY_MARKET(overrides?: CallOverrides): Promise<BigNumber>;
|
|
228
231
|
|
|
229
232
|
approveAndCall(
|
|
230
|
-
call:
|
|
233
|
+
call: BoxCallStruct,
|
|
231
234
|
nativeRefund: string,
|
|
232
235
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
233
236
|
): Promise<BigNumber>;
|
|
@@ -261,7 +264,7 @@ export interface IPLoopPositionBox extends BaseContract {
|
|
|
261
264
|
): Promise<PopulatedTransaction>;
|
|
262
265
|
|
|
263
266
|
approveAndCall(
|
|
264
|
-
call:
|
|
267
|
+
call: BoxCallStruct,
|
|
265
268
|
nativeRefund: string,
|
|
266
269
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
267
270
|
): Promise<PopulatedTransaction>;
|