@pendle/core-v2 1.2.0-mainnet → 1.3.0-mainnet
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +34 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/core/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/OracleLib.sol/OracleLib.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
- package/build/artifacts/contracts/core/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/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.json +141 -0
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.json +141 -0
- package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.json +50 -0
- 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 +143 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.json +1296 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.json +1283 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.json +1218 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +1231 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.json +133 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.json +40 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.json +322 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.json +1171 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.json +133 -0
- 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 +143 -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 +143 -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 +143 -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 +141 -0
- 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 +143 -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 +143 -2
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/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/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +39 -2
- package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.json +10 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.json +24 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.json +133 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.json +328 -0
- package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.json +467 -0
- package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.json +61 -0
- package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.json +30 -0
- package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.json +398 -0
- package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.json +24 -0
- package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.json +278 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.json +18 -0
- package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.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/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +19 -0
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.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/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/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.json +322 -0
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.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/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.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/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.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/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.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/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +2 -2
- package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
- package/contracts/core/StandardizedYield/SYBase.sol +23 -5
- package/contracts/core/StandardizedYield/StEthHelper.sol +71 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol +170 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol +162 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol +134 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol +154 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol +289 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol +618 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol +68 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol +322 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol +390 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol +329 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol +30 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol +189 -0
- package/contracts/core/libraries/ArrayLib.sol +6 -3
- package/contracts/core/libraries/Errors.sol +3 -0
- package/contracts/interfaces/Balancer/IAsset.sol +4 -0
- package/contracts/interfaces/Balancer/IBalancerFees.sol +6 -0
- package/contracts/interfaces/Balancer/IBalancerStablePreview.sol +22 -0
- package/contracts/interfaces/Balancer/IBasePool.sol +30 -0
- package/contracts/interfaces/Balancer/IComposableStable.sol +39 -0
- package/contracts/interfaces/Balancer/IGauge.sol +10 -0
- package/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol +6 -0
- package/contracts/interfaces/Balancer/IMetaStablePool.sol +31 -0
- package/contracts/interfaces/Balancer/IRateProvider.sol +6 -0
- package/contracts/interfaces/Balancer/IVault.sol +78 -0
- package/contracts/interfaces/ConvexCurve/IRewards.sol +5 -0
- package/contracts/router/kyberswap/AggregationRouterHelper.sol +10 -0
- package/deployments/1-core.json +1 -1
- package/deployments/1-markets/BALANCER-LP-AURA-RETH-WETH-28DEC.json +11 -0
- package/package.json +6 -6
- package/typechain-types/ComposableStablePreview.ts +217 -0
- package/typechain-types/IBalancerFees.ts +89 -0
- package/typechain-types/IBalancerStablePreview.ts +217 -0
- package/typechain-types/IBasePool.ts +482 -0
- package/typechain-types/IComposableStable.ts +730 -0
- package/typechain-types/IGauge.ts +160 -0
- package/typechain-types/ILiquidityGaugeFactory.ts +99 -0
- package/typechain-types/IMetaStablePool.ts +619 -0
- package/typechain-types/IPFeeDistributor.ts +18 -0
- package/typechain-types/IRateProvider.ts +81 -0
- package/typechain-types/IRewards.ts +35 -5
- package/typechain-types/IVault.ts +410 -0
- package/typechain-types/MetaStableMath.ts +113 -0
- package/typechain-types/MetaStablePreview.ts +501 -0
- package/typechain-types/Multicall2.ts +437 -0
- package/typechain-types/PendleAura3EthSY.ts +1639 -0
- package/typechain-types/PendleAuraBalancerStableLPSY.ts +1523 -0
- package/typechain-types/PendleAuraCbethWstethSY.ts +1626 -0
- package/typechain-types/PendleAuraWethRethSY.ts +1549 -0
- package/typechain-types/PendleAuraWethWstethSY.ts +1562 -0
- package/typechain-types/PendleConvexLPSY.ts +204 -0
- package/typechain-types/PendleCurveFraxUsdcSY.ts +204 -0
- package/typechain-types/PendleCurveUsdd3CrvSY.ts +204 -0
- package/typechain-types/PendleFeeDistributor.ts +37 -0
- package/typechain-types/PendleLooksStakingSY.ts +204 -0
- package/typechain-types/PendleQiTokenSY.ts +204 -0
- package/typechain-types/PendleWstEthSY.ts +204 -0
- package/typechain-types/SAPE.ts +204 -0
- package/typechain-types/SYBase.ts +204 -0
- package/typechain-types/SYBaseWithRewards.ts +204 -0
- package/typechain-types/StEthHelper.ts +107 -0
- package/typechain-types/StablePreviewBase.ts +217 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
- package/typechain-types/factories/ActionCallback__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/ActionSwapPTYT__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/AggregationRouterHelper__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/ComposableStablePreview__factory.ts +190 -0
- package/typechain-types/factories/Errors__factory.ts +38 -1
- package/typechain-types/factories/IBalancerFees__factory.ts +36 -0
- package/typechain-types/factories/IBalancerStablePreview__factory.ts +152 -0
- package/typechain-types/factories/IBasePool__factory.ts +340 -0
- package/typechain-types/factories/IComposableStable__factory.ts +482 -0
- package/typechain-types/factories/IGauge__factory.ts +70 -0
- package/typechain-types/factories/ILiquidityGaugeFactory__factory.ts +49 -0
- package/typechain-types/factories/IMetaStablePool__factory.ts +413 -0
- package/typechain-types/factories/IPFeeDistributor__factory.ts +19 -0
- package/typechain-types/factories/IRateProvider__factory.ts +36 -0
- package/typechain-types/factories/IRewards__factory.ts +18 -0
- package/typechain-types/factories/IVault__factory.ts +287 -0
- package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
- package/typechain-types/factories/MetaStableMath__factory.ts +93 -0
- package/typechain-types/factories/MetaStablePreview__factory.ts +375 -0
- package/typechain-types/factories/Multicall2__factory.ts +372 -0
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleAura3EthSY__factory.ts +1365 -0
- package/typechain-types/factories/PendleAuraBalancerStableLPSY__factory.ts +1190 -0
- package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +1356 -0
- package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1291 -0
- package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1304 -0
- package/typechain-types/factories/PendleConvexLPSY__factory.ts +141 -0
- package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +142 -1
- package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +142 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +33 -1
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleLooksStakingSY__factory.ts +142 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +142 -1
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleWstEthSY__factory.ts +142 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/RouterStatic__factory.ts +1 -1
- package/typechain-types/factories/SAPE__factory.ts +142 -1
- package/typechain-types/factories/SYBaseWithRewards__factory.ts +141 -0
- package/typechain-types/factories/SYBase__factory.ts +141 -0
- package/typechain-types/factories/StEthHelper__factory.ts +62 -0
- package/typechain-types/factories/StablePreviewBase__factory.ts +148 -0
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +180 -9
- package/typechain-types/index.ts +40 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
|
+
|
|
4
|
+
import "./IBasePool.sol";
|
|
5
|
+
import "./IRateProvider.sol";
|
|
6
|
+
|
|
7
|
+
interface IComposableStable is IBasePool {
|
|
8
|
+
function getLastJoinExitData()
|
|
9
|
+
external
|
|
10
|
+
view
|
|
11
|
+
returns (uint256 lastJoinExitAmplification, uint256 lastPostJoinExitInvariant);
|
|
12
|
+
|
|
13
|
+
function getAmplificationParameter()
|
|
14
|
+
external
|
|
15
|
+
view
|
|
16
|
+
returns (
|
|
17
|
+
uint256 value,
|
|
18
|
+
bool isUpdating,
|
|
19
|
+
uint256 precision
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
function getProtocolFeePercentageCache(uint256 feeType) external view returns (uint256);
|
|
23
|
+
|
|
24
|
+
function isTokenExemptFromYieldProtocolFee(IERC20 token) external view returns (bool);
|
|
25
|
+
|
|
26
|
+
function getTokenRateCache(IERC20 token)
|
|
27
|
+
external
|
|
28
|
+
view
|
|
29
|
+
returns (
|
|
30
|
+
uint256 rate,
|
|
31
|
+
uint256 oldRate,
|
|
32
|
+
uint256 duration,
|
|
33
|
+
uint256 expires
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
function getRateProviders() external view returns (IRateProvider[] memory);
|
|
37
|
+
|
|
38
|
+
function getBptIndex() external view returns (uint256);
|
|
39
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
|
+
|
|
4
|
+
interface IGauge {
|
|
5
|
+
function claim_rewards(address _addr, address _receiver) external;
|
|
6
|
+
|
|
7
|
+
function reward_count() external view returns (uint256);
|
|
8
|
+
|
|
9
|
+
function reward_tokens(uint256 arg0) external view returns (address);
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
|
+
|
|
4
|
+
import "./IBasePool.sol";
|
|
5
|
+
|
|
6
|
+
interface IMetaStablePool is IBasePool {
|
|
7
|
+
function getLastInvariant()
|
|
8
|
+
external
|
|
9
|
+
view
|
|
10
|
+
returns (uint256 lastInvariant, uint256 lastInvariantAmp);
|
|
11
|
+
|
|
12
|
+
function getAmplificationParameter()
|
|
13
|
+
external
|
|
14
|
+
view
|
|
15
|
+
returns (
|
|
16
|
+
uint256 value,
|
|
17
|
+
bool isUpdating,
|
|
18
|
+
uint256 precision
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
function getSwapFeePercentage() external view returns (uint256);
|
|
22
|
+
|
|
23
|
+
function getPriceRateCache(IERC20 token)
|
|
24
|
+
external
|
|
25
|
+
view
|
|
26
|
+
returns (
|
|
27
|
+
uint256 rate,
|
|
28
|
+
uint256 duration,
|
|
29
|
+
uint256 expires
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
|
+
|
|
4
|
+
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
5
|
+
import "./IAsset.sol";
|
|
6
|
+
|
|
7
|
+
interface IVault {
|
|
8
|
+
struct JoinPoolRequest {
|
|
9
|
+
address[] assets;
|
|
10
|
+
uint256[] maxAmountsIn;
|
|
11
|
+
bytes userData;
|
|
12
|
+
bool fromInternalBalance;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function joinPool(
|
|
16
|
+
bytes32 poolId,
|
|
17
|
+
address sender,
|
|
18
|
+
address recipient,
|
|
19
|
+
JoinPoolRequest memory request
|
|
20
|
+
) external payable;
|
|
21
|
+
|
|
22
|
+
struct ExitPoolRequest {
|
|
23
|
+
address[] assets;
|
|
24
|
+
uint256[] minAmountsOut;
|
|
25
|
+
bytes userData;
|
|
26
|
+
bool toInternalBalance;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function exitPool(
|
|
30
|
+
bytes32 poolId,
|
|
31
|
+
address sender,
|
|
32
|
+
address payable recipient,
|
|
33
|
+
ExitPoolRequest memory request
|
|
34
|
+
) external;
|
|
35
|
+
|
|
36
|
+
enum SwapKind {
|
|
37
|
+
GIVEN_IN,
|
|
38
|
+
GIVEN_OUT
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
struct SingleSwap {
|
|
42
|
+
bytes32 poolId;
|
|
43
|
+
SwapKind kind;
|
|
44
|
+
IAsset assetIn;
|
|
45
|
+
IAsset assetOut;
|
|
46
|
+
uint256 amount;
|
|
47
|
+
bytes userData;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
struct FundManagement {
|
|
51
|
+
address sender;
|
|
52
|
+
bool fromInternalBalance;
|
|
53
|
+
address payable recipient;
|
|
54
|
+
bool toInternalBalance;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function swap(
|
|
58
|
+
SingleSwap memory singleSwap,
|
|
59
|
+
FundManagement memory funds,
|
|
60
|
+
uint256 limit,
|
|
61
|
+
uint256 deadline
|
|
62
|
+
) external payable returns (uint256);
|
|
63
|
+
|
|
64
|
+
function getPoolTokens(bytes32 poolId)
|
|
65
|
+
external
|
|
66
|
+
view
|
|
67
|
+
returns (
|
|
68
|
+
IERC20[] memory tokens,
|
|
69
|
+
uint256[] memory balances,
|
|
70
|
+
uint256 lastChangeBlock
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
function WETH() external view returns (IERC20);
|
|
74
|
+
|
|
75
|
+
function getPool(bytes32 poolId) external view returns (address, uint8);
|
|
76
|
+
|
|
77
|
+
function getProtocolFeesCollector() external view returns (address);
|
|
78
|
+
}
|
|
@@ -4,6 +4,7 @@ pragma solidity 0.8.17;
|
|
|
4
4
|
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
5
5
|
import "./IMultihopRouterEthereum.sol";
|
|
6
6
|
import "./IAggregatorRouterHelper.sol";
|
|
7
|
+
import "../../interfaces/IWETH.sol";
|
|
7
8
|
import "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol";
|
|
8
9
|
import "../../core/libraries/BoringOwnableUpgradeable.sol";
|
|
9
10
|
|
|
@@ -79,6 +80,15 @@ contract AggregationRouterHelper is
|
|
|
79
80
|
returns (bytes memory)
|
|
80
81
|
{
|
|
81
82
|
bytes4 selector = bytes4(kybercall[:4]);
|
|
83
|
+
|
|
84
|
+
if (selector == IWETH.deposit.selector) {
|
|
85
|
+
return kybercall; // no scaling needed
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (selector == IWETH.withdraw.selector) {
|
|
89
|
+
return abi.encodeWithSelector(selector, newAmount);
|
|
90
|
+
}
|
|
91
|
+
|
|
82
92
|
(
|
|
83
93
|
address caller,
|
|
84
94
|
SwapDescription memory desc,
|
package/deployments/1-core.json
CHANGED
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"senderEndpoint": "0x07b1014c88f14C9E910092526db57A20052E989F",
|
|
27
27
|
"votingController": "0x44087E105137a5095c008AaB6a6530182821F2F0",
|
|
28
28
|
"gaugeController": "0x47D74516B33eD5D70ddE7119A40839f6Fcc24e57",
|
|
29
|
-
"
|
|
29
|
+
"feeDistributor": "0xd7b34a6fDCb2A7ceD2115FF7f5fdD72aa6aA4dE2"
|
|
30
30
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY rETH-WETH_BalancerLP Aura",
|
|
3
|
+
"SY": "0xdf7083f2A0F8a191ab5eEAFebE92ED21cD3Dd915",
|
|
4
|
+
"YT": "0x0F28A763198035825dFAdF3455cB5b8473a7c140",
|
|
5
|
+
"PT": "0xfbd85BF7A1E1bec0da6D12964B8c05471aE8f048",
|
|
6
|
+
"market": "0x5546d0f27BEd4075eA03a22c58F7016E24c94EA7",
|
|
7
|
+
"expiry": 1703721600,
|
|
8
|
+
"bulkSeller": "0xB2075aeEd11C2D261c3D80c957F495D18cF874ed",
|
|
9
|
+
"scalarRoot": "27500000000000000000",
|
|
10
|
+
"initAnchor": "1067325733000000000"
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@pendle/core-v2",
|
|
3
3
|
"description": "Core smart contracts of Pendle Protocol.",
|
|
4
4
|
"license": "BUSL-1.1",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.3.0-mainnet",
|
|
6
6
|
"homepage": "https://pendle.finance",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"pendle",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@typechain/ethers-v5": "^9.0.0",
|
|
27
27
|
"@typechain/hardhat": "^4.0.0",
|
|
28
|
-
"hardhat": "^2.12.
|
|
28
|
+
"hardhat": "^2.12.5",
|
|
29
29
|
"hardhat-contract-sizer": "^2.6.1",
|
|
30
30
|
"hardhat-storage-layout-diff": "^0.0.4",
|
|
31
|
-
"prettier": "^2.
|
|
32
|
-
"prettier-plugin-solidity": "^1.
|
|
31
|
+
"prettier": "^2.8.2",
|
|
32
|
+
"prettier-plugin-solidity": "^1.1.1",
|
|
33
33
|
"solc": "^0.8.17",
|
|
34
34
|
"solhint": "^3.3.7",
|
|
35
35
|
"ts-node": "^10.9.1",
|
|
36
36
|
"typechain": "^8.1.1",
|
|
37
|
-
"typescript": "^4.9.
|
|
37
|
+
"typescript": "^4.9.4"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"compile": "yarn hardhat compile",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"clean": "yarn hardhat clean",
|
|
43
43
|
"fcompile": "yarn clean && yarn compile"
|
|
44
44
|
},
|
|
45
|
-
"packageManager": "yarn@3.
|
|
45
|
+
"packageManager": "yarn@3.3.1",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@openzeppelin/contracts": "4.7.3",
|
|
48
48
|
"@openzeppelin/contracts-upgradeable": "4.7.3"
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
PopulatedTransaction,
|
|
11
|
+
Signer,
|
|
12
|
+
utils,
|
|
13
|
+
} from "ethers";
|
|
14
|
+
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
15
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
16
|
+
import type {
|
|
17
|
+
TypedEventFilter,
|
|
18
|
+
TypedEvent,
|
|
19
|
+
TypedListener,
|
|
20
|
+
OnEvent,
|
|
21
|
+
} from "./common";
|
|
22
|
+
|
|
23
|
+
export declare namespace IVault {
|
|
24
|
+
export type ExitPoolRequestStruct = {
|
|
25
|
+
assets: string[];
|
|
26
|
+
minAmountsOut: BigNumberish[];
|
|
27
|
+
userData: BytesLike;
|
|
28
|
+
toInternalBalance: boolean;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type ExitPoolRequestStructOutput = [
|
|
32
|
+
string[],
|
|
33
|
+
BigNumber[],
|
|
34
|
+
string,
|
|
35
|
+
boolean
|
|
36
|
+
] & {
|
|
37
|
+
assets: string[];
|
|
38
|
+
minAmountsOut: BigNumber[];
|
|
39
|
+
userData: string;
|
|
40
|
+
toInternalBalance: boolean;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type JoinPoolRequestStruct = {
|
|
44
|
+
assets: string[];
|
|
45
|
+
maxAmountsIn: BigNumberish[];
|
|
46
|
+
userData: BytesLike;
|
|
47
|
+
fromInternalBalance: boolean;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export type JoinPoolRequestStructOutput = [
|
|
51
|
+
string[],
|
|
52
|
+
BigNumber[],
|
|
53
|
+
string,
|
|
54
|
+
boolean
|
|
55
|
+
] & {
|
|
56
|
+
assets: string[];
|
|
57
|
+
maxAmountsIn: BigNumber[];
|
|
58
|
+
userData: string;
|
|
59
|
+
fromInternalBalance: boolean;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface ComposableStablePreviewInterface extends utils.Interface {
|
|
64
|
+
contractName: "ComposableStablePreview";
|
|
65
|
+
functions: {
|
|
66
|
+
"exitPoolPreview(bytes32,address,address,(address[],uint256[],bytes,bool),bytes)": FunctionFragment;
|
|
67
|
+
"joinPoolPreview(bytes32,address,address,(address[],uint256[],bytes,bool),bytes)": FunctionFragment;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
encodeFunctionData(
|
|
71
|
+
functionFragment: "exitPoolPreview",
|
|
72
|
+
values: [BytesLike, string, string, IVault.ExitPoolRequestStruct, BytesLike]
|
|
73
|
+
): string;
|
|
74
|
+
encodeFunctionData(
|
|
75
|
+
functionFragment: "joinPoolPreview",
|
|
76
|
+
values: [BytesLike, string, string, IVault.JoinPoolRequestStruct, BytesLike]
|
|
77
|
+
): string;
|
|
78
|
+
|
|
79
|
+
decodeFunctionResult(
|
|
80
|
+
functionFragment: "exitPoolPreview",
|
|
81
|
+
data: BytesLike
|
|
82
|
+
): Result;
|
|
83
|
+
decodeFunctionResult(
|
|
84
|
+
functionFragment: "joinPoolPreview",
|
|
85
|
+
data: BytesLike
|
|
86
|
+
): Result;
|
|
87
|
+
|
|
88
|
+
events: {};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface ComposableStablePreview extends BaseContract {
|
|
92
|
+
contractName: "ComposableStablePreview";
|
|
93
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
94
|
+
attach(addressOrName: string): this;
|
|
95
|
+
deployed(): Promise<this>;
|
|
96
|
+
|
|
97
|
+
interface: ComposableStablePreviewInterface;
|
|
98
|
+
|
|
99
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
100
|
+
event: TypedEventFilter<TEvent>,
|
|
101
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
102
|
+
toBlock?: string | number | undefined
|
|
103
|
+
): Promise<Array<TEvent>>;
|
|
104
|
+
|
|
105
|
+
listeners<TEvent extends TypedEvent>(
|
|
106
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
107
|
+
): Array<TypedListener<TEvent>>;
|
|
108
|
+
listeners(eventName?: string): Array<Listener>;
|
|
109
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
110
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
111
|
+
): this;
|
|
112
|
+
removeAllListeners(eventName?: string): this;
|
|
113
|
+
off: OnEvent<this>;
|
|
114
|
+
on: OnEvent<this>;
|
|
115
|
+
once: OnEvent<this>;
|
|
116
|
+
removeListener: OnEvent<this>;
|
|
117
|
+
|
|
118
|
+
functions: {
|
|
119
|
+
exitPoolPreview(
|
|
120
|
+
poolId: BytesLike,
|
|
121
|
+
sender: string,
|
|
122
|
+
recipient: string,
|
|
123
|
+
request: IVault.ExitPoolRequestStruct,
|
|
124
|
+
data: BytesLike,
|
|
125
|
+
overrides?: CallOverrides
|
|
126
|
+
): Promise<[BigNumber] & { amountTokenOut: BigNumber }>;
|
|
127
|
+
|
|
128
|
+
joinPoolPreview(
|
|
129
|
+
poolId: BytesLike,
|
|
130
|
+
sender: string,
|
|
131
|
+
recipient: string,
|
|
132
|
+
request: IVault.JoinPoolRequestStruct,
|
|
133
|
+
data: BytesLike,
|
|
134
|
+
overrides?: CallOverrides
|
|
135
|
+
): Promise<[BigNumber] & { amountBptOut: BigNumber }>;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
exitPoolPreview(
|
|
139
|
+
poolId: BytesLike,
|
|
140
|
+
sender: string,
|
|
141
|
+
recipient: string,
|
|
142
|
+
request: IVault.ExitPoolRequestStruct,
|
|
143
|
+
data: BytesLike,
|
|
144
|
+
overrides?: CallOverrides
|
|
145
|
+
): Promise<BigNumber>;
|
|
146
|
+
|
|
147
|
+
joinPoolPreview(
|
|
148
|
+
poolId: BytesLike,
|
|
149
|
+
sender: string,
|
|
150
|
+
recipient: string,
|
|
151
|
+
request: IVault.JoinPoolRequestStruct,
|
|
152
|
+
data: BytesLike,
|
|
153
|
+
overrides?: CallOverrides
|
|
154
|
+
): Promise<BigNumber>;
|
|
155
|
+
|
|
156
|
+
callStatic: {
|
|
157
|
+
exitPoolPreview(
|
|
158
|
+
poolId: BytesLike,
|
|
159
|
+
sender: string,
|
|
160
|
+
recipient: string,
|
|
161
|
+
request: IVault.ExitPoolRequestStruct,
|
|
162
|
+
data: BytesLike,
|
|
163
|
+
overrides?: CallOverrides
|
|
164
|
+
): Promise<BigNumber>;
|
|
165
|
+
|
|
166
|
+
joinPoolPreview(
|
|
167
|
+
poolId: BytesLike,
|
|
168
|
+
sender: string,
|
|
169
|
+
recipient: string,
|
|
170
|
+
request: IVault.JoinPoolRequestStruct,
|
|
171
|
+
data: BytesLike,
|
|
172
|
+
overrides?: CallOverrides
|
|
173
|
+
): Promise<BigNumber>;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
filters: {};
|
|
177
|
+
|
|
178
|
+
estimateGas: {
|
|
179
|
+
exitPoolPreview(
|
|
180
|
+
poolId: BytesLike,
|
|
181
|
+
sender: string,
|
|
182
|
+
recipient: string,
|
|
183
|
+
request: IVault.ExitPoolRequestStruct,
|
|
184
|
+
data: BytesLike,
|
|
185
|
+
overrides?: CallOverrides
|
|
186
|
+
): Promise<BigNumber>;
|
|
187
|
+
|
|
188
|
+
joinPoolPreview(
|
|
189
|
+
poolId: BytesLike,
|
|
190
|
+
sender: string,
|
|
191
|
+
recipient: string,
|
|
192
|
+
request: IVault.JoinPoolRequestStruct,
|
|
193
|
+
data: BytesLike,
|
|
194
|
+
overrides?: CallOverrides
|
|
195
|
+
): Promise<BigNumber>;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
populateTransaction: {
|
|
199
|
+
exitPoolPreview(
|
|
200
|
+
poolId: BytesLike,
|
|
201
|
+
sender: string,
|
|
202
|
+
recipient: string,
|
|
203
|
+
request: IVault.ExitPoolRequestStruct,
|
|
204
|
+
data: BytesLike,
|
|
205
|
+
overrides?: CallOverrides
|
|
206
|
+
): Promise<PopulatedTransaction>;
|
|
207
|
+
|
|
208
|
+
joinPoolPreview(
|
|
209
|
+
poolId: BytesLike,
|
|
210
|
+
sender: string,
|
|
211
|
+
recipient: string,
|
|
212
|
+
request: IVault.JoinPoolRequestStruct,
|
|
213
|
+
data: BytesLike,
|
|
214
|
+
overrides?: CallOverrides
|
|
215
|
+
): Promise<PopulatedTransaction>;
|
|
216
|
+
};
|
|
217
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BytesLike,
|
|
8
|
+
CallOverrides,
|
|
9
|
+
PopulatedTransaction,
|
|
10
|
+
Signer,
|
|
11
|
+
utils,
|
|
12
|
+
} from "ethers";
|
|
13
|
+
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
14
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
15
|
+
import type {
|
|
16
|
+
TypedEventFilter,
|
|
17
|
+
TypedEvent,
|
|
18
|
+
TypedListener,
|
|
19
|
+
OnEvent,
|
|
20
|
+
} from "./common";
|
|
21
|
+
|
|
22
|
+
export interface IBalancerFeesInterface extends utils.Interface {
|
|
23
|
+
contractName: "IBalancerFees";
|
|
24
|
+
functions: {
|
|
25
|
+
"getSwapFeePercentage()": FunctionFragment;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
encodeFunctionData(
|
|
29
|
+
functionFragment: "getSwapFeePercentage",
|
|
30
|
+
values?: undefined
|
|
31
|
+
): string;
|
|
32
|
+
|
|
33
|
+
decodeFunctionResult(
|
|
34
|
+
functionFragment: "getSwapFeePercentage",
|
|
35
|
+
data: BytesLike
|
|
36
|
+
): Result;
|
|
37
|
+
|
|
38
|
+
events: {};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface IBalancerFees extends BaseContract {
|
|
42
|
+
contractName: "IBalancerFees";
|
|
43
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
44
|
+
attach(addressOrName: string): this;
|
|
45
|
+
deployed(): Promise<this>;
|
|
46
|
+
|
|
47
|
+
interface: IBalancerFeesInterface;
|
|
48
|
+
|
|
49
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
50
|
+
event: TypedEventFilter<TEvent>,
|
|
51
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
52
|
+
toBlock?: string | number | undefined
|
|
53
|
+
): Promise<Array<TEvent>>;
|
|
54
|
+
|
|
55
|
+
listeners<TEvent extends TypedEvent>(
|
|
56
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
57
|
+
): Array<TypedListener<TEvent>>;
|
|
58
|
+
listeners(eventName?: string): Array<Listener>;
|
|
59
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
60
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
61
|
+
): this;
|
|
62
|
+
removeAllListeners(eventName?: string): this;
|
|
63
|
+
off: OnEvent<this>;
|
|
64
|
+
on: OnEvent<this>;
|
|
65
|
+
once: OnEvent<this>;
|
|
66
|
+
removeListener: OnEvent<this>;
|
|
67
|
+
|
|
68
|
+
functions: {
|
|
69
|
+
getSwapFeePercentage(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
getSwapFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
|
|
73
|
+
|
|
74
|
+
callStatic: {
|
|
75
|
+
getSwapFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
filters: {};
|
|
79
|
+
|
|
80
|
+
estimateGas: {
|
|
81
|
+
getSwapFeePercentage(overrides?: CallOverrides): Promise<BigNumber>;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
populateTransaction: {
|
|
85
|
+
getSwapFeePercentage(
|
|
86
|
+
overrides?: CallOverrides
|
|
87
|
+
): Promise<PopulatedTransaction>;
|
|
88
|
+
};
|
|
89
|
+
}
|