@pendle/core-v2 2.29.1 → 2.29.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/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +4 -0
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +426 -0
- 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/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/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 +74 -9
- 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 +74 -9
- 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/SYBase.sol/SYBase.json +65 -0
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseUpg.sol/SYBaseUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseUpg.sol/SYBaseUpg.json +976 -0
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.json +65 -0
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewardsUpg.sol/SYBaseWithRewardsUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewardsUpg.sol/SYBaseWithRewardsUpg.json +1042 -0
- package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ankr/PendleAnkrBNBSY.sol/PendleAnkrBNBSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ankr/PendleAnkrBNBSY.sol/PendleAnkrBNBSY.json +67 -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 +67 -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 +67 -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 +67 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraWethVethSYUpg.sol/AuraWethVethSYUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraWethVethSYUpg.sol/AuraWethVethSYUpg.json +1211 -0
- 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 +67 -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 +67 -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 +67 -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 +67 -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 +67 -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 +67 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreviewProxy.sol/ComposableStablePreviewProxy.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreviewProxy.sol/ComposableStablePreviewProxy.json +2 -2
- 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/ComposableStablePreviewV4.sol/ComposableStablePreviewV4.json +2 -2
- 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/ComposableStable/ComposableStablePreviewV5.sol/ComposableStablePreviewV5.json +2 -2
- 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/Linear/BbAPoolHelper.sol/BbAPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/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/MetaStablePreview.sol/MetaStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.json +65 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV3Upg.sol/PendleAuraBalancerStableLPSYV3Upg.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV3Upg.sol/PendleAuraBalancerStableLPSYV3Upg.json +1188 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +67 -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 +67 -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/ChainlinkRelayer/PendleChainlinkRelayer.sol/PendleChainlinkRelayer.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +67 -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 +67 -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/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.json +65 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Flux/FluxTokenLib.sol/FluxTokenLib.dbg.json +1 -1
- 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 +67 -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 +67 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/HMX/HLPPricingHelper.sol/HLPPricingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/HMX/HLPPricingHelper.sol/HLPPricingHelper.json +2 -2
- 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 +67 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/KyberMathHelper.sol/KyberMathHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/KyberMathHelper.sol/KyberMathHelper.json +375 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/KyberNftManagerBaseUpg.sol/KyberNftManagerBaseUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/KyberNftManagerBaseUpg.sol/KyberNftManagerBaseUpg.json +82 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/PendleKyberElasticSYUpg.sol/PendleKyberElasticSYUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/PendleKyberElasticSYUpg.sol/PendleKyberElasticSYUpg.json +1287 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/FullMath.sol/FullMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/FullMath.sol/FullMath.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/LiqDeltaMath.sol/LiqDeltaMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/LiqDeltaMath.sol/LiqDeltaMath.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/LiquidityMath.sol/LiquidityMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/LiquidityMath.sol/LiquidityMath.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/MathConstants.sol/MathConstants.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/MathConstants.sol/MathConstants.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/QtyDeltaMath.sol/QtyDeltaMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/QtyDeltaMath.sol/QtyDeltaMath.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/QuadMath.sol/QuadMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/QuadMath.sol/QuadMath.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/ReinvestmentMath.sol/ReinvestmentMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/ReinvestmentMath.sol/ReinvestmentMath.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/SafeCast.sol/SafeCast.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/SafeCast.sol/SafeCast.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/SwapMath.sol/SwapMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/SwapMath.sol/SwapMath.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/TickMath.sol/TickMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/TickMath.sol/TickMath.json +10 -0
- 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 +67 -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 +67 -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 +67 -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 +67 -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 +67 -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 +67 -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 +67 -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 +67 -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 +67 -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 +67 -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 +67 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveSY.sol/PendleSiloWithIncentiveSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveSY.sol/PendleSiloWithIncentiveSY.json +1177 -0
- 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 +67 -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 +67 -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 +67 -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/StandardizedYield/implementations/Thena/ThenaPreview.sol/ThenaPreview.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +67 -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 +67 -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 +67 -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 +67 -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 +67 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20PermitUpg.sol/PendleERC20PermitUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/erc20/PendleERC20PermitUpg.sol/PendleERC20PermitUpg.json +370 -0
- package/build/artifacts/contracts/core/erc20/PendleERC20Upg.sol/PendleERC20Upg.dbg.json +4 -0
- package/build/artifacts/contracts/core/erc20/PendleERC20Upg.sol/PendleERC20Upg.json +246 -0
- 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/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/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/ICamelotNFTPool.sol/ICamelotNFTPool.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.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/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/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/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +1 -1
- 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/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/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.json +150 -0
- 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/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- 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/Kyber/IKyberElasticFactory.sol/IKyberElasticFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Kyber/IKyberElasticFactory.sol/IKyberElasticFactory.json +436 -0
- package/build/artifacts/contracts/interfaces/Kyber/IKyberElasticPool.sol/IKyberElasticPool.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Kyber/IKyberElasticPool.sol/IKyberElasticPool.json +300 -0
- package/build/artifacts/contracts/interfaces/Kyber/IKyberElasticRouter.sol/IKyberElasticRouter.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Kyber/IKyberElasticRouter.sol/IKyberElasticRouter.json +225 -0
- package/build/artifacts/contracts/interfaces/Kyber/IKyberLiquidityMining.sol/IKyberLiquidityMining.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Kyber/IKyberLiquidityMining.sol/IKyberLiquidityMining.json +894 -0
- package/build/artifacts/contracts/interfaces/Kyber/IKyberMathHelper.sol/IKyberMathHelper.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Kyber/IKyberMathHelper.sol/IKyberMathHelper.json +128 -0
- package/build/artifacts/contracts/interfaces/Kyber/IKyberPositionManager.sol/IKyberPositionManager.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Kyber/IKyberPositionManager.sol/IKyberPositionManager.json +614 -0
- package/build/artifacts/contracts/interfaces/Lybra/IEUSD.sol/IEUSD.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Silo/ISilo.sol/ISilo.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Silo/ISilo.sol/ISilo.json +837 -0
- package/build/artifacts/contracts/interfaces/Silo/ISiloIncentiveController.sol/ISiloIncentiveController.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Silo/ISiloIncentiveController.sol/ISiloIncentiveController.json +48 -0
- package/build/artifacts/contracts/interfaces/Silo/ISiloLens.sol/ISiloLens.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Silo/ISiloLens.sol/ISiloLens.json +35 -0
- 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/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/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/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/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/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/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/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/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/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.json +2 -2
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterHelper2.sol/PendleRouterHelper2.dbg.json +4 -0
- package/build/artifacts/contracts/router/PendleRouterHelper2.sol/PendleRouterHelper2.json +145 -0
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/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/oneinch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/oneinch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +1 -1
- package/contracts/LiquidityMining/PendleMerkleDistributor.sol +95 -0
- package/contracts/core/StandardizedYield/SYBaseUpg.sol +224 -0
- package/contracts/core/StandardizedYield/SYBaseWithRewardsUpg.sol +120 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/{PendleAuraWethVethSY.sol → AuraWethVethSYUpg.sol} +31 -33
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV3Upg.sol +363 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/KyberMathHelper.sol +390 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/KyberNftManagerBaseUpg.sol +411 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/PendleKyberElasticSYUpg.sol +153 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/libraries/FullMath.sol +132 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/libraries/LiqDeltaMath.sol +18 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/libraries/LiquidityMath.sol +75 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/libraries/MathConstants.sol +21 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/libraries/QtyDeltaMath.sol +117 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/libraries/QuadMath.sol +37 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/libraries/ReinvestmentMath.sol +31 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/libraries/SafeCast.sol +75 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/libraries/SwapMath.sol +338 -0
- package/contracts/core/StandardizedYield/implementations/Kyber/libraries/TickMath.sol +224 -0
- package/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveSY.sol +165 -0
- package/contracts/core/erc20/PendleERC20PermitUpg.sol +87 -0
- package/contracts/core/erc20/PendleERC20Upg.sol +340 -0
- package/contracts/core/libraries/ArrayLib.sol +5 -0
- package/contracts/interfaces/IPMerkleDistributor.sol +24 -0
- package/contracts/interfaces/Kyber/IKyberElasticFactory.sol +165 -0
- package/contracts/interfaces/Kyber/IKyberElasticPool.sol +112 -0
- package/contracts/interfaces/Kyber/IKyberElasticRouter.sol +110 -0
- package/contracts/interfaces/Kyber/IKyberLiquidityMining.sol +227 -0
- package/contracts/interfaces/Kyber/IKyberMathHelper.sol +28 -0
- package/contracts/interfaces/Kyber/IKyberPositionManager.sol +196 -0
- package/contracts/interfaces/Silo/ISilo.sol +317 -0
- package/contracts/interfaces/Silo/ISiloIncentiveController.sol +19 -0
- package/contracts/interfaces/Silo/ISiloLens.sol +9 -0
- package/contracts/offchain-helpers/ChainlinkRelayerAutomation.sol +1 -1
- package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +41 -49
- package/contracts/router/PendleRouterHelper2.sol +40 -0
- package/deployments/1-core.json +1 -0
- package/deployments/1-markets/EPENDLE-SEP2024.json +12 -0
- package/deployments/1-markets/SFRAX-MARCH2024.json +10 -0
- package/deployments/1-markets/SILO-CRVUSD-MARCH2024.json +10 -0
- package/deployments/10-core.json +1 -0
- package/deployments/42161-core.json +1 -0
- package/deployments/42161-markets/KYBER-AXLWSTETH-WSTETH-MARCH2024.json +10 -0
- package/deployments/56-core.json +1 -0
- package/deployments/merkle-distribution/2023-10-26.json +7300 -0
- package/package.json +8 -8
- package/typechain-types/ActionLimitOrdersStatic.ts +262 -0
- package/typechain-types/AuraEthxBbAWethSY.ts +65 -0
- package/typechain-types/AuraSwEthBbAWethSYV2.ts +65 -0
- package/typechain-types/AuraWethVethSYUpg.ts +1612 -0
- package/typechain-types/EIP712.ts +135 -0
- package/typechain-types/EIP712Upgradeable.ts +144 -0
- package/typechain-types/ERC20Permit.ts +65 -0
- package/typechain-types/ICamelotNFTPool.ts +5 -5
- package/typechain-types/ICamelotNitroPool.ts +5 -5
- package/typechain-types/IDaiLikePermit.ts +146 -0
- package/typechain-types/IERC1967.ts +97 -0
- package/typechain-types/IERC5267.ts +135 -0
- package/typechain-types/IERC5267Upgradeable.ts +135 -0
- package/typechain-types/IERC721.ts +5 -5
- 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/IPLimitRouter.ts +532 -0
- package/typechain-types/IPMerkleDistributor.ts +235 -0
- package/typechain-types/IPOrderMixin.ts +349 -0
- package/typechain-types/ISilo.ts +1093 -0
- package/typechain-types/ISiloIncentiveController.ts +129 -0
- package/typechain-types/ISiloLens.ts +107 -0
- package/typechain-types/KyberMathHelper.ts +604 -0
- package/typechain-types/KyberNftManagerBaseUpg.ts +148 -0
- package/typechain-types/NonceManager.ts +209 -0
- package/typechain-types/PendleAnkrBNBSY.ts +65 -0
- package/typechain-types/PendleArbitrumStakedEthSY.ts +65 -0
- package/typechain-types/PendleAuraBalancerStableLPSYV2.ts +65 -0
- package/typechain-types/PendleAuraBalancerStableLPSYV3Upg.ts +1577 -0
- package/typechain-types/PendleAuraBbAWethSwethSY.ts +65 -0
- package/typechain-types/PendleAuraWethAnkrethSYV2.ts +65 -0
- package/typechain-types/PendleAuraWethRocketEthSYV2.ts +65 -0
- package/typechain-types/PendleAuraWethStafiEthSY.ts +65 -0
- package/typechain-types/PendleAuraWethVethSY.ts +65 -0
- package/typechain-types/PendleAuraWethWstethSYV2.ts +65 -0
- package/typechain-types/PendleAuraWstethAnkreth.ts +65 -0
- package/typechain-types/PendleBridgedLSDSY.ts +65 -0
- package/typechain-types/PendleCamelotV1VolatileSY.ts +65 -0
- package/typechain-types/PendleConvexLPSY.ts +65 -0
- package/typechain-types/PendleCurveFraxUsdcSY.ts +65 -0
- package/typechain-types/PendleCurveUsdd3CrvSY.ts +65 -0
- package/typechain-types/PendleERC20Permit.ts +65 -0
- package/typechain-types/PendleERC20PermitUpg.ts +517 -0
- package/typechain-types/PendleERC20Upg.ts +348 -0
- package/typechain-types/PendleERC4626SY.ts +65 -0
- package/typechain-types/PendleETHXSY.ts +65 -0
- package/typechain-types/PendleEUSDSY.ts +65 -0
- package/typechain-types/PendleFluxLendingSY.ts +65 -0
- package/typechain-types/PendleGDaiSY.ts +65 -0
- package/typechain-types/PendleGlpSY.ts +65 -0
- package/typechain-types/PendleHlpSY.ts +65 -0
- package/typechain-types/PendleKyberElasticSY.ts +1583 -0
- package/typechain-types/PendleKyberElasticSYUpg.ts +1648 -0
- package/typechain-types/PendleLimitRouter.ts +936 -0
- package/typechain-types/PendleLooksStakingSY.ts +65 -0
- package/typechain-types/PendleMantleStakedEthSY.ts +65 -0
- package/typechain-types/PendleMarket.ts +65 -0
- package/typechain-types/PendleMarketV2.ts +65 -0
- package/typechain-types/PendleMerkleDistributor.ts +610 -0
- package/typechain-types/PendleOrderMixin.ts +753 -0
- package/typechain-types/PendlePrincipalToken.ts +65 -0
- package/typechain-types/PendlePrincipalTokenV2.ts +65 -0
- package/typechain-types/PendleQiTokenSY.ts +65 -0
- package/typechain-types/PendleRouterHelper2.ts +185 -0
- package/typechain-types/PendleSfrxEthSY.ts +65 -0
- package/typechain-types/PendleSiloWithIncentiveSY.ts +1455 -0
- package/typechain-types/PendleStargateLPSY.ts +65 -0
- package/typechain-types/PendleThenaSY.ts +65 -0
- package/typechain-types/PendleWbEthSY.ts +65 -0
- package/typechain-types/PendleWstEthSY.ts +65 -0
- package/typechain-types/PendleYieldToken.ts +65 -0
- package/typechain-types/PendleYieldTokenV2.ts +65 -0
- package/typechain-types/PredicateHelper.ts +298 -0
- package/typechain-types/RouterV2InterfaceForRouterHelper.ts +479 -0
- package/typechain-types/SAPE.ts +65 -0
- package/typechain-types/SYBase.ts +65 -0
- package/typechain-types/SYBaseUpg.ts +1270 -0
- package/typechain-types/SYBaseWithRewards.ts +65 -0
- package/typechain-types/SYBaseWithRewardsUpg.ts +1363 -0
- package/typechain-types/ShortStrings.ts +57 -0
- package/typechain-types/SimulateHelper.ts +146 -0
- package/typechain-types/SwETHSY.ts +65 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
- 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 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
- package/typechain-types/factories/ActionMisc__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/AddressProvider__factory.ts +1 -1
- package/typechain-types/factories/AuraEthxBbAWethSY__factory.ts +66 -1
- package/typechain-types/factories/AuraSwEthBbAWethSYV2__factory.ts +66 -1
- package/typechain-types/factories/AuraWethVethSYUpg__factory.ts +1264 -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/BulkSellerFactory__factory.ts +1 -1
- package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
- package/typechain-types/factories/BulkSeller__factory.ts +1 -1
- package/typechain-types/factories/CamelotRewardHelper__factory.ts +1 -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/ComposableStablePreviewProxy__factory.ts +1 -1
- package/typechain-types/factories/ComposableStablePreviewV4__factory.ts +1 -1
- package/typechain-types/factories/ComposableStablePreviewV5__factory.ts +1 -1
- package/typechain-types/factories/EIP712Upgradeable__factory.ts +88 -0
- package/typechain-types/factories/EIP712__factory.ts +85 -0
- package/typechain-types/factories/ERC20Permit__factory.ts +65 -0
- package/typechain-types/factories/ERC20__factory.ts +1 -1
- package/typechain-types/factories/EmptyUUPS__factory.ts +1 -1
- package/typechain-types/factories/HLPPricingHelper__factory.ts +1 -1
- package/typechain-types/factories/ICamelotNFTPool__factory.ts +1 -1
- package/typechain-types/factories/ICamelotNitroPool__factory.ts +1 -1
- package/typechain-types/factories/IDaiLikePermit__factory.ts +74 -0
- package/typechain-types/factories/IERC1967__factory.ts +68 -0
- package/typechain-types/factories/IERC5267Upgradeable__factory.ts +75 -0
- package/typechain-types/factories/IERC5267__factory.ts +72 -0
- package/typechain-types/factories/IERC721__factory.ts +1 -1
- 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/IPLimitRouter__factory.ts +670 -0
- package/typechain-types/factories/IPMerkleDistributor__factory.ts +165 -0
- package/typechain-types/factories/IPOrderMixin__factory.ts +450 -0
- package/typechain-types/factories/ISiloIncentiveController__factory.ts +67 -0
- package/typechain-types/factories/ISiloLens__factory.ts +47 -0
- package/typechain-types/factories/ISilo__factory.ts +846 -0
- package/typechain-types/factories/KyberMathHelper__factory.ts +430 -0
- package/typechain-types/factories/KyberNftManagerBaseUpg__factory.ts +101 -0
- package/typechain-types/factories/LinearPreview__factory.ts +1 -1
- package/typechain-types/factories/MetaStablePreview__factory.ts +1 -1
- package/typechain-types/factories/NonceManager__factory.ts +149 -0
- package/typechain-types/factories/PendleAnkrBNBSY__factory.ts +66 -1
- package/typechain-types/factories/PendleArbitrumStakedEthSY__factory.ts +66 -1
- package/typechain-types/factories/PendleAuraBalancerStableLPSYV2__factory.ts +65 -0
- package/typechain-types/factories/PendleAuraBalancerStableLPSYV3Upg__factory.ts +1209 -0
- package/typechain-types/factories/PendleAuraBbAWethSwethSY__factory.ts +66 -1
- package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +66 -1
- package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +66 -1
- package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +66 -1
- package/typechain-types/factories/PendleAuraWethVethSY__factory.ts +66 -1
- package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +66 -1
- package/typechain-types/factories/PendleAuraWstethAnkreth__factory.ts +66 -1
- package/typechain-types/factories/PendleBridgedLSDSY__factory.ts +66 -1
- package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +66 -1
- package/typechain-types/factories/PendleChainlinkReceiver__factory.ts +1 -1
- package/typechain-types/factories/PendleChainlinkRelayer__factory.ts +1 -1
- package/typechain-types/factories/PendleConvexLPSY__factory.ts +65 -0
- package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +66 -1
- package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +66 -1
- package/typechain-types/factories/PendleERC20PermitUpg__factory.ts +389 -0
- package/typechain-types/factories/PendleERC20Permit__factory.ts +66 -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 +66 -1
- package/typechain-types/factories/PendleETHXSY__factory.ts +66 -1
- package/typechain-types/factories/PendleEUSDSY__factory.ts +66 -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 +66 -1
- package/typechain-types/factories/PendleGDaiSY__factory.ts +66 -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 +66 -1
- package/typechain-types/factories/PendleHlpSY__factory.ts +66 -1
- package/typechain-types/factories/PendleKyberElasticSYUpg__factory.ts +1351 -0
- package/typechain-types/factories/PendleKyberElasticSY__factory.ts +1302 -0
- package/typechain-types/factories/PendleLimitRouter__factory.ts +992 -0
- package/typechain-types/factories/PendleLooksStakingSY__factory.ts +66 -1
- package/typechain-types/factories/PendleLpGlpOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleMantleStakedEthSY__factory.ts +66 -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 +66 -1
- package/typechain-types/factories/PendleMarket__factory.ts +66 -1
- package/typechain-types/factories/PendleMerkleDistributor__factory.ts +488 -0
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleOracleForSyProxy__factory.ts +1 -1
- package/typechain-types/factories/PendleOrderMixin__factory.ts +718 -0
- package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +66 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +66 -1
- package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
- package/typechain-types/factories/PendlePtOracle__factory.ts +1 -1
- package/typechain-types/factories/PendlePtUsdChainlinkOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +66 -1
- package/typechain-types/factories/PendleRouterHelper2__factory.ts +206 -0
- package/typechain-types/factories/PendleRouterHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleSfrxEthSY__factory.ts +66 -1
- package/typechain-types/factories/PendleSiloWithIncentiveSY__factory.ts +1266 -0
- package/typechain-types/factories/PendleStargateLPSY__factory.ts +66 -1
- package/typechain-types/factories/PendleSwap__factory.ts +1 -1
- package/typechain-types/factories/PendleThenaSY__factory.ts +66 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleWbEthSY__factory.ts +66 -1
- package/typechain-types/factories/PendleWstEthSY__factory.ts +66 -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 +66 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +66 -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 +66 -1
- package/typechain-types/factories/SYBaseUpg__factory.ts +988 -0
- package/typechain-types/factories/SYBaseWithRewardsUpg__factory.ts +1061 -0
- package/typechain-types/factories/SYBaseWithRewards__factory.ts +65 -0
- package/typechain-types/factories/SYBase__factory.ts +65 -0
- package/typechain-types/factories/ShortStrings__factory.ts +77 -0
- package/typechain-types/factories/SimulateHelper__factory.ts +84 -0
- package/typechain-types/factories/SwETHSY__factory.ts +66 -1
- package/typechain-types/factories/ThenaPreview__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 +350 -17
- package/typechain-types/index.ts +78 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethVethSY.sol/PendleAuraWethVethSY.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethVethSY.sol/PendleAuraWethVethSY.json +0 -1166
- package/deployments/1-markets/BALANCER-LP-AURA-VETH-WETH-SEP2024.json +0 -8
- /package/deployments/1-markets/{BALANCER-LP-AURA-BBAWETHSWETH-SEP-26-2024.json → deprecated/BALANCER-LP-AURA-BBAWETHSWETH-SEP-26-2024.json} +0 -0
- /package/deployments/1-markets/{BALANCER-LP-AURA-ETHX-BBAWETH-SEP-26-2024.json → deprecated/BALANCER-LP-AURA-ETHX-BBAWETH-SEP-26-2024.json} +0 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity >=0.8.0;
|
|
3
|
+
|
|
4
|
+
/// @title KyberSwap v2 factory
|
|
5
|
+
/// @notice Deploys KyberSwap v2 pools and manages control over government fees
|
|
6
|
+
interface IKyberElasticFactory {
|
|
7
|
+
/// @notice Emitted when a pool is created
|
|
8
|
+
/// @param token0 First pool token by address sort order
|
|
9
|
+
/// @param token1 Second pool token by address sort order
|
|
10
|
+
/// @param swapFeeUnits Fee to be collected upon every swap in the pool, in fee units
|
|
11
|
+
/// @param tickDistance Minimum number of ticks between initialized ticks
|
|
12
|
+
/// @param pool The address of the created pool
|
|
13
|
+
event PoolCreated(
|
|
14
|
+
address indexed token0,
|
|
15
|
+
address indexed token1,
|
|
16
|
+
uint24 indexed swapFeeUnits,
|
|
17
|
+
int24 tickDistance,
|
|
18
|
+
address pool
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
/// @notice Emitted when a new fee is enabled for pool creation via the factory
|
|
22
|
+
/// @param swapFeeUnits Fee to be collected upon every swap in the pool, in fee units
|
|
23
|
+
/// @param tickDistance Minimum number of ticks between initialized ticks for pools created with the given fee
|
|
24
|
+
event SwapFeeEnabled(uint24 indexed swapFeeUnits, int24 indexed tickDistance);
|
|
25
|
+
|
|
26
|
+
/// @notice Emitted when vesting period changes
|
|
27
|
+
/// @param vestingPeriod The maximum time duration for which LP fees
|
|
28
|
+
/// are proportionally burnt upon LP removals
|
|
29
|
+
event VestingPeriodUpdated(uint32 vestingPeriod);
|
|
30
|
+
|
|
31
|
+
/// @notice Emitted when configMaster changes
|
|
32
|
+
/// @param oldConfigMaster configMaster before the update
|
|
33
|
+
/// @param newConfigMaster configMaster after the update
|
|
34
|
+
event ConfigMasterUpdated(address oldConfigMaster, address newConfigMaster);
|
|
35
|
+
|
|
36
|
+
/// @notice Emitted when fee configuration changes
|
|
37
|
+
/// @param feeTo Recipient of government fees
|
|
38
|
+
/// @param governmentFeeUnits Fee amount, in fee units,
|
|
39
|
+
/// to be collected out of the fee charged for a pool swap
|
|
40
|
+
event FeeConfigurationUpdated(address feeTo, uint24 governmentFeeUnits);
|
|
41
|
+
|
|
42
|
+
/// @notice Emitted when whitelist feature is enabled
|
|
43
|
+
event WhitelistEnabled();
|
|
44
|
+
|
|
45
|
+
/// @notice Emitted when whitelist feature is disabled
|
|
46
|
+
event WhitelistDisabled();
|
|
47
|
+
|
|
48
|
+
/// @notice Returns the maximum time duration for which LP fees
|
|
49
|
+
/// are proportionally burnt upon LP removals
|
|
50
|
+
function vestingPeriod() external view returns (uint32);
|
|
51
|
+
|
|
52
|
+
/// @notice Returns the tick distance for a specified fee.
|
|
53
|
+
/// @dev Once added, cannot be updated or removed.
|
|
54
|
+
/// @param swapFeeUnits Swap fee, in fee units.
|
|
55
|
+
/// @return The tick distance. Returns 0 if fee has not been added.
|
|
56
|
+
function feeAmountTickDistance(uint24 swapFeeUnits) external view returns (int24);
|
|
57
|
+
|
|
58
|
+
/// @notice Returns the address which can update the fee configuration
|
|
59
|
+
function configMaster() external view returns (address);
|
|
60
|
+
|
|
61
|
+
/// @notice Returns the keccak256 hash of the Pool creation code
|
|
62
|
+
/// This is used for pre-computation of pool addresses
|
|
63
|
+
function poolInitHash() external view returns (bytes32);
|
|
64
|
+
|
|
65
|
+
/// @notice Returns the pool oracle contract for twap
|
|
66
|
+
function poolOracle() external view returns (address);
|
|
67
|
+
|
|
68
|
+
/// @notice Fetches the recipient of government fees
|
|
69
|
+
/// and current government fee charged in fee units
|
|
70
|
+
function feeConfiguration() external view returns (address _feeTo, uint24 _governmentFeeUnits);
|
|
71
|
+
|
|
72
|
+
/// @notice Returns the status of whitelisting feature of NFT managers
|
|
73
|
+
/// If true, anyone can mint liquidity tokens
|
|
74
|
+
/// Otherwise, only whitelisted NFT manager(s) are allowed to mint liquidity tokens
|
|
75
|
+
function whitelistDisabled() external view returns (bool);
|
|
76
|
+
|
|
77
|
+
//// @notice Returns all whitelisted NFT managers
|
|
78
|
+
/// If the whitelisting feature is turned on,
|
|
79
|
+
/// only whitelisted NFT manager(s) are allowed to mint liquidity tokens
|
|
80
|
+
function getWhitelistedNFTManagers() external view returns (address[] memory);
|
|
81
|
+
|
|
82
|
+
/// @notice Checks if sender is a whitelisted NFT manager
|
|
83
|
+
/// If the whitelisting feature is turned on,
|
|
84
|
+
/// only whitelisted NFT manager(s) are allowed to mint liquidity tokens
|
|
85
|
+
/// @param sender address to be checked
|
|
86
|
+
/// @return true if sender is a whistelisted NFT manager, false otherwise
|
|
87
|
+
function isWhitelistedNFTManager(address sender) external view returns (bool);
|
|
88
|
+
|
|
89
|
+
/// @notice Returns the pool address for a given pair of tokens and a swap fee
|
|
90
|
+
/// @dev Token order does not matter
|
|
91
|
+
/// @param tokenA Contract address of either token0 or token1
|
|
92
|
+
/// @param tokenB Contract address of the other token
|
|
93
|
+
/// @param swapFeeUnits Fee to be collected upon every swap in the pool, in fee units
|
|
94
|
+
/// @return pool The pool address. Returns null address if it does not exist
|
|
95
|
+
function getPool(
|
|
96
|
+
address tokenA,
|
|
97
|
+
address tokenB,
|
|
98
|
+
uint24 swapFeeUnits
|
|
99
|
+
) external view returns (address pool);
|
|
100
|
+
|
|
101
|
+
/// @notice Fetch parameters to be used for pool creation
|
|
102
|
+
/// @dev Called by the pool constructor to fetch the parameters of the pool
|
|
103
|
+
/// @return factory The factory address
|
|
104
|
+
/// @return poolOracle The pool oracle for twap
|
|
105
|
+
/// @return token0 First pool token by address sort order
|
|
106
|
+
/// @return token1 Second pool token by address sort order
|
|
107
|
+
/// @return swapFeeUnits Fee to be collected upon every swap in the pool, in fee units
|
|
108
|
+
/// @return tickDistance Minimum number of ticks between initialized ticks
|
|
109
|
+
function parameters()
|
|
110
|
+
external
|
|
111
|
+
view
|
|
112
|
+
returns (
|
|
113
|
+
address factory,
|
|
114
|
+
address poolOracle,
|
|
115
|
+
address token0,
|
|
116
|
+
address token1,
|
|
117
|
+
uint24 swapFeeUnits,
|
|
118
|
+
int24 tickDistance
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
/// @notice Creates a pool for the given two tokens and fee
|
|
122
|
+
/// @param tokenA One of the two tokens in the desired pool
|
|
123
|
+
/// @param tokenB The other of the two tokens in the desired pool
|
|
124
|
+
/// @param swapFeeUnits Desired swap fee for the pool, in fee units
|
|
125
|
+
/// @dev Token order does not matter. tickDistance is determined from the fee.
|
|
126
|
+
/// Call will revert under any of these conditions:
|
|
127
|
+
/// 1) pool already exists
|
|
128
|
+
/// 2) invalid swap fee
|
|
129
|
+
/// 3) invalid token arguments
|
|
130
|
+
/// @return pool The address of the newly created pool
|
|
131
|
+
function createPool(
|
|
132
|
+
address tokenA,
|
|
133
|
+
address tokenB,
|
|
134
|
+
uint24 swapFeeUnits
|
|
135
|
+
) external returns (address pool);
|
|
136
|
+
|
|
137
|
+
/// @notice Enables a fee amount with the given tickDistance
|
|
138
|
+
/// @dev Fee amounts may never be removed once enabled
|
|
139
|
+
/// @param swapFeeUnits The fee amount to enable, in fee units
|
|
140
|
+
/// @param tickDistance The distance between ticks to be enforced for all pools created with the given fee amount
|
|
141
|
+
function enableSwapFee(uint24 swapFeeUnits, int24 tickDistance) external;
|
|
142
|
+
|
|
143
|
+
/// @notice Updates the address which can update the fee configuration
|
|
144
|
+
/// @dev Must be called by the current configMaster
|
|
145
|
+
function updateConfigMaster(address) external;
|
|
146
|
+
|
|
147
|
+
/// @notice Updates the vesting period
|
|
148
|
+
/// @dev Must be called by the current configMaster
|
|
149
|
+
function updateVestingPeriod(uint32) external;
|
|
150
|
+
|
|
151
|
+
/// @notice Updates the address receiving government fees and fee quantity
|
|
152
|
+
/// @dev Only configMaster is able to perform the update
|
|
153
|
+
/// @param feeTo Address to receive government fees collected from pools
|
|
154
|
+
/// @param governmentFeeUnits Fee amount, in fee units,
|
|
155
|
+
/// to be collected out of the fee charged for a pool swap
|
|
156
|
+
function updateFeeConfiguration(address feeTo, uint24 governmentFeeUnits) external;
|
|
157
|
+
|
|
158
|
+
/// @notice Enables the whitelisting feature
|
|
159
|
+
/// @dev Only configMaster is able to perform the update
|
|
160
|
+
function enableWhitelist() external;
|
|
161
|
+
|
|
162
|
+
/// @notice Disables the whitelisting feature
|
|
163
|
+
/// @dev Only configMaster is able to perform the update
|
|
164
|
+
function disableWhitelist() external;
|
|
165
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity >=0.8.0;
|
|
3
|
+
|
|
4
|
+
interface IKyberElasticPool {
|
|
5
|
+
|
|
6
|
+
function factory() external view returns (address);
|
|
7
|
+
|
|
8
|
+
/// @notice The first of the two tokens of the pool, sorted by address
|
|
9
|
+
/// @return The token contract address
|
|
10
|
+
function token0() external view returns (address);
|
|
11
|
+
|
|
12
|
+
/// @notice The second of the two tokens of the pool, sorted by address
|
|
13
|
+
/// @return The token contract address
|
|
14
|
+
function token1() external view returns (address);
|
|
15
|
+
|
|
16
|
+
/// @notice The fee to be charged for a swap in basis points
|
|
17
|
+
/// @return The swap fee in basis points
|
|
18
|
+
function swapFeeUnits() external view returns (uint24);
|
|
19
|
+
|
|
20
|
+
function totalSupply() external view returns (uint256);
|
|
21
|
+
|
|
22
|
+
/// @notice The pool tick distance
|
|
23
|
+
/// @dev Ticks can only be initialized and used at multiples of this value
|
|
24
|
+
/// It remains an int24 to avoid casting even though it is >= 1.
|
|
25
|
+
/// e.g: a tickDistance of 5 means ticks can be initialized every 5th tick, i.e., ..., -10, -5, 0, 5, 10, ...
|
|
26
|
+
/// @return The tick distance
|
|
27
|
+
function tickDistance() external view returns (int24);
|
|
28
|
+
|
|
29
|
+
/// @notice Maximum gross liquidity that an initialized tick can have
|
|
30
|
+
/// @dev This is to prevent overflow the pool's active base liquidity (uint128)
|
|
31
|
+
/// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool
|
|
32
|
+
/// @return The max amount of liquidity per tick
|
|
33
|
+
function maxTickLiquidity() external view returns (uint128);
|
|
34
|
+
|
|
35
|
+
/// @notice Look up information about a specific tick in the pool
|
|
36
|
+
/// @param tick The tick to look up
|
|
37
|
+
/// @return liquidityGross total liquidity amount from positions that uses this tick as a lower or upper tick
|
|
38
|
+
/// liquidityNet how much liquidity changes when the pool tick crosses above the tick
|
|
39
|
+
/// feeGrowthOutside the fee growth on the other side of the tick relative to the current tick
|
|
40
|
+
/// secondsPerLiquidityOutside the seconds per unit of liquidity spent on the other side of the tick relative to the current tick
|
|
41
|
+
function ticks(int24 tick)
|
|
42
|
+
external
|
|
43
|
+
view
|
|
44
|
+
returns (
|
|
45
|
+
uint128 liquidityGross,
|
|
46
|
+
int128 liquidityNet,
|
|
47
|
+
uint256 feeGrowthOutside,
|
|
48
|
+
uint128 secondsPerLiquidityOutside
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
/// @notice Returns the previous and next initialized ticks of a specific tick
|
|
52
|
+
/// @dev If specified tick is uninitialized, the returned values are zero.
|
|
53
|
+
/// @param tick The tick to look up
|
|
54
|
+
function initializedTicks(int24 tick) external view returns (int24 previous, int24 next);
|
|
55
|
+
|
|
56
|
+
/// @notice Returns the information about a position by the position's key
|
|
57
|
+
/// @return liquidity the liquidity quantity of the position
|
|
58
|
+
/// @return feeGrowthInsideLast fee growth inside the tick range as of the last mint / burn action performed
|
|
59
|
+
function getPositions(
|
|
60
|
+
address owner,
|
|
61
|
+
int24 tickLower,
|
|
62
|
+
int24 tickUpper
|
|
63
|
+
) external view returns (uint128 liquidity, uint256 feeGrowthInsideLast);
|
|
64
|
+
|
|
65
|
+
/// @notice Fetches the pool's prices, ticks and lock status
|
|
66
|
+
/// @return sqrtP sqrt of current price: sqrt(token1/token0)
|
|
67
|
+
/// @return currentTick pool's current tick
|
|
68
|
+
/// @return nearestCurrentTick pool's nearest initialized tick that is <= currentTick
|
|
69
|
+
/// @return locked true if pool is locked, false otherwise
|
|
70
|
+
function getPoolState()
|
|
71
|
+
external
|
|
72
|
+
view
|
|
73
|
+
returns (
|
|
74
|
+
uint160 sqrtP,
|
|
75
|
+
int24 currentTick,
|
|
76
|
+
int24 nearestCurrentTick,
|
|
77
|
+
bool locked
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
/// @notice Fetches the pool's liquidity values
|
|
81
|
+
/// @return baseL pool's base liquidity without reinvest liqudity
|
|
82
|
+
/// @return reinvestL the liquidity is reinvested into the pool
|
|
83
|
+
/// @return reinvestLLast last cached value of reinvestL, used for calculating reinvestment token qty
|
|
84
|
+
function getLiquidityState()
|
|
85
|
+
external
|
|
86
|
+
view
|
|
87
|
+
returns (
|
|
88
|
+
uint128 baseL,
|
|
89
|
+
uint128 reinvestL,
|
|
90
|
+
uint128 reinvestLLast
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
/// @return feeGrowthGlobal All-time fee growth per unit of liquidity of the pool
|
|
94
|
+
function getFeeGrowthGlobal() external view returns (uint256);
|
|
95
|
+
|
|
96
|
+
/// @return secondsPerLiquidityGlobal All-time seconds per unit of liquidity of the pool
|
|
97
|
+
/// @return lastUpdateTime The timestamp in which secondsPerLiquidityGlobal was last updated
|
|
98
|
+
function getSecondsPerLiquidityData()
|
|
99
|
+
external
|
|
100
|
+
view
|
|
101
|
+
returns (uint128 secondsPerLiquidityGlobal, uint32 lastUpdateTime);
|
|
102
|
+
|
|
103
|
+
/// @notice Calculates and returns the active time per unit of liquidity until current block.timestamp
|
|
104
|
+
/// @param tickLower The lower tick (of a position)
|
|
105
|
+
/// @param tickUpper The upper tick (of a position)
|
|
106
|
+
/// @return secondsPerLiquidityInside active time (multiplied by 2^96)
|
|
107
|
+
/// between the 2 ticks, per unit of liquidity.
|
|
108
|
+
function getSecondsPerLiquidityInside(int24 tickLower, int24 tickUpper)
|
|
109
|
+
external
|
|
110
|
+
view
|
|
111
|
+
returns (uint128 secondsPerLiquidityInside);
|
|
112
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
2
|
+
pragma solidity >=0.8.0;
|
|
3
|
+
|
|
4
|
+
/// @notice Functions for swapping tokens via KyberSwap v2
|
|
5
|
+
/// - Support swap with exact input or exact output
|
|
6
|
+
/// - Support swap with a price limit
|
|
7
|
+
/// - Support swap within a single pool and between multiple pools
|
|
8
|
+
interface IKyberElasticRouter {
|
|
9
|
+
/// @dev Params for swapping exact input amount
|
|
10
|
+
/// @param tokenIn the token to swap
|
|
11
|
+
/// @param tokenOut the token to receive
|
|
12
|
+
/// @param fee the pool's fee
|
|
13
|
+
/// @param recipient address to receive tokenOut
|
|
14
|
+
/// @param deadline time that the transaction will be expired
|
|
15
|
+
/// @param amountIn the tokenIn amount to swap
|
|
16
|
+
/// @param amountOutMinimum the minimum receive amount
|
|
17
|
+
/// @param limitSqrtP the price limit, if reached, stop swapping
|
|
18
|
+
struct ExactInputSingleParams {
|
|
19
|
+
address tokenIn;
|
|
20
|
+
address tokenOut;
|
|
21
|
+
uint24 fee;
|
|
22
|
+
address recipient;
|
|
23
|
+
uint256 deadline;
|
|
24
|
+
uint256 amountIn;
|
|
25
|
+
uint256 minAmountOut;
|
|
26
|
+
uint160 limitSqrtP;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/// @notice Swaps `amountIn` of one token for as much as possible of another token
|
|
30
|
+
/// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata
|
|
31
|
+
/// @return amountOut The amount of the received token
|
|
32
|
+
function swapExactInputSingle(ExactInputSingleParams calldata params)
|
|
33
|
+
external
|
|
34
|
+
payable
|
|
35
|
+
returns (uint256 amountOut);
|
|
36
|
+
|
|
37
|
+
/// @dev Params for swapping exact input using multiple pools
|
|
38
|
+
/// @param path the encoded path to swap from tokenIn to tokenOut
|
|
39
|
+
/// If the swap is from token0 -> token1 -> token2, then path is encoded as [token0, fee01, token1, fee12, token2]
|
|
40
|
+
/// @param recipient address to receive tokenOut
|
|
41
|
+
/// @param deadline time that the transaction will be expired
|
|
42
|
+
/// @param amountIn the tokenIn amount to swap
|
|
43
|
+
/// @param amountOutMinimum the minimum receive amount
|
|
44
|
+
struct ExactInputParams {
|
|
45
|
+
bytes path;
|
|
46
|
+
address recipient;
|
|
47
|
+
uint256 deadline;
|
|
48
|
+
uint256 amountIn;
|
|
49
|
+
uint256 minAmountOut;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path
|
|
53
|
+
/// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata
|
|
54
|
+
/// @return amountOut The amount of the received token
|
|
55
|
+
function swapExactInput(ExactInputParams calldata params)
|
|
56
|
+
external
|
|
57
|
+
payable
|
|
58
|
+
returns (uint256 amountOut);
|
|
59
|
+
|
|
60
|
+
/// @dev Params for swapping exact output amount
|
|
61
|
+
/// @param tokenIn the token to swap
|
|
62
|
+
/// @param tokenOut the token to receive
|
|
63
|
+
/// @param fee the pool's fee
|
|
64
|
+
/// @param recipient address to receive tokenOut
|
|
65
|
+
/// @param deadline time that the transaction will be expired
|
|
66
|
+
/// @param amountOut the tokenOut amount of tokenOut
|
|
67
|
+
/// @param amountInMaximum the minimum input amount
|
|
68
|
+
/// @param limitSqrtP the price limit, if reached, stop swapping
|
|
69
|
+
struct ExactOutputSingleParams {
|
|
70
|
+
address tokenIn;
|
|
71
|
+
address tokenOut;
|
|
72
|
+
uint24 fee;
|
|
73
|
+
address recipient;
|
|
74
|
+
uint256 deadline;
|
|
75
|
+
uint256 amountOut;
|
|
76
|
+
uint256 maxAmountIn;
|
|
77
|
+
uint160 limitSqrtP;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/// @notice Swaps as little as possible of one token for `amountOut` of another token
|
|
81
|
+
/// @param params The parameters necessary for the swap, encoded as `ExactOutputSingleParams` in calldata
|
|
82
|
+
/// @return amountIn The amount of the input token
|
|
83
|
+
function swapExactOutputSingle(ExactOutputSingleParams calldata params)
|
|
84
|
+
external
|
|
85
|
+
payable
|
|
86
|
+
returns (uint256 amountIn);
|
|
87
|
+
|
|
88
|
+
/// @dev Params for swapping exact output using multiple pools
|
|
89
|
+
/// @param path the encoded path to swap from tokenIn to tokenOut
|
|
90
|
+
/// If the swap is from token0 -> token1 -> token2, then path is encoded as [token2, fee12, token1, fee01, token0]
|
|
91
|
+
/// @param recipient address to receive tokenOut
|
|
92
|
+
/// @param deadline time that the transaction will be expired
|
|
93
|
+
/// @param amountOut the tokenOut amount of tokenOut
|
|
94
|
+
/// @param amountInMaximum the minimum input amount
|
|
95
|
+
struct ExactOutputParams {
|
|
96
|
+
bytes path;
|
|
97
|
+
address recipient;
|
|
98
|
+
uint256 deadline;
|
|
99
|
+
uint256 amountOut;
|
|
100
|
+
uint256 maxAmountIn;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed)
|
|
104
|
+
/// @param params The parameters necessary for the multi-hop swap, encoded as `ExactOutputParams` in calldata
|
|
105
|
+
/// @return amountIn The amount of the input token
|
|
106
|
+
function swapExactOutput(ExactOutputParams calldata params)
|
|
107
|
+
external
|
|
108
|
+
payable
|
|
109
|
+
returns (uint256 amountIn);
|
|
110
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
2
|
+
pragma solidity >=0.8.0;
|
|
3
|
+
|
|
4
|
+
interface IKyberLiquidityMining {
|
|
5
|
+
error Forbidden();
|
|
6
|
+
error EmergencyEnabled();
|
|
7
|
+
|
|
8
|
+
error InvalidRange();
|
|
9
|
+
error InvalidTime();
|
|
10
|
+
error InvalidReward();
|
|
11
|
+
|
|
12
|
+
error PositionNotEligible();
|
|
13
|
+
error FarmNotFound();
|
|
14
|
+
error InvalidFarm();
|
|
15
|
+
error NotOwner();
|
|
16
|
+
error StakeNotFound();
|
|
17
|
+
error RangeNotMatch();
|
|
18
|
+
error RangeNotFound();
|
|
19
|
+
error PhaseSettled();
|
|
20
|
+
error InvalidInput();
|
|
21
|
+
error LiquidityNotMatch();
|
|
22
|
+
error FailToAdd();
|
|
23
|
+
error FailToRemove();
|
|
24
|
+
error Expired();
|
|
25
|
+
|
|
26
|
+
event UpdateEmergency(bool enableOrDisable);
|
|
27
|
+
event UpdateTokenCode(bytes farmingTokenCode);
|
|
28
|
+
event WithdrawUnusedRewards(address token, uint256 amount, address receiver);
|
|
29
|
+
|
|
30
|
+
event AddFarm(
|
|
31
|
+
uint256 indexed fId,
|
|
32
|
+
address poolAddress,
|
|
33
|
+
RangeInput[] ranges,
|
|
34
|
+
PhaseInput phase,
|
|
35
|
+
address farmingToken
|
|
36
|
+
);
|
|
37
|
+
event AddPhase(uint256 indexed fId, PhaseInput phase);
|
|
38
|
+
event ForceClosePhase(uint256 indexed fId);
|
|
39
|
+
event AddRange(uint256 indexed fId, RangeInput range);
|
|
40
|
+
event RemoveRange(uint256 indexed fId, uint256 rangeId);
|
|
41
|
+
event ActivateRange(uint256 indexed fId, uint256 rangeId);
|
|
42
|
+
event ExpandEndTimeAndRewards(uint256 indexed fId, uint256 duration, uint256[] rewardAmounts);
|
|
43
|
+
|
|
44
|
+
event Deposit(
|
|
45
|
+
uint256 indexed fId,
|
|
46
|
+
uint256 rangeId,
|
|
47
|
+
uint256[] nftIds,
|
|
48
|
+
address indexed depositer,
|
|
49
|
+
address receiver
|
|
50
|
+
);
|
|
51
|
+
event UpdateLiquidity(uint256 indexed fId, uint256 nftId, uint256 liquidity);
|
|
52
|
+
event Withdraw(uint256[] nftIds, address receiver);
|
|
53
|
+
event WithdrawEmergency(uint256 nftId, address receiver);
|
|
54
|
+
event ClaimReward(
|
|
55
|
+
uint256 fId,
|
|
56
|
+
uint256[] nftIds,
|
|
57
|
+
address token,
|
|
58
|
+
uint256 amount,
|
|
59
|
+
address receiver
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
struct RangeInput {
|
|
63
|
+
int24 tickLower;
|
|
64
|
+
int24 tickUpper;
|
|
65
|
+
uint32 weight;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
struct RewardInput {
|
|
69
|
+
address rewardToken;
|
|
70
|
+
uint256 rewardAmount;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
struct PhaseInput {
|
|
74
|
+
uint32 startTime;
|
|
75
|
+
uint32 endTime;
|
|
76
|
+
RewardInput[] rewards;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
struct RemoveLiquidityInput {
|
|
80
|
+
uint256 nftId;
|
|
81
|
+
uint128 liquidity;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
struct RangeInfo {
|
|
85
|
+
int24 tickLower;
|
|
86
|
+
int24 tickUpper;
|
|
87
|
+
uint32 weight;
|
|
88
|
+
bool isRemoved;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
struct PhaseInfo {
|
|
92
|
+
uint32 startTime;
|
|
93
|
+
uint32 endTime;
|
|
94
|
+
bool isSettled;
|
|
95
|
+
RewardInput[] rewards;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
struct FarmInfo {
|
|
99
|
+
address poolAddress;
|
|
100
|
+
RangeInfo[] ranges;
|
|
101
|
+
PhaseInfo phase;
|
|
102
|
+
uint256 liquidity;
|
|
103
|
+
address farmingToken;
|
|
104
|
+
uint256[] sumRewardPerLiquidity;
|
|
105
|
+
uint32 lastTouchedTime;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
struct StakeInfo {
|
|
109
|
+
address owner;
|
|
110
|
+
uint256 fId;
|
|
111
|
+
uint256 rangeId;
|
|
112
|
+
uint256 liquidity;
|
|
113
|
+
uint256[] lastSumRewardPerLiquidity;
|
|
114
|
+
uint256[] rewardUnclaimed;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// ======== user ============
|
|
118
|
+
/// @dev deposit nfts to farm
|
|
119
|
+
/// @dev store curRewardPerLiq now to stake info, mint an amount of farmingToken (if needed) to msg.sender
|
|
120
|
+
/// @param fId farm's id
|
|
121
|
+
/// @param rangeId rangeId to add, should use quoter to get best APR rangeId
|
|
122
|
+
/// @param nftIds nfts to deposit
|
|
123
|
+
function deposit(
|
|
124
|
+
uint256 fId,
|
|
125
|
+
uint256 rangeId,
|
|
126
|
+
uint256[] memory nftIds,
|
|
127
|
+
address receiver
|
|
128
|
+
) external;
|
|
129
|
+
|
|
130
|
+
/// @dev claim reward earned for nfts
|
|
131
|
+
/// @param fId farm's id
|
|
132
|
+
/// @param nftIds nfts to claim
|
|
133
|
+
function claimReward(uint256 fId, uint256[] memory nftIds) external;
|
|
134
|
+
|
|
135
|
+
/// @dev withdraw nfts from farm
|
|
136
|
+
/// @dev only can call by nfts's owner, also claim reward earned
|
|
137
|
+
/// @dev burn an amount of farmingToken (if needed) from msg.sender
|
|
138
|
+
/// @param fId farm's id
|
|
139
|
+
/// @param nftIds nfts to withdraw
|
|
140
|
+
function withdraw(uint256 fId, uint256[] memory nftIds) external;
|
|
141
|
+
|
|
142
|
+
/// @dev add liquidity of nfts when liquidity already added on Elastic Pool
|
|
143
|
+
/// @dev only can call by nfts's owner
|
|
144
|
+
/// @dev calculate reward earned, update stakeInfo, mint an amount of farmingToken to msg.sender
|
|
145
|
+
/// @param fId farm's id
|
|
146
|
+
/// @param rangeId rangeId of deposited nfts
|
|
147
|
+
/// @param nftIds nfts to add liquidity
|
|
148
|
+
function addLiquidity(uint256 fId, uint256 rangeId, uint256[] calldata nftIds) external;
|
|
149
|
+
|
|
150
|
+
/// @dev remove liquidity of nfts from Elastic Pool
|
|
151
|
+
/// @dev only can call by nfts's owner
|
|
152
|
+
/// @dev calculate reward earned, update stakeInfo, mint/burn an amount of farmingToken
|
|
153
|
+
/// @param nftId id of nft to remove liquidity
|
|
154
|
+
/// @param liquidity amount to remove from nft
|
|
155
|
+
/// @param amount0Min min amount of token0 should receive
|
|
156
|
+
/// @param amount1Min min amount of token1 should receive
|
|
157
|
+
/// @param deadline deadline of remove liquidity tx
|
|
158
|
+
/// @param isClaimFee is also burnRTokens or not
|
|
159
|
+
function removeLiquidity(
|
|
160
|
+
uint256 nftId,
|
|
161
|
+
uint128 liquidity,
|
|
162
|
+
uint256 amount0Min,
|
|
163
|
+
uint256 amount1Min,
|
|
164
|
+
uint256 deadline,
|
|
165
|
+
bool isClaimFee,
|
|
166
|
+
bool isReceiveNative
|
|
167
|
+
) external;
|
|
168
|
+
|
|
169
|
+
/// @dev claim fee from Elastic Pool
|
|
170
|
+
/// @dev only can call by nfts's owner
|
|
171
|
+
/// @param fId farm's id
|
|
172
|
+
/// @param nftIds nfts to claim
|
|
173
|
+
/// @param amount0Min min amount of token0 should receive
|
|
174
|
+
/// @param amount1Min min amount of token1 should receive
|
|
175
|
+
/// @param deadline deadline of remove liquidity tx
|
|
176
|
+
function claimFee(
|
|
177
|
+
uint256 fId,
|
|
178
|
+
uint256[] calldata nftIds,
|
|
179
|
+
uint256 amount0Min,
|
|
180
|
+
uint256 amount1Min,
|
|
181
|
+
uint256 deadline,
|
|
182
|
+
bool isReceiveNative
|
|
183
|
+
) external;
|
|
184
|
+
|
|
185
|
+
/// @dev withdraw nfts in case emergency
|
|
186
|
+
/// @dev only can call by nfts's owner
|
|
187
|
+
/// @dev in normal case, abandon all rewards, must return farmingToken
|
|
188
|
+
/// @dev incase emergencyEnabled, bypass all calculation
|
|
189
|
+
/// @param nftIds nfts to withdraw
|
|
190
|
+
function withdrawEmergency(uint256[] calldata nftIds) external;
|
|
191
|
+
|
|
192
|
+
function emergencyEnabled() external view returns (bool);
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
// ======== view ============
|
|
196
|
+
|
|
197
|
+
function getFarm(
|
|
198
|
+
uint256 fId
|
|
199
|
+
)
|
|
200
|
+
external
|
|
201
|
+
view
|
|
202
|
+
returns (
|
|
203
|
+
address poolAddress,
|
|
204
|
+
RangeInfo[] memory ranges,
|
|
205
|
+
PhaseInfo memory phase,
|
|
206
|
+
uint256 liquidity,
|
|
207
|
+
address farmingToken,
|
|
208
|
+
uint256[] memory sumRewardPerLiquidity,
|
|
209
|
+
uint32 lastTouchedTime
|
|
210
|
+
);
|
|
211
|
+
|
|
212
|
+
function getDepositedNFTs(address user) external view returns (uint256[] memory listNFTs);
|
|
213
|
+
|
|
214
|
+
function getStake(
|
|
215
|
+
uint256 nftId
|
|
216
|
+
)
|
|
217
|
+
external
|
|
218
|
+
view
|
|
219
|
+
returns (
|
|
220
|
+
address owner,
|
|
221
|
+
uint256 fId,
|
|
222
|
+
uint256 rangeId,
|
|
223
|
+
uint256 liquidity,
|
|
224
|
+
uint256[] memory lastSumRewardPerLiquidity,
|
|
225
|
+
uint256[] memory rewardUnclaimeds
|
|
226
|
+
);
|
|
227
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity >=0.8.0;
|
|
3
|
+
|
|
4
|
+
interface IKyberMathHelper {
|
|
5
|
+
function getSingleSidedSwapAmount(
|
|
6
|
+
address kyberPool,
|
|
7
|
+
uint256 startAmount,
|
|
8
|
+
bool isToken0,
|
|
9
|
+
int24 tickLower,
|
|
10
|
+
int24 tickUpper
|
|
11
|
+
) external view returns (uint256 amountToSwap);
|
|
12
|
+
|
|
13
|
+
function previewDeposit(
|
|
14
|
+
address kyberPool,
|
|
15
|
+
int24 tickLower,
|
|
16
|
+
int24 tickUpper,
|
|
17
|
+
bool isToken0,
|
|
18
|
+
uint256 amountIn
|
|
19
|
+
) external view returns (uint256);
|
|
20
|
+
|
|
21
|
+
function previewRedeem(
|
|
22
|
+
address kyberPool,
|
|
23
|
+
int24 tickLower,
|
|
24
|
+
int24 tickUpper,
|
|
25
|
+
bool isToken0,
|
|
26
|
+
uint256 amountShares
|
|
27
|
+
) external view returns (uint256);
|
|
28
|
+
}
|