@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_format": "hh-sol-artifact-1",
|
|
3
3
|
"contractName": "IMetaAggregationRouterV2",
|
|
4
|
-
"sourceName": "contracts/router/swap-aggregator/kyberswap/
|
|
4
|
+
"sourceName": "contracts/router/swap-aggregator/kyberswap/IMetaAggregationRouterV2.sol",
|
|
5
5
|
"abi": [
|
|
6
6
|
{
|
|
7
7
|
"inputs": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "
|
|
4
|
-
"sourceName": "contracts/router/swap-aggregator/kyberswap/
|
|
3
|
+
"contractName": "KyberInputScalingHelper",
|
|
4
|
+
"sourceName": "contracts/router/swap-aggregator/kyberswap/KyberInputScalingHelper.sol",
|
|
5
5
|
"abi": [],
|
|
6
6
|
"bytecode": "0x",
|
|
7
7
|
"deployedBytecode": "0x",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ScalingDataLib",
|
|
4
|
+
"sourceName": "contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol",
|
|
5
|
+
"abi": [],
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220cfba1793d0bf2005e9ec0047b2572c3062305c74344dcf37d39ad9fc7600e96b64736f6c63430008110033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220cfba1793d0bf2005e9ec0047b2572c3062305c74344dcf37d39ad9fc7600e96b64736f6c63430008110033",
|
|
8
|
+
"linkReferences": {},
|
|
9
|
+
"deployedLinkReferences": {}
|
|
10
|
+
}
|
|
@@ -13,6 +13,8 @@ library LayerZeroHelper {
|
|
|
13
13
|
// avax mainnet
|
|
14
14
|
else if (chainId == 42161) return 110;
|
|
15
15
|
// arbitrum one
|
|
16
|
+
else if (chainId == 56) return 102;
|
|
17
|
+
// binance smart chain
|
|
16
18
|
else if (chainId == 1) return 101;
|
|
17
19
|
assert(false);
|
|
18
20
|
}
|
|
@@ -26,6 +28,8 @@ library LayerZeroHelper {
|
|
|
26
28
|
// avax mainnet
|
|
27
29
|
else if (chainId == 110) return 42161;
|
|
28
30
|
// arbitrum one
|
|
31
|
+
else if (chainId == 102) return 56;
|
|
32
|
+
// binance smart chain
|
|
29
33
|
else if (chainId == 101) return 1;
|
|
30
34
|
assert(false);
|
|
31
35
|
}
|
|
@@ -40,10 +40,11 @@ abstract contract PendleGauge is RewardManager, IPGauge {
|
|
|
40
40
|
rewards is updated
|
|
41
41
|
* @dev It's intended to have user's activeBalance updated when rewards is redeemed
|
|
42
42
|
*/
|
|
43
|
-
function _redeemRewards(address user) internal virtual returns (uint256[] memory) {
|
|
43
|
+
function _redeemRewards(address user) internal virtual returns (uint256[] memory rewardsOut) {
|
|
44
44
|
_updateAndDistributeRewards(user);
|
|
45
45
|
_updateUserActiveBalance(user);
|
|
46
|
-
|
|
46
|
+
rewardsOut = _doTransferOutRewards(user, user);
|
|
47
|
+
emit RedeemRewards(user, rewardsOut);
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
function _updateUserActiveBalance(address user) internal virtual {
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
|
+
|
|
4
|
+
import "../SYBase.sol";
|
|
5
|
+
import "../../../interfaces/BinanceEth/IWBETH.sol";
|
|
6
|
+
|
|
7
|
+
contract PendleWbEthSY is SYBase {
|
|
8
|
+
using Math for uint256;
|
|
9
|
+
|
|
10
|
+
address public immutable eth;
|
|
11
|
+
address public immutable wbETH;
|
|
12
|
+
|
|
13
|
+
constructor(
|
|
14
|
+
string memory _name,
|
|
15
|
+
string memory _symbol,
|
|
16
|
+
address _eth,
|
|
17
|
+
address _wbETH
|
|
18
|
+
) SYBase(_name, _symbol, _wbETH) {
|
|
19
|
+
eth = _eth;
|
|
20
|
+
wbETH = _wbETH;
|
|
21
|
+
_safeApproveInf(eth, wbETH);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/*///////////////////////////////////////////////////////////////
|
|
25
|
+
DEPOSIT/REDEEM USING BASE TOKENS
|
|
26
|
+
//////////////////////////////////////////////////////////////*/
|
|
27
|
+
|
|
28
|
+
function _deposit(
|
|
29
|
+
address tokenIn,
|
|
30
|
+
uint256 amountDeposited
|
|
31
|
+
) internal override returns (uint256 amountSharesOut) {
|
|
32
|
+
if (tokenIn == eth) {
|
|
33
|
+
uint256 previousBalance = _selfBalance(wbETH);
|
|
34
|
+
IWBETH(wbETH).deposit(amountDeposited, address(this));
|
|
35
|
+
amountSharesOut = _selfBalance(wbETH) - previousBalance;
|
|
36
|
+
} else {
|
|
37
|
+
// wbETH
|
|
38
|
+
amountSharesOut = amountDeposited;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function _redeem(
|
|
43
|
+
address receiver,
|
|
44
|
+
address tokenOut,
|
|
45
|
+
uint256 amountSharesToRedeem
|
|
46
|
+
) internal override returns (uint256 /*amountTokenOut*/) {
|
|
47
|
+
_transferOut(tokenOut, receiver, amountSharesToRedeem);
|
|
48
|
+
return amountSharesToRedeem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/*///////////////////////////////////////////////////////////////
|
|
52
|
+
EXCHANGE-RATE
|
|
53
|
+
//////////////////////////////////////////////////////////////*/
|
|
54
|
+
|
|
55
|
+
function exchangeRate() public view override returns (uint256) {
|
|
56
|
+
// exchangeRate is set by wbETH's oracle
|
|
57
|
+
return IWBETH(wbETH).exchangeRate();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/*///////////////////////////////////////////////////////////////
|
|
61
|
+
MISC FUNCTIONS FOR METADATA
|
|
62
|
+
//////////////////////////////////////////////////////////////*/
|
|
63
|
+
|
|
64
|
+
function _previewDeposit(
|
|
65
|
+
address tokenIn,
|
|
66
|
+
uint256 amountTokenToDeposit
|
|
67
|
+
) internal view override returns (uint256 /*amountSharesOut*/) {
|
|
68
|
+
if (tokenIn == eth) {
|
|
69
|
+
return amountTokenToDeposit.divDown(exchangeRate());
|
|
70
|
+
} else {
|
|
71
|
+
return amountTokenToDeposit;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function _previewRedeem(
|
|
76
|
+
address,
|
|
77
|
+
uint256 amountSharesToRedeem
|
|
78
|
+
) internal pure override returns (uint256 /*amountTokenOut*/) {
|
|
79
|
+
return amountSharesToRedeem;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function getTokensIn() public view override returns (address[] memory res) {
|
|
83
|
+
res = new address[](2);
|
|
84
|
+
res[0] = wbETH;
|
|
85
|
+
res[1] = eth;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function getTokensOut() public view override returns (address[] memory res) {
|
|
89
|
+
res = new address[](1);
|
|
90
|
+
res[0] = wbETH;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function isValidTokenIn(address token) public view override returns (bool) {
|
|
94
|
+
return token == eth || token == wbETH;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function isValidTokenOut(address token) public view override returns (bool) {
|
|
98
|
+
return token == wbETH;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function assetInfo()
|
|
102
|
+
external
|
|
103
|
+
view
|
|
104
|
+
returns (AssetType assetType, address assetAddress, uint8 assetDecimals)
|
|
105
|
+
{
|
|
106
|
+
return (AssetType.TOKEN, eth, 18);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
1
2
|
pragma solidity ^0.8.17;
|
|
2
3
|
|
|
3
4
|
interface IPActionInfoStatic {
|
|
@@ -28,16 +29,16 @@ interface IPActionInfoStatic {
|
|
|
28
29
|
function getPY(address py) external view returns (address pt, address yt);
|
|
29
30
|
|
|
30
31
|
/// can be SY, PY or Market
|
|
31
|
-
function getTokensInOut(
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
function getTokensInOut(address token)
|
|
33
|
+
external
|
|
34
|
+
view
|
|
35
|
+
returns (address[] memory tokensIn, address[] memory tokensOut);
|
|
34
36
|
|
|
35
37
|
function getUserSYInfo(address sy, address user) external returns (UserSYInfo memory res);
|
|
36
38
|
|
|
37
39
|
function getUserPYInfo(address py, address user) external returns (UserPYInfo memory res);
|
|
38
40
|
|
|
39
|
-
function getUserMarketInfo(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
) external returns (UserMarketInfo memory res);
|
|
41
|
+
function getUserMarketInfo(address market, address user)
|
|
42
|
+
external
|
|
43
|
+
returns (UserMarketInfo memory res);
|
|
43
44
|
}
|
|
@@ -3,16 +3,15 @@ pragma solidity ^0.8.17;
|
|
|
3
3
|
import "./IPMarket.sol";
|
|
4
4
|
|
|
5
5
|
interface IPActionMarketAuxStatic {
|
|
6
|
-
function calcPriceImpactPY(address market, int256 netPtOut) external returns (uint256);
|
|
6
|
+
function calcPriceImpactPY(address market, int256 netPtOut) external view returns (uint256);
|
|
7
7
|
|
|
8
|
-
function calcPriceImpactPt(address market, int256 netPtOut) external returns (uint256);
|
|
8
|
+
function calcPriceImpactPt(address market, int256 netPtOut) external view returns (uint256);
|
|
9
9
|
|
|
10
|
-
function calcPriceImpactYt(address market, int256 netPtOut) external returns (uint256);
|
|
10
|
+
function calcPriceImpactYt(address market, int256 netPtOut) external view returns (uint256);
|
|
11
11
|
|
|
12
|
-
function getMarketState(
|
|
13
|
-
address market
|
|
14
|
-
)
|
|
12
|
+
function getMarketState(address market)
|
|
15
13
|
external
|
|
14
|
+
view
|
|
16
15
|
returns (
|
|
17
16
|
address pt,
|
|
18
17
|
address yt,
|
|
@@ -22,13 +21,21 @@ interface IPActionMarketAuxStatic {
|
|
|
22
21
|
MarketState memory state
|
|
23
22
|
);
|
|
24
23
|
|
|
25
|
-
function getTradeExchangeRateExcludeFee(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
function getTradeExchangeRateExcludeFee(address market, MarketState memory state)
|
|
25
|
+
external
|
|
26
|
+
view
|
|
27
|
+
returns (uint256);
|
|
28
|
+
|
|
29
|
+
function getTradeExchangeRateIncludeFee(address market, int256 netPtOut)
|
|
30
|
+
external
|
|
31
|
+
view
|
|
32
|
+
returns (uint256);
|
|
33
|
+
|
|
34
|
+
function getLpToSyRate(address market) external view returns (uint256);
|
|
35
|
+
|
|
36
|
+
function getPtToSyRate(address market) external view returns (uint256);
|
|
37
|
+
|
|
38
|
+
function getLpToAssetRate(address market) external view returns (uint256);
|
|
29
39
|
|
|
30
|
-
function
|
|
31
|
-
address market,
|
|
32
|
-
int256 netPtOut
|
|
33
|
-
) external returns (uint256);
|
|
40
|
+
function getPtToAssetRate(address market) external view returns (uint256);
|
|
34
41
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
1
2
|
pragma solidity ^0.8.17;
|
|
2
3
|
|
|
3
4
|
interface IPActionMarketCoreStatic {
|
|
@@ -5,7 +6,14 @@ interface IPActionMarketCoreStatic {
|
|
|
5
6
|
address market,
|
|
6
7
|
uint256 netSyDesired,
|
|
7
8
|
uint256 netPtDesired
|
|
8
|
-
)
|
|
9
|
+
)
|
|
10
|
+
external
|
|
11
|
+
view
|
|
12
|
+
returns (
|
|
13
|
+
uint256 netLpOut,
|
|
14
|
+
uint256 netSyUsed,
|
|
15
|
+
uint256 netPtUsed
|
|
16
|
+
);
|
|
9
17
|
|
|
10
18
|
function addLiquidityDualTokenAndPtStatic(
|
|
11
19
|
address market,
|
|
@@ -24,11 +32,9 @@ interface IPActionMarketCoreStatic {
|
|
|
24
32
|
uint256 netSyDesired
|
|
25
33
|
);
|
|
26
34
|
|
|
27
|
-
function addLiquiditySinglePtStatic(
|
|
28
|
-
address market,
|
|
29
|
-
uint256 netPtIn
|
|
30
|
-
)
|
|
35
|
+
function addLiquiditySinglePtStatic(address market, uint256 netPtIn)
|
|
31
36
|
external
|
|
37
|
+
view
|
|
32
38
|
returns (
|
|
33
39
|
uint256 netLpOut,
|
|
34
40
|
uint256 netPtToSwap,
|
|
@@ -38,16 +44,18 @@ interface IPActionMarketCoreStatic {
|
|
|
38
44
|
uint256 netSyFromSwap
|
|
39
45
|
);
|
|
40
46
|
|
|
41
|
-
function addLiquiditySingleSyKeepYtStatic(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
function addLiquiditySingleSyKeepYtStatic(address market, uint256 netSyIn)
|
|
48
|
+
external
|
|
49
|
+
view
|
|
50
|
+
returns (
|
|
51
|
+
uint256 netLpOut,
|
|
52
|
+
uint256 netYtOut,
|
|
53
|
+
uint256 netSyToPY
|
|
54
|
+
);
|
|
45
55
|
|
|
46
|
-
function addLiquiditySingleSyStatic(
|
|
47
|
-
address market,
|
|
48
|
-
uint256 netSyIn
|
|
49
|
-
)
|
|
56
|
+
function addLiquiditySingleSyStatic(address market, uint256 netSyIn)
|
|
50
57
|
external
|
|
58
|
+
view
|
|
51
59
|
returns (
|
|
52
60
|
uint256 netLpOut,
|
|
53
61
|
uint256 netPtFromSwap,
|
|
@@ -64,7 +72,13 @@ interface IPActionMarketCoreStatic {
|
|
|
64
72
|
address bulk
|
|
65
73
|
)
|
|
66
74
|
external
|
|
67
|
-
|
|
75
|
+
view
|
|
76
|
+
returns (
|
|
77
|
+
uint256 netLpOut,
|
|
78
|
+
uint256 netYtOut,
|
|
79
|
+
uint256 netSyMinted,
|
|
80
|
+
uint256 netSyToPY
|
|
81
|
+
);
|
|
68
82
|
|
|
69
83
|
function addLiquiditySingleTokenStatic(
|
|
70
84
|
address market,
|
|
@@ -73,6 +87,7 @@ interface IPActionMarketCoreStatic {
|
|
|
73
87
|
address bulk
|
|
74
88
|
)
|
|
75
89
|
external
|
|
90
|
+
view
|
|
76
91
|
returns (
|
|
77
92
|
uint256 netLpOut,
|
|
78
93
|
uint256 netPtFromSwap,
|
|
@@ -83,23 +98,28 @@ interface IPActionMarketCoreStatic {
|
|
|
83
98
|
uint256 netSyToSwap
|
|
84
99
|
);
|
|
85
100
|
|
|
86
|
-
function removeLiquidityDualSyAndPtStatic(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
101
|
+
function removeLiquidityDualSyAndPtStatic(address market, uint256 netLpToRemove)
|
|
102
|
+
external
|
|
103
|
+
view
|
|
104
|
+
returns (uint256 netSyOut, uint256 netPtOut);
|
|
90
105
|
|
|
91
106
|
function removeLiquidityDualTokenAndPtStatic(
|
|
92
107
|
address market,
|
|
93
108
|
uint256 netLpToRemove,
|
|
94
109
|
address tokenOut,
|
|
95
110
|
address bulk
|
|
96
|
-
) external view returns (uint256 netTokenOut, uint256 netPtOut, uint256 netSyToRedeem);
|
|
97
|
-
|
|
98
|
-
function removeLiquiditySinglePtStatic(
|
|
99
|
-
address market,
|
|
100
|
-
uint256 netLpToRemove
|
|
101
111
|
)
|
|
102
112
|
external
|
|
113
|
+
view
|
|
114
|
+
returns (
|
|
115
|
+
uint256 netTokenOut,
|
|
116
|
+
uint256 netPtOut,
|
|
117
|
+
uint256 netSyToRedeem
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
function removeLiquiditySinglePtStatic(address market, uint256 netLpToRemove)
|
|
121
|
+
external
|
|
122
|
+
view
|
|
103
123
|
returns (
|
|
104
124
|
uint256 netPtOut,
|
|
105
125
|
uint256 netPtFromSwap,
|
|
@@ -110,11 +130,9 @@ interface IPActionMarketCoreStatic {
|
|
|
110
130
|
uint256 netPtFromBurn
|
|
111
131
|
);
|
|
112
132
|
|
|
113
|
-
function removeLiquiditySingleSyStatic(
|
|
114
|
-
address market,
|
|
115
|
-
uint256 netLpToRemove
|
|
116
|
-
)
|
|
133
|
+
function removeLiquiditySingleSyStatic(address market, uint256 netLpToRemove)
|
|
117
134
|
external
|
|
135
|
+
view
|
|
118
136
|
returns (
|
|
119
137
|
uint256 netSyOut,
|
|
120
138
|
uint256 netSyFee,
|
|
@@ -132,6 +150,7 @@ interface IPActionMarketCoreStatic {
|
|
|
132
150
|
address bulk
|
|
133
151
|
)
|
|
134
152
|
external
|
|
153
|
+
view
|
|
135
154
|
returns (
|
|
136
155
|
uint256 netTokenOut,
|
|
137
156
|
uint256 netSyFee,
|
|
@@ -143,11 +162,9 @@ interface IPActionMarketCoreStatic {
|
|
|
143
162
|
uint256 netSyFromSwap
|
|
144
163
|
);
|
|
145
164
|
|
|
146
|
-
function swapExactPtForSyStatic(
|
|
147
|
-
address market,
|
|
148
|
-
uint256 exactPtIn
|
|
149
|
-
)
|
|
165
|
+
function swapExactPtForSyStatic(address market, uint256 exactPtIn)
|
|
150
166
|
external
|
|
167
|
+
view
|
|
151
168
|
returns (
|
|
152
169
|
uint256 netSyOut,
|
|
153
170
|
uint256 netSyFee,
|
|
@@ -162,6 +179,7 @@ interface IPActionMarketCoreStatic {
|
|
|
162
179
|
address bulk
|
|
163
180
|
)
|
|
164
181
|
external
|
|
182
|
+
view
|
|
165
183
|
returns (
|
|
166
184
|
uint256 netTokenOut,
|
|
167
185
|
uint256 netSyToRedeem,
|
|
@@ -170,11 +188,9 @@ interface IPActionMarketCoreStatic {
|
|
|
170
188
|
uint256 exchangeRateAfter
|
|
171
189
|
);
|
|
172
190
|
|
|
173
|
-
function swapExactPtForYtStatic(
|
|
174
|
-
address market,
|
|
175
|
-
uint256 exactPtIn
|
|
176
|
-
)
|
|
191
|
+
function swapExactPtForYtStatic(address market, uint256 exactPtIn)
|
|
177
192
|
external
|
|
193
|
+
view
|
|
178
194
|
returns (
|
|
179
195
|
uint256 netYtOut,
|
|
180
196
|
uint256 totalPtToSwap,
|
|
@@ -183,11 +199,9 @@ interface IPActionMarketCoreStatic {
|
|
|
183
199
|
uint256 exchangeRateAfter
|
|
184
200
|
);
|
|
185
201
|
|
|
186
|
-
function swapExactSyForPtStatic(
|
|
187
|
-
address market,
|
|
188
|
-
uint256 exactSyIn
|
|
189
|
-
)
|
|
202
|
+
function swapExactSyForPtStatic(address market, uint256 exactSyIn)
|
|
190
203
|
external
|
|
204
|
+
view
|
|
191
205
|
returns (
|
|
192
206
|
uint256 netPtOut,
|
|
193
207
|
uint256 netSyFee,
|
|
@@ -195,11 +209,9 @@ interface IPActionMarketCoreStatic {
|
|
|
195
209
|
uint256 exchangeRateAfter
|
|
196
210
|
);
|
|
197
211
|
|
|
198
|
-
function swapExactSyForYtStatic(
|
|
199
|
-
address market,
|
|
200
|
-
uint256 exactSyIn
|
|
201
|
-
)
|
|
212
|
+
function swapExactSyForYtStatic(address market, uint256 exactSyIn)
|
|
202
213
|
external
|
|
214
|
+
view
|
|
203
215
|
returns (
|
|
204
216
|
uint256 netYtOut,
|
|
205
217
|
uint256 netSyFee,
|
|
@@ -214,6 +226,7 @@ interface IPActionMarketCoreStatic {
|
|
|
214
226
|
address bulk
|
|
215
227
|
)
|
|
216
228
|
external
|
|
229
|
+
view
|
|
217
230
|
returns (
|
|
218
231
|
uint256 netPtOut,
|
|
219
232
|
uint256 netSyMinted,
|
|
@@ -229,6 +242,7 @@ interface IPActionMarketCoreStatic {
|
|
|
229
242
|
address bulk
|
|
230
243
|
)
|
|
231
244
|
external
|
|
245
|
+
view
|
|
232
246
|
returns (
|
|
233
247
|
uint256 netYtOut,
|
|
234
248
|
uint256 netSyMinted,
|
|
@@ -237,11 +251,9 @@ interface IPActionMarketCoreStatic {
|
|
|
237
251
|
uint256 exchangeRateAfter
|
|
238
252
|
);
|
|
239
253
|
|
|
240
|
-
function swapExactYtForPtStatic(
|
|
241
|
-
address market,
|
|
242
|
-
uint256 exactYtIn
|
|
243
|
-
)
|
|
254
|
+
function swapExactYtForPtStatic(address market, uint256 exactYtIn)
|
|
244
255
|
external
|
|
256
|
+
view
|
|
245
257
|
returns (
|
|
246
258
|
uint256 netPtOut,
|
|
247
259
|
uint256 totalPtSwapped,
|
|
@@ -250,11 +262,9 @@ interface IPActionMarketCoreStatic {
|
|
|
250
262
|
uint256 exchangeRateAfter
|
|
251
263
|
);
|
|
252
264
|
|
|
253
|
-
function swapExactYtForSyStatic(
|
|
254
|
-
address market,
|
|
255
|
-
uint256 exactYtIn
|
|
256
|
-
)
|
|
265
|
+
function swapExactYtForSyStatic(address market, uint256 exactYtIn)
|
|
257
266
|
external
|
|
267
|
+
view
|
|
258
268
|
returns (
|
|
259
269
|
uint256 netSyOut,
|
|
260
270
|
uint256 netSyFee,
|
|
@@ -272,6 +282,7 @@ interface IPActionMarketCoreStatic {
|
|
|
272
282
|
address bulk
|
|
273
283
|
)
|
|
274
284
|
external
|
|
285
|
+
view
|
|
275
286
|
returns (
|
|
276
287
|
uint256 netTokenOut,
|
|
277
288
|
uint256 netSyFee,
|
|
@@ -283,11 +294,9 @@ interface IPActionMarketCoreStatic {
|
|
|
283
294
|
uint256 netPYToRedeemSyOutInt
|
|
284
295
|
);
|
|
285
296
|
|
|
286
|
-
function swapPtForExactSyStatic(
|
|
287
|
-
address market,
|
|
288
|
-
uint256 exactSyOut
|
|
289
|
-
)
|
|
297
|
+
function swapPtForExactSyStatic(address market, uint256 exactSyOut)
|
|
290
298
|
external
|
|
299
|
+
view
|
|
291
300
|
returns (
|
|
292
301
|
uint256 netPtIn,
|
|
293
302
|
uint256 netSyFee,
|
|
@@ -295,11 +304,9 @@ interface IPActionMarketCoreStatic {
|
|
|
295
304
|
uint256 exchangeRateAfter
|
|
296
305
|
);
|
|
297
306
|
|
|
298
|
-
function swapSyForExactPtStatic(
|
|
299
|
-
address market,
|
|
300
|
-
uint256 exactPtOut
|
|
301
|
-
)
|
|
307
|
+
function swapSyForExactPtStatic(address market, uint256 exactPtOut)
|
|
302
308
|
external
|
|
309
|
+
view
|
|
303
310
|
returns (
|
|
304
311
|
uint256 netSyIn,
|
|
305
312
|
uint256 netSyFee,
|
|
@@ -307,11 +314,9 @@ interface IPActionMarketCoreStatic {
|
|
|
307
314
|
uint256 exchangeRateAfter
|
|
308
315
|
);
|
|
309
316
|
|
|
310
|
-
function swapSyForExactYtStatic(
|
|
311
|
-
address market,
|
|
312
|
-
uint256 exactYtOut
|
|
313
|
-
)
|
|
317
|
+
function swapSyForExactYtStatic(address market, uint256 exactYtOut)
|
|
314
318
|
external
|
|
319
|
+
view
|
|
315
320
|
returns (
|
|
316
321
|
uint256 netSyIn,
|
|
317
322
|
uint256 netSyFee,
|
|
@@ -321,11 +326,9 @@ interface IPActionMarketCoreStatic {
|
|
|
321
326
|
uint256 totalSyNeedInt
|
|
322
327
|
);
|
|
323
328
|
|
|
324
|
-
function swapYtForExactSyStatic(
|
|
325
|
-
address market,
|
|
326
|
-
uint256 exactSyOut
|
|
327
|
-
)
|
|
329
|
+
function swapYtForExactSyStatic(address market, uint256 exactSyOut)
|
|
328
330
|
external
|
|
331
|
+
view
|
|
329
332
|
returns (
|
|
330
333
|
uint256 netYtIn,
|
|
331
334
|
uint256 netSyFee,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
1
2
|
pragma solidity ^0.8.17;
|
|
2
3
|
|
|
3
4
|
interface IPActionMintRedeemStatic {
|
|
@@ -13,19 +14,26 @@ interface IPActionMintRedeemStatic {
|
|
|
13
14
|
address SY,
|
|
14
15
|
uint256 netTokenIn,
|
|
15
16
|
uint256 netSyIn
|
|
16
|
-
)
|
|
17
|
+
)
|
|
18
|
+
external
|
|
19
|
+
view
|
|
20
|
+
returns (
|
|
21
|
+
address bulk,
|
|
22
|
+
uint256 totalToken,
|
|
23
|
+
uint256 totalSy
|
|
24
|
+
);
|
|
17
25
|
|
|
18
|
-
function mintPyFromSyStatic(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
function mintPyFromSyStatic(address YT, uint256 netSyToMint)
|
|
27
|
+
external
|
|
28
|
+
view
|
|
29
|
+
returns (uint256 netPYOut);
|
|
22
30
|
|
|
23
31
|
function mintPyFromTokenStatic(
|
|
24
32
|
address YT,
|
|
25
33
|
address tokenIn,
|
|
26
34
|
uint256 netTokenIn,
|
|
27
35
|
address bulk
|
|
28
|
-
) external returns (uint256 netPyOut);
|
|
36
|
+
) external view returns (uint256 netPyOut);
|
|
29
37
|
|
|
30
38
|
function mintSyFromTokenStatic(
|
|
31
39
|
address SY,
|
|
@@ -34,17 +42,17 @@ interface IPActionMintRedeemStatic {
|
|
|
34
42
|
address bulk
|
|
35
43
|
) external view returns (uint256 netSyOut);
|
|
36
44
|
|
|
37
|
-
function redeemPyToSyStatic(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
45
|
+
function redeemPyToSyStatic(address YT, uint256 netPYToRedeem)
|
|
46
|
+
external
|
|
47
|
+
view
|
|
48
|
+
returns (uint256 netSyOut);
|
|
41
49
|
|
|
42
50
|
function redeemPyToTokenStatic(
|
|
43
51
|
address YT,
|
|
44
52
|
uint256 netPYToRedeem,
|
|
45
53
|
address tokenOut,
|
|
46
54
|
address bulk
|
|
47
|
-
) external returns (uint256 netTokenOut);
|
|
55
|
+
) external view returns (uint256 netTokenOut);
|
|
48
56
|
|
|
49
57
|
function redeemSyToTokenStatic(
|
|
50
58
|
address SY,
|
|
@@ -52,4 +60,8 @@ interface IPActionMintRedeemStatic {
|
|
|
52
60
|
uint256 netSyIn,
|
|
53
61
|
address bulk
|
|
54
62
|
) external view returns (uint256 netTokenOut);
|
|
63
|
+
|
|
64
|
+
function pyIndexCurrentViewMarket(address market) external view returns (uint256);
|
|
65
|
+
|
|
66
|
+
function pyIndexCurrentViewYt(address yt) external view returns (uint256);
|
|
55
67
|
}
|
|
@@ -5,4 +5,7 @@ interface IPGauge {
|
|
|
5
5
|
function totalActiveSupply() external view returns (uint256);
|
|
6
6
|
|
|
7
7
|
function activeBalance(address user) external view returns (uint256);
|
|
8
|
+
|
|
9
|
+
// only available for newer factories. please check the verified contracts
|
|
10
|
+
event RedeemRewards(address indexed user, uint256[] rewardsOut);
|
|
8
11
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
1
2
|
pragma solidity ^0.8.17;
|
|
2
3
|
|
|
3
4
|
import "./IPActionMarketAuxStatic.sol";
|
|
@@ -8,6 +9,7 @@ import "./IPActionVePendleStatic.sol";
|
|
|
8
9
|
import "./IPMiniDiamond.sol";
|
|
9
10
|
import "./IPActionStorageStatic.sol";
|
|
10
11
|
|
|
12
|
+
//solhint-disable-next-line no-empty-blocks
|
|
11
13
|
interface IPRouterStatic is
|
|
12
14
|
IPActionMintRedeemStatic,
|
|
13
15
|
IPActionInfoStatic,
|
|
@@ -16,4 +18,6 @@ interface IPRouterStatic is
|
|
|
16
18
|
IPActionVePendleStatic,
|
|
17
19
|
IPMiniDiamond,
|
|
18
20
|
IPActionStorageStatic
|
|
19
|
-
{
|
|
21
|
+
{
|
|
22
|
+
|
|
23
|
+
}
|