@pendle/core-v2 2.29.0 → 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 +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Stader/PendleETHXSY.sol/PendleETHXSY.json +1066 -0
- 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 +4 -0
- package/build/artifacts/contracts/interfaces/Stader/IStaderStakeManager.sol/IStaderStakeManager.json +420 -0
- 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/StandardizedYield/implementations/Stader/PendleETHXSY.sol +110 -0
- package/contracts/core/erc20/PendleERC20PermitUpg.sol +87 -0
- package/contracts/core/erc20/PendleERC20Upg.sol +340 -0
- package/contracts/core/libraries/ArrayLib.sol +9 -3
- 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/interfaces/Stader/IStaderStakeManager.sol +57 -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/contracts/router/swap-aggregator/oneinch/OneInchAggregationRouterHelper.sol +11 -23
- package/deployments/1-core.json +1 -0
- package/deployments/1-markets/EPENDLE-SEP2024.json +12 -0
- package/deployments/1-markets/ETHX-DEC2024.json +12 -0
- package/deployments/1-markets/SFRAX-MARCH2024.json +10 -0
- package/deployments/1-markets/SILO-CRVUSD-MARCH2024.json +10 -0
- package/deployments/1-markets/SWETH-JUNE2024.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/42161-markets/MPENDLE-SEP2024.json +12 -0
- package/deployments/56-core.json +1 -0
- package/deployments/merkle-distribution/2023-09-28.json +6770 -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/AllErrorsDirectory.ts +57 -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/IERC1271.ts +107 -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/IStaderStakeManager.ts +700 -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 +1296 -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/AllErrorsDirectory__factory.ts +1596 -0
- 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/IERC1271__factory.ts +47 -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/IStaderStakeManager__factory.ts +435 -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 +1124 -0
- 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 +377 -17
- package/typechain-types/index.ts +84 -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/core.ts +0 -29
- package/deployments/index.ts +0 -4
- package/deployments/markets/ape-june-29-2023.ts +0 -3
- package/deployments/markets/balancer-reth-dec-28-2023.ts +0 -3
- package/deployments/markets/balancer-wsteth-jun-27-2024.ts +0 -3
- package/deployments/markets/curve-fraxusdc-march-30-2023.ts +0 -3
- package/deployments/markets/index.ts +0 -17
- package/deployments/markets/looks-march-30-2023.ts +0 -3
- package/deployments/markets/steth-june-29-2023.ts +0 -3
- package/deployments/markets/steth-march-30-2023.ts +0 -3
- package/deployments/markets/types.ts +0 -9
- package/deployments/misc.ts +0 -23
- /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,340 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)
|
|
3
|
+
|
|
4
|
+
pragma solidity ^0.8.0;
|
|
5
|
+
|
|
6
|
+
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
7
|
+
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
|
|
8
|
+
import "@openzeppelin/contracts/utils/Context.sol";
|
|
9
|
+
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @dev Pendle's ERC20 implementation, modified from @openzeppelin implementation
|
|
13
|
+
* Changes are:
|
|
14
|
+
* - comes with built-in reentrancy protection, storage-packed with totalSupply variable
|
|
15
|
+
* - delete increaseAllowance / decreaseAllowance
|
|
16
|
+
* - add nonReentrancy protection to transfer / transferFrom functions
|
|
17
|
+
* - allow decimals to be passed in
|
|
18
|
+
* - block self-transfer by default
|
|
19
|
+
*/
|
|
20
|
+
// solhint-disable
|
|
21
|
+
abstract contract PendleERC20Upg is Context, Initializable, IERC20, IERC20Metadata {
|
|
22
|
+
uint8 private constant _NOT_ENTERED = 1;
|
|
23
|
+
uint8 private constant _ENTERED = 2;
|
|
24
|
+
|
|
25
|
+
mapping(address => uint256) private _balances;
|
|
26
|
+
|
|
27
|
+
mapping(address => mapping(address => uint256)) private _allowances;
|
|
28
|
+
|
|
29
|
+
uint248 private _totalSupply;
|
|
30
|
+
uint8 private _status;
|
|
31
|
+
|
|
32
|
+
string private _name;
|
|
33
|
+
string private _symbol;
|
|
34
|
+
uint8 public immutable decimals;
|
|
35
|
+
|
|
36
|
+
uint256[100] private __gap;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @dev Prevents a contract from calling itself, directly or indirectly.
|
|
40
|
+
* Calling a `nonReentrant` function from another `nonReentrant`
|
|
41
|
+
* function is not supported. It is possible to prevent this from happening
|
|
42
|
+
* by making the `nonReentrant` function external, and making it call a
|
|
43
|
+
* `private` function that does the actual work.
|
|
44
|
+
*/
|
|
45
|
+
modifier nonReentrant() {
|
|
46
|
+
// On the first call to nonReentrant, _notEntered will be true
|
|
47
|
+
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
|
|
48
|
+
|
|
49
|
+
// Any calls to nonReentrant after this point will fail
|
|
50
|
+
_status = _ENTERED;
|
|
51
|
+
|
|
52
|
+
_;
|
|
53
|
+
|
|
54
|
+
// By storing the original value once again, a refund is triggered (see
|
|
55
|
+
// https://eips.ethereum.org/EIPS/eip-2200)
|
|
56
|
+
_status = _NOT_ENTERED;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @dev Sets the values for {name}, {symbol} and {decimals}.
|
|
61
|
+
*
|
|
62
|
+
* All three of these values are immutable: they can only be set once during
|
|
63
|
+
* construction.
|
|
64
|
+
*/
|
|
65
|
+
constructor(uint8 decimals_) {
|
|
66
|
+
decimals = decimals_;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @dev Sets the values for {name} and {symbol}.
|
|
71
|
+
*
|
|
72
|
+
* The default value of {decimals} is 18. To select a different value for
|
|
73
|
+
* {decimals} you should overload it.
|
|
74
|
+
*
|
|
75
|
+
* All two of these values are immutable: they can only be set once during
|
|
76
|
+
* construction.
|
|
77
|
+
*/
|
|
78
|
+
function __ERC20Upg_init(string memory name_, string memory symbol_) internal onlyInitializing {
|
|
79
|
+
_name = name_;
|
|
80
|
+
_symbol = symbol_;
|
|
81
|
+
_status = _NOT_ENTERED;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @dev Returns the name of the token.
|
|
86
|
+
*/
|
|
87
|
+
function name() public view virtual override returns (string memory) {
|
|
88
|
+
return _name;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @dev Returns the symbol of the token, usually a shorter version of the
|
|
93
|
+
* name.
|
|
94
|
+
*/
|
|
95
|
+
function symbol() public view virtual override returns (string memory) {
|
|
96
|
+
return _symbol;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @dev See {IERC20-totalSupply}.
|
|
101
|
+
*/
|
|
102
|
+
function totalSupply() public view virtual override returns (uint256) {
|
|
103
|
+
return _totalSupply;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @dev See {IERC20-balanceOf}.
|
|
108
|
+
*/
|
|
109
|
+
function balanceOf(address account) public view virtual override returns (uint256) {
|
|
110
|
+
return _balances[account];
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @dev See {IERC20-transfer}.
|
|
115
|
+
*
|
|
116
|
+
* Requirements:
|
|
117
|
+
*
|
|
118
|
+
* - `to` cannot be the zero address.
|
|
119
|
+
* - the caller must have a balance of at least `amount`.
|
|
120
|
+
*/
|
|
121
|
+
function transfer(
|
|
122
|
+
address to,
|
|
123
|
+
uint256 amount
|
|
124
|
+
) external virtual override nonReentrant returns (bool) {
|
|
125
|
+
address owner = _msgSender();
|
|
126
|
+
_transfer(owner, to, amount);
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @dev See {IERC20-allowance}.
|
|
132
|
+
*/
|
|
133
|
+
function allowance(
|
|
134
|
+
address owner,
|
|
135
|
+
address spender
|
|
136
|
+
) public view virtual override returns (uint256) {
|
|
137
|
+
return _allowances[owner][spender];
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @dev See {IERC20-approve}.
|
|
142
|
+
*
|
|
143
|
+
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
|
|
144
|
+
* `transferFrom`. This is semantically equivalent to an infinite approval.
|
|
145
|
+
*
|
|
146
|
+
* Requirements:
|
|
147
|
+
*
|
|
148
|
+
* - `spender` cannot be the zero address.
|
|
149
|
+
*/
|
|
150
|
+
function approve(address spender, uint256 amount) external virtual override returns (bool) {
|
|
151
|
+
address owner = _msgSender();
|
|
152
|
+
_approve(owner, spender, amount);
|
|
153
|
+
return true;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @dev See {IERC20-transferFrom}.
|
|
158
|
+
*
|
|
159
|
+
* Emits an {Approval} event indicating the updated allowance. This is not
|
|
160
|
+
* required by the EIP. See the note at the beginning of {ERC20}.
|
|
161
|
+
*
|
|
162
|
+
* NOTE: Does not update the allowance if the current allowance
|
|
163
|
+
* is the maximum `uint256`.
|
|
164
|
+
*
|
|
165
|
+
* Requirements:
|
|
166
|
+
*
|
|
167
|
+
* - `from` and `to` cannot be the zero address.
|
|
168
|
+
* - `from` must have a balance of at least `amount`.
|
|
169
|
+
* - the caller must have allowance for ``from``'s tokens of at least
|
|
170
|
+
* `amount`.
|
|
171
|
+
*/
|
|
172
|
+
function transferFrom(
|
|
173
|
+
address from,
|
|
174
|
+
address to,
|
|
175
|
+
uint256 amount
|
|
176
|
+
) external virtual override nonReentrant returns (bool) {
|
|
177
|
+
address spender = _msgSender();
|
|
178
|
+
_spendAllowance(from, spender, amount);
|
|
179
|
+
_transfer(from, to, amount);
|
|
180
|
+
return true;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @dev Moves `amount` of tokens from `sender` to `recipient`.
|
|
185
|
+
*
|
|
186
|
+
* This internal function is equivalent to {transfer}, and can be used to
|
|
187
|
+
* e.g. implement automatic token fees, slashing mechanisms, etc.
|
|
188
|
+
*
|
|
189
|
+
* Emits a {Transfer} event.
|
|
190
|
+
*
|
|
191
|
+
* Requirements:
|
|
192
|
+
*
|
|
193
|
+
* - `from` cannot be the zero address.
|
|
194
|
+
* - `to` cannot be the zero address.
|
|
195
|
+
* - `from` must have a balance of at least `amount`.
|
|
196
|
+
*/
|
|
197
|
+
function _transfer(address from, address to, uint256 amount) internal virtual {
|
|
198
|
+
require(from != address(0), "ERC20: transfer from the zero address");
|
|
199
|
+
require(to != address(0), "ERC20: transfer to the zero address");
|
|
200
|
+
require(from != to, "ERC20: transfer to self");
|
|
201
|
+
|
|
202
|
+
_beforeTokenTransfer(from, to, amount);
|
|
203
|
+
|
|
204
|
+
uint256 fromBalance = _balances[from];
|
|
205
|
+
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
|
|
206
|
+
unchecked {
|
|
207
|
+
_balances[from] = fromBalance - amount;
|
|
208
|
+
}
|
|
209
|
+
_balances[to] += amount;
|
|
210
|
+
|
|
211
|
+
emit Transfer(from, to, amount);
|
|
212
|
+
|
|
213
|
+
_afterTokenTransfer(from, to, amount);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
|
|
217
|
+
* the total supply.
|
|
218
|
+
*
|
|
219
|
+
* Emits a {Transfer} event with `from` set to the zero address.
|
|
220
|
+
*
|
|
221
|
+
* Requirements:
|
|
222
|
+
*
|
|
223
|
+
* - `account` cannot be the zero address.
|
|
224
|
+
*/
|
|
225
|
+
function _mint(address account, uint256 amount) internal virtual {
|
|
226
|
+
require(account != address(0), "ERC20: mint to the zero address");
|
|
227
|
+
|
|
228
|
+
_beforeTokenTransfer(address(0), account, amount);
|
|
229
|
+
|
|
230
|
+
_totalSupply += toUint248(amount);
|
|
231
|
+
_balances[account] += amount;
|
|
232
|
+
emit Transfer(address(0), account, amount);
|
|
233
|
+
|
|
234
|
+
_afterTokenTransfer(address(0), account, amount);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @dev Destroys `amount` tokens from `account`, reducing the
|
|
239
|
+
* total supply.
|
|
240
|
+
*
|
|
241
|
+
* Emits a {Transfer} event with `to` set to the zero address.
|
|
242
|
+
*
|
|
243
|
+
* Requirements:
|
|
244
|
+
*
|
|
245
|
+
* - `account` cannot be the zero address.
|
|
246
|
+
* - `account` must have at least `amount` tokens.
|
|
247
|
+
*/
|
|
248
|
+
function _burn(address account, uint256 amount) internal virtual {
|
|
249
|
+
require(account != address(0), "ERC20: burn from the zero address");
|
|
250
|
+
|
|
251
|
+
_beforeTokenTransfer(account, address(0), amount);
|
|
252
|
+
|
|
253
|
+
uint256 accountBalance = _balances[account];
|
|
254
|
+
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
|
|
255
|
+
unchecked {
|
|
256
|
+
_balances[account] = accountBalance - amount;
|
|
257
|
+
}
|
|
258
|
+
_totalSupply -= toUint248(amount);
|
|
259
|
+
|
|
260
|
+
emit Transfer(account, address(0), amount);
|
|
261
|
+
|
|
262
|
+
_afterTokenTransfer(account, address(0), amount);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
|
|
267
|
+
*
|
|
268
|
+
* This internal function is equivalent to `approve`, and can be used to
|
|
269
|
+
* e.g. set automatic allowances for certain subsystems, etc.
|
|
270
|
+
*
|
|
271
|
+
* Emits an {Approval} event.
|
|
272
|
+
*
|
|
273
|
+
* Requirements:
|
|
274
|
+
*
|
|
275
|
+
* - `owner` cannot be the zero address.
|
|
276
|
+
* - `spender` cannot be the zero address.
|
|
277
|
+
*/
|
|
278
|
+
function _approve(address owner, address spender, uint256 amount) internal virtual {
|
|
279
|
+
require(owner != address(0), "ERC20: approve from the zero address");
|
|
280
|
+
require(spender != address(0), "ERC20: approve to the zero address");
|
|
281
|
+
|
|
282
|
+
_allowances[owner][spender] = amount;
|
|
283
|
+
emit Approval(owner, spender, amount);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
|
|
288
|
+
*
|
|
289
|
+
* Does not update the allowance amount in case of infinite allowance.
|
|
290
|
+
* Revert if not enough allowance is available.
|
|
291
|
+
*
|
|
292
|
+
* Might emit an {Approval} event.
|
|
293
|
+
*/
|
|
294
|
+
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
|
|
295
|
+
uint256 currentAllowance = allowance(owner, spender);
|
|
296
|
+
if (currentAllowance != type(uint256).max) {
|
|
297
|
+
require(currentAllowance >= amount, "ERC20: insufficient allowance");
|
|
298
|
+
unchecked {
|
|
299
|
+
_approve(owner, spender, currentAllowance - amount);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* @dev Hook that is called before any transfer of tokens. This includes
|
|
306
|
+
* minting and burning.
|
|
307
|
+
*
|
|
308
|
+
* Calling conditions:
|
|
309
|
+
*
|
|
310
|
+
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
|
|
311
|
+
* will be transferred to `to`.
|
|
312
|
+
* - when `from` is zero, `amount` tokens will be minted for `to`.
|
|
313
|
+
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
|
|
314
|
+
* - `from` and `to` are never both zero.
|
|
315
|
+
*
|
|
316
|
+
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
|
|
317
|
+
*/
|
|
318
|
+
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @dev Hook that is called after any transfer of tokens. This includes
|
|
322
|
+
* minting and burning.
|
|
323
|
+
*
|
|
324
|
+
* Calling conditions:
|
|
325
|
+
*
|
|
326
|
+
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
|
|
327
|
+
* has been transferred to `to`.
|
|
328
|
+
* - when `from` is zero, `amount` tokens have been minted for `to`.
|
|
329
|
+
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
|
|
330
|
+
* - `from` and `to` are never both zero.
|
|
331
|
+
*
|
|
332
|
+
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
|
|
333
|
+
*/
|
|
334
|
+
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
|
|
335
|
+
|
|
336
|
+
function toUint248(uint256 x) internal virtual returns (uint248) {
|
|
337
|
+
require(x <= type(uint248).max); // signed, lim = bit-1
|
|
338
|
+
return uint248(x);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
@@ -39,6 +39,7 @@ library ArrayLib {
|
|
|
39
39
|
}
|
|
40
40
|
out[length] = element;
|
|
41
41
|
}
|
|
42
|
+
|
|
42
43
|
/**
|
|
43
44
|
* @dev This function assumes a and b each contains unidentical elements
|
|
44
45
|
* @param a array of addresses a
|
|
@@ -52,7 +53,7 @@ library ArrayLib {
|
|
|
52
53
|
unchecked {
|
|
53
54
|
uint256 countUnidenticalB = 0;
|
|
54
55
|
bool[] memory isUnidentical = new bool[](b.length);
|
|
55
|
-
for(uint256 i = 0; i < b.length; ++i) {
|
|
56
|
+
for (uint256 i = 0; i < b.length; ++i) {
|
|
56
57
|
if (!contains(a, b[i])) {
|
|
57
58
|
countUnidenticalB++;
|
|
58
59
|
isUnidentical[i] = true;
|
|
@@ -60,11 +61,11 @@ library ArrayLib {
|
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
out = new address[](a.length + countUnidenticalB);
|
|
63
|
-
for(uint256 i = 0; i < a.length; ++i) {
|
|
64
|
+
for (uint256 i = 0; i < a.length; ++i) {
|
|
64
65
|
out[i] = a[i];
|
|
65
66
|
}
|
|
66
67
|
uint256 id = a.length;
|
|
67
|
-
for(uint256 i = 0; i < b.length; ++i) {
|
|
68
|
+
for (uint256 i = 0; i < b.length; ++i) {
|
|
68
69
|
if (isUnidentical[i]) {
|
|
69
70
|
out[id++] = b[i];
|
|
70
71
|
}
|
|
@@ -105,4 +106,9 @@ library ArrayLib {
|
|
|
105
106
|
res[0] = a;
|
|
106
107
|
res[1] = b;
|
|
107
108
|
}
|
|
109
|
+
|
|
110
|
+
function create(uint256 a) internal pure returns (uint256[] memory res) {
|
|
111
|
+
res = new uint256[](1);
|
|
112
|
+
res[0] = a;
|
|
113
|
+
}
|
|
108
114
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity ^0.8.0;
|
|
3
|
+
|
|
4
|
+
interface IPMerkleDistributor {
|
|
5
|
+
event Claimed(address indexed user, address indexed receiver, uint256 amount);
|
|
6
|
+
event Verified(address indexed user, uint256 amountClaimable);
|
|
7
|
+
event SetMerkleRoot(bytes32 indexed merkleRoot);
|
|
8
|
+
|
|
9
|
+
error InvalidMerkleProof();
|
|
10
|
+
|
|
11
|
+
function claim(
|
|
12
|
+
address receiver,
|
|
13
|
+
uint256 totalAccrued,
|
|
14
|
+
bytes32[] calldata proof
|
|
15
|
+
) external returns (uint256 amountOut);
|
|
16
|
+
|
|
17
|
+
function claimVerified(address receiver) external returns (uint256 amountOut);
|
|
18
|
+
|
|
19
|
+
function verify(
|
|
20
|
+
address user,
|
|
21
|
+
uint256 totalAccrued,
|
|
22
|
+
bytes32[] calldata proof
|
|
23
|
+
) external returns (uint256 amountVerified);
|
|
24
|
+
}
|
|
@@ -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
|
+
}
|