@pendle/core-v2 2.18.1 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.json +19 -0
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +21 -2
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.json +1189 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.json +322 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAPoolHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/{Thena/ThenaPreview.sol/IThenaSY.json → BalancerStable/base/Linear/BbAPoolHelper.sol/BbAPoolHelper.json} +4 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/{CamelotV1Volatile/CamelotV1Preview.sol/ICamelotSY.json → BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.json} +4 -17
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.json +234 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.json +2 -28
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/{Thena/ThenaLpHelper.sol/ThenaLpHelper.json → CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.json} +2 -54
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.json +338 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +1433 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.json +976 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol/PendleWbEthSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol/PendleWbEthSY.json +979 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.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/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.json +2 -2
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IERC4626LinearPool.sol/IERC4626LinearPool.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IERC4626LinearPool.sol/IERC4626LinearPool.json +1172 -0
- package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.json +42 -0
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.json +0 -13
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.json +0 -13
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.json +0 -26
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.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/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.json +82 -6
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +22 -22
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +42 -4
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.json +19 -0
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +19 -0
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +146 -32
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +4 -0
- package/build/artifacts/contracts/{core/StandardizedYield/implementations/Thena/ThenaMath.sol/ThenaMath.json → offchain-helpers/BoringLpSeller.sol/BoringLpSeller.json} +2 -2
- package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +10 -0
- package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.json +97 -0
- 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 +84 -8
- 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 +24 -24
- 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 +44 -6
- 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/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +10 -0
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.json +166 -0
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.json +2 -2
- package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.json +2 -2
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +2 -2
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +60 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{ethereum/IAggregationExecutor.sol → IAggregationExecutor.sol}/IAggregationExecutor.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IExecutorHelper.sol/IExecutorHelper.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{arbitrum/IExecutorHelper1.sol/IExecutorHelper1.json → IExecutorHelper.sol/IExecutorHelper.json} +147 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IHashflow.sol/IHashflow.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{ethereum/IHashflow.sol → IHashflow.sol}/IHashflow.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{arbitrum/IMetaAggregationRouterV2.sol → IMetaAggregationRouterV2.sol}/IMetaAggregationRouterV2.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberInputScalingHelper.sol/KyberInputScalingHelper.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{arbitrum/KyberHelperArbitrum.sol/KyberHelperArbitrum.json → KyberInputScalingHelper.sol/KyberInputScalingHelper.json} +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.json +10 -0
- package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +4 -0
- package/contracts/core/Market/PendleGauge.sol +3 -2
- package/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol +108 -0
- package/contracts/interfaces/BinanceEth/IWBETH.sol +9 -0
- package/contracts/interfaces/IPActionInfoStatic.sol +8 -7
- package/contracts/interfaces/IPActionMarketAuxStatic.sol +21 -14
- package/contracts/interfaces/IPActionMarketCoreStatic.sol +70 -67
- package/contracts/interfaces/IPActionMintRedeemStatic.sol +23 -11
- package/contracts/interfaces/IPGauge.sol +3 -0
- package/contracts/interfaces/IPRouterStatic.sol +5 -1
- package/contracts/offchain-helpers/BoringLpSeller.sol +47 -0
- package/contracts/offchain-helpers/BulkSellerOffchain.sol +11 -8
- package/contracts/offchain-helpers/PtAndLpToAsset.sol +62 -0
- package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +14 -11
- package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +96 -37
- package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +88 -80
- package/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol +43 -14
- package/contracts/oracles/samples/PendleLpGlpOracle.sol +49 -0
- package/deployments/42161-markets/WSTETH-ARBITRUM-JUNE2024.json +6 -6
- package/deployments/42161-markets/WSTETH-ARBITRUM-JUNE2025.json +10 -0
- package/deployments/56-core.json +28 -0
- package/deployments/56-markets/THENA-FRXETH-ETH-JUNE2024.json +10 -0
- package/deployments/56-markets/WBETH-DEC2024.json +10 -0
- package/deployments/56-offchain-helper.json +4 -0
- package/package.json +1 -1
- package/typechain-types/ActionMarketAuxStatic.ts +191 -38
- package/typechain-types/ActionMarketCoreStatic.ts +600 -134
- package/typechain-types/ActionMintRedeemStatic.ts +92 -26
- package/typechain-types/BotActionCallback.ts +763 -0
- package/typechain-types/BotActionHelper.ts +763 -0
- package/typechain-types/BotDecisionHelper.ts +527 -0
- package/typechain-types/BotDecisionLib.ts +335 -0
- package/typechain-types/CamelotRewardHelper.ts +0 -60
- package/typechain-types/IBotDecisionHelper.ts +507 -0
- package/typechain-types/ICamelotNFTPool.ts +0 -19
- package/typechain-types/ICamelotNitroPool.ts +0 -19
- package/typechain-types/ICamelotPair.ts +0 -42
- package/typechain-types/ILongYieldTradingBot.ts +1008 -0
- package/typechain-types/IPActionMarketAuxStatic.ts +191 -38
- package/typechain-types/IPActionMarketCoreStatic.ts +600 -134
- package/typechain-types/IPActionMintRedeemStatic.ts +92 -26
- package/typechain-types/IPGauge.ts +23 -3
- package/typechain-types/IPMarket.ts +18 -0
- package/typechain-types/IPRouterStatic.ts +888 -197
- package/typechain-types/ITradingBotBase.ts +523 -0
- package/typechain-types/IWBETH.ts +128 -0
- package/typechain-types/LongYieldTradingBot.ts +1468 -0
- package/typechain-types/MarketExtLib.ts +81 -0
- package/typechain-types/PendleBinanceEth.ts +1229 -0
- package/typechain-types/PendleGauge.ts +23 -3
- package/typechain-types/PendleLpGlpOracle.ts +145 -0
- package/typechain-types/PendleMarket.ts +18 -0
- package/typechain-types/PendleThenaSY.ts +153 -0
- package/typechain-types/PendleWbEthSY.ts +1229 -0
- package/typechain-types/PtAndLpToAsset.ts +136 -0
- package/typechain-types/ThenaLpHelper.ts +19 -0
- package/typechain-types/ThenaMath.ts +87 -0
- package/typechain-types/ThenaPreview.ts +19 -0
- package/typechain-types/TradingBotBase.ts +719 -0
- package/typechain-types/TradingBotOffchain.ts +568 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +83 -7
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +23 -23
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +43 -5
- package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/BotActionCallback__factory.ts +678 -0
- package/typechain-types/factories/BotActionHelper__factory.ts +678 -0
- package/typechain-types/factories/BotDecisionHelper__factory.ts +1123 -0
- package/typechain-types/factories/BotDecisionLib__factory.ts +642 -0
- package/typechain-types/factories/Broadcaster__factory.ts +1 -1
- package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
- package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
- package/typechain-types/factories/BulkSeller__factory.ts +1 -1
- package/typechain-types/factories/CamelotRewardHelper__factory.ts +1 -27
- package/typechain-types/factories/IBotDecisionHelper__factory.ts +932 -0
- package/typechain-types/factories/ICamelotNFTPool__factory.ts +0 -13
- package/typechain-types/factories/ICamelotNitroPool__factory.ts +0 -13
- package/typechain-types/factories/ICamelotPair__factory.ts +0 -26
- package/typechain-types/factories/ILongYieldTradingBot__factory.ts +1172 -0
- package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +82 -6
- package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +22 -22
- package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +42 -4
- package/typechain-types/factories/IPGauge__factory.ts +19 -0
- package/typechain-types/factories/IPMarket__factory.ts +19 -0
- package/typechain-types/factories/IPRouterStatic__factory.ts +146 -32
- package/typechain-types/factories/ITradingBotBase__factory.ts +455 -0
- package/typechain-types/factories/IWBETH__factory.ts +51 -0
- package/typechain-types/factories/LongYieldTradingBot__factory.ts +1836 -0
- package/typechain-types/factories/MarketExtLib__factory.ts +74 -0
- package/typechain-types/factories/MetaStablePreview__factory.ts +1 -1
- package/typechain-types/factories/PendleArbitrumStakedEthSY__factory.ts +27 -2
- package/typechain-types/factories/PendleAuraBbAWethSwethSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +1 -1
- package/typechain-types/factories/PendleBinanceEth__factory.ts +1052 -0
- package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +1 -1
- package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
- package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGauge__factory.ts +19 -0
- package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
- package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
- package/typechain-types/factories/PendleLpGlpOracle__factory.ts +246 -0
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +20 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
- package/typechain-types/factories/PendlePtOracle__factory.ts +1 -1
- package/typechain-types/factories/PendlePtUsdChainlinkOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleStargateLPSY__factory.ts +1 -1
- package/typechain-types/factories/PendleThenaSY__factory.ts +85 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleWbEthSY__factory.ts +1049 -0
- package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/PtAndLpToAsset__factory.ts +150 -0
- package/typechain-types/factories/SAPE__factory.ts +1 -1
- package/typechain-types/factories/ThenaLpHelper__factory.ts +13 -0
- package/typechain-types/factories/ThenaMath__factory.ts +36 -0
- package/typechain-types/factories/ThenaPreview__factory.ts +14 -1
- package/typechain-types/factories/TradingBotBase__factory.ts +628 -0
- package/typechain-types/factories/TradingBotOffchain__factory.ts +1133 -0
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +45 -0
- package/typechain-types/index.ts +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1LpHelper.sol/CamelotV1LpHelper.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1LpHelper.sol/CamelotV1LpHelper.json +0 -128
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1Math.sol/CamelotV1Math.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1Math.sol/CamelotV1Math.json +0 -10
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1Preview.sol/CamelotV1Preview.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1Preview.sol/CamelotV1Preview.json +0 -254
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1Preview.sol/ICamelotSY.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1SY.sol/PendleCamelotV1SY.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1SY.sol/PendleCamelotV1SY.json +0 -1495
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/PendleThenaSY.sol/PendleThenaSY.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/PendleThenaSY.sol/PendleThenaSY.json +0 -1182
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaLpHelper.sol/ThenaLpHelper.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaMath.sol/ThenaMath.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/IThenaSY.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/ThenaPreview.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/ThenaPreview.json +0 -254
- package/build/artifacts/contracts/interfaces/IPendlePreviewHelper.sol/IPendlePreviewHelper.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPendlePreviewHelper.sol/IPendlePreviewHelper.json +0 -59
- package/build/artifacts/contracts/interfaces/Thena/IThenaFactory.sol/IThenaFactory.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/Thena/IThenaFactory.sol/IThenaFactory.json +0 -152
- package/build/artifacts/contracts/interfaces/Thena/IThenaGaugeV2.sol/IThenaGaugeV2.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/Thena/IThenaGaugeV2.sol/IThenaGaugeV2.json +0 -71
- package/build/artifacts/contracts/interfaces/Thena/IThenaPair.sol/IThenaPair.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/Thena/IThenaPair.sol/IThenaPair.json +0 -409
- package/build/artifacts/contracts/interfaces/Thena/IThenaRouter.sol/IThenaRouter.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/Thena/IThenaRouter.sol/IThenaRouter.json +0 -188
- package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.json +0 -160
- package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.json +0 -10
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.json +0 -76
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.json +0 -76
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IAggregationExecutor.sol/IAggregationExecutor.json +0 -65
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol/IExecutorHelper1.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol/IExecutorHelper2.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol/IExecutorHelper2.json +0 -40
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IHashflow.sol/IHashflow.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IHashflow.sol/IHashflow.json +0 -101
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/KyberHelperArbitrum.sol/KyberHelperArbitrum.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol/ScaleDataHelperArbitrum.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol/ScaleDataHelperArbitrum.json +0 -10
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.json +0 -388
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol/IHashflow.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +0 -215
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol/KyberHelperEthereum.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol/KyberHelperEthereum.json +0 -10
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol/ScaleDataHelperEthereum.dbg.json +0 -4
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol/ScaleDataHelperEthereum.json +0 -10
- /package/deployments/42161-markets/{RETH-ARBITRUM-JUNE2024.json → RETH-ARBITRUM-JUNE2025.json} +0 -0
|
@@ -22,7 +22,15 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
22
22
|
address market,
|
|
23
23
|
uint256 netSyDesired,
|
|
24
24
|
uint256 netPtDesired
|
|
25
|
-
)
|
|
25
|
+
)
|
|
26
|
+
public
|
|
27
|
+
view
|
|
28
|
+
returns (
|
|
29
|
+
uint256 netLpOut,
|
|
30
|
+
uint256 netSyUsed,
|
|
31
|
+
uint256 netPtUsed
|
|
32
|
+
)
|
|
33
|
+
{
|
|
26
34
|
MarketState memory state = _readState(market);
|
|
27
35
|
(, netLpOut, netSyUsed, netPtUsed) = state.addLiquidity(
|
|
28
36
|
netSyDesired,
|
|
@@ -63,11 +71,9 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
63
71
|
}
|
|
64
72
|
|
|
65
73
|
/// @dev netPtToSwap is the parameter to approx
|
|
66
|
-
function addLiquiditySinglePtStatic(
|
|
67
|
-
address market,
|
|
68
|
-
uint256 netPtIn
|
|
69
|
-
)
|
|
74
|
+
function addLiquiditySinglePtStatic(address market, uint256 netPtIn)
|
|
70
75
|
public
|
|
76
|
+
view
|
|
71
77
|
returns (
|
|
72
78
|
uint256 netLpOut,
|
|
73
79
|
uint256 netPtToSwap,
|
|
@@ -105,11 +111,9 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
105
111
|
}
|
|
106
112
|
|
|
107
113
|
/// @dev netPtFromSwap is the parameter to approx
|
|
108
|
-
function addLiquiditySingleSyStatic(
|
|
109
|
-
address market,
|
|
110
|
-
uint256 netSyIn
|
|
111
|
-
)
|
|
114
|
+
function addLiquiditySingleSyStatic(address market, uint256 netSyIn)
|
|
112
115
|
public
|
|
116
|
+
view
|
|
113
117
|
returns (
|
|
114
118
|
uint256 netLpOut,
|
|
115
119
|
uint256 netPtFromSwap,
|
|
@@ -153,6 +157,7 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
153
157
|
address bulk
|
|
154
158
|
)
|
|
155
159
|
public
|
|
160
|
+
view
|
|
156
161
|
returns (
|
|
157
162
|
uint256 netLpOut,
|
|
158
163
|
uint256 netPtFromSwap,
|
|
@@ -182,6 +187,7 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
182
187
|
address bulk
|
|
183
188
|
)
|
|
184
189
|
public
|
|
190
|
+
view
|
|
185
191
|
returns (
|
|
186
192
|
uint256 netLpOut,
|
|
187
193
|
uint256 netYtOut,
|
|
@@ -194,11 +200,9 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
194
200
|
(netLpOut, netYtOut, netSyToPY) = addLiquiditySingleSyKeepYtStatic(market, netSyMinted);
|
|
195
201
|
}
|
|
196
202
|
|
|
197
|
-
function addLiquiditySingleSyKeepYtStatic(
|
|
198
|
-
address market,
|
|
199
|
-
uint256 netSyIn
|
|
200
|
-
)
|
|
203
|
+
function addLiquiditySingleSyKeepYtStatic(address market, uint256 netSyIn)
|
|
201
204
|
public
|
|
205
|
+
view
|
|
202
206
|
returns (
|
|
203
207
|
uint256 netLpOut,
|
|
204
208
|
uint256 netYtOut,
|
|
@@ -218,10 +222,11 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
218
222
|
(, netLpOut, , ) = state.addLiquidity(netSyIn - netSyToPY, netYtOut, block.timestamp);
|
|
219
223
|
}
|
|
220
224
|
|
|
221
|
-
function removeLiquidityDualSyAndPtStatic(
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
+
function removeLiquidityDualSyAndPtStatic(address market, uint256 netLpToRemove)
|
|
226
|
+
public
|
|
227
|
+
view
|
|
228
|
+
returns (uint256 netSyOut, uint256 netPtOut)
|
|
229
|
+
{
|
|
225
230
|
MarketState memory state = _readState(market);
|
|
226
231
|
(netSyOut, netPtOut) = state.removeLiquidity(netLpToRemove);
|
|
227
232
|
}
|
|
@@ -231,18 +236,24 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
231
236
|
uint256 netLpToRemove,
|
|
232
237
|
address tokenOut,
|
|
233
238
|
address bulk
|
|
234
|
-
)
|
|
239
|
+
)
|
|
240
|
+
public
|
|
241
|
+
view
|
|
242
|
+
returns (
|
|
243
|
+
uint256 netTokenOut,
|
|
244
|
+
uint256 netPtOut,
|
|
245
|
+
uint256 netSyToRedeem
|
|
246
|
+
)
|
|
247
|
+
{
|
|
235
248
|
(netSyToRedeem, netPtOut) = removeLiquidityDualSyAndPtStatic(market, netLpToRemove);
|
|
236
249
|
netTokenOut = _redeemSyToTokenStatic(market, tokenOut, netSyToRedeem, bulk);
|
|
237
250
|
}
|
|
238
251
|
|
|
239
252
|
/// @dev netPtFromSwap is the parameter to approx
|
|
240
253
|
/// @notice should revert post-expiry
|
|
241
|
-
function removeLiquiditySinglePtStatic(
|
|
242
|
-
address market,
|
|
243
|
-
uint256 netLpToRemove
|
|
244
|
-
)
|
|
254
|
+
function removeLiquiditySinglePtStatic(address market, uint256 netLpToRemove)
|
|
245
255
|
public
|
|
256
|
+
view
|
|
246
257
|
returns (
|
|
247
258
|
uint256 netPtOut,
|
|
248
259
|
uint256 netPtFromSwap,
|
|
@@ -272,11 +283,9 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
272
283
|
exchangeRateAfter = _getTradeExchangeRateExcludeFee(market, state);
|
|
273
284
|
}
|
|
274
285
|
|
|
275
|
-
function removeLiquiditySingleSyStatic(
|
|
276
|
-
address market,
|
|
277
|
-
uint256 netLpToRemove
|
|
278
|
-
)
|
|
286
|
+
function removeLiquiditySingleSyStatic(address market, uint256 netLpToRemove)
|
|
279
287
|
public
|
|
288
|
+
view
|
|
280
289
|
returns (
|
|
281
290
|
uint256 netSyOut,
|
|
282
291
|
uint256 netSyFee,
|
|
@@ -317,6 +326,7 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
317
326
|
address bulk
|
|
318
327
|
)
|
|
319
328
|
public
|
|
329
|
+
view
|
|
320
330
|
returns (
|
|
321
331
|
uint256 netTokenOut,
|
|
322
332
|
uint256 netSyFee,
|
|
@@ -344,11 +354,9 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
344
354
|
|
|
345
355
|
// ============ SWAP PT ============
|
|
346
356
|
|
|
347
|
-
function swapExactPtForSyStatic(
|
|
348
|
-
address market,
|
|
349
|
-
uint256 exactPtIn
|
|
350
|
-
)
|
|
357
|
+
function swapExactPtForSyStatic(address market, uint256 exactPtIn)
|
|
351
358
|
public
|
|
359
|
+
view
|
|
352
360
|
returns (
|
|
353
361
|
uint256 netSyOut,
|
|
354
362
|
uint256 netSyFee,
|
|
@@ -366,12 +374,15 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
366
374
|
exchangeRateAfter = _getTradeExchangeRateExcludeFee(market, state);
|
|
367
375
|
}
|
|
368
376
|
|
|
369
|
-
function swapSyForExactPtStatic(
|
|
370
|
-
address market,
|
|
371
|
-
uint256 exactPtOut
|
|
372
|
-
)
|
|
377
|
+
function swapSyForExactPtStatic(address market, uint256 exactPtOut)
|
|
373
378
|
public
|
|
374
|
-
|
|
379
|
+
view
|
|
380
|
+
returns (
|
|
381
|
+
uint256 netSyIn,
|
|
382
|
+
uint256 netSyFee,
|
|
383
|
+
uint256 priceImpact,
|
|
384
|
+
uint256 exchangeRateAfter
|
|
385
|
+
)
|
|
375
386
|
{
|
|
376
387
|
MarketState memory state = _readState(market);
|
|
377
388
|
(netSyIn, netSyFee, ) = state.swapSyForExactPt(
|
|
@@ -384,11 +395,9 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
384
395
|
}
|
|
385
396
|
|
|
386
397
|
/// @dev netPtOut is the parameter to approx
|
|
387
|
-
function swapExactSyForPtStatic(
|
|
388
|
-
address market,
|
|
389
|
-
uint256 exactSyIn
|
|
390
|
-
)
|
|
398
|
+
function swapExactSyForPtStatic(address market, uint256 exactSyIn)
|
|
391
399
|
public
|
|
400
|
+
view
|
|
392
401
|
returns (
|
|
393
402
|
uint256 netPtOut,
|
|
394
403
|
uint256 netSyFee,
|
|
@@ -411,12 +420,15 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
411
420
|
}
|
|
412
421
|
|
|
413
422
|
/// @dev netPtIn is the parameter to approx
|
|
414
|
-
function swapPtForExactSyStatic(
|
|
415
|
-
address market,
|
|
416
|
-
uint256 exactSyOut
|
|
417
|
-
)
|
|
423
|
+
function swapPtForExactSyStatic(address market, uint256 exactSyOut)
|
|
418
424
|
public
|
|
419
|
-
|
|
425
|
+
view
|
|
426
|
+
returns (
|
|
427
|
+
uint256 netPtIn,
|
|
428
|
+
uint256 netSyFee,
|
|
429
|
+
uint256 priceImpact,
|
|
430
|
+
uint256 exchangeRateAfter
|
|
431
|
+
)
|
|
420
432
|
{
|
|
421
433
|
MarketState memory state = _readState(market);
|
|
422
434
|
|
|
@@ -440,6 +452,7 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
440
452
|
address bulk
|
|
441
453
|
)
|
|
442
454
|
public
|
|
455
|
+
view
|
|
443
456
|
returns (
|
|
444
457
|
uint256 netPtOut,
|
|
445
458
|
uint256 netSyMinted,
|
|
@@ -463,6 +476,7 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
463
476
|
address bulk
|
|
464
477
|
)
|
|
465
478
|
public
|
|
479
|
+
view
|
|
466
480
|
returns (
|
|
467
481
|
uint256 netTokenOut,
|
|
468
482
|
uint256 netSyToRedeem,
|
|
@@ -481,11 +495,9 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
481
495
|
|
|
482
496
|
// ============ SWAP YT ============
|
|
483
497
|
|
|
484
|
-
function swapSyForExactYtStatic(
|
|
485
|
-
address market,
|
|
486
|
-
uint256 exactYtOut
|
|
487
|
-
)
|
|
498
|
+
function swapSyForExactYtStatic(address market, uint256 exactYtOut)
|
|
488
499
|
public
|
|
500
|
+
view
|
|
489
501
|
returns (
|
|
490
502
|
uint256 netSyIn,
|
|
491
503
|
uint256 netSyFee,
|
|
@@ -514,11 +526,9 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
514
526
|
}
|
|
515
527
|
|
|
516
528
|
/// @dev netYtOut is the parameter to approx
|
|
517
|
-
function swapExactSyForYtStatic(
|
|
518
|
-
address market,
|
|
519
|
-
uint256 exactSyIn
|
|
520
|
-
)
|
|
529
|
+
function swapExactSyForYtStatic(address market, uint256 exactSyIn)
|
|
521
530
|
public
|
|
531
|
+
view
|
|
522
532
|
returns (
|
|
523
533
|
uint256 netYtOut,
|
|
524
534
|
uint256 netSyFee,
|
|
@@ -543,11 +553,9 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
543
553
|
exchangeRateAfter = _getTradeExchangeRateExcludeFee(market, state);
|
|
544
554
|
}
|
|
545
555
|
|
|
546
|
-
function swapExactYtForSyStatic(
|
|
547
|
-
address market,
|
|
548
|
-
uint256 exactYtIn
|
|
549
|
-
)
|
|
556
|
+
function swapExactYtForSyStatic(address market, uint256 exactYtIn)
|
|
550
557
|
public
|
|
558
|
+
view
|
|
551
559
|
returns (
|
|
552
560
|
uint256 netSyOut,
|
|
553
561
|
uint256 netSyFee,
|
|
@@ -581,6 +589,7 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
581
589
|
address bulk
|
|
582
590
|
)
|
|
583
591
|
public
|
|
592
|
+
view
|
|
584
593
|
returns (
|
|
585
594
|
uint256 netTokenOut,
|
|
586
595
|
uint256 netSyFee,
|
|
@@ -607,12 +616,15 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
607
616
|
}
|
|
608
617
|
|
|
609
618
|
/// @dev netYtIn is the parameter to approx
|
|
610
|
-
function swapYtForExactSyStatic(
|
|
611
|
-
address market,
|
|
612
|
-
uint256 exactSyOut
|
|
613
|
-
)
|
|
619
|
+
function swapYtForExactSyStatic(address market, uint256 exactSyOut)
|
|
614
620
|
public
|
|
615
|
-
|
|
621
|
+
view
|
|
622
|
+
returns (
|
|
623
|
+
uint256 netYtIn,
|
|
624
|
+
uint256 netSyFee,
|
|
625
|
+
uint256 priceImpact,
|
|
626
|
+
uint256 exchangeRateAfter
|
|
627
|
+
)
|
|
616
628
|
{
|
|
617
629
|
MarketState memory state = _readState(market);
|
|
618
630
|
|
|
@@ -638,6 +650,7 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
638
650
|
address bulk
|
|
639
651
|
)
|
|
640
652
|
public
|
|
653
|
+
view
|
|
641
654
|
returns (
|
|
642
655
|
uint256 netYtOut,
|
|
643
656
|
uint256 netSyMinted,
|
|
@@ -654,11 +667,9 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
654
667
|
}
|
|
655
668
|
|
|
656
669
|
// totalPtToSwap is the param to approx
|
|
657
|
-
function swapExactPtForYtStatic(
|
|
658
|
-
address market,
|
|
659
|
-
uint256 exactPtIn
|
|
660
|
-
)
|
|
670
|
+
function swapExactPtForYtStatic(address market, uint256 exactPtIn)
|
|
661
671
|
public
|
|
672
|
+
view
|
|
662
673
|
returns (
|
|
663
674
|
uint256 netYtOut,
|
|
664
675
|
uint256 totalPtToSwap,
|
|
@@ -684,11 +695,9 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
684
695
|
}
|
|
685
696
|
|
|
686
697
|
// totalPtSwapped is the param to approx
|
|
687
|
-
function swapExactYtForPtStatic(
|
|
688
|
-
address market,
|
|
689
|
-
uint256 exactYtIn
|
|
690
|
-
)
|
|
698
|
+
function swapExactYtForPtStatic(address market, uint256 exactYtIn)
|
|
691
699
|
public
|
|
700
|
+
view
|
|
692
701
|
returns (
|
|
693
702
|
uint256 netPtOut,
|
|
694
703
|
uint256 totalPtSwapped,
|
|
@@ -714,15 +723,15 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
714
723
|
exchangeRateAfter = _getTradeExchangeRateExcludeFee(market, state);
|
|
715
724
|
}
|
|
716
725
|
|
|
717
|
-
function _calcPriceImpactPY(address market, int256 netPtOut) internal returns (uint256) {
|
|
726
|
+
function _calcPriceImpactPY(address market, int256 netPtOut) internal view returns (uint256) {
|
|
718
727
|
return IPRouterStatic(address(this)).calcPriceImpactPY(market, netPtOut);
|
|
719
728
|
}
|
|
720
729
|
|
|
721
|
-
function _calcPriceImpactPt(address market, int256 netPtOut) internal returns (uint256) {
|
|
730
|
+
function _calcPriceImpactPt(address market, int256 netPtOut) internal view returns (uint256) {
|
|
722
731
|
return IPRouterStatic(address(this)).calcPriceImpactPt(market, netPtOut);
|
|
723
732
|
}
|
|
724
733
|
|
|
725
|
-
function _calcPriceImpactYt(address market, int256 netPtOut) internal returns (uint256) {
|
|
734
|
+
function _calcPriceImpactYt(address market, int256 netPtOut) internal view returns (uint256) {
|
|
726
735
|
return IPRouterStatic(address(this)).calcPriceImpactYt(market, netPtOut);
|
|
727
736
|
}
|
|
728
737
|
|
|
@@ -756,10 +765,11 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
756
765
|
);
|
|
757
766
|
}
|
|
758
767
|
|
|
759
|
-
function _getTradeExchangeRateExcludeFee(
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
768
|
+
function _getTradeExchangeRateExcludeFee(address market, MarketState memory state)
|
|
769
|
+
internal
|
|
770
|
+
view
|
|
771
|
+
returns (uint256)
|
|
772
|
+
{
|
|
763
773
|
return IPRouterStatic(address(this)).getTradeExchangeRateExcludeFee(market, state);
|
|
764
774
|
}
|
|
765
775
|
|
|
@@ -767,10 +777,8 @@ contract ActionMarketCoreStatic is StorageLayout, IPActionMarketCoreStatic {
|
|
|
767
777
|
return IPMarket(market).readState(address(this));
|
|
768
778
|
}
|
|
769
779
|
|
|
770
|
-
function _pyIndex(address market)
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
return YT.newIndex();
|
|
780
|
+
function _pyIndex(address market) private view returns (PYIndex) {
|
|
781
|
+
return PYIndex.wrap(IPRouterStatic(address(this)).pyIndexCurrentViewMarket(market));
|
|
774
782
|
}
|
|
775
783
|
|
|
776
784
|
function _getSyMarket(address market) internal view returns (address) {
|
|
@@ -10,19 +10,21 @@ contract ActionMintRedeemStatic is StorageLayout, IPActionMintRedeemStatic {
|
|
|
10
10
|
using Math for uint256;
|
|
11
11
|
using BulkSellerMathCore for BulkSellerState;
|
|
12
12
|
|
|
13
|
-
function mintPyFromSyStatic(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
function mintPyFromSyStatic(address YT, uint256 netSyToMint)
|
|
14
|
+
public
|
|
15
|
+
view
|
|
16
|
+
returns (uint256 netPYOut)
|
|
17
|
+
{
|
|
17
18
|
if (IPYieldToken(YT).isExpired()) revert Errors.YCExpired();
|
|
18
|
-
return netSyToMint.mulDown(
|
|
19
|
+
return netSyToMint.mulDown(pyIndexCurrentViewYt(YT));
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
function redeemPyToSyStatic(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
function redeemPyToSyStatic(address YT, uint256 netPYToRedeem)
|
|
23
|
+
public
|
|
24
|
+
view
|
|
25
|
+
returns (uint256 netSyOut)
|
|
26
|
+
{
|
|
27
|
+
return netPYToRedeem.divDown(pyIndexCurrentViewYt(YT));
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
function mintPyFromTokenStatic(
|
|
@@ -30,7 +32,7 @@ contract ActionMintRedeemStatic is StorageLayout, IPActionMintRedeemStatic {
|
|
|
30
32
|
address tokenIn,
|
|
31
33
|
uint256 netTokenIn,
|
|
32
34
|
address bulk
|
|
33
|
-
) external returns (uint256 netPyOut) {
|
|
35
|
+
) external view returns (uint256 netPyOut) {
|
|
34
36
|
address SY = IPYieldToken(YT).SY();
|
|
35
37
|
uint256 netSyReceived = mintSyFromTokenStatic(SY, tokenIn, netTokenIn, bulk);
|
|
36
38
|
netPyOut = mintPyFromSyStatic(YT, netSyReceived);
|
|
@@ -41,7 +43,7 @@ contract ActionMintRedeemStatic is StorageLayout, IPActionMintRedeemStatic {
|
|
|
41
43
|
uint256 netPYToRedeem,
|
|
42
44
|
address tokenOut,
|
|
43
45
|
address bulk
|
|
44
|
-
) external returns (uint256 netTokenOut) {
|
|
46
|
+
) external view returns (uint256 netTokenOut) {
|
|
45
47
|
address SY = IPYieldToken(YT).SY();
|
|
46
48
|
uint256 netSyReceived = redeemPyToSyStatic(YT, netPYToRedeem);
|
|
47
49
|
netTokenOut = redeemSyToTokenStatic(SY, tokenOut, netSyReceived, bulk);
|
|
@@ -84,7 +86,7 @@ contract ActionMintRedeemStatic is StorageLayout, IPActionMintRedeemStatic {
|
|
|
84
86
|
uint256 pivotAmount;
|
|
85
87
|
|
|
86
88
|
if (tokenIn == address(0)) pivotAmount = 1e18;
|
|
87
|
-
else pivotAmount = 10
|
|
89
|
+
else pivotAmount = 10**IStandardizedYield(SY).decimals();
|
|
88
90
|
|
|
89
91
|
uint256 low = pivotAmount;
|
|
90
92
|
{
|
|
@@ -124,7 +126,15 @@ contract ActionMintRedeemStatic is StorageLayout, IPActionMintRedeemStatic {
|
|
|
124
126
|
address SY,
|
|
125
127
|
uint256 netTokenIn,
|
|
126
128
|
uint256 netSyIn
|
|
127
|
-
)
|
|
129
|
+
)
|
|
130
|
+
external
|
|
131
|
+
view
|
|
132
|
+
returns (
|
|
133
|
+
address bulk,
|
|
134
|
+
uint256 totalToken,
|
|
135
|
+
uint256 totalSy
|
|
136
|
+
)
|
|
137
|
+
{
|
|
128
138
|
if (address(bulkSellerFactory) == address(0)) return (address(0), 0, 0);
|
|
129
139
|
|
|
130
140
|
bulk = bulkSellerFactory.get(token, SY);
|
|
@@ -152,6 +162,25 @@ contract ActionMintRedeemStatic is StorageLayout, IPActionMintRedeemStatic {
|
|
|
152
162
|
totalSy = state.totalSy;
|
|
153
163
|
}
|
|
154
164
|
|
|
165
|
+
function pyIndexCurrentViewMarket(address market) public view returns (uint256) {
|
|
166
|
+
(, , IPYieldToken YT) = IPMarket(market).readTokens();
|
|
167
|
+
return pyIndexCurrentViewYt(address(YT));
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function pyIndexCurrentViewYt(address yt) public view returns (uint256) {
|
|
171
|
+
IPYieldToken YT = IPYieldToken(yt);
|
|
172
|
+
IStandardizedYield SY = IStandardizedYield(YT.SY());
|
|
173
|
+
|
|
174
|
+
uint256 syIndex = SY.exchangeRate();
|
|
175
|
+
uint256 pyIndexStored = YT.pyIndexStored();
|
|
176
|
+
|
|
177
|
+
if (YT.doCacheIndexSameBlock() && YT.pyIndexLastUpdatedBlock() == block.number) {
|
|
178
|
+
return pyIndexStored;
|
|
179
|
+
} else {
|
|
180
|
+
return Math.max(syIndex, pyIndexStored);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
155
184
|
function _readBulkSellerState(address bulk) internal view returns (BulkSellerState memory) {
|
|
156
185
|
return IPBulkSeller(bulk).readState();
|
|
157
186
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
|
+
|
|
4
|
+
import "../PendleLpOracleLib.sol";
|
|
5
|
+
import "../../interfaces/IPPtOracle.sol";
|
|
6
|
+
import "../../interfaces/GMX/IGlpManager.sol";
|
|
7
|
+
import "../../core/libraries/math/Math.sol";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @notice The LP/GLP price gotten from the market using the LpOracleLib is multiplied with the USD price of GLP read from
|
|
11
|
+
* GLPManager contract
|
|
12
|
+
*/
|
|
13
|
+
contract PendleLpGlpOracle {
|
|
14
|
+
using PendleLpOracleLib for IPMarket;
|
|
15
|
+
|
|
16
|
+
uint32 public immutable twapDuration;
|
|
17
|
+
address public immutable market;
|
|
18
|
+
address public immutable glpManager;
|
|
19
|
+
error OracleNotReady(bool increaseCardinalityRequired, bool oldestObservationSatisfied);
|
|
20
|
+
|
|
21
|
+
constructor(
|
|
22
|
+
address _ptOracle,
|
|
23
|
+
uint32 _twapDuration,
|
|
24
|
+
address _market,
|
|
25
|
+
address _glpManager
|
|
26
|
+
) {
|
|
27
|
+
twapDuration = _twapDuration;
|
|
28
|
+
market = _market;
|
|
29
|
+
glpManager = _glpManager;
|
|
30
|
+
|
|
31
|
+
(bool increaseCardinalityRequired, , bool oldestObservationSatisfied) = IPPtOracle(
|
|
32
|
+
_ptOracle
|
|
33
|
+
).getOracleState(market, twapDuration);
|
|
34
|
+
|
|
35
|
+
if (increaseCardinalityRequired || !oldestObservationSatisfied) {
|
|
36
|
+
revert OracleNotReady(increaseCardinalityRequired, oldestObservationSatisfied);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function getLpPrice() external view virtual returns (uint256) {
|
|
41
|
+
uint256 lpRate = IPMarket(market).getLpToAssetRate(twapDuration);
|
|
42
|
+
uint256 assetPrice = IGlpManager(glpManager).getPrice(true);
|
|
43
|
+
return (assetPrice * lpRate) / (10 ** 30);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function decimals() external pure virtual returns (uint8) {
|
|
47
|
+
return 18;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "SY wstETH",
|
|
3
3
|
"SY": "0x80c12D5b6Cc494632Bf11b03F09436c8B61Cc5Df",
|
|
4
|
-
"YT": "
|
|
5
|
-
"PT": "
|
|
6
|
-
"market": "
|
|
7
|
-
"expiry":
|
|
8
|
-
"scalarRoot": "
|
|
9
|
-
"initAnchor": "
|
|
4
|
+
"YT": "0x0052B6096f8c1DCBEfB9ba381EB6b67479b5c56b",
|
|
5
|
+
"PT": "0x9741CAc1a22Ff3615FA074fD0B439975a5E137e9",
|
|
6
|
+
"market": "0xFd8AeE8FCC10aac1897F8D5271d112810C79e022",
|
|
7
|
+
"expiry": 1719446400,
|
|
8
|
+
"scalarRoot": "125538500000000000000",
|
|
9
|
+
"initAnchor": "1042619000000000000"
|
|
10
10
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY wstETH",
|
|
3
|
+
"SY": "0x80c12D5b6Cc494632Bf11b03F09436c8B61Cc5Df",
|
|
4
|
+
"YT": "0xC8D9369809e48d03FF7B69D7979b174e2D34874C",
|
|
5
|
+
"PT": "0x1255638EFeca62e12E344E0b6B22ea853eC6e2c7",
|
|
6
|
+
"market": "0x08a152834de126d2ef83D612ff36e4523FD0017F",
|
|
7
|
+
"expiry": 1750896000,
|
|
8
|
+
"scalarRoot": "111711700000000000000",
|
|
9
|
+
"initAnchor": "1097874000000000000"
|
|
10
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"deployer": "0x1FcCC097db89A86Bfc474A1028F93958295b1Fb7",
|
|
3
|
+
"network": {
|
|
4
|
+
"chainId": 56,
|
|
5
|
+
"treasury": "0xd77E9062c6DF3F2d1CB5Bf45855fa1E7712A059e",
|
|
6
|
+
"governance": "0xA06627d9884996BC27a7c20fDA94FC94C13aa9Ec",
|
|
7
|
+
"pendle": "0xb3Ed0A426155B79B898849803E3B36552f7ED507",
|
|
8
|
+
"lzEndpoint": "0x3c2269811836af69497E5F486A85D7316753cf62",
|
|
9
|
+
"wrappedNative": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
|
|
10
|
+
"initialRewardFee": "30000000000000000",
|
|
11
|
+
"initialInterestFee": "30000000000000000",
|
|
12
|
+
"initialFeeRateRoot": "999500333083533",
|
|
13
|
+
"initialReserveFeePercent": "80",
|
|
14
|
+
"safeWaitTime": 15000
|
|
15
|
+
},
|
|
16
|
+
"baseCodeSplitter": "0x0E669e08bd717d7F9c9DE158636BD8561295fbB5",
|
|
17
|
+
"PENDLE": "0xb3Ed0A426155B79B898849803E3B36552f7ED507",
|
|
18
|
+
"yieldContractFactory": "0xa2530b4cfBF271e2B409A05C2CE520e4cB5fCc88",
|
|
19
|
+
"marketFactory": "0x2bEa6BfD8fbFF45aA2a893EB3B6d85D10EFcC70E",
|
|
20
|
+
"router": "0x00000000025EFaDc0b8d17d3d87aB5056e3D2510",
|
|
21
|
+
"routerStatic": "0x2700ADB035F82a11899ce1D3f1BF8451c296eABb",
|
|
22
|
+
"pendleSwap": "0x6f41855CdF6861a1F8A017e8bB0F90927582cCf6",
|
|
23
|
+
"routerHelper": "0x09D65812dCD0f276e052583d41885cA5C7Dd0086",
|
|
24
|
+
"ptOracle": "0x4d717868F4Bd14ac8B29Bb6361901e30Ae05e340",
|
|
25
|
+
"receiverEndpoint": "0x998CF52b2585e05494BF9F2bF502351a9C7FdA8f",
|
|
26
|
+
"vePendle": "0x8A09574b0401A856d89d1b583eE22E8cb0C5530B",
|
|
27
|
+
"gaugeController": "0x704478Dd72FD7F9B83d1F1e0fc18C14B54F034d0"
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY Thena frxETH-ETH",
|
|
3
|
+
"SY": "0xf86DDA825885674F85C5420079E1Df1bC0F372c6",
|
|
4
|
+
"YT": "0x8D0884EBA8E481CcADf2F91E62170cdF79AE9C64",
|
|
5
|
+
"PT": "0x5eC2ae0AFDEc891E7702344dc2A31C636B3627Eb",
|
|
6
|
+
"market": "0x66317Dec4a3d8d1e47b85f704E5DF675a68BB7C9",
|
|
7
|
+
"expiry": 1719446400,
|
|
8
|
+
"scalarRoot": "29290520000000000000",
|
|
9
|
+
"initAnchor": "1075220000000000000"
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY wbETH",
|
|
3
|
+
"SY": "0x96F77F24b3d17166FcaF3a9E3B8330fF38B966F9",
|
|
4
|
+
"YT": "0x429c77E193Ff7e6c6c3B2e1f00877B91792e87ee",
|
|
5
|
+
"PT": "0x70c1138B54ba212776d3A9d29b6160C54C31cd5d",
|
|
6
|
+
"market": "0x080f52A881ba96EEE2268682733C857c560e5dd4",
|
|
7
|
+
"expiry": 1735171200,
|
|
8
|
+
"scalarRoot": "114833600000000000000",
|
|
9
|
+
"initAnchor": "1062697999000000000"
|
|
10
|
+
}
|