@pendle/core-v2 3.0.0 → 4.0.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/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/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/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.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/PendleExternalRewardDistributor.sol/PendleExternalRewardDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleExternalRewardDistributor.sol/PendleExternalRewardDistributor.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -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/Market/v2/PendleGaugeV2.sol/PendleGaugeV2.dbg.json +1 -1
- 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/RewardManager/PendleLinearDistributor.sol/PendleLinearDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/PendleLinearDistributor.sol/PendleLinearDistributor.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/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/SYUtils.sol/SYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol/PendleAaveV3SY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol/PendleAaveV3SY.json +1057 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/libraries/AaveAdapterLib.sol/AaveAdapterLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/libraries/AaveAdapterLib.sol/AaveAdapterLib.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/libraries/WadRayMath.sol/WadRayMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/libraries/WadRayMath.sol/WadRayMath.json +10 -0
- 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/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreviewProxy.sol/ComposableStablePreviewProxy.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreviewV4.sol/ComposableStablePreviewV4.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreviewV5.sol/ComposableStablePreviewV5.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +1 -1
- 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/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/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.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/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/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.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/ChainlinkRelayer/PendleChainlinkRelayer.sol/PendleChainlinkRelayer.dbg.json +1 -1
- 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/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
- 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/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- 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/GLPPreviewHelper.sol/GLPPreviewHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GMTokenPricingHelper.sol/GMTokenPricingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GMTokenPricingHelper.sol/IGMXV2DataStore.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GMTokenPricingHelper.sol/IGMXV2Oracle.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GMTokenPricingHelper.sol/IGMXV2Reader.dbg.json +1 -1
- 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 +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/HMX/HLPPricingHelper.sol/HLPPricingHelper.dbg.json +1 -1
- 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/Kyber/KyberMathHelper.sol/KyberMathHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/KyberNftManagerBaseUpg.sol/KyberNftManagerBaseUpg.dbg.json +1 -1
- 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/Kyber/libraries/FullMath.sol/FullMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/LiqDeltaMath.sol/LiqDeltaMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/LiquidityMath.sol/LiquidityMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/MathConstants.sol/MathConstants.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/QtyDeltaMath.sol/QtyDeltaMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/QuadMath.sol/QuadMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/ReinvestmentMath.sol/ReinvestmentMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/SafeCast.sol/SafeCast.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/SwapMath.sol/SwapMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/TickMath.sol/TickMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MUX/MlpPricingHelper.sol/MlpPricingHelper.dbg.json +1 -1
- 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/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/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/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/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/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/Thena/ThenaLpHelper.sol/ThenaLpHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaMath.sol/ThenaMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/IThenaSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/ThenaPreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/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/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20PermitUpg.sol/PendleERC20PermitUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20Upg.sol/PendleERC20Upg.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +18 -50
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/AaveV3/IAaveV3AToken.sol/IAaveV3AToken.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/AaveV3/IAaveV3AToken.sol/IAaveV3AToken.json +99 -0
- package/build/artifacts/contracts/interfaces/AaveV3/IAaveV3Pool.sol/IAaveV3Pool.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/AaveV3/IAaveV3Pool.sol/IAaveV3Pool.json +87 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IERC4626LinearPool.sol/IERC4626LinearPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IPComposableStablePreview.sol/IPComposableStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTFactory.sol/ICamelotNFTFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTHandler.sol/ICamelotNFTHandler.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotRouter.sol/ICamelotRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/IXGrail.sol/IXGrail.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ITriCrvPool.sol/ITriCrvPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Flux/IFluxErc20.sol/IFluxErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Flux/IFluxInterestRateModel.sol/IFluxInterestRateModel.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGMXPriceHelper.sol/IGMXPriceHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/HMX/IHLPStaking.sol/IHLPStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/HMX/IHMXCalculator.sol/IHMXCalculator.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/HMX/IHMXCompounder.sol/IHMXCompounder.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/HMX/IHMXStaking.sol/IHMXStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/HMX/IHMXVester.sol/IHMXVester.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IDailLikePermit.sol/IDaiLikePermit.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IDailLikePermit.sol/IDaiLikePermit.json +59 -0
- package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.json +2614 -0
- package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.json +68 -0
- package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPActionMintRedeem.sol/IPActionMintRedeem.json → IPActionMiscV3.sol/IPActionMiscV3.json} +269 -22
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.json +1185 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.json +1364 -0
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +6215 -0
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +4 -0
- package/build/artifacts/contracts/{router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json → interfaces/IPLimitRouter.sol/IPLimitOrderType.json} +2 -2
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.json +541 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.json +45 -0
- package/build/artifacts/contracts/interfaces/IPLinearDistributor.sol/IPLinearDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactoryV2.sol/IPMarketFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactoryV3.sol/IPMarketFactoryV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketV3.sol/IPMarketV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPtOracle.sol/IPPtOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.json +0 -25
- 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/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPendlePreviewHelper.sol/IPendlePreviewHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateLP.sol/IStargateLP.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Kyber/IKyberElasticFactory.sol/IKyberElasticFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Kyber/IKyberElasticPool.sol/IKyberElasticPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Kyber/IKyberElasticRouter.sol/IKyberElasticRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Kyber/IKyberLiquidityMining.sol/IKyberLiquidityMining.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Kyber/IKyberMathHelper.sol/IKyberMathHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Kyber/IKyberPositionManager.sol/IKyberPositionManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Lybra/IEUSD.sol/IEUSD.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/MUX/IMUXRewardRouter.sol/IMUXRewardRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Silo/ISilo.sol/ISilo.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Silo/ISiloIncentiveController.sol/ISiloIncentiveController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Silo/ISiloLens.sol/ISiloLens.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Stader/IStaderStakeManager.sol/IStaderStakeManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Thena/IThenaFactory.sol/IThenaFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Thena/IThenaGaugeV2.sol/IThenaGaugeV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Thena/IThenaPair.sol/IThenaPair.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +4 -0
- package/build/artifacts/contracts/{core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json → limit/LimitMathCore.sol/LimitMathCore.json} +4 -4
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +4 -0
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.json +833 -0
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +4 -0
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +860 -0
- package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +4 -0
- package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.json +99 -0
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
- 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/BytesLib.sol/BytesLib.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.json +10 -0
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.json +174 -0
- 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/Multicall2.sol/Multicall2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.json +84 -0
- package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.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/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 +1 -1
- package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.json +2 -2
- 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/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2810 -0
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +116 -0
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +1016 -0
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +1323 -0
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +1518 -0
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +3 -33
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/RouterV2InterfaceForRouterHelper.dbg.json +4 -0
- package/build/artifacts/contracts/{interfaces/IPActionSwapPT.sol/IPActionSwapPT.json → router/PendleRouterHelper.sol/RouterV2InterfaceForRouterHelper.json} +163 -226
- package/build/artifacts/contracts/router/PendleRouterV3.sol/PendleRouterV3.dbg.json +4 -0
- package/build/artifacts/contracts/router/PendleRouterV3.sol/PendleRouterV3.json +179 -0
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +4 -0
- package/build/artifacts/contracts/{offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.json → router/base/ActionBase.sol/ActionBase.json} +2 -2
- 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/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/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutorOptimistic.sol/IAggregationExecutorOptimistic.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/BytesHelper.sol/BytesHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol/CalldataReader.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol/Common.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol/ExecutorReader.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/oneinch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/oneinch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +1 -1
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +11 -7
- package/contracts/core/StandardizedYield/SYBase.sol +1 -0
- package/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol +94 -0
- package/contracts/core/StandardizedYield/implementations/AaveV3/libraries/AaveAdapterLib.sol +19 -0
- package/contracts/core/StandardizedYield/implementations/AaveV3/libraries/WadRayMath.sol +126 -0
- package/contracts/core/libraries/Errors.sol +2 -3
- package/contracts/core/libraries/TokenHelper.sol +2 -0
- package/contracts/interfaces/AaveV3/IAaveV3AToken.sol +15 -0
- package/contracts/interfaces/AaveV3/IAaveV3Pool.sol +11 -0
- package/contracts/interfaces/IDailLikePermit.sol +17 -0
- package/contracts/interfaces/{IPActionAddRemoveLiq.sol → IPActionAddRemoveLiqV3.sol} +52 -40
- package/contracts/interfaces/IPActionCallbackV3.sol +7 -0
- package/contracts/interfaces/{IPActionMintRedeem.sol → IPActionMiscV3.sol} +38 -6
- package/contracts/interfaces/IPActionStorageStatic.sol +1 -1
- package/contracts/interfaces/{IPActionSwapPT.sol → IPActionSwapPTV3.sol} +21 -31
- package/contracts/interfaces/{IPActionSwapYT.sol → IPActionSwapYTV3.sol} +25 -35
- package/contracts/interfaces/IPAllActionTypeV3.sol +34 -0
- package/contracts/interfaces/IPAllActionV3.sol +19 -0
- package/contracts/interfaces/IPBulkSeller.sol +7 -1
- package/contracts/interfaces/IPLimitRouter.sol +118 -0
- package/contracts/interfaces/IPRouterHelper.sol +6 -8
- package/contracts/limit/LimitMathCore.sol +158 -0
- package/contracts/limit/LimitRouterBase.sol +440 -0
- package/contracts/limit/PendleLimitRouter.sol +65 -0
- package/contracts/limit/helpers/NonceManager.sol +30 -0
- package/contracts/offchain-helpers/BytesLib.sol +551 -0
- package/contracts/offchain-helpers/LimitBackendHelper.sol +109 -0
- package/contracts/offchain-helpers/SimulateHelper.sol +40 -0
- package/contracts/oracles/PendlePtOracle.sol +3 -2
- package/contracts/router/ActionAddRemoveLiqV3.sol +504 -0
- package/contracts/router/ActionCallbackV3.sol +141 -0
- package/contracts/router/ActionMiscV3.sol +164 -0
- package/contracts/router/ActionSwapPTV3.sol +87 -0
- package/contracts/router/ActionSwapYTV3.sol +240 -0
- package/contracts/router/PendleRouterHelper.sol +56 -14
- package/contracts/router/PendleRouterV3.sol +235 -0
- package/contracts/router/base/ActionBase.sol +289 -0
- package/contracts/router/base/CallbackHelper.sol +20 -81
- package/contracts/router/base/MarketApproxLib.sol +124 -99
- package/deployments/1-core.json +5 -3
- package/deployments/10-core.json +5 -3
- package/deployments/42161-core.json +6 -3
- package/deployments/42161-markets/AAVE-USDC-JUNE2024.json +11 -0
- package/deployments/42161-markets/WSTETH-ARBITRUM-MARCH2024.json +11 -0
- package/deployments/42161-markets/WSTETHSILO-ETH-MARCH2024.json +11 -0
- package/deployments/56-core.json +5 -3
- package/deployments/merkle-distribution/2023-11-30.json +7730 -0
- package/package.json +5 -5
- package/typechain-types/ActionAddRemoveLiqV3.ts +10 -7
- package/typechain-types/ActionCallbackV3.ts +164 -0
- package/typechain-types/ActionMarketCoreStatic.ts +18 -63
- package/typechain-types/ActionMintRedeemStatic.ts +10 -102
- package/typechain-types/ActionMiscV3.ts +36 -75
- package/typechain-types/ActionStorageStatic.ts +0 -55
- package/typechain-types/ActionSwapPTV3.ts +8 -5
- package/typechain-types/ActionSwapYTV3.ts +8 -49
- package/typechain-types/IAaveV3AToken.ts +204 -0
- package/typechain-types/IAaveV3Pool.ts +192 -0
- package/typechain-types/IPActionAddRemoveLiqV3.ts +10 -7
- package/typechain-types/IPActionCallbackV3.ts +164 -0
- package/typechain-types/IPActionMiscV3.ts +36 -75
- package/typechain-types/IPActionSwapPTV3.ts +8 -5
- package/typechain-types/IPActionSwapYTV3.ts +8 -5
- package/typechain-types/IPAllActionV3.ts +103 -90
- package/typechain-types/IPLimitRouter.ts +65 -87
- package/typechain-types/IPLimitRouterCallback.ts +120 -0
- package/typechain-types/IPRouterHelper.ts +6 -19
- package/typechain-types/LimitBackendHelper.ts +287 -0
- package/typechain-types/LimitRouterBase.ts +964 -0
- package/typechain-types/PendleAaveV3SY.ts +1310 -0
- package/typechain-types/PendleLimitRouter.ts +210 -116
- package/typechain-types/PendleOrderMixin.ts +292 -92
- package/typechain-types/PendleRouterHelper.ts +7 -23
- package/typechain-types/SimulateHelper.ts +42 -35
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +43 -13
- package/typechain-types/factories/ActionCallbackV3__factory.ts +169 -0
- 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 -46
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -102
- package/typechain-types/factories/ActionMiscV3__factory.ts +35 -59
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -27
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +29 -9
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +29 -64
- 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/Broadcaster__factory.ts +1 -1
- package/typechain-types/factories/CamelotRewardHelper__factory.ts +1 -1
- package/typechain-types/factories/CamelotV1VolatilePreview__factory.ts +1 -1
- package/typechain-types/factories/Errors__factory.ts +17 -49
- package/typechain-types/factories/IAaveV3AToken__factory.ts +111 -0
- package/typechain-types/factories/IAaveV3Pool__factory.ts +99 -0
- package/typechain-types/factories/IPActionAddRemoveLiqV3__factory.ts +42 -12
- package/typechain-types/factories/IPActionCallbackV3__factory.ts +83 -0
- package/typechain-types/factories/IPActionMiscV3__factory.ts +18 -42
- package/typechain-types/factories/IPActionSwapPTV3__factory.ts +28 -8
- package/typechain-types/factories/IPActionSwapYTV3__factory.ts +28 -8
- package/typechain-types/factories/IPAllActionV3__factory.ts +150 -70
- package/typechain-types/factories/IPLimitRouterCallback__factory.ts +64 -0
- package/typechain-types/factories/IPLimitRouter__factory.ts +37 -145
- package/typechain-types/factories/IPRouterHelper__factory.ts +0 -25
- package/typechain-types/factories/LimitBackendHelper__factory.ts +232 -0
- package/typechain-types/factories/LimitRouterBase__factory.ts +848 -0
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleAaveV3SY__factory.ts +1130 -0
- package/typechain-types/factories/PendleAnkrBNBSY__factory.ts +1 -1
- 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/PendleAuraWethVethSY__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/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/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 +1 -1
- package/typechain-types/factories/PendleHlpSY__factory.ts +1 -1
- package/typechain-types/factories/PendleKyberElasticSYUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleLimitRouter__factory.ts +139 -155
- package/typechain-types/factories/PendleLinearDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
- package/typechain-types/factories/PendleLpGlpOracle__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/PendleMerkleDistributor__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/PendleOrderMixin__factory.ts +254 -129
- package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__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/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterHelper__factory.ts +2 -32
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterV3__factory.ts +10 -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/PendleSwap__factory.ts +1 -1
- package/typechain-types/factories/PendleThenaSY__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__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/PtAndLpToAsset__factory.ts +1 -1
- package/typechain-types/factories/SAPE__factory.ts +1 -1
- package/typechain-types/factories/SimulateHelper__factory.ts +71 -18
- 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 +64 -316
- package/typechain-types/index.ts +24 -70
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +0 -4
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +0 -642
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +0 -4
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +0 -521
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +0 -1427
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.json +0 -79
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +0 -708
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +0 -3503
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +0 -125
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +0 -30
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +0 -307
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +0 -409
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +0 -1397
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +0 -348
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +0 -228
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +0 -93
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +0 -1623
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +0 -753
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +0 -79
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +0 -720
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +0 -976
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +0 -4
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +0 -190
- package/build/artifacts/contracts/router/PendleRouterHelper2.sol/PendleRouterHelper2.dbg.json +0 -4
- package/build/artifacts/contracts/router/PendleRouterHelper2.sol/PendleRouterHelper2.json +0 -145
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +0 -4
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.json +0 -141
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +0 -4
- package/contracts/core/BulkSeller/BulkSeller.sol +0 -215
- package/contracts/core/BulkSeller/BulkSellerFactory.sol +0 -71
- package/contracts/core/BulkSeller/BulkSellerMathCore.sol +0 -126
- package/contracts/interfaces/IPActionMisc.sol +0 -23
- package/contracts/interfaces/IPAllAction.sol +0 -21
- package/contracts/limit/Mock.sol +0 -429
- package/contracts/offchain-helpers/BulkSellerOffchain.sol +0 -57
- package/contracts/offchain-helpers/router-static/PendleRouterStatic.sol +0 -19
- package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +0 -111
- package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +0 -182
- package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +0 -682
- package/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol +0 -171
- package/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol +0 -72
- package/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol +0 -55
- package/contracts/offchain-helpers/router-static/base/StorageLayout.sol +0 -21
- package/contracts/router/ActionAddRemoveLiq.sol +0 -525
- package/contracts/router/ActionMintRedeem.sol +0 -134
- package/contracts/router/ActionMisc.sol +0 -51
- package/contracts/router/ActionSwapPT.sol +0 -197
- package/contracts/router/ActionSwapYT.sol +0 -323
- package/contracts/router/PendleRouter.sol +0 -242
- package/contracts/router/PendleRouterHelper2.sol +0 -41
- package/contracts/router/base/ActionBaseCallback.sol +0 -152
- package/contracts/router/base/ActionBaseMintRedeem.sol +0 -182
|
@@ -11,23 +11,23 @@ struct ApproxParams {
|
|
|
11
11
|
uint256 maxIteration; // every iteration, the diff between guessMin and guessMax will be divided by 2
|
|
12
12
|
uint256 eps; // the max eps between the returned result & the correct result, base 1e18. Normally this number will be set
|
|
13
13
|
// to 1e15 (1e18/1000 = 0.1%)
|
|
14
|
-
|
|
15
|
-
/// Further explanation of the eps. Take swapExactSyForPt for example. To calc the corresponding amount of Pt to swap out,
|
|
16
|
-
/// it's necessary to run an approximation algorithm, because by default there only exists the Pt to Sy formula
|
|
17
|
-
/// To approx, the 5 values above will have to be provided, and the approx process will run as follows:
|
|
18
|
-
/// mid = (guessMin + guessMax) / 2 // mid here is the current guess of the amount of Pt out
|
|
19
|
-
/// netSyNeed = calcSwapSyForExactPt(mid)
|
|
20
|
-
/// if (netSyNeed > exactSyIn) guessMax = mid - 1 // since the maximum Sy in can't exceed the exactSyIn
|
|
21
|
-
/// else guessMin = mid (1)
|
|
22
|
-
/// For the (1), since netSyNeed <= exactSyIn, the result might be usable. If the netSyNeed is within eps of
|
|
23
|
-
/// exactSyIn (ex eps=0.1% => we have used 99.9% the amount of Sy specified), mid will be chosen as the final guess result
|
|
24
|
-
|
|
25
|
-
/// for guessOffchain, this is to provide a shortcut to guessing. The offchain SDK can precalculate the exact result
|
|
26
|
-
/// before the tx is sent. When the tx reaches the contract, the guessOffchain will be checked first, and if it satisfies the
|
|
27
|
-
/// approximation, it will be used (and save all the guessing). It's expected that this shortcut will be used in most cases
|
|
28
|
-
/// except in cases that there is a trade in the same market right before the tx
|
|
29
14
|
}
|
|
30
15
|
|
|
16
|
+
/// Further explanation of the eps. Take swapExactSyForPt for example. To calc the corresponding amount of Pt to swap out,
|
|
17
|
+
/// it's necessary to run an approximation algorithm, because by default there only exists the Pt to Sy formula
|
|
18
|
+
/// To approx, the 5 values above will have to be provided, and the approx process will run as follows:
|
|
19
|
+
/// mid = (guessMin + guessMax) / 2 // mid here is the current guess of the amount of Pt out
|
|
20
|
+
/// netSyNeed = calcSwapSyForExactPt(mid)
|
|
21
|
+
/// if (netSyNeed > exactSyIn) guessMax = mid - 1 // since the maximum Sy in can't exceed the exactSyIn
|
|
22
|
+
/// else guessMin = mid (1)
|
|
23
|
+
/// For the (1), since netSyNeed <= exactSyIn, the result might be usable. If the netSyNeed is within eps of
|
|
24
|
+
/// exactSyIn (ex eps=0.1% => we have used 99.9% the amount of Sy specified), mid will be chosen as the final guess result
|
|
25
|
+
|
|
26
|
+
/// for guessOffchain, this is to provide a shortcut to guessing. The offchain SDK can precalculate the exact result
|
|
27
|
+
/// before the tx is sent. When the tx reaches the contract, the guessOffchain will be checked first, and if it satisfies the
|
|
28
|
+
/// approximation, it will be used (and save all the guessing). It's expected that this shortcut will be used in most cases
|
|
29
|
+
/// except in cases that there is a trade in the same market right before the tx
|
|
30
|
+
|
|
31
31
|
library MarketApproxPtInLib {
|
|
32
32
|
using MarketMathCore for MarketState;
|
|
33
33
|
using PYIndexLib for PYIndex;
|
|
@@ -37,10 +37,10 @@ library MarketApproxPtInLib {
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* @dev algorithm:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
* - Bin search the amount of PT to swap in
|
|
41
|
+
* - Try swapping & get netSyOut
|
|
42
|
+
* - Stop when netSyOut greater & approx minSyOut
|
|
43
|
+
* - guess & approx is for netPtIn
|
|
44
44
|
*/
|
|
45
45
|
function approxSwapPtForExactSy(
|
|
46
46
|
MarketState memory market,
|
|
@@ -48,7 +48,7 @@ library MarketApproxPtInLib {
|
|
|
48
48
|
uint256 minSyOut,
|
|
49
49
|
uint256 blockTime,
|
|
50
50
|
ApproxParams memory approx
|
|
51
|
-
) internal pure returns (uint256 /*netPtIn
|
|
51
|
+
) internal pure returns (uint256, /*netPtIn*/ uint256, /*netSyOut*/ uint256 /*netSyFee*/) {
|
|
52
52
|
MarketPreCompute memory comp = market.getMarketPreCompute(index, blockTime);
|
|
53
53
|
if (approx.guessOffchain == 0) {
|
|
54
54
|
// no limit on min
|
|
@@ -61,7 +61,9 @@ library MarketApproxPtInLib {
|
|
|
61
61
|
(uint256 netSyOut, uint256 netSyFee, ) = calcSyOut(market, comp, index, guess);
|
|
62
62
|
|
|
63
63
|
if (netSyOut >= minSyOut) {
|
|
64
|
-
if (PMath.isAGreaterApproxB(netSyOut, minSyOut, approx.eps))
|
|
64
|
+
if (PMath.isAGreaterApproxB(netSyOut, minSyOut, approx.eps)) {
|
|
65
|
+
return (guess, netSyOut, netSyFee);
|
|
66
|
+
}
|
|
65
67
|
approx.guessMax = guess;
|
|
66
68
|
} else {
|
|
67
69
|
approx.guessMin = guess;
|
|
@@ -72,12 +74,12 @@ library MarketApproxPtInLib {
|
|
|
72
74
|
|
|
73
75
|
/**
|
|
74
76
|
* @dev algorithm:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
* - Bin search the amount of PT to swap in
|
|
78
|
+
* - Flashswap the corresponding amount of SY out
|
|
79
|
+
* - Pair those amount with exactSyIn SY to tokenize into PT & YT
|
|
80
|
+
* - PT to repay the flashswap, YT transferred to user
|
|
81
|
+
* - Stop when the amount of SY to be pulled to tokenize PT to repay loan approx the exactSyIn
|
|
82
|
+
* - guess & approx is for netYtOut (also netPtIn)
|
|
81
83
|
*/
|
|
82
84
|
function approxSwapExactSyForYt(
|
|
83
85
|
MarketState memory market,
|
|
@@ -85,7 +87,7 @@ library MarketApproxPtInLib {
|
|
|
85
87
|
uint256 exactSyIn,
|
|
86
88
|
uint256 blockTime,
|
|
87
89
|
ApproxParams memory approx
|
|
88
|
-
) internal pure returns (uint256 /*netYtOut
|
|
90
|
+
) internal pure returns (uint256, /*netYtOut*/ uint256 /*netSyFee*/) {
|
|
89
91
|
MarketPreCompute memory comp = market.getMarketPreCompute(index, blockTime);
|
|
90
92
|
if (approx.guessOffchain == 0) {
|
|
91
93
|
approx.guessMin = PMath.max(approx.guessMin, index.syToAsset(exactSyIn));
|
|
@@ -106,7 +108,9 @@ library MarketApproxPtInLib {
|
|
|
106
108
|
uint256 netSyToPull = netSyToTokenizePt - netSyOut;
|
|
107
109
|
|
|
108
110
|
if (netSyToPull <= exactSyIn) {
|
|
109
|
-
if (PMath.isASmallerApproxB(netSyToPull, exactSyIn, approx.eps))
|
|
111
|
+
if (PMath.isASmallerApproxB(netSyToPull, exactSyIn, approx.eps)) {
|
|
112
|
+
return (guess, netSyFee);
|
|
113
|
+
}
|
|
110
114
|
approx.guessMin = guess;
|
|
111
115
|
} else {
|
|
112
116
|
approx.guessMax = guess - 1;
|
|
@@ -115,42 +119,56 @@ library MarketApproxPtInLib {
|
|
|
115
119
|
revert Errors.ApproxFail();
|
|
116
120
|
}
|
|
117
121
|
|
|
122
|
+
struct Args5 {
|
|
123
|
+
MarketState market;
|
|
124
|
+
PYIndex index;
|
|
125
|
+
uint256 totalPtIn;
|
|
126
|
+
uint256 netSyHolding;
|
|
127
|
+
uint256 blockTime;
|
|
128
|
+
ApproxParams approx;
|
|
129
|
+
}
|
|
130
|
+
|
|
118
131
|
/**
|
|
119
132
|
* @dev algorithm:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
133
|
+
* - Bin search the amount of PT to swap to SY
|
|
134
|
+
* - Swap PT to SY
|
|
135
|
+
* - Pair the remaining PT with the SY to add liquidity
|
|
136
|
+
* - Stop when the ratio of PT / totalPt & SY / totalSy is approx
|
|
137
|
+
* - guess & approx is for netPtSwap
|
|
125
138
|
*/
|
|
126
139
|
function approxSwapPtToAddLiquidity(
|
|
127
|
-
MarketState memory
|
|
128
|
-
PYIndex
|
|
129
|
-
uint256
|
|
130
|
-
uint256
|
|
140
|
+
MarketState memory _market,
|
|
141
|
+
PYIndex _index,
|
|
142
|
+
uint256 _totalPtIn,
|
|
143
|
+
uint256 _netSyHolding,
|
|
144
|
+
uint256 _blockTime,
|
|
131
145
|
ApproxParams memory approx
|
|
132
|
-
) internal pure returns (uint256 /*netPtSwap
|
|
133
|
-
|
|
146
|
+
) internal pure returns (uint256, /*netPtSwap*/ uint256, /*netSyFromSwap*/ uint256 /*netSyFee*/) {
|
|
147
|
+
Args5 memory a = Args5(_market, _index, _totalPtIn, _netSyHolding, _blockTime, approx);
|
|
148
|
+
MarketPreCompute memory comp = a.market.getMarketPreCompute(a.index, a.blockTime);
|
|
134
149
|
if (approx.guessOffchain == 0) {
|
|
135
150
|
// no limit on min
|
|
136
|
-
approx.guessMax = PMath.min(approx.guessMax, calcMaxPtIn(market, comp));
|
|
137
|
-
approx.guessMax = PMath.min(approx.guessMax, totalPtIn);
|
|
151
|
+
approx.guessMax = PMath.min(approx.guessMax, calcMaxPtIn(a.market, comp));
|
|
152
|
+
approx.guessMax = PMath.min(approx.guessMax, a.totalPtIn);
|
|
138
153
|
validateApprox(approx);
|
|
139
|
-
require(market.totalLp != 0, "no existing lp");
|
|
154
|
+
require(a.market.totalLp != 0, "no existing lp");
|
|
140
155
|
}
|
|
141
156
|
|
|
142
157
|
for (uint256 iter = 0; iter < approx.maxIteration; ++iter) {
|
|
143
158
|
uint256 guess = nextGuess(approx, iter);
|
|
144
159
|
|
|
145
160
|
(uint256 syNumerator, uint256 ptNumerator, uint256 netSyOut, uint256 netSyFee, ) = calcNumerators(
|
|
146
|
-
market,
|
|
147
|
-
index,
|
|
148
|
-
totalPtIn,
|
|
161
|
+
a.market,
|
|
162
|
+
a.index,
|
|
163
|
+
a.totalPtIn,
|
|
164
|
+
a.netSyHolding,
|
|
149
165
|
comp,
|
|
150
166
|
guess
|
|
151
167
|
);
|
|
152
168
|
|
|
153
|
-
if (PMath.isAApproxB(syNumerator, ptNumerator, approx.eps))
|
|
169
|
+
if (PMath.isAApproxB(syNumerator, ptNumerator, approx.eps)) {
|
|
170
|
+
return (guess, netSyOut, netSyFee);
|
|
171
|
+
}
|
|
154
172
|
|
|
155
173
|
if (syNumerator <= ptNumerator) {
|
|
156
174
|
// needs more SY --> swap more PT
|
|
@@ -167,6 +185,7 @@ library MarketApproxPtInLib {
|
|
|
167
185
|
MarketState memory market,
|
|
168
186
|
PYIndex index,
|
|
169
187
|
uint256 totalPtIn,
|
|
188
|
+
uint256 netSyHolding,
|
|
170
189
|
MarketPreCompute memory comp,
|
|
171
190
|
uint256 guess
|
|
172
191
|
)
|
|
@@ -180,29 +199,22 @@ library MarketApproxPtInLib {
|
|
|
180
199
|
uint256 newTotalSy = (uint256(market.totalSy) - netSyOut - netSyToReserve);
|
|
181
200
|
|
|
182
201
|
// it is desired that
|
|
183
|
-
// netSyOut / newTotalSy = netPtRemaining / newTotalPt
|
|
202
|
+
// (netSyOut + netSyHolding) / newTotalSy = netPtRemaining / newTotalPt
|
|
184
203
|
// which is equivalent to
|
|
185
|
-
// netSyOut * newTotalPt = netPtRemaining * newTotalSy
|
|
204
|
+
// (netSyOut + netSyHolding) * newTotalPt = netPtRemaining * newTotalSy
|
|
186
205
|
|
|
187
|
-
syNumerator = netSyOut * newTotalPt;
|
|
206
|
+
syNumerator = (netSyOut + netSyHolding) * newTotalPt;
|
|
188
207
|
ptNumerator = (totalPtIn - guess) * newTotalSy;
|
|
189
208
|
}
|
|
190
209
|
|
|
191
|
-
struct Args7 {
|
|
192
|
-
MarketState market;
|
|
193
|
-
PYIndex index;
|
|
194
|
-
uint256 exactPtIn;
|
|
195
|
-
uint256 blockTime;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
210
|
/**
|
|
199
211
|
* @dev algorithm:
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
212
|
+
* - Bin search the amount of PT to swap to SY
|
|
213
|
+
* - Flashswap the corresponding amount of SY out
|
|
214
|
+
* - Tokenize all the SY into PT + YT
|
|
215
|
+
* - PT to repay the flashswap, YT transferred to user
|
|
216
|
+
* - Stop when the additional amount of PT to pull to repay the loan approx the exactPtIn
|
|
217
|
+
* - guess & approx is for totalPtToSwap
|
|
206
218
|
*/
|
|
207
219
|
function approxSwapExactPtForYt(
|
|
208
220
|
MarketState memory market,
|
|
@@ -210,7 +222,7 @@ library MarketApproxPtInLib {
|
|
|
210
222
|
uint256 exactPtIn,
|
|
211
223
|
uint256 blockTime,
|
|
212
224
|
ApproxParams memory approx
|
|
213
|
-
) internal pure returns (uint256 /*netYtOut
|
|
225
|
+
) internal pure returns (uint256, /*netYtOut*/ uint256, /*totalPtToSwap*/ uint256 /*netSyFee*/) {
|
|
214
226
|
MarketPreCompute memory comp = market.getMarketPreCompute(index, blockTime);
|
|
215
227
|
if (approx.guessOffchain == 0) {
|
|
216
228
|
approx.guessMin = PMath.max(approx.guessMin, exactPtIn);
|
|
@@ -229,7 +241,9 @@ library MarketApproxPtInLib {
|
|
|
229
241
|
uint256 netPtToPull = guess - netAssetOut;
|
|
230
242
|
|
|
231
243
|
if (netPtToPull <= exactPtIn) {
|
|
232
|
-
if (PMath.isASmallerApproxB(netPtToPull, exactPtIn, approx.eps))
|
|
244
|
+
if (PMath.isASmallerApproxB(netPtToPull, exactPtIn, approx.eps)) {
|
|
245
|
+
return (netAssetOut, guess, netSyFee);
|
|
246
|
+
}
|
|
233
247
|
approx.guessMin = guess;
|
|
234
248
|
} else {
|
|
235
249
|
approx.guessMax = guess - 1;
|
|
@@ -261,8 +275,9 @@ library MarketApproxPtInLib {
|
|
|
261
275
|
/// INTENDED TO BE CALLED BY WHEN GUESS.OFFCHAIN == 0 ONLY ///
|
|
262
276
|
|
|
263
277
|
function validateApprox(ApproxParams memory approx) internal pure {
|
|
264
|
-
if (approx.guessMin > approx.guessMax || approx.eps > PMath.ONE)
|
|
278
|
+
if (approx.guessMin > approx.guessMax || approx.eps > PMath.ONE) {
|
|
265
279
|
revert Errors.ApproxParamsInvalid(approx.guessMin, approx.guessMax, approx.eps);
|
|
280
|
+
}
|
|
266
281
|
}
|
|
267
282
|
|
|
268
283
|
function calcMaxPtIn(MarketState memory market, MarketPreCompute memory comp) internal pure returns (uint256) {
|
|
@@ -301,10 +316,10 @@ library MarketApproxPtOutLib {
|
|
|
301
316
|
|
|
302
317
|
/**
|
|
303
318
|
* @dev algorithm:
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
319
|
+
* - Bin search the amount of PT to swapExactOut
|
|
320
|
+
* - Calculate the amount of SY needed
|
|
321
|
+
* - Stop when the netSyIn is smaller approx exactSyIn
|
|
322
|
+
* - guess & approx is for netSyIn
|
|
308
323
|
*/
|
|
309
324
|
function approxSwapExactSyForPt(
|
|
310
325
|
MarketState memory market,
|
|
@@ -312,7 +327,7 @@ library MarketApproxPtOutLib {
|
|
|
312
327
|
uint256 exactSyIn,
|
|
313
328
|
uint256 blockTime,
|
|
314
329
|
ApproxParams memory approx
|
|
315
|
-
) internal pure returns (uint256 /*netPtOut
|
|
330
|
+
) internal pure returns (uint256, /*netPtOut*/ uint256 /*netSyFee*/) {
|
|
316
331
|
MarketPreCompute memory comp = market.getMarketPreCompute(index, blockTime);
|
|
317
332
|
if (approx.guessOffchain == 0) {
|
|
318
333
|
// no limit on min
|
|
@@ -326,7 +341,9 @@ library MarketApproxPtOutLib {
|
|
|
326
341
|
(uint256 netSyIn, uint256 netSyFee, ) = calcSyIn(market, comp, index, guess);
|
|
327
342
|
|
|
328
343
|
if (netSyIn <= exactSyIn) {
|
|
329
|
-
if (PMath.isASmallerApproxB(netSyIn, exactSyIn, approx.eps))
|
|
344
|
+
if (PMath.isASmallerApproxB(netSyIn, exactSyIn, approx.eps)) {
|
|
345
|
+
return (guess, netSyFee);
|
|
346
|
+
}
|
|
330
347
|
approx.guessMin = guess;
|
|
331
348
|
} else {
|
|
332
349
|
approx.guessMax = guess - 1;
|
|
@@ -338,11 +355,11 @@ library MarketApproxPtOutLib {
|
|
|
338
355
|
|
|
339
356
|
/**
|
|
340
357
|
* @dev algorithm:
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
358
|
+
* - Bin search the amount of PT to swapExactOut
|
|
359
|
+
* - Flashswap that amount of PT & pair with YT to redeem SY
|
|
360
|
+
* - Use the SY to repay the flashswap debt and the remaining is transferred to user
|
|
361
|
+
* - Stop when the netSyOut is greater approx the minSyOut
|
|
362
|
+
* - guess & approx is for netSyOut
|
|
346
363
|
*/
|
|
347
364
|
function approxSwapYtForExactSy(
|
|
348
365
|
MarketState memory market,
|
|
@@ -350,7 +367,7 @@ library MarketApproxPtOutLib {
|
|
|
350
367
|
uint256 minSyOut,
|
|
351
368
|
uint256 blockTime,
|
|
352
369
|
ApproxParams memory approx
|
|
353
|
-
) internal pure returns (uint256 /*netYtIn
|
|
370
|
+
) internal pure returns (uint256, /*netYtIn*/ uint256, /*netSyOut*/ uint256 /*netSyFee*/) {
|
|
354
371
|
MarketPreCompute memory comp = market.getMarketPreCompute(index, blockTime);
|
|
355
372
|
if (approx.guessOffchain == 0) {
|
|
356
373
|
// no limit on min
|
|
@@ -367,7 +384,9 @@ library MarketApproxPtOutLib {
|
|
|
367
384
|
uint256 netSyOut = index.assetToSy(guess - netAssetToRepay);
|
|
368
385
|
|
|
369
386
|
if (netSyOut >= minSyOut) {
|
|
370
|
-
if (PMath.isAGreaterApproxB(netSyOut, minSyOut, approx.eps))
|
|
387
|
+
if (PMath.isAGreaterApproxB(netSyOut, minSyOut, approx.eps)) {
|
|
388
|
+
return (guess, netSyOut, netSyFee);
|
|
389
|
+
}
|
|
371
390
|
approx.guessMax = guess;
|
|
372
391
|
} else {
|
|
373
392
|
approx.guessMin = guess + 1;
|
|
@@ -380,26 +399,28 @@ library MarketApproxPtOutLib {
|
|
|
380
399
|
MarketState market;
|
|
381
400
|
PYIndex index;
|
|
382
401
|
uint256 totalSyIn;
|
|
402
|
+
uint256 netPtHolding;
|
|
383
403
|
uint256 blockTime;
|
|
384
404
|
ApproxParams approx;
|
|
385
405
|
}
|
|
386
406
|
|
|
387
407
|
/**
|
|
388
408
|
* @dev algorithm:
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
409
|
+
* - Bin search the amount of PT to swapExactOut
|
|
410
|
+
* - Swap that amount of PT out
|
|
411
|
+
* - Pair the remaining PT with the SY to add liquidity
|
|
412
|
+
* - Stop when the ratio of PT / totalPt & SY / totalSy is approx
|
|
413
|
+
* - guess & approx is for netPtFromSwap
|
|
394
414
|
*/
|
|
395
415
|
function approxSwapSyToAddLiquidity(
|
|
396
416
|
MarketState memory _market,
|
|
397
417
|
PYIndex _index,
|
|
398
418
|
uint256 _totalSyIn,
|
|
419
|
+
uint256 _netPtHolding,
|
|
399
420
|
uint256 _blockTime,
|
|
400
421
|
ApproxParams memory _approx
|
|
401
|
-
) internal pure returns (uint256 /*netPtFromSwap
|
|
402
|
-
Args6 memory a = Args6(_market, _index, _totalSyIn, _blockTime, _approx);
|
|
422
|
+
) internal pure returns (uint256, /*netPtFromSwap*/ uint256, /*netSySwap*/ uint256 /*netSyFee*/) {
|
|
423
|
+
Args6 memory a = Args6(_market, _index, _totalSyIn, _netPtHolding, _blockTime, _approx);
|
|
403
424
|
|
|
404
425
|
MarketPreCompute memory comp = a.market.getMarketPreCompute(a.index, a.blockTime);
|
|
405
426
|
if (a.approx.guessOffchain == 0) {
|
|
@@ -427,15 +448,17 @@ library MarketApproxPtOutLib {
|
|
|
427
448
|
uint256 netTotalSy = uint256(a.market.totalSy) + netSyIn - netSyToReserve;
|
|
428
449
|
|
|
429
450
|
// it is desired that
|
|
430
|
-
// netPtFromSwap / newTotalPt = netSyRemaining / netTotalSy
|
|
451
|
+
// (netPtFromSwap + netPtHolding) / newTotalPt = netSyRemaining / netTotalSy
|
|
431
452
|
// which is equivalent to
|
|
432
|
-
// netPtFromSwap * netTotalSy = netSyRemaining * newTotalPt
|
|
453
|
+
// (netPtFromSwap + netPtHolding) * netTotalSy = netSyRemaining * newTotalPt
|
|
433
454
|
|
|
434
|
-
ptNumerator = guess * netTotalSy;
|
|
455
|
+
ptNumerator = (guess + a.netPtHolding) * netTotalSy;
|
|
435
456
|
syNumerator = (a.totalSyIn - netSyIn) * newTotalPt;
|
|
436
457
|
}
|
|
437
458
|
|
|
438
|
-
if (PMath.isAApproxB(ptNumerator, syNumerator, a.approx.eps))
|
|
459
|
+
if (PMath.isAApproxB(ptNumerator, syNumerator, a.approx.eps)) {
|
|
460
|
+
return (guess, netSyIn, netSyFee);
|
|
461
|
+
}
|
|
439
462
|
|
|
440
463
|
if (ptNumerator <= syNumerator) {
|
|
441
464
|
// needs more PT
|
|
@@ -450,12 +473,12 @@ library MarketApproxPtOutLib {
|
|
|
450
473
|
|
|
451
474
|
/**
|
|
452
475
|
* @dev algorithm:
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
476
|
+
* - Bin search the amount of PT to swapExactOut
|
|
477
|
+
* - Flashswap that amount of PT out
|
|
478
|
+
* - Pair all the PT with the YT to redeem SY
|
|
479
|
+
* - Use the SY to repay the flashswap debt
|
|
480
|
+
* - Stop when the amount of YT required to pair with PT is approx exactYtIn
|
|
481
|
+
* - guess & approx is for netPtFromSwap
|
|
459
482
|
*/
|
|
460
483
|
function approxSwapExactYtForPt(
|
|
461
484
|
MarketState memory market,
|
|
@@ -463,7 +486,7 @@ library MarketApproxPtOutLib {
|
|
|
463
486
|
uint256 exactYtIn,
|
|
464
487
|
uint256 blockTime,
|
|
465
488
|
ApproxParams memory approx
|
|
466
|
-
) internal pure returns (uint256 /*netPtOut
|
|
489
|
+
) internal pure returns (uint256, /*netPtOut*/ uint256, /*totalPtSwapped*/ uint256 /*netSyFee*/) {
|
|
467
490
|
MarketPreCompute memory comp = market.getMarketPreCompute(index, blockTime);
|
|
468
491
|
if (approx.guessOffchain == 0) {
|
|
469
492
|
approx.guessMin = PMath.max(approx.guessMin, exactYtIn);
|
|
@@ -479,8 +502,9 @@ library MarketApproxPtOutLib {
|
|
|
479
502
|
uint256 netYtToPull = index.syToAssetUp(netSyOwed);
|
|
480
503
|
|
|
481
504
|
if (netYtToPull <= exactYtIn) {
|
|
482
|
-
if (PMath.isASmallerApproxB(netYtToPull, exactYtIn, approx.eps))
|
|
505
|
+
if (PMath.isASmallerApproxB(netYtToPull, exactYtIn, approx.eps)) {
|
|
483
506
|
return (guess - netYtToPull, guess, netSyFee);
|
|
507
|
+
}
|
|
484
508
|
approx.guessMin = guess;
|
|
485
509
|
} else {
|
|
486
510
|
approx.guessMax = guess - 1;
|
|
@@ -521,7 +545,8 @@ library MarketApproxPtOutLib {
|
|
|
521
545
|
}
|
|
522
546
|
|
|
523
547
|
function validateApprox(ApproxParams memory approx) internal pure {
|
|
524
|
-
if (approx.guessMin > approx.guessMax || approx.eps > PMath.ONE)
|
|
548
|
+
if (approx.guessMin > approx.guessMax || approx.eps > PMath.ONE) {
|
|
525
549
|
revert Errors.ApproxParamsInvalid(approx.guessMin, approx.guessMax, approx.eps);
|
|
550
|
+
}
|
|
526
551
|
}
|
|
527
552
|
}
|
package/deployments/1-core.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"chainId": 1,
|
|
5
5
|
"treasury": "0x8270400d528c34e1596EF367eeDEc99080A1b592",
|
|
6
6
|
"governance": "0x8119EC16F0573B7dAc7C0CB94EB504FB32456ee1",
|
|
7
|
+
"devMultisig": "0xE6F0489ED91dc27f40f9dbe8f81fccbFC16b9cb1",
|
|
7
8
|
"pendle": "0x808507121b80c02388fad14726482e061b8da827",
|
|
8
9
|
"lzEndpoint": "0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675",
|
|
9
10
|
"wrappedNative": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
@@ -21,11 +22,10 @@
|
|
|
21
22
|
"marketFactory": "0x27b1dAcd74688aF24a64BD3C9C1B143118740784",
|
|
22
23
|
"bulkSellerFactory": "0x4B1da107B50529d53e5C906a79eaEcDCbC0E1dE3",
|
|
23
24
|
"bulkSellerOffchain": "0x9ACc60F915dFcd190D270fc92567aE71776bd320",
|
|
24
|
-
"router": "
|
|
25
|
+
"router": "0x00000000005BBB0EF59571E58418F9a4357b68A0",
|
|
25
26
|
"routerStatic": "0x263833d47eA3fA4a30f269323aba6a107f9eB14C",
|
|
26
27
|
"pendleSwap": "0x324D838b26Eb73786bDBBc53bb0682F1EBB50603",
|
|
27
28
|
"routerHelper": "0x462206b11d185ef6F64B41D344325401C37EC335",
|
|
28
|
-
"routerHelper2": "0x2ed3af0275a1fd0c53c39d70241a1c14e8ce37d3",
|
|
29
29
|
"ptOracle": "0xbbd487268A295531d299c125F3e5f749884A3e30",
|
|
30
30
|
"yieldContractFactoryV3": "0xdF3601014686674e53d1Fa52F7602525483F9122",
|
|
31
31
|
"marketFactoryV3": "0x1A6fCc85557BC4fB7B534ed835a03EF056552D52",
|
|
@@ -35,5 +35,7 @@
|
|
|
35
35
|
"votingController": "0x44087E105137a5095c008AaB6a6530182821F2F0",
|
|
36
36
|
"gaugeController": "0x47D74516B33eD5D70ddE7119A40839f6Fcc24e57",
|
|
37
37
|
"feeDistributor": "0xd7b34a6fDCb2A7ceD2115FF7f5fdD72aa6aA4dE2",
|
|
38
|
-
"feeDistributorV2": "0x8C237520a8E14D658170A633D96F8e80764433b9"
|
|
38
|
+
"feeDistributorV2": "0x8C237520a8E14D658170A633D96F8e80764433b9",
|
|
39
|
+
"limitRouter": "0x000000000000c9B3E2C3Ec88B1B4c0cD853f4321",
|
|
40
|
+
"proxyAdmin": "0xA28c08f165116587D4F3E708743B4dEe155c5E64"
|
|
39
41
|
}
|
package/deployments/10-core.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"chainId": 10,
|
|
5
5
|
"treasury": "0xE972D450ec5b11b99D97760422e0E054Afbc8042",
|
|
6
6
|
"governance": "0xa06C863fcf17cA6f24AA81aeA75E23953193fF6A",
|
|
7
|
+
"devMultisig": "0x79d7a5e8b130eEf1e022b3EDEE4DAF226DC168CA",
|
|
7
8
|
"pendle": "0xBC7B1Ff1c6989f006a1185318eD4E7b5796e66E1",
|
|
8
9
|
"lzEndpoint": "0x3c2269811836af69497E5F486A85D7316753cf62",
|
|
9
10
|
"wrappedNative": "0x4200000000000000000000000000000000000006",
|
|
@@ -18,11 +19,10 @@
|
|
|
18
19
|
"PENDLE": "0xBC7B1Ff1c6989f006a1185318eD4E7b5796e66E1",
|
|
19
20
|
"yieldContractFactory": "0xf5a7De2D276dbda3EEf1b62A9E718EFf4d29dDC8",
|
|
20
21
|
"marketFactory": "0x17F100fB4bE2707675c6439468d38249DD993d58",
|
|
21
|
-
"router": "
|
|
22
|
+
"router": "0x00000000005BBB0EF59571E58418F9a4357b68A0",
|
|
22
23
|
"routerStatic": "0x704478Dd72FD7F9B83d1F1e0fc18C14B54F034d0",
|
|
23
24
|
"pendleSwap": "0x85D0C209FC632e6908D78BE08646dE3e39A58453",
|
|
24
25
|
"routerHelper": "0x462206b11d185ef6F64B41D344325401C37EC335",
|
|
25
|
-
"routerHelper2": "0x25e5e9E134ddAf1D378fcB0Ec8dbd3F148cb55FD",
|
|
26
26
|
"ptOracle": "0x0b692f06CA82e3075dC537224450885Fd138e655",
|
|
27
27
|
"externalRewardDistributor": "0x1fBaCedf510dAA79dfD9B41227A7ba192d5D548D",
|
|
28
28
|
"yieldContractFactoryV3": "0xfa6B22FC4c3Ad88B68c16b3061a16b1714F6Bd57",
|
|
@@ -30,5 +30,7 @@
|
|
|
30
30
|
"liquiditySeedingHelper": "0xFc7A495389cD3454f5cC0Ecaa55D30E343A1Fc16",
|
|
31
31
|
"receiverEndpoint": "0xED18de5442297a4Ec1ce59C7c7d9427Adc2A012b",
|
|
32
32
|
"vePendle": "0xd5C47D2383Fddc19596489280C0A33AC42b2bB18",
|
|
33
|
-
"gaugeController": "0x6875e4A945E498FE1B90BbB13CFbAF0b68658C9C"
|
|
33
|
+
"gaugeController": "0x6875e4A945E498FE1B90BbB13CFbAF0b68658C9C",
|
|
34
|
+
"limitRouter": "0x000000000000c9B3E2C3Ec88B1B4c0cD853f4321",
|
|
35
|
+
"proxyAdmin": "0xA28c08f165116587D4F3E708743B4dEe155c5E64"
|
|
34
36
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"chainId": 42161,
|
|
5
5
|
"treasury": "0xCbcb48e22622a3778b6F14C2f5d258Ba026b05e6",
|
|
6
6
|
"governance": "0x7877AdFaDEd756f3248a0EBfe8Ac2E2eF87b75Ac",
|
|
7
|
+
"devMultisig": "0x3c0f8F070E6400C1C4eD10CfF85dE4c643b66bd3",
|
|
7
8
|
"pendle": "0x0c880f6761F1af8d9Aa9C466984b80DAb9a8c9e8",
|
|
8
9
|
"lzEndpoint": "0x3c2269811836af69497E5F486A85D7316753cf62",
|
|
9
10
|
"wrappedNative": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
|
@@ -18,11 +19,10 @@
|
|
|
18
19
|
"PENDLE": "0x0c880f6761F1af8d9Aa9C466984b80DAb9a8c9e8",
|
|
19
20
|
"yieldContractFactory": "0x28dE02Ac3c3F5ef427e55c321F73fDc7F192e8E4",
|
|
20
21
|
"marketFactory": "0xf5a7De2D276dbda3EEf1b62A9E718EFf4d29dDC8",
|
|
21
|
-
"router": "
|
|
22
|
+
"router": "0x00000000005BBB0EF59571E58418F9a4357b68A0",
|
|
22
23
|
"routerStatic": "0xAdB09F65bd90d19e3148D9ccb693F3161C6DB3E8",
|
|
23
24
|
"pendleSwap": "0x8e09Aa43885d99701AB047dA2aC98aECC13807B0",
|
|
24
25
|
"routerHelper": "0x462206b11d185ef6F64B41D344325401C37EC335",
|
|
25
|
-
"routerHelper2": "0x64e50365eb97a199d71b15e32761c4b9147cd0f0",
|
|
26
26
|
"ptOracle": "0x7e16e4253CE4a1C96422a9567B23b4b5Ebc207F1",
|
|
27
27
|
"yieldContractFactoryV3": "0xEb38531db128EcA928aea1B1CE9E5609B15ba146",
|
|
28
28
|
"marketFactoryV3": "0x2FCb47B58350cD377f94d3821e7373Df60bD9Ced",
|
|
@@ -31,5 +31,8 @@
|
|
|
31
31
|
"vePendle": "0x3209E9412cca80B18338f2a56ADA59c484c39644",
|
|
32
32
|
"gaugeController": "0x1e56299ebc8a1010cec26005d12e3e5c5cc2db00",
|
|
33
33
|
"arbMerkleDistribution": "0x23a102e78D1FF1645a3666691495174764a5FCAF",
|
|
34
|
-
"linearDistributor": "0x83d85AEDD308261d847C3eb8d7146457bD8F38E8"
|
|
34
|
+
"linearDistributor": "0x83d85AEDD308261d847C3eb8d7146457bD8F38E8",
|
|
35
|
+
"limitBackendHelper": "0xa3b3442D8f9ceb45D87b5f32115d94e9b7FcB114",
|
|
36
|
+
"limitRouter": "0x000000000000c9B3E2C3Ec88B1B4c0cD853f4321",
|
|
37
|
+
"proxyAdmin": "0xA28c08f165116587D4F3E708743B4dEe155c5E64"
|
|
35
38
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY aUSDC",
|
|
3
|
+
"SY": "0x50288c30c37FA1Ec6167a31E575EA8632645dE20",
|
|
4
|
+
"YT": "0xA1c32EF8d3c4c30cB596bAb8647e11daF0FA5C94",
|
|
5
|
+
"PT": "0xb72b988CAF33f3d8A6d816974fE8cAA199E5E86c",
|
|
6
|
+
"market": "0x8621c587059357d6C669f72dA3Bfe1398fc0D0B5",
|
|
7
|
+
"expiry": 1719446400,
|
|
8
|
+
"scalarRoot": "112567687675000000000",
|
|
9
|
+
"initAnchor": "1029547938000000000",
|
|
10
|
+
"lnFeeRateRoot": "499875041000000"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY wstETH",
|
|
3
|
+
"SY": "0x80c12D5b6Cc494632Bf11b03F09436c8B61Cc5Df",
|
|
4
|
+
"YT": "0xcA71E00e364BB033371a7F61f3F6B803b06e9fC4",
|
|
5
|
+
"PT": "0x5A4e68E1F82dD4eAFBda13e47E0EC3cc452ED521",
|
|
6
|
+
"market": "0x58F50De493B6bE3585558F95F208dE489C296E24",
|
|
7
|
+
"expiry": 1711584000,
|
|
8
|
+
"scalarRoot": "375475280800000000000",
|
|
9
|
+
"initAnchor": "1011384347000000000",
|
|
10
|
+
"lnFeeRateRoot": "299955008997942"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY sETH-wstEthSilo",
|
|
3
|
+
"SY": "0x22B9E6f6C462BB0B03f76d3A8246950d95f03692",
|
|
4
|
+
"YT": "0x0C9d0cAf36c14F26d29a18D84b19A4c2565F5739",
|
|
5
|
+
"PT": "0x9ADDde3a8819c2eED4E5113B7aA1cecf4096BEc3",
|
|
6
|
+
"market": "0x6acacf8dC9d489AA83dbD4390BBe1163D2585e70",
|
|
7
|
+
"expiry": 1711584000,
|
|
8
|
+
"scalarRoot": "151089382436000000000",
|
|
9
|
+
"initAnchor": "1013067323000000000",
|
|
10
|
+
"lnFeeRateRoot": "499875041000000"
|
|
11
|
+
}
|
package/deployments/56-core.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"chainId": 56,
|
|
5
5
|
"treasury": "0xd77E9062c6DF3F2d1CB5Bf45855fa1E7712A059e",
|
|
6
6
|
"governance": "0xA06627d9884996BC27a7c20fDA94FC94C13aa9Ec",
|
|
7
|
+
"devMultisig": "0x2ad76D576D5910F32227B2F07efC21b3F559858C",
|
|
7
8
|
"pendle": "0xb3Ed0A426155B79B898849803E3B36552f7ED507",
|
|
8
9
|
"lzEndpoint": "0x3c2269811836af69497E5F486A85D7316753cf62",
|
|
9
10
|
"wrappedNative": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
|
|
@@ -18,16 +19,17 @@
|
|
|
18
19
|
"PENDLE": "0xb3Ed0A426155B79B898849803E3B36552f7ED507",
|
|
19
20
|
"yieldContractFactory": "0xa2530b4cfBF271e2B409A05C2CE520e4cB5fCc88",
|
|
20
21
|
"marketFactory": "0x2bEa6BfD8fbFF45aA2a893EB3B6d85D10EFcC70E",
|
|
21
|
-
"router": "
|
|
22
|
+
"router": "0x00000000005BBB0EF59571E58418F9a4357b68A0",
|
|
22
23
|
"routerStatic": "0x2700ADB035F82a11899ce1D3f1BF8451c296eABb",
|
|
23
24
|
"pendleSwap": "0xD85d2F484DF4329746325e7398f3fC3E1915a173",
|
|
24
25
|
"routerHelper": "0x09D65812dCD0f276e052583d41885cA5C7Dd0086",
|
|
25
|
-
"routerHelper2": "0x46aCbe071f580bfC09C6F48326f01148991DB107",
|
|
26
26
|
"ptOracle": "0x70ee0A6DB4F5a2Dc4d9c0b57bE97B9987e75BAFD",
|
|
27
27
|
"yieldContractFactoryV3": "0x40Ae6da2d92aa3DCb7f8d7a7209FD12BDfcb7C85",
|
|
28
28
|
"marketFactoryV3": "0xC40fEbF5A33b8C92B187d9be0fD3fe0ac2E4B07c",
|
|
29
29
|
"liquiditySeedingHelper": "0x203D3A2Fd52973A34bAb6fC50E3B69863bdb769C",
|
|
30
30
|
"receiverEndpoint": "0x998CF52b2585e05494BF9F2bF502351a9C7FdA8f",
|
|
31
31
|
"vePendle": "0x8A09574b0401A856d89d1b583eE22E8cb0C5530B",
|
|
32
|
-
"gaugeController": "0x704478Dd72FD7F9B83d1F1e0fc18C14B54F034d0"
|
|
32
|
+
"gaugeController": "0x704478Dd72FD7F9B83d1F1e0fc18C14B54F034d0",
|
|
33
|
+
"limitRouter": "0x000000000000c9B3E2C3Ec88B1B4c0cD853f4321",
|
|
34
|
+
"proxyAdmin": "0xA28c08f165116587D4F3E708743B4dEe155c5E64"
|
|
33
35
|
}
|