@pendle/core-v2 2.29.1 → 3.0.0-beta-2
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/ExcessivelySafeCall.sol/ExcessivelySafeCall.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/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/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.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/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +1 -1
- 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/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/PendleAuraWethVethSY.sol/PendleAuraWethVethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethVethSY.sol/PendleAuraWethVethSY.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/ComposableStableMath.sol/ComposableStableMath.json +2 -2
- 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/FixedPoint.sol/FixedPoint.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.json +2 -2
- 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/LinearMath.sol/LinearMath.json +2 -2
- 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/Linear/LinearPreview.sol/LinearPreview.json +2 -2
- 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/MetaStableMath.sol/MetaStableMath.json +2 -2
- 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/StablePoolUserData.sol/StablePoolUserData.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.json +2 -2
- 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/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/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/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/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/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/PendleERC20.sol/PendleERC20.json +2 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.json +2 -2
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.json +2 -2
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.json +2 -2
- 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/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.json +2 -2
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +9 -162
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.json +2 -2
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.json +2 -2
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.json +2 -2
- 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/LogExpMath.sol/LogExpMath.json +2 -2
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.json +2 -2
- package/build/artifacts/contracts/interfaces/Ankr/IAnkrBNB.sol/IAnkrBNB.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Ankr/IAnkrLiquidStaking.sol/IAnkrLiquidStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +1 -1
- 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/IGauge.sol/IGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.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/IRateProvider.sol/IRateProvider.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IVersion.sol/IVersion.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotFactory.sol/ICamelotFactory.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/ICamelotYieldBooster.sol/ICamelotYieldBooster.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/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.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/Frax/IFrxEthMinter.sol/IFrxEthMinter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.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/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.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/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILooksFeeSharing.sol/ILooksFeeSharing.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILooksStaking.sol/ILooksStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +1050 -30
- 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/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +0 -45
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +0 -69
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.json +734 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.json +0 -26
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +688 -108
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +688 -108
- package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +2550 -331
- package/build/artifacts/contracts/interfaces/IPExternalRewardDistributor.sol/IPExternalRewardDistributor.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/IPGauge.sol/IPGauge.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/ILimitOrderCallee.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/ILimitOrderCallee.json +77 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.json +779 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPOrderMixin.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPOrderMixin.json +544 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPOrderMixinType.dbg.json +4 -0
- package/build/artifacts/contracts/{router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json → interfaces/IPLimitRouter.sol/IPOrderMixinType.json} +2 -2
- 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/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.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/IPRouterStatic.sol/IPRouterStatic.json +0 -140
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/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/IStargateStaking.sol/IStargateStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISwETH.sol/ISwETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Lybra/IEUSD.sol/IEUSD.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/interfaces/Thena/IThenaRouter.sol/IThenaRouter.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/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +4 -0
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +910 -0
- package/build/artifacts/contracts/limit/PendleOrderMixin.sol/PendleOrderMixin.dbg.json +4 -0
- package/build/artifacts/contracts/limit/PendleOrderMixin.sol/PendleOrderMixin.json +760 -0
- package/build/artifacts/contracts/limit/helpers/ArgumentsDecoder.sol/ArgumentsDecoder.dbg.json +4 -0
- package/build/artifacts/contracts/limit/helpers/ArgumentsDecoder.sol/ArgumentsDecoder.json +10 -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/limit/helpers/Permitable.sol/Permitable.dbg.json +4 -0
- package/build/artifacts/contracts/limit/helpers/Permitable.sol/Permitable.json +10 -0
- package/build/artifacts/contracts/limit/helpers/RevertReasonParser.sol/RevertReasonParser.dbg.json +4 -0
- package/build/artifacts/contracts/limit/helpers/RevertReasonParser.sol/RevertReasonParser.json +10 -0
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.json +2 -2
- 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/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.json +2 -2
- 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/ChainlinkRelayerAutomation.sol/ChainlinkRelayerAutomation.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ChainlinkRelayerAutomation.sol/ChainlinkRelayerAutomation.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/ChainlinkRelayerGelato.sol/ChainlinkRelayerGelato.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ChainlinkRelayerGelato.sol/ChainlinkRelayerGelato.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
- 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/Multicall2.sol/Multicall2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.json +2 -171
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -47
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -103
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -28
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/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/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +1052 -32
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +878 -3
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +730 -163
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +730 -169
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -18
- 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/IPActionMintRedeem.sol/IPActionMintRedeem.json → router/PendleRouterHelper.sol/RouterV2InterfaceForRouterHelper.json} +113 -352
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +4 -0
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.json +10 -0
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.json +0 -59
- 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/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberInputScalingHelper.sol/KyberInputScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.json +2 -2
- 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/core/Market/PendleMarketFactory.sol +21 -27
- package/contracts/core/libraries/Errors.sol +4 -21
- package/contracts/core/libraries/TokenHelper.sol +7 -7
- package/contracts/interfaces/IDailLikePermit.sol +17 -0
- package/contracts/interfaces/IPActionAddRemoveLiq.sol +16 -18
- package/contracts/interfaces/IPActionMarketCoreStatic.sol +20 -118
- package/contracts/interfaces/IPActionMintRedeemStatic.sol +17 -47
- package/contracts/interfaces/IPActionMisc.sol +88 -1
- package/contracts/interfaces/IPActionStorageStatic.sol +1 -8
- package/contracts/interfaces/IPActionSwapPT.sol +9 -20
- package/contracts/interfaces/IPActionSwapYT.sol +10 -21
- package/contracts/interfaces/IPAllAction.sol +0 -2
- package/contracts/interfaces/IPAllActionType.sol +33 -0
- package/contracts/interfaces/IPLimitRouter.sol +162 -0
- package/contracts/interfaces/IPMarketFactory.sol +2 -0
- package/contracts/interfaces/IPRouterHelper.sol +11 -45
- package/contracts/limit/LimitMathCore.sol +208 -0
- package/contracts/limit/PendleLimitRouter.sol +72 -0
- package/contracts/limit/PendleOrderMixin.sol +526 -0
- package/contracts/limit/helpers/ArgumentsDecoder.sol +47 -0
- package/contracts/limit/helpers/NonceManager.sol +28 -0
- package/contracts/limit/helpers/Permitable.sol +48 -0
- package/contracts/limit/helpers/RevertReasonParser.sol +75 -0
- package/contracts/offchain-helpers/AddressProvider.sol +1 -1
- package/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol +5 -18
- package/contracts/offchain-helpers/Broadcaster.sol +3 -3
- package/contracts/offchain-helpers/ChainlinkRelayerAutomation.sol +6 -13
- package/contracts/offchain-helpers/ChainlinkRelayerGelato.sol +5 -4
- package/contracts/offchain-helpers/EmptyUUPS.sol +2 -1
- package/contracts/offchain-helpers/PendleMulticallV1.sol +9 -11
- package/contracts/offchain-helpers/PendleMulticallV2.sol +1 -1
- package/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol +2 -19
- package/contracts/offchain-helpers/router-static/PendleRouterStatic.sol +1 -1
- package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +5 -18
- package/contracts/offchain-helpers/router-static/base/ActionLimitOrdersStatic.sol +145 -0
- package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +29 -82
- package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +82 -288
- package/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol +37 -108
- package/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol +4 -16
- package/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol +8 -10
- package/contracts/offchain-helpers/router-static/base/StorageLayout.sol +1 -4
- package/contracts/router/ActionAddRemoveLiq.sol +225 -440
- package/contracts/router/ActionMisc.sol +134 -14
- package/contracts/router/ActionSwapPT.sol +35 -195
- package/contracts/router/ActionSwapYT.sol +127 -288
- package/contracts/router/PendleRouter.sol +104 -128
- package/contracts/router/PendleRouterHelper.sol +100 -186
- package/contracts/router/base/ActionBase.sol +238 -0
- package/contracts/router/base/ActionBaseCallback.sol +25 -124
- package/contracts/router/base/CallbackHelper.sol +31 -110
- package/contracts/router/base/MarketApproxLib.sol +143 -176
- package/contracts/router/swap-aggregator/PendleSwap.sol +9 -20
- package/deployments/42161-core.json +4 -2
- package/package.json +4 -4
- package/typechain-types/ActionAddRemoveLiq.ts +151 -26
- package/typechain-types/ActionLimitOrdersStatic.ts +262 -0
- package/typechain-types/ActionMarketCoreStatic.ts +18 -63
- package/typechain-types/ActionMintRedeem.ts +4 -10
- package/typechain-types/ActionMintRedeemStatic.ts +10 -102
- package/typechain-types/ActionMisc.ts +732 -11
- package/typechain-types/ActionStorageStatic.ts +0 -55
- package/typechain-types/ActionSwapPT.ts +119 -121
- package/typechain-types/ActionSwapYT.ts +124 -126
- package/typechain-types/AuraWethVethSYUpg.ts +1547 -0
- package/typechain-types/EIP712Upgradeable.ts +68 -0
- package/typechain-types/IDaiLikePermit.ts +146 -0
- package/typechain-types/IKyberElasticFactory.ts +734 -0
- package/typechain-types/IKyberElasticPool.ts +514 -0
- package/typechain-types/IKyberElasticRouter.ts +315 -0
- package/typechain-types/IKyberLiquidityMining.ts +968 -0
- package/typechain-types/IKyberMathHelper.ts +231 -0
- package/typechain-types/IKyberPositionManager.ts +773 -0
- package/typechain-types/ILimitOrderCallee.ts +179 -0
- package/typechain-types/IPActionAddRemoveLiq.ts +151 -26
- package/typechain-types/IPActionMarketCoreStatic.ts +18 -63
- package/typechain-types/IPActionMintRedeem.ts +4 -10
- package/typechain-types/IPActionMintRedeemStatic.ts +10 -102
- package/typechain-types/IPActionMisc.ts +688 -11
- package/typechain-types/IPActionStorageStatic.ts +0 -55
- package/typechain-types/IPActionSwapPT.ts +119 -121
- package/typechain-types/IPActionSwapYT.ts +124 -126
- package/typechain-types/IPAllAction.ts +355 -284
- package/typechain-types/IPLimitRouter.ts +702 -0
- package/typechain-types/IPOrderMixin.ts +479 -0
- package/typechain-types/IPRouterHelper.ts +6 -19
- package/typechain-types/IPRouterStatic.ts +28 -220
- package/typechain-types/KyberMathHelper.ts +604 -0
- package/typechain-types/KyberNftManagerBaseUpg.ts +148 -0
- package/typechain-types/NonceManager.ts +209 -0
- package/typechain-types/PendleAuraBalancerStableLPSYV3Upg.ts +1512 -0
- package/typechain-types/PendleERC20PermitUpg.ts +452 -0
- package/typechain-types/PendleERC20Upg.ts +348 -0
- package/typechain-types/PendleKyberElasticSY.ts +1583 -0
- package/typechain-types/PendleLimitRouter.ts +1041 -0
- package/typechain-types/PendleOrderMixin.ts +818 -0
- package/typechain-types/PendleRouterHelper.ts +7 -23
- package/typechain-types/PredicateHelper.ts +298 -0
- package/typechain-types/RouterV2InterfaceForRouterHelper.ts +479 -0
- package/typechain-types/SYBaseUpg.ts +1205 -0
- package/typechain-types/SYBaseWithRewardsUpg.ts +1298 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1051 -31
- package/typechain-types/factories/ActionBaseCallback__factory.ts +0 -59
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionLimitOrdersStatic__factory.ts +499 -0
- 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/ActionMintRedeem__factory.ts +1 -21
- package/typechain-types/factories/ActionMisc__factory.ts +877 -2
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -27
- package/typechain-types/factories/ActionSwapPT__factory.ts +689 -162
- package/typechain-types/factories/ActionSwapYT__factory.ts +692 -186
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/AddressProvider__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 +1215 -0
- package/typechain-types/factories/AutomationBase__factory.ts +1 -1
- package/typechain-types/factories/BaseSplitCodeFactoryContract__factory.ts +1 -1
- package/typechain-types/factories/BoringOwnableUpgradeableData__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/ChainlinkRelayerAutomation__factory.ts +1 -1
- package/typechain-types/factories/ChainlinkRelayerGelato__factory.ts +1 -1
- package/typechain-types/factories/EIP712Upgradeable__factory.ts +39 -0
- package/typechain-types/factories/ERC20__factory.ts +1 -1
- package/typechain-types/factories/EmptyUUPS__factory.ts +1 -1
- package/typechain-types/factories/Errors__factory.ts +8 -161
- package/typechain-types/factories/IDaiLikePermit__factory.ts +74 -0
- package/typechain-types/factories/IKyberElasticFactory__factory.ts +455 -0
- package/typechain-types/factories/IKyberElasticPool__factory.ts +315 -0
- package/typechain-types/factories/IKyberElasticRouter__factory.ts +240 -0
- package/typechain-types/factories/IKyberLiquidityMining__factory.ts +913 -0
- package/typechain-types/factories/IKyberMathHelper__factory.ts +143 -0
- package/typechain-types/factories/IKyberPositionManager__factory.ts +633 -0
- package/typechain-types/factories/ILimitOrderCallee__factory.ts +92 -0
- package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +1050 -30
- package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +0 -45
- package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +0 -69
- package/typechain-types/factories/IPActionMintRedeem__factory.ts +0 -20
- package/typechain-types/factories/IPActionMisc__factory.ts +734 -1
- package/typechain-types/factories/IPActionStorageStatic__factory.ts +0 -26
- package/typechain-types/factories/IPActionSwapPT__factory.ts +688 -108
- package/typechain-types/factories/IPActionSwapYT__factory.ts +688 -108
- package/typechain-types/factories/IPAllAction__factory.ts +2550 -331
- package/typechain-types/factories/IPLimitRouter__factory.ts +791 -0
- package/typechain-types/factories/IPOrderMixin__factory.ts +556 -0
- package/typechain-types/factories/IPRouterHelper__factory.ts +0 -25
- package/typechain-types/factories/IPRouterStatic__factory.ts +0 -140
- package/typechain-types/factories/KyberMathHelper__factory.ts +430 -0
- package/typechain-types/factories/KyberNftManagerBaseUpg__factory.ts +101 -0
- package/typechain-types/factories/LegacyNFTHelper__factory.ts +1 -1
- package/typechain-types/factories/LinearPreview__factory.ts +1 -1
- package/typechain-types/factories/MetaStableMath__factory.ts +1 -1
- package/typechain-types/factories/Multicall2__factory.ts +1 -1
- package/typechain-types/factories/NonceManager__factory.ts +149 -0
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleAnkrBNBSY__factory.ts +1 -1
- package/typechain-types/factories/PendleArbitrumStakedEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraBalancerStableLPSYV3Upg__factory.ts +1160 -0
- 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/PendleERC20PermitUpg__factory.ts +340 -0
- package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
- package/typechain-types/factories/PendleERC20Upg__factory.ts +261 -0
- package/typechain-types/factories/PendleERC20__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/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/PendleKyberElasticSY__factory.ts +1302 -0
- package/typechain-types/factories/PendleLimitRouter__factory.ts +1064 -0
- 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/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketV2__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__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/PendleMulticallV1__factory.ts +1 -1
- package/typechain-types/factories/PendleMulticallV2__factory.ts +1 -1
- package/typechain-types/factories/PendleOracleForSyProxy__factory.ts +1 -1
- package/typechain-types/factories/PendleOrderMixin__factory.ts +775 -0
- 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/PendleRouter__factory.ts +1 -21
- package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleStargateLPSY__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/PredicateHelper__factory.ts +218 -0
- package/typechain-types/factories/PtAndLpToAsset__factory.ts +1 -1
- package/typechain-types/factories/RouterV2InterfaceForRouterHelper__factory.ts +487 -0
- package/typechain-types/factories/SAPE__factory.ts +1 -1
- package/typechain-types/factories/SDKErrorsDirectory__factory.ts +1 -170
- package/typechain-types/factories/SYBaseUpg__factory.ts +939 -0
- package/typechain-types/factories/SYBaseWithRewardsUpg__factory.ts +1012 -0
- 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 +81 -63
- package/typechain-types/index.ts +18 -14
- 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/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.json +0 -321
- package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.json +0 -92
- package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.json +0 -34
- 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/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +0 -753
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +0 -4
- package/contracts/core/BulkSeller/BulkSeller.sol +0 -233
- package/contracts/core/BulkSeller/BulkSellerFactory.sol +0 -85
- package/contracts/core/BulkSeller/BulkSellerMathCore.sol +0 -139
- package/contracts/interfaces/IPActionMintRedeem.sol +0 -108
- package/contracts/interfaces/IPBulkSeller.sol +0 -48
- package/contracts/interfaces/IPBulkSellerFactory.sol +0 -12
- package/contracts/interfaces/IPBulkSellerSYCallback.sol +0 -6
- package/contracts/offchain-helpers/BulkSellerOffchain.sol +0 -69
- package/contracts/router/ActionMintRedeem.sol +0 -134
- package/contracts/router/base/ActionBaseMintRedeem.sol +0 -203
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.17;
|
|
3
|
-
|
|
4
|
-
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
|
|
5
|
-
|
|
6
|
-
import "../../interfaces/IStandardizedYield.sol";
|
|
7
|
-
import "../../interfaces/IPBulkSellerFactory.sol";
|
|
8
|
-
import "../../interfaces/IPBulkSeller.sol";
|
|
9
|
-
|
|
10
|
-
import "../libraries/TokenHelper.sol";
|
|
11
|
-
import "../libraries/math/PMath.sol";
|
|
12
|
-
import "../libraries/Errors.sol";
|
|
13
|
-
|
|
14
|
-
import "./BulkSellerMathCore.sol";
|
|
15
|
-
|
|
16
|
-
contract BulkSeller is IPBulkSeller, Initializable, TokenHelper, ReentrancyGuardUpgradeable {
|
|
17
|
-
using PMath for uint256;
|
|
18
|
-
using SafeERC20 for IERC20;
|
|
19
|
-
using BulkSellerMathCore for BulkSellerState;
|
|
20
|
-
|
|
21
|
-
struct BulkSellerStorage {
|
|
22
|
-
uint128 rateTokenToSy;
|
|
23
|
-
uint128 rateSyToToken;
|
|
24
|
-
uint128 totalSy;
|
|
25
|
-
uint128 totalToken;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
address public token;
|
|
29
|
-
address public SY;
|
|
30
|
-
uint64 public feeRate;
|
|
31
|
-
|
|
32
|
-
address public factory;
|
|
33
|
-
BulkSellerStorage public _storage;
|
|
34
|
-
|
|
35
|
-
modifier onlyMaintainer() {
|
|
36
|
-
if (!IPBulkSellerFactory(factory).isMaintainer(msg.sender))
|
|
37
|
-
revert Errors.BulkNotMaintainer();
|
|
38
|
-
_;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Since this contract is a beacon contract, no constructor should be defined.
|
|
42
|
-
function initialize(address _token, address _SY, address _factory) external initializer {
|
|
43
|
-
__ReentrancyGuard_init();
|
|
44
|
-
token = _token;
|
|
45
|
-
SY = _SY;
|
|
46
|
-
factory = _factory;
|
|
47
|
-
_safeApproveInf(token, SY);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function swapExactTokenForSy(
|
|
51
|
-
address receiver,
|
|
52
|
-
uint256 netTokenIn,
|
|
53
|
-
uint256 minSyOut
|
|
54
|
-
) external payable nonReentrant returns (uint256 netSyOut) {
|
|
55
|
-
BulkSellerState memory state = readState();
|
|
56
|
-
|
|
57
|
-
_transferIn(token, msg.sender, netTokenIn);
|
|
58
|
-
|
|
59
|
-
netSyOut = state.swapExactTokenForSy(netTokenIn);
|
|
60
|
-
|
|
61
|
-
if (netSyOut < minSyOut) revert Errors.BulkInSufficientSyOut(netSyOut, minSyOut);
|
|
62
|
-
|
|
63
|
-
_transferOut(SY, receiver, netSyOut);
|
|
64
|
-
|
|
65
|
-
_writeState(state);
|
|
66
|
-
|
|
67
|
-
emit SwapExactTokenForSy(receiver, netTokenIn, netSyOut);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function swapExactSyForToken(
|
|
71
|
-
address receiver,
|
|
72
|
-
uint256 exactSyIn,
|
|
73
|
-
uint256 minTokenOut,
|
|
74
|
-
bool swapFromInternalBalance
|
|
75
|
-
) external nonReentrant returns (uint256 netTokenOut) {
|
|
76
|
-
BulkSellerState memory state = readState();
|
|
77
|
-
|
|
78
|
-
if (!swapFromInternalBalance) _transferIn(SY, msg.sender, exactSyIn);
|
|
79
|
-
else {
|
|
80
|
-
uint256 netSyReceived = _selfBalance(SY) - state.totalSy;
|
|
81
|
-
if (netSyReceived < exactSyIn)
|
|
82
|
-
revert Errors.BulkInsufficientSyReceived(netSyReceived, exactSyIn);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
netTokenOut = state.swapExactSyForToken(exactSyIn);
|
|
86
|
-
|
|
87
|
-
if (netTokenOut < minTokenOut)
|
|
88
|
-
revert Errors.BulkInSufficientTokenOut(netTokenOut, minTokenOut);
|
|
89
|
-
|
|
90
|
-
_transferOut(token, receiver, netTokenOut);
|
|
91
|
-
|
|
92
|
-
_writeState(state);
|
|
93
|
-
|
|
94
|
-
emit SwapExactSyForToken(receiver, exactSyIn, netTokenOut);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function readState() public view returns (BulkSellerState memory state) {
|
|
98
|
-
BulkSellerStorage storage s = _storage;
|
|
99
|
-
|
|
100
|
-
state = BulkSellerState({
|
|
101
|
-
rateTokenToSy: s.rateTokenToSy,
|
|
102
|
-
rateSyToToken: s.rateSyToToken,
|
|
103
|
-
totalToken: s.totalToken,
|
|
104
|
-
totalSy: s.totalSy,
|
|
105
|
-
feeRate: feeRate
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
function _writeState(BulkSellerState memory state) internal {
|
|
110
|
-
BulkSellerStorage memory tmp = BulkSellerStorage({
|
|
111
|
-
rateTokenToSy: state.rateTokenToSy.Uint128(),
|
|
112
|
-
rateSyToToken: state.rateSyToToken.Uint128(),
|
|
113
|
-
totalSy: state.totalSy.Uint128(),
|
|
114
|
-
totalToken: state.totalToken.Uint128()
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
_storage = tmp;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// ----------------- BulkSeller management -----------------
|
|
121
|
-
|
|
122
|
-
function increaseReserve(uint256 netTokenIn, uint256 netSyIn) external payable onlyMaintainer {
|
|
123
|
-
BulkSellerState memory state = readState();
|
|
124
|
-
|
|
125
|
-
state.totalToken += netTokenIn;
|
|
126
|
-
state.totalSy += netSyIn;
|
|
127
|
-
|
|
128
|
-
_transferIn(token, msg.sender, netTokenIn);
|
|
129
|
-
_transferIn(SY, msg.sender, netSyIn);
|
|
130
|
-
|
|
131
|
-
emit ReserveUpdated(state.totalToken, state.totalSy);
|
|
132
|
-
|
|
133
|
-
_writeState(state);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function decreaseReserve(uint256 netTokenOut, uint256 netSyOut) external onlyMaintainer {
|
|
137
|
-
BulkSellerState memory state = readState();
|
|
138
|
-
|
|
139
|
-
if (netTokenOut == type(uint256).max) netTokenOut = state.totalToken;
|
|
140
|
-
if (netSyOut == type(uint256).max) netSyOut = state.totalSy;
|
|
141
|
-
|
|
142
|
-
state.totalToken -= netTokenOut;
|
|
143
|
-
state.totalSy -= netSyOut;
|
|
144
|
-
|
|
145
|
-
_transferOut(token, msg.sender, netTokenOut);
|
|
146
|
-
_transferOut(SY, msg.sender, netSyOut);
|
|
147
|
-
|
|
148
|
-
emit ReserveUpdated(state.totalToken, state.totalSy);
|
|
149
|
-
|
|
150
|
-
_writeState(state);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
function redeemRewards() external onlyMaintainer {
|
|
154
|
-
IStandardizedYield(SY).claimRewards(address(this));
|
|
155
|
-
address[] memory rewardTokens = IStandardizedYield(SY).getRewardTokens();
|
|
156
|
-
|
|
157
|
-
for (uint256 i = 0; i < rewardTokens.length; i++) {
|
|
158
|
-
if (rewardTokens[i] == token) continue;
|
|
159
|
-
_transferOut(rewardTokens[i], msg.sender, _selfBalance(rewardTokens[i]));
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
function skim() external onlyMaintainer {
|
|
164
|
-
BulkSellerState memory state = readState();
|
|
165
|
-
uint256 excessToken = _selfBalance(token) - state.totalToken;
|
|
166
|
-
uint256 excessSy = _selfBalance(SY) - state.totalSy;
|
|
167
|
-
if (excessToken != 0) IERC20(token).safeTransfer(msg.sender, excessToken);
|
|
168
|
-
if (excessSy != 0) IERC20(SY).safeTransfer(msg.sender, excessSy);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
function reBalance(uint256 targetProp, uint256 maxDiff) external onlyMaintainer {
|
|
172
|
-
BulkSellerState memory state = readState();
|
|
173
|
-
uint256 oldTokenProp = state.getTokenProp();
|
|
174
|
-
|
|
175
|
-
(uint256 netTokenDeposit, uint256 netSyRedeem) = state.getReBalanceParams(targetProp);
|
|
176
|
-
|
|
177
|
-
if (netTokenDeposit > 0) {
|
|
178
|
-
uint256 netSyFromToken = _depositToken(netTokenDeposit);
|
|
179
|
-
state.reBalanceTokenToSy(netTokenDeposit, netSyFromToken, maxDiff);
|
|
180
|
-
|
|
181
|
-
uint256 newTokenProp = state.getTokenProp();
|
|
182
|
-
emit ReBalanceTokenToSy(netTokenDeposit, netSyFromToken, newTokenProp, oldTokenProp);
|
|
183
|
-
} else {
|
|
184
|
-
uint256 netTokenFromSy = _redeemSy(netSyRedeem);
|
|
185
|
-
state.reBalanceSyToToken(netSyRedeem, netTokenFromSy, maxDiff);
|
|
186
|
-
|
|
187
|
-
uint256 newTokenProp = state.getTokenProp();
|
|
188
|
-
emit ReBalanceSyToToken(netSyRedeem, netTokenFromSy, newTokenProp, oldTokenProp);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
_writeState(state);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
function setRate(
|
|
195
|
-
uint256 newRateSyToToken,
|
|
196
|
-
uint256 newRateTokenToSy,
|
|
197
|
-
uint256 maxDiff
|
|
198
|
-
) external onlyMaintainer {
|
|
199
|
-
BulkSellerState memory state = readState();
|
|
200
|
-
|
|
201
|
-
emit RateUpdated(
|
|
202
|
-
newRateTokenToSy,
|
|
203
|
-
newRateSyToToken,
|
|
204
|
-
state.rateTokenToSy,
|
|
205
|
-
state.rateSyToToken
|
|
206
|
-
);
|
|
207
|
-
|
|
208
|
-
state.setRate(newRateSyToToken, newRateTokenToSy, maxDiff);
|
|
209
|
-
|
|
210
|
-
_writeState(state);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
function setFeeRate(uint64 newFeeRate) external onlyMaintainer {
|
|
214
|
-
emit FeeRateUpdated(newFeeRate, feeRate);
|
|
215
|
-
feeRate = newFeeRate;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
function _depositToken(uint256 netTokenDeposit) internal returns (uint256 netSyFromToken) {
|
|
219
|
-
uint256 nativeToDeposit = token == NATIVE ? netTokenDeposit : 0;
|
|
220
|
-
return
|
|
221
|
-
IStandardizedYield(SY).deposit{ value: nativeToDeposit }(
|
|
222
|
-
address(this),
|
|
223
|
-
token,
|
|
224
|
-
netTokenDeposit,
|
|
225
|
-
0
|
|
226
|
-
);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
function _redeemSy(uint256 netSyRedeem) internal returns (uint256 netTokenFromSy) {
|
|
230
|
-
_transferOut(SY, SY, netSyRedeem);
|
|
231
|
-
return IStandardizedYield(SY).redeem(address(this), netSyRedeem, token, 0, true);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.17;
|
|
3
|
-
|
|
4
|
-
import "@openzeppelin/contracts/proxy/beacon/IBeacon.sol";
|
|
5
|
-
import "@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol";
|
|
6
|
-
import "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol";
|
|
7
|
-
|
|
8
|
-
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
|
|
9
|
-
import "../libraries/BoringOwnableUpgradeable.sol";
|
|
10
|
-
|
|
11
|
-
import "../../interfaces/IStandardizedYield.sol";
|
|
12
|
-
import "../../interfaces/IPBulkSellerFactory.sol";
|
|
13
|
-
import "../libraries/Errors.sol";
|
|
14
|
-
|
|
15
|
-
contract BulkSellerFactory is
|
|
16
|
-
IBeacon,
|
|
17
|
-
IPBulkSellerFactory,
|
|
18
|
-
Initializable,
|
|
19
|
-
AccessControlUpgradeable,
|
|
20
|
-
UUPSUpgradeable
|
|
21
|
-
{
|
|
22
|
-
bytes32 public constant MAINTAINER = keccak256("MAINTAINER");
|
|
23
|
-
|
|
24
|
-
address public implementation;
|
|
25
|
-
|
|
26
|
-
mapping(address => mapping(address => address)) internal syToBulkSeller;
|
|
27
|
-
|
|
28
|
-
modifier onlyMaintainer() {
|
|
29
|
-
if (!isMaintainer(msg.sender)) revert Errors.BulkNotMaintainer();
|
|
30
|
-
_;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
constructor() initializer {}
|
|
34
|
-
|
|
35
|
-
function initialize(address implementation_) external initializer {
|
|
36
|
-
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
|
|
37
|
-
upgradeBeacon(implementation_);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function createBulkSeller(
|
|
41
|
-
address token,
|
|
42
|
-
address SY
|
|
43
|
-
) external onlyMaintainer returns (address bulk) {
|
|
44
|
-
IStandardizedYield _SY = IStandardizedYield(SY);
|
|
45
|
-
if (syToBulkSeller[token][SY] != address(0))
|
|
46
|
-
revert Errors.BulkSellerAlreadyExisted(token, SY, syToBulkSeller[token][SY]);
|
|
47
|
-
if (_SY.isValidTokenIn(token) == false || _SY.isValidTokenOut(token) == false)
|
|
48
|
-
revert Errors.BulkSellerInvalidToken(token, SY);
|
|
49
|
-
|
|
50
|
-
bytes memory data = abi.encodeWithSignature(
|
|
51
|
-
"initialize(address,address,address)",
|
|
52
|
-
token,
|
|
53
|
-
SY,
|
|
54
|
-
address(this)
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
bulk = address(new BeaconProxy(address(this), data));
|
|
58
|
-
|
|
59
|
-
syToBulkSeller[token][SY] = bulk;
|
|
60
|
-
|
|
61
|
-
emit BulkSellerCreated(token, SY, bulk);
|
|
62
|
-
|
|
63
|
-
return bulk;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function get(address token, address SY) external view override returns (address) {
|
|
67
|
-
return syToBulkSeller[token][SY];
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function isMaintainer(address addr) public view override returns (bool) {
|
|
71
|
-
return (hasRole(DEFAULT_ADMIN_ROLE, addr) || hasRole(MAINTAINER, addr));
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// ----------------- upgrade-related -----------------
|
|
75
|
-
function upgradeBeacon(address newImplementation) public onlyMaintainer {
|
|
76
|
-
require(
|
|
77
|
-
AddressUpgradeable.isContract(newImplementation),
|
|
78
|
-
"UpgradeableBeacon: implementation is not a contract"
|
|
79
|
-
);
|
|
80
|
-
implementation = newImplementation;
|
|
81
|
-
emit UpgradedBeacon(newImplementation);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function _authorizeUpgrade(address) internal override onlyMaintainer {}
|
|
85
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity ^0.8.0;
|
|
3
|
-
|
|
4
|
-
import "../libraries/TokenHelper.sol";
|
|
5
|
-
import "../libraries/math/PMath.sol";
|
|
6
|
-
import "../libraries/Errors.sol";
|
|
7
|
-
|
|
8
|
-
struct BulkSellerState {
|
|
9
|
-
uint256 rateTokenToSy;
|
|
10
|
-
uint256 rateSyToToken;
|
|
11
|
-
uint256 totalToken;
|
|
12
|
-
uint256 totalSy;
|
|
13
|
-
uint256 feeRate;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
library BulkSellerMathCore {
|
|
17
|
-
using PMath for uint256;
|
|
18
|
-
|
|
19
|
-
function swapExactTokenForSy(
|
|
20
|
-
BulkSellerState memory state,
|
|
21
|
-
uint256 netTokenIn
|
|
22
|
-
) internal pure returns (uint256 netSyOut) {
|
|
23
|
-
netSyOut = calcSwapExactTokenForSy(state, netTokenIn);
|
|
24
|
-
state.totalToken += netTokenIn;
|
|
25
|
-
state.totalSy -= netSyOut;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function swapExactSyForToken(
|
|
29
|
-
BulkSellerState memory state,
|
|
30
|
-
uint256 netSyIn
|
|
31
|
-
) internal pure returns (uint256 netTokenOut) {
|
|
32
|
-
netTokenOut = calcSwapExactSyForToken(state, netSyIn);
|
|
33
|
-
state.totalSy += netSyIn;
|
|
34
|
-
state.totalToken -= netTokenOut;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function calcSwapExactTokenForSy(
|
|
38
|
-
BulkSellerState memory state,
|
|
39
|
-
uint256 netTokenIn
|
|
40
|
-
) internal pure returns (uint256 netSyOut) {
|
|
41
|
-
uint256 postFeeRate = state.rateTokenToSy.mulDown(PMath.ONE - state.feeRate);
|
|
42
|
-
assert(postFeeRate != 0);
|
|
43
|
-
|
|
44
|
-
netSyOut = netTokenIn.mulDown(postFeeRate);
|
|
45
|
-
if (netSyOut > state.totalSy)
|
|
46
|
-
revert Errors.BulkInsufficientSyForTrade(state.totalSy, netSyOut);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function calcSwapExactSyForToken(
|
|
50
|
-
BulkSellerState memory state,
|
|
51
|
-
uint256 netSyIn
|
|
52
|
-
) internal pure returns (uint256 netTokenOut) {
|
|
53
|
-
uint256 postFeeRate = state.rateSyToToken.mulDown(PMath.ONE - state.feeRate);
|
|
54
|
-
assert(postFeeRate != 0);
|
|
55
|
-
|
|
56
|
-
netTokenOut = netSyIn.mulDown(postFeeRate);
|
|
57
|
-
if (netTokenOut > state.totalToken)
|
|
58
|
-
revert Errors.BulkInsufficientTokenForTrade(state.totalToken, netTokenOut);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function getTokenProp(BulkSellerState memory state) internal pure returns (uint256) {
|
|
62
|
-
uint256 totalToken = state.totalToken;
|
|
63
|
-
uint256 totalTokenFromSy = state.totalSy.mulDown(state.rateSyToToken);
|
|
64
|
-
return totalToken.divDown(totalToken + totalTokenFromSy);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function getReBalanceParams(
|
|
68
|
-
BulkSellerState memory state,
|
|
69
|
-
uint256 targetTokenProp
|
|
70
|
-
) internal pure returns (uint256 netTokenToDeposit, uint256 netSyToRedeem) {
|
|
71
|
-
uint256 currentTokenProp = getTokenProp(state);
|
|
72
|
-
|
|
73
|
-
if (currentTokenProp > targetTokenProp) {
|
|
74
|
-
netTokenToDeposit = state
|
|
75
|
-
.totalToken
|
|
76
|
-
.mulDown(currentTokenProp - targetTokenProp)
|
|
77
|
-
.divDown(currentTokenProp);
|
|
78
|
-
} else {
|
|
79
|
-
uint256 currentSyProp = PMath.ONE - currentTokenProp;
|
|
80
|
-
netSyToRedeem = state.totalSy.mulDown(targetTokenProp - currentTokenProp).divDown(
|
|
81
|
-
currentSyProp
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function reBalanceTokenToSy(
|
|
87
|
-
BulkSellerState memory state,
|
|
88
|
-
uint256 netTokenToDeposit,
|
|
89
|
-
uint256 netSyFromToken,
|
|
90
|
-
uint256 maxDiff
|
|
91
|
-
) internal pure {
|
|
92
|
-
uint256 rate = netSyFromToken.divDown(netTokenToDeposit);
|
|
93
|
-
|
|
94
|
-
if (!PMath.isAApproxB(rate, state.rateTokenToSy, maxDiff))
|
|
95
|
-
revert Errors.BulkBadRateTokenToSy(rate, state.rateTokenToSy, maxDiff);
|
|
96
|
-
|
|
97
|
-
state.totalToken -= netTokenToDeposit;
|
|
98
|
-
state.totalSy += netSyFromToken;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function reBalanceSyToToken(
|
|
102
|
-
BulkSellerState memory state,
|
|
103
|
-
uint256 netSyToRedeem,
|
|
104
|
-
uint256 netTokenFromSy,
|
|
105
|
-
uint256 maxDiff
|
|
106
|
-
) internal pure {
|
|
107
|
-
uint256 rate = netTokenFromSy.divDown(netSyToRedeem);
|
|
108
|
-
|
|
109
|
-
if (!PMath.isAApproxB(rate, state.rateSyToToken, maxDiff))
|
|
110
|
-
revert Errors.BulkBadRateSyToToken(rate, state.rateSyToToken, maxDiff);
|
|
111
|
-
|
|
112
|
-
state.totalToken += netTokenFromSy;
|
|
113
|
-
state.totalSy -= netSyToRedeem;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function setRate(
|
|
117
|
-
BulkSellerState memory state,
|
|
118
|
-
uint256 rateSyToToken,
|
|
119
|
-
uint256 rateTokenToSy,
|
|
120
|
-
uint256 maxDiff
|
|
121
|
-
) internal pure {
|
|
122
|
-
if (
|
|
123
|
-
state.rateTokenToSy != 0 &&
|
|
124
|
-
!PMath.isAApproxB(rateTokenToSy, state.rateTokenToSy, maxDiff)
|
|
125
|
-
) {
|
|
126
|
-
revert Errors.BulkBadRateTokenToSy(rateTokenToSy, state.rateTokenToSy, maxDiff);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
if (
|
|
130
|
-
state.rateSyToToken != 0 &&
|
|
131
|
-
!PMath.isAApproxB(rateSyToToken, state.rateSyToToken, maxDiff)
|
|
132
|
-
) {
|
|
133
|
-
revert Errors.BulkBadRateSyToToken(rateSyToToken, state.rateSyToToken, maxDiff);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
state.rateTokenToSy = rateTokenToSy;
|
|
137
|
-
state.rateSyToToken = rateSyToToken;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity ^0.8.0;
|
|
3
|
-
|
|
4
|
-
import "../router/base/MarketApproxLib.sol";
|
|
5
|
-
import "../router/base/ActionBaseMintRedeem.sol";
|
|
6
|
-
|
|
7
|
-
interface IPActionMintRedeem {
|
|
8
|
-
event MintSyFromToken(
|
|
9
|
-
address indexed caller,
|
|
10
|
-
address indexed tokenIn,
|
|
11
|
-
address indexed SY,
|
|
12
|
-
address receiver,
|
|
13
|
-
uint256 netTokenIn,
|
|
14
|
-
uint256 netSyOut
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
event RedeemSyToToken(
|
|
18
|
-
address indexed caller,
|
|
19
|
-
address indexed tokenOut,
|
|
20
|
-
address indexed SY,
|
|
21
|
-
address receiver,
|
|
22
|
-
uint256 netSyIn,
|
|
23
|
-
uint256 netTokenOut
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
event MintPyFromSy(
|
|
27
|
-
address indexed caller,
|
|
28
|
-
address indexed receiver,
|
|
29
|
-
address indexed YT,
|
|
30
|
-
uint256 netSyIn,
|
|
31
|
-
uint256 netPyOut
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
event RedeemPyToSy(
|
|
35
|
-
address indexed caller,
|
|
36
|
-
address indexed receiver,
|
|
37
|
-
address indexed YT,
|
|
38
|
-
uint256 netPyIn,
|
|
39
|
-
uint256 netSyOut
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
event MintPyFromToken(
|
|
43
|
-
address indexed caller,
|
|
44
|
-
address indexed tokenIn,
|
|
45
|
-
address indexed YT,
|
|
46
|
-
address receiver,
|
|
47
|
-
uint256 netTokenIn,
|
|
48
|
-
uint256 netPyOut
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
event RedeemPyToToken(
|
|
52
|
-
address indexed caller,
|
|
53
|
-
address indexed tokenOut,
|
|
54
|
-
address indexed YT,
|
|
55
|
-
address receiver,
|
|
56
|
-
uint256 netPyIn,
|
|
57
|
-
uint256 netTokenOut
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
function mintSyFromToken(
|
|
61
|
-
address receiver,
|
|
62
|
-
address SY,
|
|
63
|
-
uint256 minSyOut,
|
|
64
|
-
TokenInput calldata input
|
|
65
|
-
) external payable returns (uint256 netSyOut);
|
|
66
|
-
|
|
67
|
-
function redeemSyToToken(
|
|
68
|
-
address receiver,
|
|
69
|
-
address SY,
|
|
70
|
-
uint256 netSyIn,
|
|
71
|
-
TokenOutput calldata output
|
|
72
|
-
) external returns (uint256 netTokenOut);
|
|
73
|
-
|
|
74
|
-
function mintPyFromToken(
|
|
75
|
-
address receiver,
|
|
76
|
-
address YT,
|
|
77
|
-
uint256 minPyOut,
|
|
78
|
-
TokenInput calldata input
|
|
79
|
-
) external payable returns (uint256 netPyOut);
|
|
80
|
-
|
|
81
|
-
function redeemPyToToken(
|
|
82
|
-
address receiver,
|
|
83
|
-
address YT,
|
|
84
|
-
uint256 netPyIn,
|
|
85
|
-
TokenOutput calldata output
|
|
86
|
-
) external returns (uint256 netTokenOut);
|
|
87
|
-
|
|
88
|
-
function mintPyFromSy(
|
|
89
|
-
address receiver,
|
|
90
|
-
address YT,
|
|
91
|
-
uint256 netSyIn,
|
|
92
|
-
uint256 minPyOut
|
|
93
|
-
) external returns (uint256 netPyOut);
|
|
94
|
-
|
|
95
|
-
function redeemPyToSy(
|
|
96
|
-
address receiver,
|
|
97
|
-
address YT,
|
|
98
|
-
uint256 netPyIn,
|
|
99
|
-
uint256 minSyOut
|
|
100
|
-
) external returns (uint256 netSyOut);
|
|
101
|
-
|
|
102
|
-
function redeemDueInterestAndRewards(
|
|
103
|
-
address user,
|
|
104
|
-
address[] calldata sys,
|
|
105
|
-
address[] calldata yts,
|
|
106
|
-
address[] calldata markets
|
|
107
|
-
) external;
|
|
108
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity ^0.8.0;
|
|
3
|
-
|
|
4
|
-
import "../core/BulkSeller/BulkSellerMathCore.sol";
|
|
5
|
-
|
|
6
|
-
interface IPBulkSeller {
|
|
7
|
-
event SwapExactTokenForSy(address receiver, uint256 netTokenIn, uint256 netSyOut);
|
|
8
|
-
event SwapExactSyForToken(address receiver, uint256 netSyIn, uint256 netTokenOut);
|
|
9
|
-
event RateUpdated(
|
|
10
|
-
uint256 newRateTokenToSy,
|
|
11
|
-
uint256 newRateSyToToken,
|
|
12
|
-
uint256 oldRateTokenToSy,
|
|
13
|
-
uint256 oldRateSyToToken
|
|
14
|
-
);
|
|
15
|
-
event ReBalanceTokenToSy(
|
|
16
|
-
uint256 netTokenDeposit,
|
|
17
|
-
uint256 netSyFromToken,
|
|
18
|
-
uint256 newTokenProp,
|
|
19
|
-
uint256 oldTokenProp
|
|
20
|
-
);
|
|
21
|
-
event ReBalanceSyToToken(
|
|
22
|
-
uint256 netSyRedeem,
|
|
23
|
-
uint256 netTokenFromSy,
|
|
24
|
-
uint256 newTokenProp,
|
|
25
|
-
uint256 oldTokenProp
|
|
26
|
-
);
|
|
27
|
-
event ReserveUpdated(uint256 totalToken, uint256 totalSy);
|
|
28
|
-
event FeeRateUpdated(uint256 newFeeRate, uint256 oldFeeRate);
|
|
29
|
-
|
|
30
|
-
function swapExactTokenForSy(
|
|
31
|
-
address receiver,
|
|
32
|
-
uint256 netTokenIn,
|
|
33
|
-
uint256 minSyOut
|
|
34
|
-
) external payable returns (uint256 netSyOut);
|
|
35
|
-
|
|
36
|
-
function swapExactSyForToken(
|
|
37
|
-
address receiver,
|
|
38
|
-
uint256 exactSyIn,
|
|
39
|
-
uint256 minTokenOut,
|
|
40
|
-
bool swapFromInternalBalance
|
|
41
|
-
) external returns (uint256 netTokenOut);
|
|
42
|
-
|
|
43
|
-
function SY() external view returns (address);
|
|
44
|
-
|
|
45
|
-
function token() external view returns (address);
|
|
46
|
-
|
|
47
|
-
function readState() external view returns (BulkSellerState memory);
|
|
48
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity ^0.8.0;
|
|
3
|
-
|
|
4
|
-
interface IPBulkSellerFactory {
|
|
5
|
-
event BulkSellerCreated(address indexed token, address indexed sy, address indexed bulk);
|
|
6
|
-
|
|
7
|
-
event UpgradedBeacon(address indexed implementation);
|
|
8
|
-
|
|
9
|
-
function get(address token, address SY) external view returns (address);
|
|
10
|
-
|
|
11
|
-
function isMaintainer(address addr) external view returns (bool);
|
|
12
|
-
}
|