@pendle/core-v2 4.2.3 → 4.2.5
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/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/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
- 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/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
- package/build/artifacts/contracts/core/Market/v1/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v1/PendleMarket.sol/PendleMarket.json +2 -2
- package/build/artifacts/contracts/core/Market/v1/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v1/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
- package/build/artifacts/contracts/core/Market/v2/PendleExternalRewardDistributor.sol/PendleExternalRewardDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v2/PendleExternalRewardDistributor.sol/PendleExternalRewardDistributor.json +2 -2
- package/build/artifacts/contracts/core/Market/v2/PendleMarketFactoryV2.sol/PendleMarketFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v2/PendleMarketFactoryV2.sol/PendleMarketFactoryV2.json +2 -2
- package/build/artifacts/contracts/core/Market/v2/PendleMarketV2.sol/PendleMarketV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v2/PendleMarketV2.sol/PendleMarketV2.json +2 -2
- package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.json +2 -2
- package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseUpg.sol/SYBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewardsUpg.sol/SYBaseWithRewardsUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol/PendleAaveV3SY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol/PendleAaveV3SY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ankr/PendleAnkrBNBSY.sol/PendleAnkrBNBSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ankr/PendleAnkrBNBSY.sol/PendleAnkrBNBSY.json +2 -2
- 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/AuraEthxBbAWethSY.sol/AuraEthxBbAWethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraEthxBbAWethSY.sol/AuraEthxBbAWethSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraSwEthBbAWethSYV2.sol/AuraSwEthBbAWethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraSwEthBbAWethSYV2.sol/AuraSwEthBbAWethSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraWethVethSYUpg.sol/AuraWethVethSYUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraWethVethSYUpg.sol/AuraWethVethSYUpg.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.json +2 -2
- 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/PendleAuraWstethAnkreth.sol/PendleAuraWstethAnkreth.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWstethAnkreth.sol/PendleAuraWstethAnkreth.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/PendleAuraBalancerStableLPSYV3Upg.sol/PendleAuraBalancerStableLPSYV3Upg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BedRock/PendleUniETHSY.sol/PendleUniETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BedRock/PendleUniETHSY.sol/PendleUniETHSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
- 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/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/ChainlinkRelayer/PendleChainlinkReceiver.sol/PendleChainlinkReceiver.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/ChainlinkRelayer/PendleChainlinkReceiver.sol/PendleChainlinkReceiver.json +2 -2
- 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/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDESY.sol/PendleSUSDESY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDESY.sol/PendleSUSDESY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleUSDESY.sol/PendleUSDESY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleUSDESY.sol/PendleUSDESY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthSY.sol/PendleWEEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthSY.sol/PendleWEEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Flux/FluxTokenLib.sol/FluxTokenLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Flux/FluxTokenLib.sol/FluxTokenLib.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Flux/PendleFluxLendingSY.sol/PendleFluxLendingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Flux/PendleFluxLendingSY.sol/PendleFluxLendingSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGMV2TokenSY.sol/PendleGMV2TokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGMV2TokenSY.sol/PendleGMV2TokenSY.json +2 -2
- 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 +9 -28
- package/build/artifacts/contracts/core/StandardizedYield/implementations/HMX/PendleHlpSY.sol/PendleHlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/HMX/PendleHlpSY.sol/PendleHlpSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/KelpDAO/PendleRsETHSY.sol/PendleRsETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/KelpDAO/PendleRsETHSY.sol/PendleRsETHSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/PendleKyberElasticSYUpg.sol/PendleKyberElasticSYUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/PendleKyberElasticSYUpg.sol/PendleKyberElasticSYUpg.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MUX/PendleMlpSY.sol/PendleMlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MUX/PendleMlpSY.sol/PendleMlpSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MantleStakedEth/PendleMantleStakedEthSY.sol/PendleMantleStakedEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MantleStakedEth/PendleMantleStakedEthSY.sol/PendleMantleStakedEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MantleStakedEth/PendleOracleForSyProxy.sol/PendleOracleForSyProxy.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MantleStakedEth/PendleOracleForSyProxy.sol/PendleOracleForSyProxy.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBridgedLSDSY.sol/PendleBridgedLSDSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBridgedLSDSY.sol/PendleBridgedLSDSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20SY.sol/PendleERC20SY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20SY.sol/PendleERC20SY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626SY.sol/PendleERC4626SY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626SY.sol/PendleERC4626SY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626UpgSY.sol/PendleERC4626SYUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626UpgSY.sol/PendleERC4626SYUpg.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleEUSDSY.sol/PendleEUSDSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleEUSDSY.sol/PendleEUSDSY.json +2 -2
- 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/PendleL2LRTSY.sol/PendleL2LRTSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleL2LRTSY.sol/PendleL2LRTSY.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 +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol/PendleWbEthSY.json +2 -2
- 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/StandardizedYield/implementations/PirexETH/PendleApxETHSY.sol/PendleApxETHSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PirexETH/PendleApxETHSY.sol/PendleApxETHSY.json +1060 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufStETHSY.sol/PendlePufStETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufStETHSY.sol/PendlePufStETHSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufWETHSY.sol/PendlePufWETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufWETHSY.sol/PendlePufWETHSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Renzo/PendleEzETHL2SY.sol/PendleEzETHL2SY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Renzo/PendleEzETHL2SY.sol/PendleEzETHL2SY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Renzo/PendleEzETHSY.sol/PendleEzETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Renzo/PendleEzETHSY.sol/PendleEzETHSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveSY.sol/PendleSiloWithIncentiveSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveSY.sol/PendleSiloWithIncentiveSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Stader/PendleETHXSY.sol/PendleETHXSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Stader/PendleETHXSY.sol/PendleETHXSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleRswETHSY.sol/PendleRswETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleRswETHSY.sol/PendleRswETHSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol/SwETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol/SwETHSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/PendleThenaSY.sol/PendleThenaSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/PendleThenaSY.sol/PendleThenaSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeEzETHSY.sol/PendleZtakeEzETHSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeEzETHSY.sol/PendleZtakeEzETHSY.json +1105 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeWeETHSY.sol/PendleZtakeWeETHSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeWeETHSY.sol/PendleZtakeWeETHSY.json +1069 -0
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/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/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
- 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/Errors.sol/Errors.json +7 -2
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactoryV3.sol/IPMarketFactoryV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactoryV3.sol/IPMarketFactoryV3.json +34 -0
- package/build/artifacts/contracts/interfaces/IPMarketV3.sol/IPMarketV3.dbg.json +1 -1
- 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/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.json +34 -0
- package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/PirexETH/IPirexETH.sol/IPirexETH.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/PirexETH/IPirexETH.sol/IPirexETH.json +127 -0
- package/build/artifacts/contracts/interfaces/Zircuit/IZircuitZtaking.sol/IZircuitZtaking.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Zircuit/IZircuitZtaking.sol/IZircuitZtaking.json +52 -0
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
- package/build/artifacts/contracts/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/LimitBackendHelper.sol/LimitBackendHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +210 -0
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.json +49 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/PendlePtLpOracle.sol/PendlePtLpOracle.json +367 -0
- 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/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.json +2 -2
- package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/BoringLpGlpOracle.sol/BoringLpGlpOracle.json +2 -2
- package/build/artifacts/contracts/oracles/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/BoringPtUsdChainlinkOracle.sol/BoringPtUsdChainlinkOracle.json +2 -2
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/RouterV2InterfaceForRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterV3.sol/PendleRouterV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterV3.sol/PendleRouterV3.json +2 -2
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.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/PendleSwapBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL1.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL1.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/oneinch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +1 -1
- package/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDESY.sol +1 -1
- package/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol +7 -5
- package/contracts/core/StandardizedYield/implementations/MUX/PendleMlpSY.sol +9 -13
- package/contracts/core/StandardizedYield/implementations/PirexETH/PendleApxETHSY.sol +130 -0
- package/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeEzETHSY.sol +129 -0
- package/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeWeETHSY.sol +111 -0
- package/contracts/core/libraries/Errors.sol +2 -0
- package/contracts/interfaces/IPActionAddRemoveLiqV3.sol +11 -0
- package/contracts/interfaces/IPActionMiscV3.sol +11 -0
- package/contracts/interfaces/IPActionSwapPTV3.sol +11 -0
- package/contracts/interfaces/IPActionSwapYTV3.sol +11 -0
- package/contracts/interfaces/IPAllActionTypeV3.sol +15 -4
- package/contracts/interfaces/IPMarketFactoryV3.sol +7 -0
- package/contracts/interfaces/IPYieldContractFactory.sol +6 -0
- package/contracts/interfaces/IRedstonePriceFeed.sol +2 -0
- package/contracts/interfaces/PirexETH/IPirexETH.sol +27 -0
- package/contracts/interfaces/Zircuit/IZircuitZtaking.sol +8 -0
- package/contracts/offchain-helpers/PendlePoolDeployHelper.sol +111 -0
- package/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol +3 -0
- package/contracts/oracles/PendleLpOracleLib.sol +16 -0
- package/contracts/oracles/{PendlePtOracle.sol → PendlePtLpOracle.sol} +18 -9
- package/contracts/oracles/PendlePtOracleLib.sol +11 -0
- package/deployments/1-core.json +6 -8
- package/deployments/1-markets/AAVE-USDT-SEP2024.json +11 -0
- package/deployments/1-markets/SDAI-26SEP2024-NEW.json +8 -0
- package/deployments/1-markets/ZIRCUIT-EZETH-JUNE2024.json +11 -0
- package/deployments/10-core.json +6 -7
- package/deployments/42161-core.json +6 -7
- package/deployments/42161-markets/AAVE-USDC-JUNE2024-NEW.json +11 -0
- package/deployments/42161-markets/GDAI-SEP2024.json +11 -0
- package/deployments/42161-markets/GLP-SEP2024.json +11 -0
- package/deployments/56-core.json +6 -6
- package/package.json +1 -1
- package/typechain-types/IPMarketFactoryV3.ts +52 -0
- package/typechain-types/IPYieldContractFactory.ts +46 -0
- package/typechain-types/IPirexETH.ts +215 -0
- package/typechain-types/IZircuitZtaking.ts +148 -0
- package/typechain-types/PendleApxETHSY.ts +1326 -0
- package/typechain-types/PendleGlpSY.ts +24 -0
- package/typechain-types/PendlePoolDeployHelper.ts +243 -0
- package/typechain-types/PendlePtLpOracle.ts +510 -0
- package/typechain-types/PendleZtakeEzETHSY.ts +1416 -0
- package/typechain-types/PendleZtakeWeETHSY.ts +1345 -0
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/AuraEthxBbAWethSY__factory.ts +1 -1
- package/typechain-types/factories/AuraSwEthBbAWethSYV2__factory.ts +1 -1
- package/typechain-types/factories/AuraWethVethSYUpg__factory.ts +1 -1
- package/typechain-types/factories/BoringLpGlpOracle__factory.ts +1 -1
- package/typechain-types/factories/BoringPtUsdChainlinkOracle__factory.ts +1 -1
- package/typechain-types/factories/Broadcaster__factory.ts +1 -1
- package/typechain-types/factories/Errors__factory.ts +6 -1
- package/typechain-types/factories/IPMarketFactoryV3__factory.ts +34 -0
- package/typechain-types/factories/IPYieldContractFactory__factory.ts +34 -0
- package/typechain-types/factories/IPirexETH__factory.ts +139 -0
- package/typechain-types/factories/IZircuitZtaking__factory.ts +67 -0
- package/typechain-types/factories/LimitBackendHelper__factory.ts +1 -1
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleAaveV3SY__factory.ts +1 -1
- package/typechain-types/factories/PendleAnkrBNBSY__factory.ts +1 -1
- package/typechain-types/factories/PendleApxETHSY__factory.ts +1115 -0
- package/typechain-types/factories/PendleArbitrumStakedEthSY__factory.ts +1 -1
- 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/PendleAuraWstethAnkreth__factory.ts +1 -1
- package/typechain-types/factories/PendleBridgedLSDSY__factory.ts +1 -1
- package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +1 -1
- package/typechain-types/factories/PendleChainlinkReceiver__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/PendleERC20SY__factory.ts +1 -1
- package/typechain-types/factories/PendleERC4626SYUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleERC4626SY__factory.ts +1 -1
- package/typechain-types/factories/PendleETHXSY__factory.ts +1 -1
- package/typechain-types/factories/PendleEUSDSY__factory.ts +1 -1
- package/typechain-types/factories/PendleExternalRewardDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleEzETHL2SY__factory.ts +1 -1
- package/typechain-types/factories/PendleEzETHSY__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleFluxLendingSY__factory.ts +1 -1
- package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
- package/typechain-types/factories/PendleGMV2TokenSY__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/PendleGlpSY__factory.ts +8 -35
- package/typechain-types/factories/PendleHlpSY__factory.ts +1 -1
- package/typechain-types/factories/PendleKyberElasticSYUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleL2LRTSY__factory.ts +1 -1
- package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
- package/typechain-types/factories/PendleMantleStakedEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactoryV2__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactoryV3__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketV2__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketV3__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +1 -1
- package/typechain-types/factories/PendleMlpSY__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleOracleForSyProxy__factory.ts +1 -1
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +283 -0
- package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendlePtLpOracle__factory.ts +432 -0
- package/typechain-types/factories/PendlePufStETHSY__factory.ts +1 -1
- package/typechain-types/factories/PendlePufWETHSY__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
- package/typechain-types/factories/PendleRedStoneRateOracleAdapter__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/PendleRouterV3__factory.ts +1 -1
- package/typechain-types/factories/PendleRsETHSY__factory.ts +1 -1
- package/typechain-types/factories/PendleRswETHSY__factory.ts +1 -1
- package/typechain-types/factories/PendleSUSDESY__factory.ts +1 -1
- package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleSiloWithIncentiveSY__factory.ts +1 -1
- package/typechain-types/factories/PendleStargateLPSY__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapL1__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapL2__factory.ts +1 -1
- package/typechain-types/factories/PendleThenaSY__factory.ts +1 -1
- package/typechain-types/factories/PendleUSDESY__factory.ts +1 -1
- package/typechain-types/factories/PendleUniETHSY__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleWEEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleWbEthSY__factory.ts +1 -1
- 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/PendleZtakeEzETHSY__factory.ts +1189 -0
- package/typechain-types/factories/PendleZtakeWeETHSY__factory.ts +1138 -0
- package/typechain-types/factories/SAPE__factory.ts +1 -1
- package/typechain-types/factories/SDKErrorsDirectory__factory.ts +48 -1
- package/typechain-types/factories/SimulateHelper__factory.ts +1 -1
- package/typechain-types/factories/SwETHSY__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +63 -9
- package/typechain-types/index.ts +14 -2
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +0 -4
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +0 -247
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
|
|
3
|
+
pragma solidity 0.8.23;
|
|
4
|
+
|
|
5
|
+
import "../../SYBase.sol";
|
|
6
|
+
import "../../../../interfaces/PirexETH/IPirexETH.sol";
|
|
7
|
+
import "../../../../interfaces/IERC4626.sol";
|
|
8
|
+
|
|
9
|
+
contract PendleApxETHSY is SYBase {
|
|
10
|
+
uint256 public constant FEE_DENOMINATOR = 1_000_000;
|
|
11
|
+
|
|
12
|
+
error ApxETHNotEnoughBuffer();
|
|
13
|
+
|
|
14
|
+
address public immutable pirexETH;
|
|
15
|
+
address public immutable pxETH;
|
|
16
|
+
address public immutable apxETH;
|
|
17
|
+
|
|
18
|
+
constructor(
|
|
19
|
+
address _pirexETH
|
|
20
|
+
) SYBase("SY Autocompounding Pirex ETH", "SY-apxETH", IPirexETH(_pirexETH).autoPxEth()) {
|
|
21
|
+
pirexETH = _pirexETH;
|
|
22
|
+
pxETH = IPirexETH(_pirexETH).pxEth();
|
|
23
|
+
apxETH = IPirexETH(_pirexETH).autoPxEth();
|
|
24
|
+
|
|
25
|
+
_safeApproveInf(pxETH, apxETH);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/*///////////////////////////////////////////////////////////////
|
|
29
|
+
DEPOSIT/REDEEM USING BASE TOKENS
|
|
30
|
+
//////////////////////////////////////////////////////////////*/
|
|
31
|
+
|
|
32
|
+
function _deposit(
|
|
33
|
+
address tokenIn,
|
|
34
|
+
uint256 amountDeposited
|
|
35
|
+
) internal override returns (uint256 /*amountSharesOut*/) {
|
|
36
|
+
if (tokenIn == apxETH) {
|
|
37
|
+
return amountDeposited;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
uint256 preBalance = _selfBalance(apxETH);
|
|
41
|
+
if (tokenIn == NATIVE) {
|
|
42
|
+
IPirexETH(pirexETH).deposit{value: amountDeposited}(address(this), true);
|
|
43
|
+
} else {
|
|
44
|
+
IERC4626(apxETH).deposit(amountDeposited, address(this));
|
|
45
|
+
}
|
|
46
|
+
return _selfBalance(apxETH) - preBalance;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function _redeem(
|
|
50
|
+
address receiver,
|
|
51
|
+
address tokenOut,
|
|
52
|
+
uint256 amountSharesToRedeem
|
|
53
|
+
) internal override returns (uint256 amountTokenOut) {
|
|
54
|
+
if (tokenOut == apxETH) {
|
|
55
|
+
amountTokenOut = amountSharesToRedeem;
|
|
56
|
+
} else {
|
|
57
|
+
uint256 amountPxETH = IERC4626(apxETH).redeem(amountSharesToRedeem, address(this), address(this));
|
|
58
|
+
if (tokenOut == pxETH) {
|
|
59
|
+
amountTokenOut = amountPxETH;
|
|
60
|
+
} else {
|
|
61
|
+
(amountTokenOut, ) = IPirexETH(pirexETH).instantRedeemWithPxEth(amountPxETH, address(this));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
_transferOut(tokenOut, receiver, amountTokenOut);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/*///////////////////////////////////////////////////////////////
|
|
68
|
+
EXCHANGE-RATE
|
|
69
|
+
//////////////////////////////////////////////////////////////*/
|
|
70
|
+
|
|
71
|
+
function exchangeRate() public view override returns (uint256) {
|
|
72
|
+
return IERC4626(apxETH).convertToAssets(1 ether);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/*///////////////////////////////////////////////////////////////
|
|
76
|
+
MISC FUNCTIONS FOR METADATA
|
|
77
|
+
//////////////////////////////////////////////////////////////*/
|
|
78
|
+
|
|
79
|
+
function _previewDeposit(
|
|
80
|
+
address tokenIn,
|
|
81
|
+
uint256 amountTokenToDeposit
|
|
82
|
+
) internal view override returns (uint256 /*amountSharesOut*/) {
|
|
83
|
+
if (tokenIn == apxETH) {
|
|
84
|
+
return amountTokenToDeposit;
|
|
85
|
+
} else {
|
|
86
|
+
uint256 fee = IPirexETH(pirexETH).fees(IPirexETH.Fees.Deposit);
|
|
87
|
+
uint256 amountPxETH = amountTokenToDeposit - (amountTokenToDeposit * fee) / FEE_DENOMINATOR;
|
|
88
|
+
return IERC4626(apxETH).previewDeposit(amountPxETH);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function _previewRedeem(
|
|
93
|
+
address tokenOut,
|
|
94
|
+
uint256 amountSharesToRedeem
|
|
95
|
+
) internal view override returns (uint256 /*amountTokenOut*/) {
|
|
96
|
+
if (tokenOut == apxETH) {
|
|
97
|
+
return amountSharesToRedeem;
|
|
98
|
+
} else {
|
|
99
|
+
uint256 amountPxETH = IERC4626(apxETH).previewRedeem(amountSharesToRedeem);
|
|
100
|
+
if (tokenOut == pxETH) {
|
|
101
|
+
return amountPxETH;
|
|
102
|
+
} else {
|
|
103
|
+
uint256 feeRatio = IPirexETH(pirexETH).fees(IPirexETH.Fees.InstantRedemption);
|
|
104
|
+
uint256 postFeeAmount = amountPxETH - (amountPxETH * feeRatio) / FEE_DENOMINATOR;
|
|
105
|
+
if (postFeeAmount > IPirexETH(pirexETH).buffer()) revert ApxETHNotEnoughBuffer();
|
|
106
|
+
return postFeeAmount;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function getTokensIn() public view override returns (address[] memory res) {
|
|
112
|
+
return ArrayLib.create(NATIVE, pxETH, apxETH);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function getTokensOut() public view override returns (address[] memory res) {
|
|
116
|
+
return ArrayLib.create(NATIVE, pxETH, apxETH);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function isValidTokenIn(address token) public view override returns (bool) {
|
|
120
|
+
return token == NATIVE || token == pxETH || token == apxETH;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function isValidTokenOut(address token) public view override returns (bool) {
|
|
124
|
+
return token == NATIVE || token == pxETH || token == apxETH;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function assetInfo() external view returns (AssetType assetType, address assetAddress, uint8 assetDecimals) {
|
|
128
|
+
return (AssetType.TOKEN, pxETH, 18);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity ^0.8.17;
|
|
3
|
+
|
|
4
|
+
import "../../SYBaseUpg.sol";
|
|
5
|
+
import "../../../../interfaces/IPExchangeRateOracle.sol";
|
|
6
|
+
import "../../../../interfaces/Renzo/IRenzoRestakeManager.sol";
|
|
7
|
+
import "../../../../interfaces/Renzo/IRenzoOracle.sol";
|
|
8
|
+
import "../../../../interfaces/Zircuit/IZircuitZtaking.sol";
|
|
9
|
+
|
|
10
|
+
contract PendleZtakeEzETHSY is SYBaseUpg {
|
|
11
|
+
address public immutable zircuitStaking;
|
|
12
|
+
address public immutable ezETH;
|
|
13
|
+
address public immutable restakeManager;
|
|
14
|
+
address public immutable renzoOracle;
|
|
15
|
+
uint256 public immutable referralId;
|
|
16
|
+
address public immutable exchangeRateOracle;
|
|
17
|
+
|
|
18
|
+
event SetNewExchangeRateOracle(address oracle);
|
|
19
|
+
|
|
20
|
+
constructor(
|
|
21
|
+
address _zircuitStaking,
|
|
22
|
+
address _ezETH,
|
|
23
|
+
address _restakeManager,
|
|
24
|
+
uint256 _referralId,
|
|
25
|
+
address _exchangeRateOracle
|
|
26
|
+
) SYBaseUpg(_ezETH) {
|
|
27
|
+
_disableInitializers();
|
|
28
|
+
zircuitStaking = _zircuitStaking;
|
|
29
|
+
ezETH = _ezETH;
|
|
30
|
+
restakeManager = _restakeManager;
|
|
31
|
+
renzoOracle = IRenzoRestakeManager(restakeManager).renzoOracle();
|
|
32
|
+
referralId = _referralId;
|
|
33
|
+
exchangeRateOracle = _exchangeRateOracle;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function initialize() external initializer {
|
|
37
|
+
__SYBaseUpg_init("SY Zircuit Staking ezETH", "SY-zs-ezETH");
|
|
38
|
+
_safeApproveInf(ezETH, zircuitStaking);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/*///////////////////////////////////////////////////////////////
|
|
42
|
+
DEPOSIT/REDEEM USING BASE TOKENS
|
|
43
|
+
//////////////////////////////////////////////////////////////*/
|
|
44
|
+
|
|
45
|
+
function _deposit(
|
|
46
|
+
address tokenIn,
|
|
47
|
+
uint256 amountDeposited
|
|
48
|
+
) internal virtual override returns (uint256 amountSharesOut) {
|
|
49
|
+
if (tokenIn == NATIVE) {
|
|
50
|
+
IRenzoRestakeManager(restakeManager).depositETH{value: amountDeposited}(referralId);
|
|
51
|
+
amountSharesOut = _selfBalance(ezETH);
|
|
52
|
+
} else {
|
|
53
|
+
amountSharesOut = amountDeposited;
|
|
54
|
+
}
|
|
55
|
+
IZircuitZtaking(zircuitStaking).depositFor(ezETH, address(this), amountSharesOut);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function _redeem(
|
|
59
|
+
address receiver,
|
|
60
|
+
address /*tokenOut*/,
|
|
61
|
+
uint256 amountSharesToRedeem
|
|
62
|
+
) internal override returns (uint256 /*amountTokenOut*/) {
|
|
63
|
+
IZircuitZtaking(zircuitStaking).withdraw(ezETH, amountSharesToRedeem);
|
|
64
|
+
_transferOut(ezETH, receiver, amountSharesToRedeem);
|
|
65
|
+
return amountSharesToRedeem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/*///////////////////////////////////////////////////////////////
|
|
69
|
+
EXCHANGE-RATE
|
|
70
|
+
//////////////////////////////////////////////////////////////*/
|
|
71
|
+
|
|
72
|
+
function exchangeRate() public view virtual override returns (uint256) {
|
|
73
|
+
return IPExchangeRateOracle(exchangeRateOracle).getExchangeRate();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/*///////////////////////////////////////////////////////////////
|
|
77
|
+
MISC FUNCTIONS FOR METADATA
|
|
78
|
+
//////////////////////////////////////////////////////////////*/
|
|
79
|
+
|
|
80
|
+
function _previewDeposit(
|
|
81
|
+
address tokenIn,
|
|
82
|
+
uint256 amountTokenToDeposit
|
|
83
|
+
) internal view override returns (uint256 /*amountSharesOut*/) {
|
|
84
|
+
if (tokenIn == ezETH) {
|
|
85
|
+
return amountTokenToDeposit;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
uint256 supply = IERC20(ezETH).totalSupply();
|
|
89
|
+
(, , uint256 tvl) = IRenzoRestakeManager(restakeManager).calculateTVLs();
|
|
90
|
+
|
|
91
|
+
uint256 value;
|
|
92
|
+
if (tokenIn == NATIVE) {
|
|
93
|
+
value = amountTokenToDeposit;
|
|
94
|
+
} else {
|
|
95
|
+
value = IRenzoOracle(renzoOracle).lookupTokenValue(tokenIn, amountTokenToDeposit);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return IRenzoOracle(renzoOracle).calculateMintAmount(tvl, value, supply);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function _previewRedeem(
|
|
102
|
+
address /*tokenOut*/,
|
|
103
|
+
uint256 amountSharesToRedeem
|
|
104
|
+
) internal pure override returns (uint256 /*amountTokenOut*/) {
|
|
105
|
+
return amountSharesToRedeem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function getTokensIn() public view override returns (address[] memory res) {
|
|
109
|
+
return ArrayLib.create(NATIVE, yieldToken);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function getTokensOut() public view override returns (address[] memory res) {
|
|
113
|
+
return ArrayLib.create(yieldToken);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function isValidTokenIn(address token) public view override returns (bool) {
|
|
117
|
+
return token == NATIVE || token == yieldToken;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function isValidTokenOut(address token) public view override returns (bool) {
|
|
121
|
+
return token == yieldToken;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function assetInfo() external pure returns (AssetType assetType, address assetAddress, uint8 assetDecimals) {
|
|
125
|
+
assetType = AssetType.TOKEN;
|
|
126
|
+
assetAddress = NATIVE;
|
|
127
|
+
assetDecimals = 18;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity ^0.8.17;
|
|
3
|
+
|
|
4
|
+
import "../../SYBaseUpg.sol";
|
|
5
|
+
import "../../../../interfaces/EtherFi/IEtherFiWEEth.sol";
|
|
6
|
+
import "../../../../interfaces/Zircuit/IZircuitZtaking.sol";
|
|
7
|
+
import "../../../../interfaces/EtherFi/IEtherFiLiquidityPool.sol";
|
|
8
|
+
|
|
9
|
+
contract PendleZtakeWeETHSY is SYBaseUpg {
|
|
10
|
+
using PMath for int256;
|
|
11
|
+
|
|
12
|
+
address public immutable zircuitStaking;
|
|
13
|
+
address public immutable weETH;
|
|
14
|
+
address public immutable liquidityPool;
|
|
15
|
+
address public immutable eETH;
|
|
16
|
+
address public immutable referee;
|
|
17
|
+
|
|
18
|
+
constructor(address _zircuitStaking, address _weETH, address _referee) SYBaseUpg(_weETH) {
|
|
19
|
+
_disableInitializers();
|
|
20
|
+
|
|
21
|
+
zircuitStaking = _zircuitStaking;
|
|
22
|
+
weETH = _weETH;
|
|
23
|
+
liquidityPool = IEtherFiWEEth(_weETH).liquidityPool();
|
|
24
|
+
eETH = IEtherFiWEEth(_weETH).eETH();
|
|
25
|
+
referee = _referee;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function initialize() external initializer {
|
|
29
|
+
__SYBaseUpg_init("SY Zircuit Ether.fi weETH", "SY-zs-weETH");
|
|
30
|
+
_safeApproveInf(eETH, weETH);
|
|
31
|
+
_safeApproveInf(weETH, zircuitStaking);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/*///////////////////////////////////////////////////////////////
|
|
35
|
+
DEPOSIT/REDEEM USING BASE TOKENS
|
|
36
|
+
//////////////////////////////////////////////////////////////*/
|
|
37
|
+
|
|
38
|
+
function _deposit(address tokenIn, uint256 amountDeposited) internal override returns (uint256 amountSharesOut) {
|
|
39
|
+
if (tokenIn == NATIVE) {
|
|
40
|
+
IEtherFiLiquidityPool(liquidityPool).deposit{value: amountDeposited}(referee);
|
|
41
|
+
}
|
|
42
|
+
if (tokenIn != weETH) {
|
|
43
|
+
amountSharesOut = IEtherFiWEEth(weETH).wrap(_selfBalance(eETH));
|
|
44
|
+
} else {
|
|
45
|
+
amountSharesOut = amountDeposited;
|
|
46
|
+
}
|
|
47
|
+
IZircuitZtaking(zircuitStaking).depositFor(weETH, address(this), amountSharesOut);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function _redeem(
|
|
51
|
+
address receiver,
|
|
52
|
+
address tokenOut,
|
|
53
|
+
uint256 amountSharesToRedeem
|
|
54
|
+
) internal override returns (uint256 amountTokenOut) {
|
|
55
|
+
IZircuitZtaking(zircuitStaking).withdraw(weETH, amountSharesToRedeem);
|
|
56
|
+
if (tokenOut == weETH) {
|
|
57
|
+
amountTokenOut = amountSharesToRedeem;
|
|
58
|
+
} else {
|
|
59
|
+
amountTokenOut = IEtherFiWEEth(weETH).unwrap(amountSharesToRedeem);
|
|
60
|
+
}
|
|
61
|
+
_transferOut(tokenOut, receiver, amountTokenOut);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/*///////////////////////////////////////////////////////////////
|
|
65
|
+
EXCHANGE-RATE
|
|
66
|
+
//////////////////////////////////////////////////////////////*/
|
|
67
|
+
|
|
68
|
+
function exchangeRate() public view override returns (uint256) {
|
|
69
|
+
return IEtherFiLiquidityPool(liquidityPool).amountForShare(1 ether);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/*///////////////////////////////////////////////////////////////
|
|
73
|
+
MISC FUNCTIONS FOR METADATA
|
|
74
|
+
//////////////////////////////////////////////////////////////*/
|
|
75
|
+
|
|
76
|
+
function _previewDeposit(address tokenIn, uint256 amountTokenToDeposit) internal view override returns (uint256) {
|
|
77
|
+
if (tokenIn == weETH) {
|
|
78
|
+
return amountTokenToDeposit;
|
|
79
|
+
} else {
|
|
80
|
+
return IEtherFiLiquidityPool(liquidityPool).sharesForAmount(amountTokenToDeposit);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function _previewRedeem(address tokenOut, uint256 amountSharesToRedeem) internal view override returns (uint256) {
|
|
85
|
+
if (tokenOut == weETH) {
|
|
86
|
+
return amountSharesToRedeem;
|
|
87
|
+
} else {
|
|
88
|
+
return IEtherFiLiquidityPool(liquidityPool).amountForShare(amountSharesToRedeem);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function getTokensIn() public view override returns (address[] memory res) {
|
|
93
|
+
return ArrayLib.create(weETH, eETH, NATIVE);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function getTokensOut() public view override returns (address[] memory res) {
|
|
97
|
+
return ArrayLib.create(weETH, eETH);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function isValidTokenIn(address token) public view override returns (bool) {
|
|
101
|
+
return token == NATIVE || token == eETH || token == weETH;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function isValidTokenOut(address token) public view override returns (bool) {
|
|
105
|
+
return token == eETH || token == weETH;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function assetInfo() external view override returns (AssetType, address, uint8) {
|
|
109
|
+
return (AssetType.TOKEN, eETH, 18);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -4,6 +4,17 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
import "../router/base/MarketApproxLib.sol";
|
|
5
5
|
import "./IPAllActionTypeV3.sol";
|
|
6
6
|
|
|
7
|
+
/*
|
|
8
|
+
*******************************************************************************************************************
|
|
9
|
+
*******************************************************************************************************************
|
|
10
|
+
* NOTICE *
|
|
11
|
+
* Refer to https://docs.pendle.finance/Developers/Contracts/PendleRouter for more information on
|
|
12
|
+
* TokenInput, TokenOutput, ApproxParams, LimitOrderData
|
|
13
|
+
* It's recommended to use Pendle's Hosted SDK to generate the params
|
|
14
|
+
*******************************************************************************************************************
|
|
15
|
+
*******************************************************************************************************************
|
|
16
|
+
*/
|
|
17
|
+
|
|
7
18
|
interface IPActionAddRemoveLiqV3 {
|
|
8
19
|
event AddLiquidityDualSyAndPt(
|
|
9
20
|
address indexed caller,
|
|
@@ -4,6 +4,17 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
import "../router/base/MarketApproxLib.sol";
|
|
5
5
|
import "./IPAllActionTypeV3.sol";
|
|
6
6
|
|
|
7
|
+
/*
|
|
8
|
+
*******************************************************************************************************************
|
|
9
|
+
*******************************************************************************************************************
|
|
10
|
+
* NOTICE *
|
|
11
|
+
* Refer to https://docs.pendle.finance/Developers/Contracts/PendleRouter for more information on
|
|
12
|
+
* TokenInput, TokenOutput, ApproxParams, LimitOrderData
|
|
13
|
+
* It's recommended to use Pendle's Hosted SDK to generate the params
|
|
14
|
+
*******************************************************************************************************************
|
|
15
|
+
*******************************************************************************************************************
|
|
16
|
+
*/
|
|
17
|
+
|
|
7
18
|
interface IPActionMiscV3 {
|
|
8
19
|
struct Call3 {
|
|
9
20
|
bool allowFailure;
|
|
@@ -4,6 +4,17 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
import "../router/base/MarketApproxLib.sol";
|
|
5
5
|
import "./IPAllActionTypeV3.sol";
|
|
6
6
|
|
|
7
|
+
/*
|
|
8
|
+
*******************************************************************************************************************
|
|
9
|
+
*******************************************************************************************************************
|
|
10
|
+
* NOTICE *
|
|
11
|
+
* Refer to https://docs.pendle.finance/Developers/Contracts/PendleRouter for more information on
|
|
12
|
+
* TokenInput, TokenOutput, ApproxParams, LimitOrderData
|
|
13
|
+
* It's recommended to use Pendle's Hosted SDK to generate the params
|
|
14
|
+
*******************************************************************************************************************
|
|
15
|
+
*******************************************************************************************************************
|
|
16
|
+
*/
|
|
17
|
+
|
|
7
18
|
interface IPActionSwapPTV3 {
|
|
8
19
|
event SwapPtAndSy(
|
|
9
20
|
address indexed caller,
|
|
@@ -4,6 +4,17 @@ pragma solidity ^0.8.0;
|
|
|
4
4
|
import "../router/base/MarketApproxLib.sol";
|
|
5
5
|
import "./IPAllActionTypeV3.sol";
|
|
6
6
|
|
|
7
|
+
/*
|
|
8
|
+
*******************************************************************************************************************
|
|
9
|
+
*******************************************************************************************************************
|
|
10
|
+
* NOTICE *
|
|
11
|
+
* Refer to https://docs.pendle.finance/Developers/Contracts/PendleRouter for more information on
|
|
12
|
+
* TokenInput, TokenOutput, ApproxParams, LimitOrderData
|
|
13
|
+
* It's recommended to use Pendle's Hosted SDK to generate the params
|
|
14
|
+
*******************************************************************************************************************
|
|
15
|
+
*******************************************************************************************************************
|
|
16
|
+
*/
|
|
17
|
+
|
|
7
18
|
interface IPActionSwapYTV3 {
|
|
8
19
|
event SwapYtAndSy(
|
|
9
20
|
address indexed caller,
|
|
@@ -5,22 +5,33 @@ pragma solidity ^0.8.0;
|
|
|
5
5
|
import "../router/swap-aggregator/IPSwapAggregator.sol";
|
|
6
6
|
import "./IPLimitRouter.sol";
|
|
7
7
|
|
|
8
|
+
/*
|
|
9
|
+
*******************************************************************************************************************
|
|
10
|
+
*******************************************************************************************************************
|
|
11
|
+
* NOTICE *
|
|
12
|
+
* Refer to https://docs.pendle.finance/Developers/Contracts/PendleRouter for more information on
|
|
13
|
+
* TokenInput, TokenOutput, ApproxParams, LimitOrderData
|
|
14
|
+
* It's recommended to use Pendle's Hosted SDK to generate the params
|
|
15
|
+
*******************************************************************************************************************
|
|
16
|
+
*******************************************************************************************************************
|
|
17
|
+
*/
|
|
18
|
+
|
|
8
19
|
struct TokenInput {
|
|
9
|
-
//
|
|
20
|
+
// TOKEN DATA
|
|
10
21
|
address tokenIn;
|
|
11
22
|
uint256 netTokenIn;
|
|
12
23
|
address tokenMintSy;
|
|
13
|
-
//
|
|
24
|
+
// AGGREGATOR DATA
|
|
14
25
|
address pendleSwap;
|
|
15
26
|
SwapData swapData;
|
|
16
27
|
}
|
|
17
28
|
|
|
18
29
|
struct TokenOutput {
|
|
19
|
-
//
|
|
30
|
+
// TOKEN DATA
|
|
20
31
|
address tokenOut;
|
|
21
32
|
uint256 minTokenOut;
|
|
22
33
|
address tokenRedeemSy;
|
|
23
|
-
//
|
|
34
|
+
// AGGREGATOR DATA
|
|
24
35
|
address pendleSwap;
|
|
25
36
|
SwapData swapData;
|
|
26
37
|
}
|
|
@@ -21,4 +21,11 @@ interface IPMarketFactoryV3 {
|
|
|
21
21
|
address market,
|
|
22
22
|
address router
|
|
23
23
|
) external view returns (address treasury, uint80 overriddenFee, uint8 reserveFeePercent);
|
|
24
|
+
|
|
25
|
+
function createNewMarket(
|
|
26
|
+
address PT,
|
|
27
|
+
int256 scalarRoot,
|
|
28
|
+
int256 initialAnchor,
|
|
29
|
+
uint80 lnFeeRateRoot
|
|
30
|
+
) external returns (address market);
|
|
24
31
|
}
|
|
@@ -49,4 +49,10 @@ interface IPYieldContractFactory {
|
|
|
49
49
|
function isPT(address) external view returns (bool);
|
|
50
50
|
|
|
51
51
|
function isYT(address) external view returns (bool);
|
|
52
|
+
|
|
53
|
+
function createYieldContract(
|
|
54
|
+
address SY,
|
|
55
|
+
uint32 expiry,
|
|
56
|
+
bool doCacheIndexSameBlock
|
|
57
|
+
) external returns (address PT, address YT);
|
|
52
58
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
pragma solidity ^0.8.0;
|
|
2
|
+
|
|
3
|
+
interface IPirexETH {
|
|
4
|
+
enum Fees {
|
|
5
|
+
Deposit,
|
|
6
|
+
Redemption,
|
|
7
|
+
InstantRedemption
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function deposit(
|
|
11
|
+
address receiver,
|
|
12
|
+
bool shouldCompound
|
|
13
|
+
) external payable returns (uint256 postFeeAmount, uint256 feeAmount);
|
|
14
|
+
|
|
15
|
+
function instantRedeemWithPxEth(
|
|
16
|
+
uint256 _assets,
|
|
17
|
+
address _receiver
|
|
18
|
+
) external returns (uint256 postFeeAmount, uint256 feeAmount);
|
|
19
|
+
|
|
20
|
+
function fees(Fees _feeType) external view returns (uint256);
|
|
21
|
+
|
|
22
|
+
function pxEth() external view returns (address);
|
|
23
|
+
|
|
24
|
+
function autoPxEth() external view returns (address);
|
|
25
|
+
|
|
26
|
+
function buffer() external view returns (uint256);
|
|
27
|
+
}
|