@pendle/core-v2 0.9.4-beta → 0.10.2-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/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- 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 +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.json +7 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.json +2 -2
- 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 +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/{PendleYearnVaultScy.sol → PendleYearnVaultSCY.sol}/PendleYearnVaultSCY.json +3 -3
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.json +67 -5
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.json +63 -1
- 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 +65 -3
- 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 +74 -10
- 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 +79 -15
- 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 +204 -123
- 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 +127 -73
- 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 +93 -34
- 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 +90 -14
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.json +14 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +139 -37
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +84 -56
- package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +122 -11
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +96 -40
- 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/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +1025 -0
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +622 -0
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.json +35 -0
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +459 -0
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +459 -0
- package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/base/{ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json → ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json} +2 -2
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.json +24 -0
- package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPActionCore.sol/IPActionCore.json → IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json} +141 -912
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +598 -0
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.json +35 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +435 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPActionYT.sol/IPActionYT.json → IPActionSwapYT.sol/IPActionSwapYT.json} +23 -11
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +323 -47
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +4 -0
- package/build/artifacts/contracts/{core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json → interfaces/IPGauge.sol/IPGauge.json} +5 -5
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +72 -29
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.json +0 -11
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +0 -37
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IREDACTEDStaking.sol/IREDACTEDStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.json +1 -1
- package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.json +74 -0
- 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/SCY/SCYUtils.sol/SCYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- 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/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.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/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +93 -0
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +427 -39
- package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +4 -0
- package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.json +86 -0
- package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +4 -0
- package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.json +37 -0
- package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.dbg.json +1 -1
- package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol +8 -0
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol +1 -1
- package/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol +11 -5
- package/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol +0 -1
- package/contracts/SuperComposableYield/SCY-implementations/{PendleYearnVaultScy.sol → PendleYearnVaultSCY.sol} +0 -0
- package/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol +1 -0
- package/contracts/SuperComposableYield/base-implementations/SCYBase.sol +1 -1
- package/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol +7 -7
- package/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol +7 -6
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +4 -5
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +6 -3
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +6 -3
- package/contracts/core/LiquidityMining/PendleGauge.sol +3 -2
- package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +22 -28
- package/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +71 -13
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +7 -4
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol +6 -2
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol +4 -3
- package/contracts/core/Market/PendleMarket.sol +93 -57
- package/contracts/core/Market/PendleMarketFactory.sol +18 -33
- package/contracts/core/PendleRouter.sol +60 -52
- package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +12 -12
- package/contracts/core/YieldContracts/PendleYieldToken.sol +1 -1
- package/contracts/core/actions/ActionAddRemoveLiq.sol +366 -0
- package/contracts/core/actions/ActionCallback.sol +6 -6
- package/contracts/core/actions/ActionMintRedeem.sol +124 -0
- package/contracts/core/actions/ActionMisc.sol +24 -0
- package/contracts/core/actions/ActionSwapPT.sol +199 -0
- package/contracts/core/actions/{base/ActionSCYAndYTBase.sol → ActionSwapYT.sol} +109 -74
- package/contracts/core/actions/base/{ActionSCYAndPYBase.sol → ActionBaseMintRedeem.sol} +9 -8
- package/contracts/interfaces/IBenQiComptroller.sol +2 -0
- package/contracts/interfaces/IPActionAddRemoveLiq.sol +188 -0
- package/contracts/interfaces/IPActionMintRedeem.sol +115 -0
- package/contracts/interfaces/IPActionMisc.sol +9 -0
- package/contracts/interfaces/IPActionSwapPT.sol +69 -0
- package/contracts/interfaces/{IPActionYT.sol → IPActionSwapYT.sol} +12 -10
- package/contracts/interfaces/IPAllAction.sol +12 -3
- package/contracts/interfaces/IPGauge.sol +6 -0
- package/contracts/interfaces/IPGaugeController.sol +0 -2
- package/contracts/interfaces/IPMarket.sol +28 -10
- package/contracts/interfaces/IPMarketFactory.sol +1 -7
- package/contracts/interfaces/IPVeToken.sol +1 -1
- package/contracts/interfaces/IPVotingController.sol +0 -2
- package/contracts/interfaces/IRewardManager.sol +1 -1
- package/contracts/libraries/OracleLib.sol +214 -0
- package/contracts/libraries/RewardManagerAbstract.sol +1 -1
- package/contracts/libraries/math/MarketApproxLib.sol +227 -14
- package/contracts/libraries/math/MarketMathCore.sol +0 -33
- package/contracts/offchain-helpers/MarketMathStatic.sol +565 -0
- package/contracts/offchain-helpers/RouterStatic.sol +187 -251
- package/contracts/periphery/BoringOwnableUpgradeable.sol +62 -0
- package/deployments/43113-core.json +7 -8
- package/deployments/43113-markets/benqi-market-590025.json +8 -0
- package/deployments/43113-markets/benqi-market-c93916.json +8 -0
- package/deployments/80001-core.json +6 -7
- package/deployments/80001-markets/benqi-market-3b8BD1.json +8 -0
- package/deployments/80001-markets/benqi-market-b61e7f.json +8 -0
- package/package.json +11 -11
- package/typechain-types/ActionAddRemoveLiq.ts +1037 -0
- package/typechain-types/ActionBaseMintRedeem.ts +87 -0
- package/typechain-types/ActionCore.ts +21 -20
- package/typechain-types/ActionMintRedeem.ts +665 -0
- package/typechain-types/ActionMisc.ts +105 -0
- package/typechain-types/ActionSwapPT.ts +515 -0
- package/typechain-types/ActionSwapYT.ts +515 -0
- package/typechain-types/ActionYT.ts +5 -4
- package/typechain-types/BoringOwnable.ts +194 -0
- package/typechain-types/BoringOwnableData.ts +100 -0
- package/typechain-types/BoringOwnableUpgradeable.ts +194 -0
- package/typechain-types/BoringOwnableUpgradeableData.ts +100 -0
- package/typechain-types/CelerReceiverUpg.ts +124 -19
- package/typechain-types/CelerSenderUpg.ts +116 -11
- package/typechain-types/IBenQiComptroller.ts +39 -0
- package/typechain-types/IPActionAddRemoveLiq.ts +1018 -0
- package/typechain-types/IPActionCore.ts +21 -20
- package/typechain-types/IPActionMintRedeem.ts +646 -0
- package/typechain-types/IPActionMisc.ts +105 -0
- package/typechain-types/IPActionSwapPT.ts +496 -0
- package/typechain-types/IPActionSwapYT.ts +496 -0
- package/typechain-types/IPActionYT.ts +5 -4
- package/typechain-types/IPAllAction.ts +431 -193
- package/typechain-types/IPGauge.ts +87 -0
- package/typechain-types/IPMarket.ts +133 -50
- package/typechain-types/IPMarketFactory.ts +7 -17
- package/typechain-types/IPVeToken.ts +8 -8
- package/typechain-types/IPVotingController.ts +0 -20
- package/typechain-types/IPYieldToken.ts +3 -3
- package/typechain-types/IRewardManager.ts +3 -3
- package/typechain-types/MarketMathStatic.ts +198 -0
- package/typechain-types/OracleLib.ts +124 -0
- package/typechain-types/PendleGaugeControllerBaseUpg.ts +118 -15
- package/typechain-types/PendleGaugeControllerMainchainUpg.ts +136 -9
- package/typechain-types/PendleGaugeControllerSidechainUpg.ts +138 -11
- package/typechain-types/PendleMarket.ts +178 -59
- package/typechain-types/PendleMarketFactory.ts +135 -61
- package/typechain-types/PendleRouter.ts +201 -31
- package/typechain-types/PendleVotingControllerUpg.ts +325 -149
- package/typechain-types/PendleYieldContractFactory.ts +144 -21
- package/typechain-types/RouterStatic.ts +344 -64
- package/typechain-types/VotingControllerStorageUpg.ts +182 -113
- package/typechain-types/VotingEscrowPendleMainchain.ts +170 -63
- package/typechain-types/VotingEscrowPendleSidechain.ts +163 -17
- package/typechain-types/VotingEscrowTokenBase.ts +27 -8
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1083 -0
- package/typechain-types/factories/ActionBaseMintRedeem__factory.ts +43 -0
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionCore__factory.ts +6 -6
- package/typechain-types/factories/ActionMintRedeem__factory.ts +680 -0
- package/typechain-types/factories/ActionMisc__factory.ts +85 -0
- package/typechain-types/factories/ActionSwapPT__factory.ts +514 -0
- package/typechain-types/factories/ActionSwapYT__factory.ts +514 -0
- package/typechain-types/factories/ActionYT__factory.ts +2 -2
- package/typechain-types/factories/BoringOwnableData__factory.ts +90 -0
- package/typechain-types/factories/BoringOwnableUpgradeableData__factory.ts +96 -0
- package/typechain-types/factories/BoringOwnableUpgradeable__factory.ts +143 -0
- package/typechain-types/factories/BoringOwnable__factory.ts +141 -0
- package/typechain-types/factories/CelerReceiverUpg__factory.ts +67 -5
- package/typechain-types/factories/CelerSenderUpg__factory.ts +63 -1
- package/typechain-types/factories/IBenQiComptroller__factory.ts +24 -0
- package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +1020 -0
- package/typechain-types/factories/IPActionCore__factory.ts +5 -5
- package/typechain-types/factories/IPActionMintRedeem__factory.ts +613 -0
- package/typechain-types/factories/IPActionMisc__factory.ts +47 -0
- package/typechain-types/factories/IPActionSwapPT__factory.ts +450 -0
- package/typechain-types/factories/IPActionSwapYT__factory.ts +450 -0
- package/typechain-types/factories/IPActionYT__factory.ts +1 -1
- package/typechain-types/factories/IPAllAction__factory.ts +323 -47
- package/typechain-types/factories/IPGauge__factory.ts +36 -0
- package/typechain-types/factories/IPMarketFactory__factory.ts +0 -11
- package/typechain-types/factories/IPMarket__factory.ts +72 -29
- package/typechain-types/factories/IPVeToken__factory.ts +1 -1
- package/typechain-types/factories/IPVotingController__factory.ts +0 -37
- package/typechain-types/factories/IPYieldToken__factory.ts +1 -1
- package/typechain-types/factories/IRewardManager__factory.ts +1 -1
- package/typechain-types/factories/MarketMathStatic__factory.ts +146 -0
- package/typechain-types/factories/OracleLib__factory.ts +124 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +1 -1
- package/typechain-types/factories/PendleERC4626SCY__factory.ts +1 -1
- package/typechain-types/factories/PendleEulerSCY__factory.ts +10 -1
- package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +65 -3
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +73 -13
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +79 -23
- package/typechain-types/factories/PendleMarketFactory__factory.ts +84 -86
- package/typechain-types/factories/PendleMarket__factory.ts +131 -37
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendleQiSAvaxSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +141 -22
- package/typechain-types/factories/PendleSAvaxSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleSJoeSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleStargateSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +203 -129
- package/typechain-types/factories/PendleWstEthSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleYearnVaultSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +97 -72
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/RouterStatic__factory.ts +233 -39
- package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +126 -72
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +93 -41
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +90 -17
- package/typechain-types/factories/VotingEscrowTokenBase__factory.ts +14 -1
- package/typechain-types/hardhat.d.ts +162 -0
- package/typechain-types/index.ts +36 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +0 -1801
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +0 -447
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.json +0 -24
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +0 -874
- package/contracts/core/actions/ActionCore.sol +0 -382
- package/contracts/core/actions/ActionYT.sol +0 -93
- package/contracts/core/actions/base/ActionSCYAndPTBase.sol +0 -303
- package/contracts/interfaces/IPActionCore.sol +0 -306
- package/contracts/interfaces/IPRouterStatic.sol +0 -152
- package/deployments/43113-markets/benqi-market-599408.json +0 -7
- package/deployments/43113-markets/benqi-market-93bbf0.json +0 -7
- package/deployments/43113-markets/benqi-market-95E744.json +0 -7
- package/deployments/43113-markets/benqi-market-D91a3F.json +0 -7
- package/deployments/80001-markets/benqi-market-007811.json +0 -7
- package/deployments/80001-markets/benqi-market-3fe528.json +0 -7
- package/typechain-types/FeeDistributorAbstract.ts +0 -164
- package/typechain-types/IPVotingControllerStorage.ts +0 -169
- package/typechain-types/factories/FeeDistributorAbstract__factory.ts +0 -90
- package/typechain-types/factories/IPVotingControllerStorage__factory.ts +0 -107
|
@@ -31,19 +31,19 @@ const _abi = [
|
|
|
31
31
|
{
|
|
32
32
|
indexed: false,
|
|
33
33
|
internalType: "uint256",
|
|
34
|
-
name: "
|
|
34
|
+
name: "netScyUsed",
|
|
35
35
|
type: "uint256",
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
indexed: false,
|
|
39
39
|
internalType: "uint256",
|
|
40
|
-
name: "
|
|
40
|
+
name: "netPtUsed",
|
|
41
41
|
type: "uint256",
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
indexed: false,
|
|
45
45
|
internalType: "uint256",
|
|
46
|
-
name: "
|
|
46
|
+
name: "netLpOut",
|
|
47
47
|
type: "uint256",
|
|
48
48
|
},
|
|
49
49
|
],
|
|
@@ -86,19 +86,136 @@ const _abi = [
|
|
|
86
86
|
{
|
|
87
87
|
indexed: false,
|
|
88
88
|
internalType: "uint256",
|
|
89
|
-
name: "
|
|
89
|
+
name: "netPtUsed",
|
|
90
90
|
type: "uint256",
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
indexed: false,
|
|
94
94
|
internalType: "uint256",
|
|
95
|
-
name: "
|
|
95
|
+
name: "netLpOut",
|
|
96
96
|
type: "uint256",
|
|
97
97
|
},
|
|
98
98
|
],
|
|
99
99
|
name: "AddLiquidityDualTokenAndPt",
|
|
100
100
|
type: "event",
|
|
101
101
|
},
|
|
102
|
+
{
|
|
103
|
+
anonymous: false,
|
|
104
|
+
inputs: [
|
|
105
|
+
{
|
|
106
|
+
indexed: true,
|
|
107
|
+
internalType: "address",
|
|
108
|
+
name: "caller",
|
|
109
|
+
type: "address",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
indexed: true,
|
|
113
|
+
internalType: "address",
|
|
114
|
+
name: "market",
|
|
115
|
+
type: "address",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
indexed: true,
|
|
119
|
+
internalType: "address",
|
|
120
|
+
name: "receiver",
|
|
121
|
+
type: "address",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
indexed: false,
|
|
125
|
+
internalType: "uint256",
|
|
126
|
+
name: "netPtIn",
|
|
127
|
+
type: "uint256",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
indexed: false,
|
|
131
|
+
internalType: "uint256",
|
|
132
|
+
name: "netLpOut",
|
|
133
|
+
type: "uint256",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
name: "AddLiquiditySinglePt",
|
|
137
|
+
type: "event",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
anonymous: false,
|
|
141
|
+
inputs: [
|
|
142
|
+
{
|
|
143
|
+
indexed: true,
|
|
144
|
+
internalType: "address",
|
|
145
|
+
name: "caller",
|
|
146
|
+
type: "address",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
indexed: true,
|
|
150
|
+
internalType: "address",
|
|
151
|
+
name: "market",
|
|
152
|
+
type: "address",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
indexed: true,
|
|
156
|
+
internalType: "address",
|
|
157
|
+
name: "receiver",
|
|
158
|
+
type: "address",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
indexed: false,
|
|
162
|
+
internalType: "uint256",
|
|
163
|
+
name: "netScyIn",
|
|
164
|
+
type: "uint256",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
indexed: false,
|
|
168
|
+
internalType: "uint256",
|
|
169
|
+
name: "netLpOut",
|
|
170
|
+
type: "uint256",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
name: "AddLiquiditySingleScy",
|
|
174
|
+
type: "event",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
anonymous: false,
|
|
178
|
+
inputs: [
|
|
179
|
+
{
|
|
180
|
+
indexed: true,
|
|
181
|
+
internalType: "address",
|
|
182
|
+
name: "caller",
|
|
183
|
+
type: "address",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
indexed: true,
|
|
187
|
+
internalType: "address",
|
|
188
|
+
name: "market",
|
|
189
|
+
type: "address",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
indexed: true,
|
|
193
|
+
internalType: "address",
|
|
194
|
+
name: "token",
|
|
195
|
+
type: "address",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
indexed: false,
|
|
199
|
+
internalType: "address",
|
|
200
|
+
name: "receiver",
|
|
201
|
+
type: "address",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
indexed: false,
|
|
205
|
+
internalType: "uint256",
|
|
206
|
+
name: "netTokenIn",
|
|
207
|
+
type: "uint256",
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
indexed: false,
|
|
211
|
+
internalType: "uint256",
|
|
212
|
+
name: "netLpOut",
|
|
213
|
+
type: "uint256",
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
name: "AddLiquiditySingleToken",
|
|
217
|
+
type: "event",
|
|
218
|
+
},
|
|
102
219
|
{
|
|
103
220
|
anonymous: false,
|
|
104
221
|
inputs: [
|
|
@@ -360,8 +477,51 @@ const _abi = [
|
|
|
360
477
|
name: "market",
|
|
361
478
|
type: "address",
|
|
362
479
|
},
|
|
480
|
+
{
|
|
481
|
+
indexed: true,
|
|
482
|
+
internalType: "address",
|
|
483
|
+
name: "receiver",
|
|
484
|
+
type: "address",
|
|
485
|
+
},
|
|
363
486
|
{
|
|
364
487
|
indexed: false,
|
|
488
|
+
internalType: "uint256",
|
|
489
|
+
name: "netLpToRemove",
|
|
490
|
+
type: "uint256",
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
indexed: false,
|
|
494
|
+
internalType: "uint256",
|
|
495
|
+
name: "netPtOut",
|
|
496
|
+
type: "uint256",
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
indexed: false,
|
|
500
|
+
internalType: "uint256",
|
|
501
|
+
name: "netScyOut",
|
|
502
|
+
type: "uint256",
|
|
503
|
+
},
|
|
504
|
+
],
|
|
505
|
+
name: "RemoveLiquidityDualScyAndPt",
|
|
506
|
+
type: "event",
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
anonymous: false,
|
|
510
|
+
inputs: [
|
|
511
|
+
{
|
|
512
|
+
indexed: true,
|
|
513
|
+
internalType: "address",
|
|
514
|
+
name: "caller",
|
|
515
|
+
type: "address",
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
indexed: true,
|
|
519
|
+
internalType: "address",
|
|
520
|
+
name: "market",
|
|
521
|
+
type: "address",
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
indexed: true,
|
|
365
525
|
internalType: "address",
|
|
366
526
|
name: "receiver",
|
|
367
527
|
type: "address",
|
|
@@ -369,23 +529,29 @@ const _abi = [
|
|
|
369
529
|
{
|
|
370
530
|
indexed: false,
|
|
371
531
|
internalType: "uint256",
|
|
372
|
-
name: "
|
|
532
|
+
name: "netLpToRemove",
|
|
373
533
|
type: "uint256",
|
|
374
534
|
},
|
|
375
535
|
{
|
|
376
536
|
indexed: false,
|
|
377
537
|
internalType: "uint256",
|
|
378
|
-
name: "
|
|
538
|
+
name: "netPtOut",
|
|
379
539
|
type: "uint256",
|
|
380
540
|
},
|
|
541
|
+
{
|
|
542
|
+
indexed: false,
|
|
543
|
+
internalType: "address",
|
|
544
|
+
name: "tokenOut",
|
|
545
|
+
type: "address",
|
|
546
|
+
},
|
|
381
547
|
{
|
|
382
548
|
indexed: false,
|
|
383
549
|
internalType: "uint256",
|
|
384
|
-
name: "
|
|
550
|
+
name: "netTokenOut",
|
|
385
551
|
type: "uint256",
|
|
386
552
|
},
|
|
387
553
|
],
|
|
388
|
-
name: "
|
|
554
|
+
name: "RemoveLiquidityDualTokenAndPt",
|
|
389
555
|
type: "event",
|
|
390
556
|
},
|
|
391
557
|
{
|
|
@@ -403,8 +569,45 @@ const _abi = [
|
|
|
403
569
|
name: "market",
|
|
404
570
|
type: "address",
|
|
405
571
|
},
|
|
572
|
+
{
|
|
573
|
+
indexed: true,
|
|
574
|
+
internalType: "address",
|
|
575
|
+
name: "receiver",
|
|
576
|
+
type: "address",
|
|
577
|
+
},
|
|
406
578
|
{
|
|
407
579
|
indexed: false,
|
|
580
|
+
internalType: "uint256",
|
|
581
|
+
name: "netLpToRemove",
|
|
582
|
+
type: "uint256",
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
indexed: false,
|
|
586
|
+
internalType: "uint256",
|
|
587
|
+
name: "netPtOut",
|
|
588
|
+
type: "uint256",
|
|
589
|
+
},
|
|
590
|
+
],
|
|
591
|
+
name: "RemoveLiquiditySinglePt",
|
|
592
|
+
type: "event",
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
anonymous: false,
|
|
596
|
+
inputs: [
|
|
597
|
+
{
|
|
598
|
+
indexed: true,
|
|
599
|
+
internalType: "address",
|
|
600
|
+
name: "caller",
|
|
601
|
+
type: "address",
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
indexed: true,
|
|
605
|
+
internalType: "address",
|
|
606
|
+
name: "market",
|
|
607
|
+
type: "address",
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
indexed: true,
|
|
408
611
|
internalType: "address",
|
|
409
612
|
name: "receiver",
|
|
410
613
|
type: "address",
|
|
@@ -412,23 +615,60 @@ const _abi = [
|
|
|
412
615
|
{
|
|
413
616
|
indexed: false,
|
|
414
617
|
internalType: "uint256",
|
|
415
|
-
name: "
|
|
618
|
+
name: "netLpToRemove",
|
|
416
619
|
type: "uint256",
|
|
417
620
|
},
|
|
418
621
|
{
|
|
419
622
|
indexed: false,
|
|
420
623
|
internalType: "uint256",
|
|
421
|
-
name: "
|
|
624
|
+
name: "netScyOut",
|
|
422
625
|
type: "uint256",
|
|
423
626
|
},
|
|
627
|
+
],
|
|
628
|
+
name: "RemoveLiquiditySingleScy",
|
|
629
|
+
type: "event",
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
anonymous: false,
|
|
633
|
+
inputs: [
|
|
634
|
+
{
|
|
635
|
+
indexed: true,
|
|
636
|
+
internalType: "address",
|
|
637
|
+
name: "caller",
|
|
638
|
+
type: "address",
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
indexed: true,
|
|
642
|
+
internalType: "address",
|
|
643
|
+
name: "market",
|
|
644
|
+
type: "address",
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
indexed: true,
|
|
648
|
+
internalType: "address",
|
|
649
|
+
name: "token",
|
|
650
|
+
type: "address",
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
indexed: false,
|
|
654
|
+
internalType: "address",
|
|
655
|
+
name: "receiver",
|
|
656
|
+
type: "address",
|
|
657
|
+
},
|
|
424
658
|
{
|
|
425
659
|
indexed: false,
|
|
426
660
|
internalType: "uint256",
|
|
427
|
-
name: "
|
|
661
|
+
name: "netLpToRemove",
|
|
662
|
+
type: "uint256",
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
indexed: false,
|
|
666
|
+
internalType: "uint256",
|
|
667
|
+
name: "netTokenOut",
|
|
428
668
|
type: "uint256",
|
|
429
669
|
},
|
|
430
670
|
],
|
|
431
|
-
name: "
|
|
671
|
+
name: "RemoveLiquiditySingleToken",
|
|
432
672
|
type: "event",
|
|
433
673
|
},
|
|
434
674
|
{
|
|
@@ -455,13 +695,13 @@ const _abi = [
|
|
|
455
695
|
{
|
|
456
696
|
indexed: false,
|
|
457
697
|
internalType: "int256",
|
|
458
|
-
name: "
|
|
698
|
+
name: "netPtToAccount",
|
|
459
699
|
type: "int256",
|
|
460
700
|
},
|
|
461
701
|
{
|
|
462
702
|
indexed: false,
|
|
463
703
|
internalType: "int256",
|
|
464
|
-
name: "
|
|
704
|
+
name: "netScyToAccount",
|
|
465
705
|
type: "int256",
|
|
466
706
|
},
|
|
467
707
|
],
|
|
@@ -498,13 +738,13 @@ const _abi = [
|
|
|
498
738
|
{
|
|
499
739
|
indexed: false,
|
|
500
740
|
internalType: "int256",
|
|
501
|
-
name: "
|
|
741
|
+
name: "netPtToAccount",
|
|
502
742
|
type: "int256",
|
|
503
743
|
},
|
|
504
744
|
{
|
|
505
745
|
indexed: false,
|
|
506
746
|
internalType: "int256",
|
|
507
|
-
name: "
|
|
747
|
+
name: "netTokenToAccount",
|
|
508
748
|
type: "int256",
|
|
509
749
|
},
|
|
510
750
|
],
|
|
@@ -517,7 +757,7 @@ const _abi = [
|
|
|
517
757
|
{
|
|
518
758
|
indexed: true,
|
|
519
759
|
internalType: "address",
|
|
520
|
-
name: "
|
|
760
|
+
name: "caller",
|
|
521
761
|
type: "address",
|
|
522
762
|
},
|
|
523
763
|
{
|
|
@@ -526,20 +766,26 @@ const _abi = [
|
|
|
526
766
|
name: "market",
|
|
527
767
|
type: "address",
|
|
528
768
|
},
|
|
769
|
+
{
|
|
770
|
+
indexed: true,
|
|
771
|
+
internalType: "address",
|
|
772
|
+
name: "receiver",
|
|
773
|
+
type: "address",
|
|
774
|
+
},
|
|
529
775
|
{
|
|
530
776
|
indexed: false,
|
|
531
777
|
internalType: "int256",
|
|
532
|
-
name: "
|
|
778
|
+
name: "netYtToAccount",
|
|
533
779
|
type: "int256",
|
|
534
780
|
},
|
|
535
781
|
{
|
|
536
782
|
indexed: false,
|
|
537
783
|
internalType: "int256",
|
|
538
|
-
name: "
|
|
784
|
+
name: "netScyToAccount",
|
|
539
785
|
type: "int256",
|
|
540
786
|
},
|
|
541
787
|
],
|
|
542
|
-
name: "
|
|
788
|
+
name: "SwapYtAndScy",
|
|
543
789
|
type: "event",
|
|
544
790
|
},
|
|
545
791
|
{
|
|
@@ -548,7 +794,7 @@ const _abi = [
|
|
|
548
794
|
{
|
|
549
795
|
indexed: true,
|
|
550
796
|
internalType: "address",
|
|
551
|
-
name: "
|
|
797
|
+
name: "caller",
|
|
552
798
|
type: "address",
|
|
553
799
|
},
|
|
554
800
|
{
|
|
@@ -563,20 +809,26 @@ const _abi = [
|
|
|
563
809
|
name: "token",
|
|
564
810
|
type: "address",
|
|
565
811
|
},
|
|
812
|
+
{
|
|
813
|
+
indexed: false,
|
|
814
|
+
internalType: "address",
|
|
815
|
+
name: "receiver",
|
|
816
|
+
type: "address",
|
|
817
|
+
},
|
|
566
818
|
{
|
|
567
819
|
indexed: false,
|
|
568
820
|
internalType: "int256",
|
|
569
|
-
name: "
|
|
821
|
+
name: "netYtToAccount",
|
|
570
822
|
type: "int256",
|
|
571
823
|
},
|
|
572
824
|
{
|
|
573
825
|
indexed: false,
|
|
574
826
|
internalType: "int256",
|
|
575
|
-
name: "
|
|
827
|
+
name: "netTokenToAccount",
|
|
576
828
|
type: "int256",
|
|
577
829
|
},
|
|
578
830
|
],
|
|
579
|
-
name: "
|
|
831
|
+
name: "SwapYtAndToken",
|
|
580
832
|
type: "event",
|
|
581
833
|
},
|
|
582
834
|
{
|
|
@@ -593,12 +845,12 @@ const _abi = [
|
|
|
593
845
|
},
|
|
594
846
|
{
|
|
595
847
|
internalType: "uint256",
|
|
596
|
-
name: "
|
|
848
|
+
name: "netScyDesired",
|
|
597
849
|
type: "uint256",
|
|
598
850
|
},
|
|
599
851
|
{
|
|
600
852
|
internalType: "uint256",
|
|
601
|
-
name: "
|
|
853
|
+
name: "netPtDesired",
|
|
602
854
|
type: "uint256",
|
|
603
855
|
},
|
|
604
856
|
{
|
|
@@ -621,7 +873,7 @@ const _abi = [
|
|
|
621
873
|
},
|
|
622
874
|
{
|
|
623
875
|
internalType: "uint256",
|
|
624
|
-
name: "
|
|
876
|
+
name: "netPtUsed",
|
|
625
877
|
type: "uint256",
|
|
626
878
|
},
|
|
627
879
|
],
|
|
@@ -647,12 +899,12 @@ const _abi = [
|
|
|
647
899
|
},
|
|
648
900
|
{
|
|
649
901
|
internalType: "uint256",
|
|
650
|
-
name: "
|
|
902
|
+
name: "netTokenDesired",
|
|
651
903
|
type: "uint256",
|
|
652
904
|
},
|
|
653
905
|
{
|
|
654
906
|
internalType: "uint256",
|
|
655
|
-
name: "
|
|
907
|
+
name: "netPtDesired",
|
|
656
908
|
type: "uint256",
|
|
657
909
|
},
|
|
658
910
|
{
|
|
@@ -670,16 +922,16 @@ const _abi = [
|
|
|
670
922
|
},
|
|
671
923
|
{
|
|
672
924
|
internalType: "uint256",
|
|
673
|
-
name: "
|
|
925
|
+
name: "netTokenUsed",
|
|
674
926
|
type: "uint256",
|
|
675
927
|
},
|
|
676
928
|
{
|
|
677
929
|
internalType: "uint256",
|
|
678
|
-
name: "
|
|
930
|
+
name: "netPtUsed",
|
|
679
931
|
type: "uint256",
|
|
680
932
|
},
|
|
681
933
|
],
|
|
682
|
-
stateMutability: "
|
|
934
|
+
stateMutability: "payable",
|
|
683
935
|
type: "function",
|
|
684
936
|
},
|
|
685
937
|
{
|
|
@@ -899,7 +1151,31 @@ const _abi = [
|
|
|
899
1151
|
type: "uint256",
|
|
900
1152
|
},
|
|
901
1153
|
],
|
|
902
|
-
stateMutability: "
|
|
1154
|
+
stateMutability: "payable",
|
|
1155
|
+
type: "function",
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
inputs: [
|
|
1159
|
+
{
|
|
1160
|
+
internalType: "address",
|
|
1161
|
+
name: "market",
|
|
1162
|
+
type: "address",
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
internalType: "uint32",
|
|
1166
|
+
name: "secondsAgo",
|
|
1167
|
+
type: "uint32",
|
|
1168
|
+
},
|
|
1169
|
+
],
|
|
1170
|
+
name: "consult",
|
|
1171
|
+
outputs: [
|
|
1172
|
+
{
|
|
1173
|
+
internalType: "uint96",
|
|
1174
|
+
name: "lnImpliedRateMean",
|
|
1175
|
+
type: "uint96",
|
|
1176
|
+
},
|
|
1177
|
+
],
|
|
1178
|
+
stateMutability: "view",
|
|
903
1179
|
type: "function",
|
|
904
1180
|
},
|
|
905
1181
|
{
|
|
@@ -989,7 +1265,7 @@ const _abi = [
|
|
|
989
1265
|
type: "uint256",
|
|
990
1266
|
},
|
|
991
1267
|
],
|
|
992
|
-
stateMutability: "
|
|
1268
|
+
stateMutability: "payable",
|
|
993
1269
|
type: "function",
|
|
994
1270
|
},
|
|
995
1271
|
{
|
|
@@ -1045,7 +1321,7 @@ const _abi = [
|
|
|
1045
1321
|
type: "uint256",
|
|
1046
1322
|
},
|
|
1047
1323
|
],
|
|
1048
|
-
stateMutability: "
|
|
1324
|
+
stateMutability: "payable",
|
|
1049
1325
|
type: "function",
|
|
1050
1326
|
},
|
|
1051
1327
|
{
|
|
@@ -1257,17 +1533,17 @@ const _abi = [
|
|
|
1257
1533
|
},
|
|
1258
1534
|
{
|
|
1259
1535
|
internalType: "uint256",
|
|
1260
|
-
name: "
|
|
1536
|
+
name: "netLpToRemove",
|
|
1261
1537
|
type: "uint256",
|
|
1262
1538
|
},
|
|
1263
1539
|
{
|
|
1264
1540
|
internalType: "uint256",
|
|
1265
|
-
name: "
|
|
1541
|
+
name: "minScyOut",
|
|
1266
1542
|
type: "uint256",
|
|
1267
1543
|
},
|
|
1268
1544
|
{
|
|
1269
1545
|
internalType: "uint256",
|
|
1270
|
-
name: "
|
|
1546
|
+
name: "minPtOut",
|
|
1271
1547
|
type: "uint256",
|
|
1272
1548
|
},
|
|
1273
1549
|
],
|
|
@@ -1301,7 +1577,7 @@ const _abi = [
|
|
|
1301
1577
|
},
|
|
1302
1578
|
{
|
|
1303
1579
|
internalType: "uint256",
|
|
1304
|
-
name: "
|
|
1580
|
+
name: "netLpToRemove",
|
|
1305
1581
|
type: "uint256",
|
|
1306
1582
|
},
|
|
1307
1583
|
{
|
|
@@ -1311,12 +1587,12 @@ const _abi = [
|
|
|
1311
1587
|
},
|
|
1312
1588
|
{
|
|
1313
1589
|
internalType: "uint256",
|
|
1314
|
-
name: "
|
|
1590
|
+
name: "minTokenOut",
|
|
1315
1591
|
type: "uint256",
|
|
1316
1592
|
},
|
|
1317
1593
|
{
|
|
1318
1594
|
internalType: "uint256",
|
|
1319
|
-
name: "
|
|
1595
|
+
name: "minPtOut",
|
|
1320
1596
|
type: "uint256",
|
|
1321
1597
|
},
|
|
1322
1598
|
],
|
|
@@ -1350,7 +1626,7 @@ const _abi = [
|
|
|
1350
1626
|
},
|
|
1351
1627
|
{
|
|
1352
1628
|
internalType: "uint256",
|
|
1353
|
-
name: "
|
|
1629
|
+
name: "netLpToRemove",
|
|
1354
1630
|
type: "uint256",
|
|
1355
1631
|
},
|
|
1356
1632
|
{
|
|
@@ -1416,7 +1692,7 @@ const _abi = [
|
|
|
1416
1692
|
},
|
|
1417
1693
|
{
|
|
1418
1694
|
internalType: "uint256",
|
|
1419
|
-
name: "
|
|
1695
|
+
name: "netLpToRemove",
|
|
1420
1696
|
type: "uint256",
|
|
1421
1697
|
},
|
|
1422
1698
|
{
|
|
@@ -1450,7 +1726,7 @@ const _abi = [
|
|
|
1450
1726
|
},
|
|
1451
1727
|
{
|
|
1452
1728
|
internalType: "uint256",
|
|
1453
|
-
name: "
|
|
1729
|
+
name: "netLpToRemove",
|
|
1454
1730
|
type: "uint256",
|
|
1455
1731
|
},
|
|
1456
1732
|
{
|
|
@@ -1799,7 +2075,7 @@ const _abi = [
|
|
|
1799
2075
|
type: "uint256",
|
|
1800
2076
|
},
|
|
1801
2077
|
],
|
|
1802
|
-
stateMutability: "
|
|
2078
|
+
stateMutability: "payable",
|
|
1803
2079
|
type: "function",
|
|
1804
2080
|
},
|
|
1805
2081
|
{
|
|
@@ -1887,7 +2163,7 @@ const _abi = [
|
|
|
1887
2163
|
type: "uint256",
|
|
1888
2164
|
},
|
|
1889
2165
|
],
|
|
1890
|
-
stateMutability: "
|
|
2166
|
+
stateMutability: "payable",
|
|
1891
2167
|
type: "function",
|
|
1892
2168
|
},
|
|
1893
2169
|
{
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { IPGauge, IPGaugeInterface } from "../IPGauge";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [],
|
|
12
|
+
name: "totalActiveSupply",
|
|
13
|
+
outputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "uint256",
|
|
16
|
+
name: "",
|
|
17
|
+
type: "uint256",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
stateMutability: "view",
|
|
21
|
+
type: "function",
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
export class IPGauge__factory {
|
|
26
|
+
static readonly abi = _abi;
|
|
27
|
+
static createInterface(): IPGaugeInterface {
|
|
28
|
+
return new utils.Interface(_abi) as IPGaugeInterface;
|
|
29
|
+
}
|
|
30
|
+
static connect(
|
|
31
|
+
address: string,
|
|
32
|
+
signerOrProvider: Signer | Provider
|
|
33
|
+
): IPGauge {
|
|
34
|
+
return new Contract(address, _abi, signerOrProvider) as IPGauge;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -56,12 +56,6 @@ const _abi = [
|
|
|
56
56
|
name: "lnFeeRateRoot",
|
|
57
57
|
type: "uint96",
|
|
58
58
|
},
|
|
59
|
-
{
|
|
60
|
-
indexed: false,
|
|
61
|
-
internalType: "uint32",
|
|
62
|
-
name: "rateOracleTimeWindow",
|
|
63
|
-
type: "uint32",
|
|
64
|
-
},
|
|
65
59
|
{
|
|
66
60
|
indexed: false,
|
|
67
61
|
internalType: "uint8",
|
|
@@ -105,11 +99,6 @@ const _abi = [
|
|
|
105
99
|
name: "lnFeeRateRoot",
|
|
106
100
|
type: "uint96",
|
|
107
101
|
},
|
|
108
|
-
{
|
|
109
|
-
internalType: "uint32",
|
|
110
|
-
name: "rateOracleTimeWindow",
|
|
111
|
-
type: "uint32",
|
|
112
|
-
},
|
|
113
102
|
{
|
|
114
103
|
internalType: "uint8",
|
|
115
104
|
name: "reserveFeePercent",
|