@pendle/core-v2 0.11.10-testnet → 0.12.0-testnet
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/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json +199 -30
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.json +1030 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.json +1025 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.json +948 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.json +76 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +140 -25
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.json +138 -23
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +138 -23
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +310 -0
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/{CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.json → CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.json} +18 -85
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +336 -0
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/{CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.json → CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.json} +8 -21
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.json +131 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +297 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +376 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.json +11 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +29 -2
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +40 -86
- package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +228 -40
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +232 -12
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +164 -47
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +25 -93
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.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 +222 -9
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +106 -5
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +4 -0
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.json +329 -0
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +13 -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 +87 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +80 -16
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +164 -2
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +172 -4
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +109 -2
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +62 -4
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.json +7 -2
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +199 -4
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.json +108 -2
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +146 -4
- package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.json +177 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.json +78 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.json +24 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.json +264 -0
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.json +305 -0
- package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.json +34 -0
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +31 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +5 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +30 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.json +10 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +30 -0
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +106 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +112 -0
- package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.json +76 -0
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +13 -0
- package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.json +24 -0
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.json +63 -0
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +148 -0
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPVotingEscrow.sol/IPVotingEscrow.json → IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.json} +88 -2
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.json +4 -28
- package/build/artifacts/contracts/libraries/Errors.sol/Errors.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/Errors.sol/Errors.json +886 -0
- package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.json +28 -2
- package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/{solmate/SSTORE2.sol/SSTORE2.json → VeHistoryLib.sol/CheckpointHelper.json} +4 -4
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.json +45 -0
- package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/helpers/{SSTORE2Deployer.sol/SSTORE2Deployer.json → BaseSplitCodeFactory.sol/CodeDeployer.json} +4 -4
- package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +2 -2
- package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.json +2 -2
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.json +167 -0
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +182 -4
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +126 -79
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol +3 -1
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol +19 -16
- package/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol +135 -0
- package/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol +96 -0
- package/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol +215 -0
- package/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol +83 -0
- package/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol +10 -15
- package/contracts/SuperComposableYield/base-implementations/SCYBase.sol +30 -43
- package/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol +74 -0
- package/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol +38 -0
- package/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol +83 -0
- package/contracts/core/LiquidityMining/{CelerAbstracts/CelerSenderUpg.sol → CrossChainMsg/PendleMsgSenderAppUpg.sol} +12 -13
- package/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol +159 -0
- package/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol +96 -0
- package/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol +68 -0
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +4 -3
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +6 -2
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +12 -4
- package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +29 -19
- package/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +27 -19
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +63 -27
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol +6 -5
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol +2 -2
- package/contracts/core/Market/PendleMarket.sol +26 -24
- package/contracts/core/Market/PendleMarketFactory.sol +41 -20
- package/contracts/core/PendleERC20Permit.sol +84 -0
- package/contracts/core/PendleRouter.sol +2 -1
- package/contracts/core/YieldContracts/PendlePrincipalToken.sol +8 -7
- package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +37 -22
- package/contracts/core/YieldContracts/PendleYieldToken.sol +106 -35
- package/contracts/core/actions/ActionAddRemoveLiq.sol +58 -41
- package/contracts/core/actions/ActionCallback.sol +24 -14
- package/contracts/core/actions/ActionMintRedeem.sol +14 -4
- package/contracts/core/actions/ActionMisc.sol +2 -1
- package/contracts/core/actions/ActionSwapPT.sol +38 -19
- package/contracts/core/actions/ActionSwapPTYT.sol +7 -6
- package/contracts/core/actions/ActionSwapYT.sol +36 -19
- package/contracts/core/actions/base/ActionBaseMintRedeem.sol +15 -8
- package/contracts/interfaces/ConvexCurve/IBooster.sol +32 -0
- package/contracts/interfaces/ConvexCurve/ICrvDepositor.sol +20 -0
- package/contracts/interfaces/ConvexCurve/ICvxCrv.sol +6 -0
- package/contracts/interfaces/ConvexCurve/IRewards.sol +38 -0
- package/contracts/interfaces/Curve/ICrvPool.sol +69 -0
- package/contracts/interfaces/IBoringOwnableUpgradeable.sol +10 -0
- package/contracts/interfaces/IPActionAddRemoveLiq.sol +7 -7
- package/contracts/interfaces/IPActionMintRedeem.sol +1 -0
- package/contracts/interfaces/IPActionSwapPT.sol +6 -6
- package/contracts/interfaces/IPActionSwapPTYT.sol +2 -2
- package/contracts/interfaces/IPActionSwapYT.sol +13 -13
- package/contracts/interfaces/IPFeeDistributor.sol +19 -0
- package/contracts/interfaces/IPFeeDistributorFactory.sol +14 -0
- package/contracts/interfaces/IPMarket.sol +2 -0
- package/contracts/interfaces/IPMsgReceiverApp.sol +7 -0
- package/contracts/interfaces/IPMsgSendEndpoint.sol +17 -0
- package/contracts/interfaces/IPVotingController.sol +22 -0
- package/contracts/interfaces/{IPVotingEscrow.sol → IPVotingEscrowMainchain.sol} +11 -1
- package/contracts/interfaces/ISuperComposableYield.sol +2 -7
- package/contracts/libraries/Errors.sol +121 -0
- package/contracts/libraries/OracleLib.sol +6 -3
- package/contracts/libraries/VeBalanceLib.sol +5 -1
- package/contracts/libraries/VeHistoryLib.sol +20 -31
- package/contracts/libraries/helpers/ArrayLib.sol +0 -17
- package/contracts/libraries/helpers/BaseSplitCodeFactory.sol +288 -0
- package/contracts/libraries/helpers/TokenHelper.sol +4 -0
- package/contracts/libraries/kyberswap/AggregationRouterHelper.sol +0 -7
- package/contracts/libraries/math/MarketMathCore.sol +29 -25
- package/contracts/libraries/math/Math.sol +6 -2
- package/contracts/libraries/math/WeekMath.sol +2 -2
- package/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol +43 -0
- package/contracts/offchain-helpers/MarketMathStatic.sol +36 -36
- package/contracts/offchain-helpers/RouterStatic.sol +45 -37
- package/deployments/43113-core.json +11 -10
- package/deployments/43113-markets/benqi-market-QI-USDC-FEB-2ND.json +8 -0
- package/deployments/43113-markets/benqi-market-QI-WETH-DEC-1ST.json +8 -0
- package/deployments/43113-testenv.json +9 -9
- package/deployments/80001-core.json +10 -9
- package/deployments/80001-markets/benqi-market-QI-USDC-FEB-2ND.json +8 -0
- package/deployments/80001-markets/benqi-market-QI-WETH-DEC-1ST.json +8 -0
- package/deployments/80001-testenv.json +16 -16
- package/package.json +1 -1
- package/typechain-types/ActionAddRemoveLiq.ts +18 -6
- package/typechain-types/ActionMintRedeem.ts +9 -2
- package/typechain-types/ActionSwapPT.ts +18 -6
- package/typechain-types/ActionSwapPTYT.ts +6 -2
- package/typechain-types/ActionSwapYT.ts +18 -6
- package/typechain-types/Errors.ts +57 -0
- package/typechain-types/ICrvPool.ts +137 -22
- package/typechain-types/IPActionAddRemoveLiq.ts +19 -7
- package/typechain-types/IPActionMintRedeem.ts +9 -2
- package/typechain-types/IPActionSwapPT.ts +18 -6
- package/typechain-types/IPActionSwapPTYT.ts +6 -2
- package/typechain-types/IPActionSwapYT.ts +18 -6
- package/typechain-types/IPAllAction.ts +70 -23
- package/typechain-types/IPBatchSeller.ts +252 -0
- package/typechain-types/IPMarket.ts +13 -0
- package/typechain-types/IPVotingController.ts +244 -7
- package/typechain-types/IPVotingEscrowMainchain.ts +461 -0
- package/typechain-types/IRewards.ts +25 -10
- package/typechain-types/ISuperComposableYield.ts +7 -46
- package/typechain-types/MarketMathStatic.ts +139 -10
- package/typechain-types/Pendle3CrvAndTokenSCY.ts +1215 -0
- package/typechain-types/Pendle3CrvTokenSCY.ts +85 -185
- package/typechain-types/PendleBatchSeller.ts +626 -0
- package/typechain-types/PendleConvexCurveLP2PoolSCY.ts +185 -220
- package/typechain-types/PendleConvexCurveLPSCY.ts +159 -182
- package/typechain-types/PendleCvxCRVSCY.ts +0 -34
- package/typechain-types/PendleGaugeControllerSidechainUpg.ts +28 -149
- package/typechain-types/PendleMarket.ts +104 -0
- package/typechain-types/PendleMarketFactory.ts +76 -13
- package/typechain-types/PendlePrincipalToken.ts +104 -0
- package/typechain-types/PendleQiTokenSCY.ts +111 -46
- package/typechain-types/PendleVotingControllerUpg.ts +133 -77
- package/typechain-types/PendleWstEthSCY.ts +111 -46
- package/typechain-types/PendleYieldContractFactory.ts +84 -21
- package/typechain-types/PendleYieldToken.ts +175 -0
- package/typechain-types/PtAMMArb.ts +587 -0
- package/typechain-types/RouterStatic.ts +99 -75
- package/typechain-types/SCYBase.ts +111 -46
- package/typechain-types/SCYBaseWithRewards.ts +111 -46
- package/typechain-types/VotingControllerStorageUpg.ts +246 -27
- package/typechain-types/VotingEscrowPendleMainchain.ts +81 -93
- package/typechain-types/VotingEscrowPendleSidechain.ts +26 -171
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +169 -1
- package/typechain-types/factories/ActionCallback__factory.ts +108 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +59 -1
- package/typechain-types/factories/ActionMisc__factory.ts +6 -1
- package/typechain-types/factories/ActionSwapPTYT__factory.ts +107 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +196 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +143 -1
- package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
- package/typechain-types/factories/Errors__factory.ts +933 -0
- package/typechain-types/factories/ICrvPool__factory.ts +85 -12
- package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +31 -1
- package/typechain-types/factories/IPActionMintRedeem__factory.ts +5 -0
- package/typechain-types/factories/IPActionSwapPTYT__factory.ts +10 -0
- package/typechain-types/factories/IPActionSwapPT__factory.ts +30 -0
- package/typechain-types/factories/IPActionSwapYT__factory.ts +30 -0
- package/typechain-types/factories/IPAllAction__factory.ts +106 -1
- package/typechain-types/factories/IPBatchSeller__factory.ts +138 -0
- package/typechain-types/factories/IPMarket__factory.ts +13 -0
- package/typechain-types/factories/IPVotingController__factory.ts +148 -0
- package/typechain-types/factories/IPVotingEscrowMainchain__factory.ts +340 -0
- package/typechain-types/factories/IRewards__factory.ts +14 -1
- package/typechain-types/factories/ISuperComposableYield__factory.ts +4 -28
- package/typechain-types/factories/MarketMathStatic__factory.ts +181 -3
- package/typechain-types/factories/OracleLib__factory.ts +27 -1
- package/typechain-types/factories/Pendle3CrvAndTokenSCY__factory.ts +1130 -0
- package/typechain-types/factories/Pendle3CrvHelper__factory.ts +1 -1
- package/typechain-types/factories/Pendle3CrvTokenSCY__factory.ts +74 -128
- package/typechain-types/factories/PendleBatchSeller__factory.ts +558 -0
- package/typechain-types/factories/PendleConvexCurveLP2PoolSCY__factory.ts +207 -136
- package/typechain-types/factories/PendleConvexCurveLPSCY__factory.ts +170 -95
- package/typechain-types/factories/PendleCvxCRVSCY__factory.ts +1 -29
- package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +17 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +6 -1
- package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +11 -0
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +28 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +48 -86
- package/typechain-types/factories/PendleMarketFactory__factory.ts +129 -9
- package/typechain-types/factories/PendleMarket__factory.ts +214 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +17 -1
- package/typechain-types/factories/PendleMsgReceiverAppUpg__factory.ts +11 -0
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +6 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +86 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSCY__factory.ts +198 -29
- package/typechain-types/factories/PendleRouter__factory.ts +12 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +235 -40
- package/typechain-types/factories/PendleWstEthSCY__factory.ts +137 -22
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +103 -20
- package/typechain-types/factories/PendleYieldToken__factory.ts +163 -1
- package/typechain-types/factories/PtAMMArb__factory.ts +525 -0
- package/typechain-types/factories/RouterStatic__factory.ts +67 -20
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +136 -21
- package/typechain-types/factories/SCYBase__factory.ts +136 -21
- package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +232 -12
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +171 -47
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +31 -93
- package/typechain-types/hardhat.d.ts +99 -0
- package/typechain-types/index.ts +22 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +0 -810
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.json +0 -10
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.json +0 -833
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.json +0 -723
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.json +0 -728
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.json +0 -705
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.json +0 -864
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.json +0 -718
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.json +0 -784
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/SSTORE2DeployerContract.sol/SSTORE2DeployerContract.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/SSTORE2DeployerContract.sol/SSTORE2DeployerContract.json +0 -134
- package/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol +0 -161
- package/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol +0 -126
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol +0 -242
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol +0 -146
- package/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol +0 -176
- package/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol +0 -129
- package/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol +0 -193
- package/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol +0 -155
- package/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol +0 -182
- package/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol +0 -53
- package/contracts/libraries/helpers/SSTORE2Deployer.sol +0 -30
- package/contracts/libraries/solmate/SSTORE2.sol +0 -99
- package/contracts/offchain-helpers/SSTORE2DeployerContract.sol +0 -21
- package/deployments/43113-markets/benqi-market-10D931.json +0 -8
- package/deployments/43113-markets/benqi-market-9fbD64.json +0 -8
- package/deployments/43113-markets/benqi-market-A12361.json +0 -8
|
@@ -608,7 +608,9 @@ export interface ActionAddRemoveLiq extends BaseContract {
|
|
|
608
608
|
minLpOut: BigNumberish,
|
|
609
609
|
guessPtSwapToScy: ApproxParamsStruct,
|
|
610
610
|
overrides?: CallOverrides
|
|
611
|
-
): Promise<
|
|
611
|
+
): Promise<
|
|
612
|
+
[BigNumber, BigNumber] & { netLpOut: BigNumber; netScyFee: BigNumber }
|
|
613
|
+
>;
|
|
612
614
|
|
|
613
615
|
addLiquiditySingleScy(
|
|
614
616
|
receiver: string,
|
|
@@ -617,7 +619,9 @@ export interface ActionAddRemoveLiq extends BaseContract {
|
|
|
617
619
|
minLpOut: BigNumberish,
|
|
618
620
|
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
619
621
|
overrides?: CallOverrides
|
|
620
|
-
): Promise<
|
|
622
|
+
): Promise<
|
|
623
|
+
[BigNumber, BigNumber] & { netLpOut: BigNumber; netScyFee: BigNumber }
|
|
624
|
+
>;
|
|
621
625
|
|
|
622
626
|
addLiquiditySingleToken(
|
|
623
627
|
receiver: string,
|
|
@@ -626,7 +630,9 @@ export interface ActionAddRemoveLiq extends BaseContract {
|
|
|
626
630
|
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
627
631
|
input: TokenInputStruct,
|
|
628
632
|
overrides?: CallOverrides
|
|
629
|
-
): Promise<
|
|
633
|
+
): Promise<
|
|
634
|
+
[BigNumber, BigNumber] & { netLpOut: BigNumber; netScyFee: BigNumber }
|
|
635
|
+
>;
|
|
630
636
|
|
|
631
637
|
kyberSwapRouter(overrides?: CallOverrides): Promise<string>;
|
|
632
638
|
|
|
@@ -660,7 +666,9 @@ export interface ActionAddRemoveLiq extends BaseContract {
|
|
|
660
666
|
minPtOut: BigNumberish,
|
|
661
667
|
guessPtOut: ApproxParamsStruct,
|
|
662
668
|
overrides?: CallOverrides
|
|
663
|
-
): Promise<
|
|
669
|
+
): Promise<
|
|
670
|
+
[BigNumber, BigNumber] & { netPtOut: BigNumber; netScyFee: BigNumber }
|
|
671
|
+
>;
|
|
664
672
|
|
|
665
673
|
removeLiquiditySingleScy(
|
|
666
674
|
receiver: string,
|
|
@@ -668,7 +676,9 @@ export interface ActionAddRemoveLiq extends BaseContract {
|
|
|
668
676
|
netLpToRemove: BigNumberish,
|
|
669
677
|
minScyOut: BigNumberish,
|
|
670
678
|
overrides?: CallOverrides
|
|
671
|
-
): Promise<
|
|
679
|
+
): Promise<
|
|
680
|
+
[BigNumber, BigNumber] & { netScyOut: BigNumber; netScyFee: BigNumber }
|
|
681
|
+
>;
|
|
672
682
|
|
|
673
683
|
removeLiquiditySingleToken(
|
|
674
684
|
receiver: string,
|
|
@@ -676,7 +686,9 @@ export interface ActionAddRemoveLiq extends BaseContract {
|
|
|
676
686
|
netLpToRemove: BigNumberish,
|
|
677
687
|
output: TokenOutputStruct,
|
|
678
688
|
overrides?: CallOverrides
|
|
679
|
-
): Promise<
|
|
689
|
+
): Promise<
|
|
690
|
+
[BigNumber, BigNumber] & { netTokenOut: BigNumber; netScyFee: BigNumber }
|
|
691
|
+
>;
|
|
680
692
|
};
|
|
681
693
|
|
|
682
694
|
filters: {
|
|
@@ -68,12 +68,19 @@ export declare namespace IPActionMintRedeem {
|
|
|
68
68
|
tokens: string[];
|
|
69
69
|
kybercalls: BytesLike[];
|
|
70
70
|
outputToken: string;
|
|
71
|
+
minTokenOut: BigNumberish;
|
|
71
72
|
};
|
|
72
73
|
|
|
73
|
-
export type RouterSwapAllStructStructOutput = [
|
|
74
|
+
export type RouterSwapAllStructStructOutput = [
|
|
75
|
+
string[],
|
|
76
|
+
string[],
|
|
77
|
+
string,
|
|
78
|
+
BigNumber
|
|
79
|
+
] & {
|
|
74
80
|
tokens: string[];
|
|
75
81
|
kybercalls: string[];
|
|
76
82
|
outputToken: string;
|
|
83
|
+
minTokenOut: BigNumber;
|
|
77
84
|
};
|
|
78
85
|
}
|
|
79
86
|
|
|
@@ -85,7 +92,7 @@ export interface ActionMintRedeemInterface extends utils.Interface {
|
|
|
85
92
|
"mintPyFromToken(address,address,uint256,(address,uint256,address,bytes))": FunctionFragment;
|
|
86
93
|
"mintScyFromToken(address,address,uint256,(address,uint256,address,bytes))": FunctionFragment;
|
|
87
94
|
"redeemDueInterestAndRewards(address,address[],address[],address[])": FunctionFragment;
|
|
88
|
-
"redeemDueInterestAndRewardsThenSwapAll(address[],(address[],address[],address[]),address[],(address[],bytes[],address))": FunctionFragment;
|
|
95
|
+
"redeemDueInterestAndRewardsThenSwapAll(address[],(address[],address[],address[]),address[],(address[],bytes[],address,uint256))": FunctionFragment;
|
|
89
96
|
"redeemPyToScy(address,address,uint256,uint256)": FunctionFragment;
|
|
90
97
|
"redeemPyToToken(address,address,uint256,(address,uint256,address,bytes))": FunctionFragment;
|
|
91
98
|
"redeemScyToToken(address,address,uint256,(address,uint256,address,bytes))": FunctionFragment;
|
|
@@ -323,7 +323,9 @@ export interface ActionSwapPT extends BaseContract {
|
|
|
323
323
|
exactPtIn: BigNumberish,
|
|
324
324
|
minScyOut: BigNumberish,
|
|
325
325
|
overrides?: CallOverrides
|
|
326
|
-
): Promise<
|
|
326
|
+
): Promise<
|
|
327
|
+
[BigNumber, BigNumber] & { netScyOut: BigNumber; netScyFee: BigNumber }
|
|
328
|
+
>;
|
|
327
329
|
|
|
328
330
|
swapExactPtForToken(
|
|
329
331
|
receiver: string,
|
|
@@ -331,7 +333,9 @@ export interface ActionSwapPT extends BaseContract {
|
|
|
331
333
|
exactPtIn: BigNumberish,
|
|
332
334
|
output: TokenOutputStruct,
|
|
333
335
|
overrides?: CallOverrides
|
|
334
|
-
): Promise<
|
|
336
|
+
): Promise<
|
|
337
|
+
[BigNumber, BigNumber] & { netTokenOut: BigNumber; netScyFee: BigNumber }
|
|
338
|
+
>;
|
|
335
339
|
|
|
336
340
|
swapExactScyForPt(
|
|
337
341
|
receiver: string,
|
|
@@ -340,7 +344,9 @@ export interface ActionSwapPT extends BaseContract {
|
|
|
340
344
|
minPtOut: BigNumberish,
|
|
341
345
|
guessPtOut: ApproxParamsStruct,
|
|
342
346
|
overrides?: CallOverrides
|
|
343
|
-
): Promise<
|
|
347
|
+
): Promise<
|
|
348
|
+
[BigNumber, BigNumber] & { netPtOut: BigNumber; netScyFee: BigNumber }
|
|
349
|
+
>;
|
|
344
350
|
|
|
345
351
|
swapExactTokenForPt(
|
|
346
352
|
receiver: string,
|
|
@@ -349,7 +355,9 @@ export interface ActionSwapPT extends BaseContract {
|
|
|
349
355
|
guessPtOut: ApproxParamsStruct,
|
|
350
356
|
input: TokenInputStruct,
|
|
351
357
|
overrides?: CallOverrides
|
|
352
|
-
): Promise<
|
|
358
|
+
): Promise<
|
|
359
|
+
[BigNumber, BigNumber] & { netPtOut: BigNumber; netScyFee: BigNumber }
|
|
360
|
+
>;
|
|
353
361
|
|
|
354
362
|
swapPtForExactScy(
|
|
355
363
|
receiver: string,
|
|
@@ -358,7 +366,9 @@ export interface ActionSwapPT extends BaseContract {
|
|
|
358
366
|
maxPtIn: BigNumberish,
|
|
359
367
|
guessPtIn: ApproxParamsStruct,
|
|
360
368
|
overrides?: CallOverrides
|
|
361
|
-
): Promise<
|
|
369
|
+
): Promise<
|
|
370
|
+
[BigNumber, BigNumber] & { netPtIn: BigNumber; netScyFee: BigNumber }
|
|
371
|
+
>;
|
|
362
372
|
|
|
363
373
|
swapScyForExactPt(
|
|
364
374
|
receiver: string,
|
|
@@ -366,7 +376,9 @@ export interface ActionSwapPT extends BaseContract {
|
|
|
366
376
|
exactPtOut: BigNumberish,
|
|
367
377
|
maxScyIn: BigNumberish,
|
|
368
378
|
overrides?: CallOverrides
|
|
369
|
-
): Promise<
|
|
379
|
+
): Promise<
|
|
380
|
+
[BigNumber, BigNumber] & { netScyIn: BigNumber; netScyFee: BigNumber }
|
|
381
|
+
>;
|
|
370
382
|
};
|
|
371
383
|
|
|
372
384
|
filters: {
|
|
@@ -162,7 +162,9 @@ export interface ActionSwapPTYT extends BaseContract {
|
|
|
162
162
|
minYtOut: BigNumberish,
|
|
163
163
|
guessTotalPtToSwap: ApproxParamsStruct,
|
|
164
164
|
overrides?: CallOverrides
|
|
165
|
-
): Promise<
|
|
165
|
+
): Promise<
|
|
166
|
+
[BigNumber, BigNumber] & { netYtOut: BigNumber; netScyFee: BigNumber }
|
|
167
|
+
>;
|
|
166
168
|
|
|
167
169
|
swapExactYtForPt(
|
|
168
170
|
receiver: string,
|
|
@@ -171,7 +173,9 @@ export interface ActionSwapPTYT extends BaseContract {
|
|
|
171
173
|
minPtOut: BigNumberish,
|
|
172
174
|
guessTotalPtSwapped: ApproxParamsStruct,
|
|
173
175
|
overrides?: CallOverrides
|
|
174
|
-
): Promise<
|
|
176
|
+
): Promise<
|
|
177
|
+
[BigNumber, BigNumber] & { netPtOut: BigNumber; netScyFee: BigNumber }
|
|
178
|
+
>;
|
|
175
179
|
};
|
|
176
180
|
|
|
177
181
|
filters: {
|
|
@@ -324,7 +324,9 @@ export interface ActionSwapYT extends BaseContract {
|
|
|
324
324
|
minYtOut: BigNumberish,
|
|
325
325
|
guessYtOut: ApproxParamsStruct,
|
|
326
326
|
overrides?: CallOverrides
|
|
327
|
-
): Promise<
|
|
327
|
+
): Promise<
|
|
328
|
+
[BigNumber, BigNumber] & { netYtOut: BigNumber; netScyFee: BigNumber }
|
|
329
|
+
>;
|
|
328
330
|
|
|
329
331
|
swapExactTokenForYt(
|
|
330
332
|
receiver: string,
|
|
@@ -333,7 +335,9 @@ export interface ActionSwapYT extends BaseContract {
|
|
|
333
335
|
guessYtOut: ApproxParamsStruct,
|
|
334
336
|
input: TokenInputStruct,
|
|
335
337
|
overrides?: CallOverrides
|
|
336
|
-
): Promise<
|
|
338
|
+
): Promise<
|
|
339
|
+
[BigNumber, BigNumber] & { netYtOut: BigNumber; netScyFee: BigNumber }
|
|
340
|
+
>;
|
|
337
341
|
|
|
338
342
|
swapExactYtForScy(
|
|
339
343
|
receiver: string,
|
|
@@ -341,7 +345,9 @@ export interface ActionSwapYT extends BaseContract {
|
|
|
341
345
|
exactYtIn: BigNumberish,
|
|
342
346
|
minScyOut: BigNumberish,
|
|
343
347
|
overrides?: CallOverrides
|
|
344
|
-
): Promise<
|
|
348
|
+
): Promise<
|
|
349
|
+
[BigNumber, BigNumber] & { netScyOut: BigNumber; netScyFee: BigNumber }
|
|
350
|
+
>;
|
|
345
351
|
|
|
346
352
|
swapExactYtForToken(
|
|
347
353
|
receiver: string,
|
|
@@ -349,7 +355,9 @@ export interface ActionSwapYT extends BaseContract {
|
|
|
349
355
|
netYtIn: BigNumberish,
|
|
350
356
|
output: TokenOutputStruct,
|
|
351
357
|
overrides?: CallOverrides
|
|
352
|
-
): Promise<
|
|
358
|
+
): Promise<
|
|
359
|
+
[BigNumber, BigNumber] & { netTokenOut: BigNumber; netScyFee: BigNumber }
|
|
360
|
+
>;
|
|
353
361
|
|
|
354
362
|
swapScyForExactYt(
|
|
355
363
|
receiver: string,
|
|
@@ -357,7 +365,9 @@ export interface ActionSwapYT extends BaseContract {
|
|
|
357
365
|
exactYtOut: BigNumberish,
|
|
358
366
|
maxScyIn: BigNumberish,
|
|
359
367
|
overrides?: CallOverrides
|
|
360
|
-
): Promise<
|
|
368
|
+
): Promise<
|
|
369
|
+
[BigNumber, BigNumber] & { netScyIn: BigNumber; netScyFee: BigNumber }
|
|
370
|
+
>;
|
|
361
371
|
|
|
362
372
|
swapYtForExactScy(
|
|
363
373
|
receiver: string,
|
|
@@ -366,7 +376,9 @@ export interface ActionSwapYT extends BaseContract {
|
|
|
366
376
|
maxYtIn: BigNumberish,
|
|
367
377
|
guessYtIn: ApproxParamsStruct,
|
|
368
378
|
overrides?: CallOverrides
|
|
369
|
-
): Promise<
|
|
379
|
+
): Promise<
|
|
380
|
+
[BigNumber, BigNumber] & { netYtIn: BigNumber; netScyFee: BigNumber }
|
|
381
|
+
>;
|
|
370
382
|
};
|
|
371
383
|
|
|
372
384
|
filters: {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { BaseContract, Signer, utils } from "ethers";
|
|
5
|
+
|
|
6
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
TypedEventFilter,
|
|
9
|
+
TypedEvent,
|
|
10
|
+
TypedListener,
|
|
11
|
+
OnEvent,
|
|
12
|
+
} from "./common";
|
|
13
|
+
|
|
14
|
+
export interface ErrorsInterface extends utils.Interface {
|
|
15
|
+
contractName: "Errors";
|
|
16
|
+
functions: {};
|
|
17
|
+
|
|
18
|
+
events: {};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface Errors extends BaseContract {
|
|
22
|
+
contractName: "Errors";
|
|
23
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
24
|
+
attach(addressOrName: string): this;
|
|
25
|
+
deployed(): Promise<this>;
|
|
26
|
+
|
|
27
|
+
interface: ErrorsInterface;
|
|
28
|
+
|
|
29
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
30
|
+
event: TypedEventFilter<TEvent>,
|
|
31
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
32
|
+
toBlock?: string | number | undefined
|
|
33
|
+
): Promise<Array<TEvent>>;
|
|
34
|
+
|
|
35
|
+
listeners<TEvent extends TypedEvent>(
|
|
36
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
37
|
+
): Array<TypedListener<TEvent>>;
|
|
38
|
+
listeners(eventName?: string): Array<Listener>;
|
|
39
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
40
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
41
|
+
): this;
|
|
42
|
+
removeAllListeners(eventName?: string): this;
|
|
43
|
+
off: OnEvent<this>;
|
|
44
|
+
on: OnEvent<this>;
|
|
45
|
+
once: OnEvent<this>;
|
|
46
|
+
removeListener: OnEvent<this>;
|
|
47
|
+
|
|
48
|
+
functions: {};
|
|
49
|
+
|
|
50
|
+
callStatic: {};
|
|
51
|
+
|
|
52
|
+
filters: {};
|
|
53
|
+
|
|
54
|
+
estimateGas: {};
|
|
55
|
+
|
|
56
|
+
populateTransaction: {};
|
|
57
|
+
}
|
|
@@ -25,23 +25,23 @@ import type {
|
|
|
25
25
|
export interface ICrvPoolInterface extends utils.Interface {
|
|
26
26
|
contractName: "ICrvPool";
|
|
27
27
|
functions: {
|
|
28
|
-
"add_liquidity(uint256[],uint256
|
|
29
|
-
"calc_token_amount(uint256[],bool)": FunctionFragment;
|
|
28
|
+
"add_liquidity(uint256[2],uint256)": FunctionFragment;
|
|
29
|
+
"calc_token_amount(uint256[3],bool)": FunctionFragment;
|
|
30
30
|
"calc_withdraw_one_coin(uint256,int128)": FunctionFragment;
|
|
31
31
|
"exchange(int128,int128,uint256,uint256,address)": FunctionFragment;
|
|
32
32
|
"get_dy(int128,int128,uint256)": FunctionFragment;
|
|
33
33
|
"get_virtual_price()": FunctionFragment;
|
|
34
34
|
"remove_liquidity(uint256,uint256[],address)": FunctionFragment;
|
|
35
|
-
"remove_liquidity_one_coin(uint256,int128,uint256
|
|
35
|
+
"remove_liquidity_one_coin(uint256,int128,uint256)": FunctionFragment;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
encodeFunctionData(
|
|
39
39
|
functionFragment: "add_liquidity",
|
|
40
|
-
values: [BigNumberish
|
|
40
|
+
values: [[BigNumberish, BigNumberish], BigNumberish]
|
|
41
41
|
): string;
|
|
42
42
|
encodeFunctionData(
|
|
43
43
|
functionFragment: "calc_token_amount",
|
|
44
|
-
values: [BigNumberish
|
|
44
|
+
values: [[BigNumberish, BigNumberish, BigNumberish], boolean]
|
|
45
45
|
): string;
|
|
46
46
|
encodeFunctionData(
|
|
47
47
|
functionFragment: "calc_withdraw_one_coin",
|
|
@@ -65,7 +65,7 @@ export interface ICrvPoolInterface extends utils.Interface {
|
|
|
65
65
|
): string;
|
|
66
66
|
encodeFunctionData(
|
|
67
67
|
functionFragment: "remove_liquidity_one_coin",
|
|
68
|
-
values: [BigNumberish, BigNumberish, BigNumberish
|
|
68
|
+
values: [BigNumberish, BigNumberish, BigNumberish]
|
|
69
69
|
): string;
|
|
70
70
|
|
|
71
71
|
decodeFunctionResult(
|
|
@@ -126,19 +126,43 @@ export interface ICrvPool extends BaseContract {
|
|
|
126
126
|
removeListener: OnEvent<this>;
|
|
127
127
|
|
|
128
128
|
functions: {
|
|
129
|
-
add_liquidity(
|
|
129
|
+
"add_liquidity(uint256[2],uint256)"(
|
|
130
|
+
_deposit_amount: [BigNumberish, BigNumberish],
|
|
131
|
+
_min_amount: BigNumberish,
|
|
132
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
133
|
+
): Promise<ContractTransaction>;
|
|
134
|
+
|
|
135
|
+
"add_liquidity(uint256[3],uint256)"(
|
|
136
|
+
_deposit_amount: [BigNumberish, BigNumberish, BigNumberish],
|
|
137
|
+
_min_amount: BigNumberish,
|
|
138
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
139
|
+
): Promise<ContractTransaction>;
|
|
140
|
+
|
|
141
|
+
"add_liquidity(uint256[],uint256,address)"(
|
|
130
142
|
_deposit_amount: BigNumberish[],
|
|
131
143
|
_min_amount: BigNumberish,
|
|
132
144
|
_receiver: string,
|
|
133
145
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
134
146
|
): Promise<ContractTransaction>;
|
|
135
147
|
|
|
136
|
-
calc_token_amount(
|
|
148
|
+
"calc_token_amount(uint256[3],bool)"(
|
|
149
|
+
_amounts: [BigNumberish, BigNumberish, BigNumberish],
|
|
150
|
+
_is_deposit: boolean,
|
|
151
|
+
overrides?: CallOverrides
|
|
152
|
+
): Promise<[BigNumber]>;
|
|
153
|
+
|
|
154
|
+
"calc_token_amount(uint256[],bool)"(
|
|
137
155
|
_amounts: BigNumberish[],
|
|
138
156
|
_is_deposit: boolean,
|
|
139
157
|
overrides?: CallOverrides
|
|
140
158
|
): Promise<[BigNumber]>;
|
|
141
159
|
|
|
160
|
+
"calc_token_amount(uint256[2],bool)"(
|
|
161
|
+
_amounts: [BigNumberish, BigNumberish],
|
|
162
|
+
_is_deposit: boolean,
|
|
163
|
+
overrides?: CallOverrides
|
|
164
|
+
): Promise<[BigNumber]>;
|
|
165
|
+
|
|
142
166
|
calc_withdraw_one_coin(
|
|
143
167
|
_burn_amount: BigNumberish,
|
|
144
168
|
i: BigNumberish,
|
|
@@ -174,24 +198,47 @@ export interface ICrvPool extends BaseContract {
|
|
|
174
198
|
_burn_amount: BigNumberish,
|
|
175
199
|
i: BigNumberish,
|
|
176
200
|
_min_amount: BigNumberish,
|
|
177
|
-
_receiver: string,
|
|
178
201
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
179
202
|
): Promise<ContractTransaction>;
|
|
180
203
|
};
|
|
181
204
|
|
|
182
|
-
add_liquidity(
|
|
205
|
+
"add_liquidity(uint256[2],uint256)"(
|
|
206
|
+
_deposit_amount: [BigNumberish, BigNumberish],
|
|
207
|
+
_min_amount: BigNumberish,
|
|
208
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
209
|
+
): Promise<ContractTransaction>;
|
|
210
|
+
|
|
211
|
+
"add_liquidity(uint256[3],uint256)"(
|
|
212
|
+
_deposit_amount: [BigNumberish, BigNumberish, BigNumberish],
|
|
213
|
+
_min_amount: BigNumberish,
|
|
214
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
215
|
+
): Promise<ContractTransaction>;
|
|
216
|
+
|
|
217
|
+
"add_liquidity(uint256[],uint256,address)"(
|
|
183
218
|
_deposit_amount: BigNumberish[],
|
|
184
219
|
_min_amount: BigNumberish,
|
|
185
220
|
_receiver: string,
|
|
186
221
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
187
222
|
): Promise<ContractTransaction>;
|
|
188
223
|
|
|
189
|
-
calc_token_amount(
|
|
224
|
+
"calc_token_amount(uint256[3],bool)"(
|
|
225
|
+
_amounts: [BigNumberish, BigNumberish, BigNumberish],
|
|
226
|
+
_is_deposit: boolean,
|
|
227
|
+
overrides?: CallOverrides
|
|
228
|
+
): Promise<BigNumber>;
|
|
229
|
+
|
|
230
|
+
"calc_token_amount(uint256[],bool)"(
|
|
190
231
|
_amounts: BigNumberish[],
|
|
191
232
|
_is_deposit: boolean,
|
|
192
233
|
overrides?: CallOverrides
|
|
193
234
|
): Promise<BigNumber>;
|
|
194
235
|
|
|
236
|
+
"calc_token_amount(uint256[2],bool)"(
|
|
237
|
+
_amounts: [BigNumberish, BigNumberish],
|
|
238
|
+
_is_deposit: boolean,
|
|
239
|
+
overrides?: CallOverrides
|
|
240
|
+
): Promise<BigNumber>;
|
|
241
|
+
|
|
195
242
|
calc_withdraw_one_coin(
|
|
196
243
|
_burn_amount: BigNumberish,
|
|
197
244
|
i: BigNumberish,
|
|
@@ -227,24 +274,47 @@ export interface ICrvPool extends BaseContract {
|
|
|
227
274
|
_burn_amount: BigNumberish,
|
|
228
275
|
i: BigNumberish,
|
|
229
276
|
_min_amount: BigNumberish,
|
|
230
|
-
_receiver: string,
|
|
231
277
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
232
278
|
): Promise<ContractTransaction>;
|
|
233
279
|
|
|
234
280
|
callStatic: {
|
|
235
|
-
add_liquidity(
|
|
281
|
+
"add_liquidity(uint256[2],uint256)"(
|
|
282
|
+
_deposit_amount: [BigNumberish, BigNumberish],
|
|
283
|
+
_min_amount: BigNumberish,
|
|
284
|
+
overrides?: CallOverrides
|
|
285
|
+
): Promise<void>;
|
|
286
|
+
|
|
287
|
+
"add_liquidity(uint256[3],uint256)"(
|
|
288
|
+
_deposit_amount: [BigNumberish, BigNumberish, BigNumberish],
|
|
289
|
+
_min_amount: BigNumberish,
|
|
290
|
+
overrides?: CallOverrides
|
|
291
|
+
): Promise<void>;
|
|
292
|
+
|
|
293
|
+
"add_liquidity(uint256[],uint256,address)"(
|
|
236
294
|
_deposit_amount: BigNumberish[],
|
|
237
295
|
_min_amount: BigNumberish,
|
|
238
296
|
_receiver: string,
|
|
239
297
|
overrides?: CallOverrides
|
|
240
298
|
): Promise<BigNumber>;
|
|
241
299
|
|
|
242
|
-
calc_token_amount(
|
|
300
|
+
"calc_token_amount(uint256[3],bool)"(
|
|
301
|
+
_amounts: [BigNumberish, BigNumberish, BigNumberish],
|
|
302
|
+
_is_deposit: boolean,
|
|
303
|
+
overrides?: CallOverrides
|
|
304
|
+
): Promise<BigNumber>;
|
|
305
|
+
|
|
306
|
+
"calc_token_amount(uint256[],bool)"(
|
|
243
307
|
_amounts: BigNumberish[],
|
|
244
308
|
_is_deposit: boolean,
|
|
245
309
|
overrides?: CallOverrides
|
|
246
310
|
): Promise<BigNumber>;
|
|
247
311
|
|
|
312
|
+
"calc_token_amount(uint256[2],bool)"(
|
|
313
|
+
_amounts: [BigNumberish, BigNumberish],
|
|
314
|
+
_is_deposit: boolean,
|
|
315
|
+
overrides?: CallOverrides
|
|
316
|
+
): Promise<BigNumber>;
|
|
317
|
+
|
|
248
318
|
calc_withdraw_one_coin(
|
|
249
319
|
_burn_amount: BigNumberish,
|
|
250
320
|
i: BigNumberish,
|
|
@@ -280,27 +350,50 @@ export interface ICrvPool extends BaseContract {
|
|
|
280
350
|
_burn_amount: BigNumberish,
|
|
281
351
|
i: BigNumberish,
|
|
282
352
|
_min_amount: BigNumberish,
|
|
283
|
-
_receiver: string,
|
|
284
353
|
overrides?: CallOverrides
|
|
285
|
-
): Promise<
|
|
354
|
+
): Promise<void>;
|
|
286
355
|
};
|
|
287
356
|
|
|
288
357
|
filters: {};
|
|
289
358
|
|
|
290
359
|
estimateGas: {
|
|
291
|
-
add_liquidity(
|
|
360
|
+
"add_liquidity(uint256[2],uint256)"(
|
|
361
|
+
_deposit_amount: [BigNumberish, BigNumberish],
|
|
362
|
+
_min_amount: BigNumberish,
|
|
363
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
364
|
+
): Promise<BigNumber>;
|
|
365
|
+
|
|
366
|
+
"add_liquidity(uint256[3],uint256)"(
|
|
367
|
+
_deposit_amount: [BigNumberish, BigNumberish, BigNumberish],
|
|
368
|
+
_min_amount: BigNumberish,
|
|
369
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
370
|
+
): Promise<BigNumber>;
|
|
371
|
+
|
|
372
|
+
"add_liquidity(uint256[],uint256,address)"(
|
|
292
373
|
_deposit_amount: BigNumberish[],
|
|
293
374
|
_min_amount: BigNumberish,
|
|
294
375
|
_receiver: string,
|
|
295
376
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
296
377
|
): Promise<BigNumber>;
|
|
297
378
|
|
|
298
|
-
calc_token_amount(
|
|
379
|
+
"calc_token_amount(uint256[3],bool)"(
|
|
380
|
+
_amounts: [BigNumberish, BigNumberish, BigNumberish],
|
|
381
|
+
_is_deposit: boolean,
|
|
382
|
+
overrides?: CallOverrides
|
|
383
|
+
): Promise<BigNumber>;
|
|
384
|
+
|
|
385
|
+
"calc_token_amount(uint256[],bool)"(
|
|
299
386
|
_amounts: BigNumberish[],
|
|
300
387
|
_is_deposit: boolean,
|
|
301
388
|
overrides?: CallOverrides
|
|
302
389
|
): Promise<BigNumber>;
|
|
303
390
|
|
|
391
|
+
"calc_token_amount(uint256[2],bool)"(
|
|
392
|
+
_amounts: [BigNumberish, BigNumberish],
|
|
393
|
+
_is_deposit: boolean,
|
|
394
|
+
overrides?: CallOverrides
|
|
395
|
+
): Promise<BigNumber>;
|
|
396
|
+
|
|
304
397
|
calc_withdraw_one_coin(
|
|
305
398
|
_burn_amount: BigNumberish,
|
|
306
399
|
i: BigNumberish,
|
|
@@ -336,25 +429,48 @@ export interface ICrvPool extends BaseContract {
|
|
|
336
429
|
_burn_amount: BigNumberish,
|
|
337
430
|
i: BigNumberish,
|
|
338
431
|
_min_amount: BigNumberish,
|
|
339
|
-
_receiver: string,
|
|
340
432
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
341
433
|
): Promise<BigNumber>;
|
|
342
434
|
};
|
|
343
435
|
|
|
344
436
|
populateTransaction: {
|
|
345
|
-
add_liquidity(
|
|
437
|
+
"add_liquidity(uint256[2],uint256)"(
|
|
438
|
+
_deposit_amount: [BigNumberish, BigNumberish],
|
|
439
|
+
_min_amount: BigNumberish,
|
|
440
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
441
|
+
): Promise<PopulatedTransaction>;
|
|
442
|
+
|
|
443
|
+
"add_liquidity(uint256[3],uint256)"(
|
|
444
|
+
_deposit_amount: [BigNumberish, BigNumberish, BigNumberish],
|
|
445
|
+
_min_amount: BigNumberish,
|
|
446
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
447
|
+
): Promise<PopulatedTransaction>;
|
|
448
|
+
|
|
449
|
+
"add_liquidity(uint256[],uint256,address)"(
|
|
346
450
|
_deposit_amount: BigNumberish[],
|
|
347
451
|
_min_amount: BigNumberish,
|
|
348
452
|
_receiver: string,
|
|
349
453
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
350
454
|
): Promise<PopulatedTransaction>;
|
|
351
455
|
|
|
352
|
-
calc_token_amount(
|
|
456
|
+
"calc_token_amount(uint256[3],bool)"(
|
|
457
|
+
_amounts: [BigNumberish, BigNumberish, BigNumberish],
|
|
458
|
+
_is_deposit: boolean,
|
|
459
|
+
overrides?: CallOverrides
|
|
460
|
+
): Promise<PopulatedTransaction>;
|
|
461
|
+
|
|
462
|
+
"calc_token_amount(uint256[],bool)"(
|
|
353
463
|
_amounts: BigNumberish[],
|
|
354
464
|
_is_deposit: boolean,
|
|
355
465
|
overrides?: CallOverrides
|
|
356
466
|
): Promise<PopulatedTransaction>;
|
|
357
467
|
|
|
468
|
+
"calc_token_amount(uint256[2],bool)"(
|
|
469
|
+
_amounts: [BigNumberish, BigNumberish],
|
|
470
|
+
_is_deposit: boolean,
|
|
471
|
+
overrides?: CallOverrides
|
|
472
|
+
): Promise<PopulatedTransaction>;
|
|
473
|
+
|
|
358
474
|
calc_withdraw_one_coin(
|
|
359
475
|
_burn_amount: BigNumberish,
|
|
360
476
|
i: BigNumberish,
|
|
@@ -390,7 +506,6 @@ export interface ICrvPool extends BaseContract {
|
|
|
390
506
|
_burn_amount: BigNumberish,
|
|
391
507
|
i: BigNumberish,
|
|
392
508
|
_min_amount: BigNumberish,
|
|
393
|
-
_receiver: string,
|
|
394
509
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
395
510
|
): Promise<PopulatedTransaction>;
|
|
396
511
|
};
|
|
@@ -567,7 +567,7 @@ export interface IPActionAddRemoveLiq extends BaseContract {
|
|
|
567
567
|
): Promise<
|
|
568
568
|
[BigNumber, BigNumber, BigNumber] & {
|
|
569
569
|
netLpOut: BigNumber;
|
|
570
|
-
|
|
570
|
+
netScyUsed: BigNumber;
|
|
571
571
|
netPtUsed: BigNumber;
|
|
572
572
|
}
|
|
573
573
|
>;
|
|
@@ -595,7 +595,9 @@ export interface IPActionAddRemoveLiq extends BaseContract {
|
|
|
595
595
|
minLpOut: BigNumberish,
|
|
596
596
|
guessPtSwapToScy: ApproxParamsStruct,
|
|
597
597
|
overrides?: CallOverrides
|
|
598
|
-
): Promise<
|
|
598
|
+
): Promise<
|
|
599
|
+
[BigNumber, BigNumber] & { netLpOut: BigNumber; netScyFee: BigNumber }
|
|
600
|
+
>;
|
|
599
601
|
|
|
600
602
|
addLiquiditySingleScy(
|
|
601
603
|
receiver: string,
|
|
@@ -604,7 +606,9 @@ export interface IPActionAddRemoveLiq extends BaseContract {
|
|
|
604
606
|
minLpOut: BigNumberish,
|
|
605
607
|
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
606
608
|
overrides?: CallOverrides
|
|
607
|
-
): Promise<
|
|
609
|
+
): Promise<
|
|
610
|
+
[BigNumber, BigNumber] & { netLpOut: BigNumber; netScyFee: BigNumber }
|
|
611
|
+
>;
|
|
608
612
|
|
|
609
613
|
addLiquiditySingleToken(
|
|
610
614
|
receiver: string,
|
|
@@ -613,7 +617,9 @@ export interface IPActionAddRemoveLiq extends BaseContract {
|
|
|
613
617
|
guessPtReceivedFromScy: ApproxParamsStruct,
|
|
614
618
|
input: TokenInputStruct,
|
|
615
619
|
overrides?: CallOverrides
|
|
616
|
-
): Promise<
|
|
620
|
+
): Promise<
|
|
621
|
+
[BigNumber, BigNumber] & { netLpOut: BigNumber; netScyFee: BigNumber }
|
|
622
|
+
>;
|
|
617
623
|
|
|
618
624
|
removeLiquidityDualScyAndPt(
|
|
619
625
|
receiver: string,
|
|
@@ -645,7 +651,9 @@ export interface IPActionAddRemoveLiq extends BaseContract {
|
|
|
645
651
|
minPtOut: BigNumberish,
|
|
646
652
|
guessPtOut: ApproxParamsStruct,
|
|
647
653
|
overrides?: CallOverrides
|
|
648
|
-
): Promise<
|
|
654
|
+
): Promise<
|
|
655
|
+
[BigNumber, BigNumber] & { netPtOut: BigNumber; netScyFee: BigNumber }
|
|
656
|
+
>;
|
|
649
657
|
|
|
650
658
|
removeLiquiditySingleScy(
|
|
651
659
|
receiver: string,
|
|
@@ -653,7 +661,9 @@ export interface IPActionAddRemoveLiq extends BaseContract {
|
|
|
653
661
|
netLpToRemove: BigNumberish,
|
|
654
662
|
minScyOut: BigNumberish,
|
|
655
663
|
overrides?: CallOverrides
|
|
656
|
-
): Promise<
|
|
664
|
+
): Promise<
|
|
665
|
+
[BigNumber, BigNumber] & { netScyOut: BigNumber; netScyFee: BigNumber }
|
|
666
|
+
>;
|
|
657
667
|
|
|
658
668
|
removeLiquiditySingleToken(
|
|
659
669
|
receiver: string,
|
|
@@ -661,7 +671,9 @@ export interface IPActionAddRemoveLiq extends BaseContract {
|
|
|
661
671
|
netLpToRemove: BigNumberish,
|
|
662
672
|
output: TokenOutputStruct,
|
|
663
673
|
overrides?: CallOverrides
|
|
664
|
-
): Promise<
|
|
674
|
+
): Promise<
|
|
675
|
+
[BigNumber, BigNumber] & { netTokenOut: BigNumber; netScyFee: BigNumber }
|
|
676
|
+
>;
|
|
665
677
|
};
|
|
666
678
|
|
|
667
679
|
filters: {
|