@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
|
@@ -1,874 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "IPRouterStatic",
|
|
4
|
-
"sourceName": "contracts/interfaces/IPRouterStatic.sol",
|
|
5
|
-
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"inputs": [
|
|
8
|
-
{
|
|
9
|
-
"internalType": "address",
|
|
10
|
-
"name": "market",
|
|
11
|
-
"type": "address"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"internalType": "uint256",
|
|
15
|
-
"name": "scyDesired",
|
|
16
|
-
"type": "uint256"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"internalType": "uint256",
|
|
20
|
-
"name": "ptDesired",
|
|
21
|
-
"type": "uint256"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"name": "addLiquidityDualScyAndPtStatic",
|
|
25
|
-
"outputs": [
|
|
26
|
-
{
|
|
27
|
-
"internalType": "uint256",
|
|
28
|
-
"name": "netLpOut",
|
|
29
|
-
"type": "uint256"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"internalType": "uint256",
|
|
33
|
-
"name": "scyUsed",
|
|
34
|
-
"type": "uint256"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"internalType": "uint256",
|
|
38
|
-
"name": "ptUsed",
|
|
39
|
-
"type": "uint256"
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"stateMutability": "nonpayable",
|
|
43
|
-
"type": "function"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"inputs": [
|
|
47
|
-
{
|
|
48
|
-
"internalType": "address",
|
|
49
|
-
"name": "market",
|
|
50
|
-
"type": "address"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"name": "getMarketInfo",
|
|
54
|
-
"outputs": [
|
|
55
|
-
{
|
|
56
|
-
"internalType": "address",
|
|
57
|
-
"name": "pt",
|
|
58
|
-
"type": "address"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"internalType": "address",
|
|
62
|
-
"name": "scy",
|
|
63
|
-
"type": "address"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"components": [
|
|
67
|
-
{
|
|
68
|
-
"internalType": "int256",
|
|
69
|
-
"name": "totalPt",
|
|
70
|
-
"type": "int256"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"internalType": "int256",
|
|
74
|
-
"name": "totalScy",
|
|
75
|
-
"type": "int256"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"internalType": "int256",
|
|
79
|
-
"name": "totalLp",
|
|
80
|
-
"type": "int256"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"internalType": "uint256",
|
|
84
|
-
"name": "oracleRate",
|
|
85
|
-
"type": "uint256"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"internalType": "address",
|
|
89
|
-
"name": "treasury",
|
|
90
|
-
"type": "address"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"internalType": "int256",
|
|
94
|
-
"name": "scalarRoot",
|
|
95
|
-
"type": "int256"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"internalType": "uint256",
|
|
99
|
-
"name": "lnFeeRateRoot",
|
|
100
|
-
"type": "uint256"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"internalType": "uint256",
|
|
104
|
-
"name": "rateOracleTimeWindow",
|
|
105
|
-
"type": "uint256"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"internalType": "uint256",
|
|
109
|
-
"name": "expiry",
|
|
110
|
-
"type": "uint256"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"internalType": "uint256",
|
|
114
|
-
"name": "reserveFeePercent",
|
|
115
|
-
"type": "uint256"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"internalType": "uint256",
|
|
119
|
-
"name": "lastLnImpliedRate",
|
|
120
|
-
"type": "uint256"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"internalType": "uint256",
|
|
124
|
-
"name": "lastTradeTime",
|
|
125
|
-
"type": "uint256"
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
"internalType": "struct MarketState",
|
|
129
|
-
"name": "state",
|
|
130
|
-
"type": "tuple"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"internalType": "int256",
|
|
134
|
-
"name": "impliedYield",
|
|
135
|
-
"type": "int256"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"internalType": "uint256",
|
|
139
|
-
"name": "exchangeRate",
|
|
140
|
-
"type": "uint256"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"stateMutability": "nonpayable",
|
|
144
|
-
"type": "function"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"inputs": [
|
|
148
|
-
{
|
|
149
|
-
"internalType": "address",
|
|
150
|
-
"name": "py",
|
|
151
|
-
"type": "address"
|
|
152
|
-
}
|
|
153
|
-
],
|
|
154
|
-
"name": "getPY",
|
|
155
|
-
"outputs": [
|
|
156
|
-
{
|
|
157
|
-
"internalType": "address",
|
|
158
|
-
"name": "pt",
|
|
159
|
-
"type": "address"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"internalType": "address",
|
|
163
|
-
"name": "yt",
|
|
164
|
-
"type": "address"
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"stateMutability": "view",
|
|
168
|
-
"type": "function"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"inputs": [
|
|
172
|
-
{
|
|
173
|
-
"internalType": "address",
|
|
174
|
-
"name": "py",
|
|
175
|
-
"type": "address"
|
|
176
|
-
}
|
|
177
|
-
],
|
|
178
|
-
"name": "getPYInfo",
|
|
179
|
-
"outputs": [
|
|
180
|
-
{
|
|
181
|
-
"internalType": "uint256",
|
|
182
|
-
"name": "exchangeRate",
|
|
183
|
-
"type": "uint256"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"internalType": "uint256",
|
|
187
|
-
"name": "totalSupply",
|
|
188
|
-
"type": "uint256"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"components": [
|
|
192
|
-
{
|
|
193
|
-
"internalType": "address",
|
|
194
|
-
"name": "rewardToken",
|
|
195
|
-
"type": "address"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"internalType": "uint256",
|
|
199
|
-
"name": "index",
|
|
200
|
-
"type": "uint256"
|
|
201
|
-
}
|
|
202
|
-
],
|
|
203
|
-
"internalType": "struct IPRouterStatic.RewardIndex[]",
|
|
204
|
-
"name": "rewardIndexes",
|
|
205
|
-
"type": "tuple[]"
|
|
206
|
-
}
|
|
207
|
-
],
|
|
208
|
-
"stateMutability": "nonpayable",
|
|
209
|
-
"type": "function"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
"inputs": [
|
|
213
|
-
{
|
|
214
|
-
"internalType": "address",
|
|
215
|
-
"name": "token",
|
|
216
|
-
"type": "address"
|
|
217
|
-
}
|
|
218
|
-
],
|
|
219
|
-
"name": "getPendleTokenType",
|
|
220
|
-
"outputs": [
|
|
221
|
-
{
|
|
222
|
-
"internalType": "bool",
|
|
223
|
-
"name": "isPT",
|
|
224
|
-
"type": "bool"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"internalType": "bool",
|
|
228
|
-
"name": "isYT",
|
|
229
|
-
"type": "bool"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"internalType": "bool",
|
|
233
|
-
"name": "isMarket",
|
|
234
|
-
"type": "bool"
|
|
235
|
-
}
|
|
236
|
-
],
|
|
237
|
-
"stateMutability": "view",
|
|
238
|
-
"type": "function"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"inputs": [
|
|
242
|
-
{
|
|
243
|
-
"internalType": "address",
|
|
244
|
-
"name": "market",
|
|
245
|
-
"type": "address"
|
|
246
|
-
}
|
|
247
|
-
],
|
|
248
|
-
"name": "getPtImpliedYield",
|
|
249
|
-
"outputs": [
|
|
250
|
-
{
|
|
251
|
-
"internalType": "int256",
|
|
252
|
-
"name": "",
|
|
253
|
-
"type": "int256"
|
|
254
|
-
}
|
|
255
|
-
],
|
|
256
|
-
"stateMutability": "nonpayable",
|
|
257
|
-
"type": "function"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"inputs": [
|
|
261
|
-
{
|
|
262
|
-
"internalType": "address",
|
|
263
|
-
"name": "market",
|
|
264
|
-
"type": "address"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"internalType": "address",
|
|
268
|
-
"name": "user",
|
|
269
|
-
"type": "address"
|
|
270
|
-
}
|
|
271
|
-
],
|
|
272
|
-
"name": "getUserMarketInfo",
|
|
273
|
-
"outputs": [
|
|
274
|
-
{
|
|
275
|
-
"components": [
|
|
276
|
-
{
|
|
277
|
-
"internalType": "address",
|
|
278
|
-
"name": "market",
|
|
279
|
-
"type": "address"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"internalType": "uint256",
|
|
283
|
-
"name": "lpBalance",
|
|
284
|
-
"type": "uint256"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"components": [
|
|
288
|
-
{
|
|
289
|
-
"internalType": "address",
|
|
290
|
-
"name": "token",
|
|
291
|
-
"type": "address"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"internalType": "uint256",
|
|
295
|
-
"name": "amount",
|
|
296
|
-
"type": "uint256"
|
|
297
|
-
}
|
|
298
|
-
],
|
|
299
|
-
"internalType": "struct IPRouterStatic.TokenAmount",
|
|
300
|
-
"name": "ptBalance",
|
|
301
|
-
"type": "tuple"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"components": [
|
|
305
|
-
{
|
|
306
|
-
"internalType": "address",
|
|
307
|
-
"name": "token",
|
|
308
|
-
"type": "address"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"internalType": "uint256",
|
|
312
|
-
"name": "amount",
|
|
313
|
-
"type": "uint256"
|
|
314
|
-
}
|
|
315
|
-
],
|
|
316
|
-
"internalType": "struct IPRouterStatic.TokenAmount",
|
|
317
|
-
"name": "scyBalance",
|
|
318
|
-
"type": "tuple"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
"components": [
|
|
322
|
-
{
|
|
323
|
-
"internalType": "enum ISuperComposableYield.AssetType",
|
|
324
|
-
"name": "assetType",
|
|
325
|
-
"type": "uint8"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"internalType": "address",
|
|
329
|
-
"name": "assetAddress",
|
|
330
|
-
"type": "address"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"internalType": "uint256",
|
|
334
|
-
"name": "amount",
|
|
335
|
-
"type": "uint256"
|
|
336
|
-
}
|
|
337
|
-
],
|
|
338
|
-
"internalType": "struct IPRouterStatic.AssetAmount",
|
|
339
|
-
"name": "assetBalance",
|
|
340
|
-
"type": "tuple"
|
|
341
|
-
}
|
|
342
|
-
],
|
|
343
|
-
"internalType": "struct IPRouterStatic.UserMarketInfo",
|
|
344
|
-
"name": "userMarketInfo",
|
|
345
|
-
"type": "tuple"
|
|
346
|
-
}
|
|
347
|
-
],
|
|
348
|
-
"stateMutability": "view",
|
|
349
|
-
"type": "function"
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
"inputs": [
|
|
353
|
-
{
|
|
354
|
-
"internalType": "address",
|
|
355
|
-
"name": "user",
|
|
356
|
-
"type": "address"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"internalType": "address[]",
|
|
360
|
-
"name": "markets",
|
|
361
|
-
"type": "address[]"
|
|
362
|
-
}
|
|
363
|
-
],
|
|
364
|
-
"name": "getUserMarketPositions",
|
|
365
|
-
"outputs": [
|
|
366
|
-
{
|
|
367
|
-
"components": [
|
|
368
|
-
{
|
|
369
|
-
"internalType": "address",
|
|
370
|
-
"name": "market",
|
|
371
|
-
"type": "address"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"internalType": "uint256",
|
|
375
|
-
"name": "lpBalance",
|
|
376
|
-
"type": "uint256"
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
"components": [
|
|
380
|
-
{
|
|
381
|
-
"internalType": "address",
|
|
382
|
-
"name": "token",
|
|
383
|
-
"type": "address"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"internalType": "uint256",
|
|
387
|
-
"name": "amount",
|
|
388
|
-
"type": "uint256"
|
|
389
|
-
}
|
|
390
|
-
],
|
|
391
|
-
"internalType": "struct IPRouterStatic.TokenAmount",
|
|
392
|
-
"name": "ptBalance",
|
|
393
|
-
"type": "tuple"
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
"components": [
|
|
397
|
-
{
|
|
398
|
-
"internalType": "address",
|
|
399
|
-
"name": "token",
|
|
400
|
-
"type": "address"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
"internalType": "uint256",
|
|
404
|
-
"name": "amount",
|
|
405
|
-
"type": "uint256"
|
|
406
|
-
}
|
|
407
|
-
],
|
|
408
|
-
"internalType": "struct IPRouterStatic.TokenAmount",
|
|
409
|
-
"name": "scyBalance",
|
|
410
|
-
"type": "tuple"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
"components": [
|
|
414
|
-
{
|
|
415
|
-
"internalType": "enum ISuperComposableYield.AssetType",
|
|
416
|
-
"name": "assetType",
|
|
417
|
-
"type": "uint8"
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
"internalType": "address",
|
|
421
|
-
"name": "assetAddress",
|
|
422
|
-
"type": "address"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
"internalType": "uint256",
|
|
426
|
-
"name": "amount",
|
|
427
|
-
"type": "uint256"
|
|
428
|
-
}
|
|
429
|
-
],
|
|
430
|
-
"internalType": "struct IPRouterStatic.AssetAmount",
|
|
431
|
-
"name": "assetBalance",
|
|
432
|
-
"type": "tuple"
|
|
433
|
-
}
|
|
434
|
-
],
|
|
435
|
-
"internalType": "struct IPRouterStatic.UserMarketInfo[]",
|
|
436
|
-
"name": "userMarketPositions",
|
|
437
|
-
"type": "tuple[]"
|
|
438
|
-
}
|
|
439
|
-
],
|
|
440
|
-
"stateMutability": "view",
|
|
441
|
-
"type": "function"
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
"inputs": [
|
|
445
|
-
{
|
|
446
|
-
"internalType": "address",
|
|
447
|
-
"name": "py",
|
|
448
|
-
"type": "address"
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
"internalType": "address",
|
|
452
|
-
"name": "user",
|
|
453
|
-
"type": "address"
|
|
454
|
-
}
|
|
455
|
-
],
|
|
456
|
-
"name": "getUserPYInfo",
|
|
457
|
-
"outputs": [
|
|
458
|
-
{
|
|
459
|
-
"components": [
|
|
460
|
-
{
|
|
461
|
-
"internalType": "address",
|
|
462
|
-
"name": "yt",
|
|
463
|
-
"type": "address"
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"internalType": "address",
|
|
467
|
-
"name": "pt",
|
|
468
|
-
"type": "address"
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
"internalType": "uint256",
|
|
472
|
-
"name": "ytBalance",
|
|
473
|
-
"type": "uint256"
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
"internalType": "uint256",
|
|
477
|
-
"name": "ptBalance",
|
|
478
|
-
"type": "uint256"
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
"components": [
|
|
482
|
-
{
|
|
483
|
-
"internalType": "address",
|
|
484
|
-
"name": "token",
|
|
485
|
-
"type": "address"
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
"internalType": "uint256",
|
|
489
|
-
"name": "amount",
|
|
490
|
-
"type": "uint256"
|
|
491
|
-
}
|
|
492
|
-
],
|
|
493
|
-
"internalType": "struct IPRouterStatic.TokenAmount",
|
|
494
|
-
"name": "unclaimedInterest",
|
|
495
|
-
"type": "tuple"
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"components": [
|
|
499
|
-
{
|
|
500
|
-
"internalType": "address",
|
|
501
|
-
"name": "token",
|
|
502
|
-
"type": "address"
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
"internalType": "uint256",
|
|
506
|
-
"name": "amount",
|
|
507
|
-
"type": "uint256"
|
|
508
|
-
}
|
|
509
|
-
],
|
|
510
|
-
"internalType": "struct IPRouterStatic.TokenAmount[]",
|
|
511
|
-
"name": "unclaimedRewards",
|
|
512
|
-
"type": "tuple[]"
|
|
513
|
-
}
|
|
514
|
-
],
|
|
515
|
-
"internalType": "struct IPRouterStatic.UserPYInfo",
|
|
516
|
-
"name": "userPYInfo",
|
|
517
|
-
"type": "tuple"
|
|
518
|
-
}
|
|
519
|
-
],
|
|
520
|
-
"stateMutability": "view",
|
|
521
|
-
"type": "function"
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
"inputs": [
|
|
525
|
-
{
|
|
526
|
-
"internalType": "address",
|
|
527
|
-
"name": "user",
|
|
528
|
-
"type": "address"
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
"internalType": "address[]",
|
|
532
|
-
"name": "pys",
|
|
533
|
-
"type": "address[]"
|
|
534
|
-
}
|
|
535
|
-
],
|
|
536
|
-
"name": "getUserPYPositionsByPYs",
|
|
537
|
-
"outputs": [
|
|
538
|
-
{
|
|
539
|
-
"components": [
|
|
540
|
-
{
|
|
541
|
-
"internalType": "address",
|
|
542
|
-
"name": "yt",
|
|
543
|
-
"type": "address"
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"internalType": "address",
|
|
547
|
-
"name": "pt",
|
|
548
|
-
"type": "address"
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
"internalType": "uint256",
|
|
552
|
-
"name": "ytBalance",
|
|
553
|
-
"type": "uint256"
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
"internalType": "uint256",
|
|
557
|
-
"name": "ptBalance",
|
|
558
|
-
"type": "uint256"
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
"components": [
|
|
562
|
-
{
|
|
563
|
-
"internalType": "address",
|
|
564
|
-
"name": "token",
|
|
565
|
-
"type": "address"
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
"internalType": "uint256",
|
|
569
|
-
"name": "amount",
|
|
570
|
-
"type": "uint256"
|
|
571
|
-
}
|
|
572
|
-
],
|
|
573
|
-
"internalType": "struct IPRouterStatic.TokenAmount",
|
|
574
|
-
"name": "unclaimedInterest",
|
|
575
|
-
"type": "tuple"
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
"components": [
|
|
579
|
-
{
|
|
580
|
-
"internalType": "address",
|
|
581
|
-
"name": "token",
|
|
582
|
-
"type": "address"
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
"internalType": "uint256",
|
|
586
|
-
"name": "amount",
|
|
587
|
-
"type": "uint256"
|
|
588
|
-
}
|
|
589
|
-
],
|
|
590
|
-
"internalType": "struct IPRouterStatic.TokenAmount[]",
|
|
591
|
-
"name": "unclaimedRewards",
|
|
592
|
-
"type": "tuple[]"
|
|
593
|
-
}
|
|
594
|
-
],
|
|
595
|
-
"internalType": "struct IPRouterStatic.UserPYInfo[]",
|
|
596
|
-
"name": "userPYPositions",
|
|
597
|
-
"type": "tuple[]"
|
|
598
|
-
}
|
|
599
|
-
],
|
|
600
|
-
"stateMutability": "view",
|
|
601
|
-
"type": "function"
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
"inputs": [
|
|
605
|
-
{
|
|
606
|
-
"internalType": "address",
|
|
607
|
-
"name": "scy",
|
|
608
|
-
"type": "address"
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
"internalType": "address",
|
|
612
|
-
"name": "user",
|
|
613
|
-
"type": "address"
|
|
614
|
-
}
|
|
615
|
-
],
|
|
616
|
-
"name": "getUserSCYInfo",
|
|
617
|
-
"outputs": [
|
|
618
|
-
{
|
|
619
|
-
"internalType": "uint256",
|
|
620
|
-
"name": "balance",
|
|
621
|
-
"type": "uint256"
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
"components": [
|
|
625
|
-
{
|
|
626
|
-
"internalType": "address",
|
|
627
|
-
"name": "token",
|
|
628
|
-
"type": "address"
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
"internalType": "uint256",
|
|
632
|
-
"name": "amount",
|
|
633
|
-
"type": "uint256"
|
|
634
|
-
}
|
|
635
|
-
],
|
|
636
|
-
"internalType": "struct IPRouterStatic.TokenAmount[]",
|
|
637
|
-
"name": "rewards",
|
|
638
|
-
"type": "tuple[]"
|
|
639
|
-
}
|
|
640
|
-
],
|
|
641
|
-
"stateMutability": "view",
|
|
642
|
-
"type": "function"
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"inputs": [
|
|
646
|
-
{
|
|
647
|
-
"components": [
|
|
648
|
-
{
|
|
649
|
-
"internalType": "address",
|
|
650
|
-
"name": "yt",
|
|
651
|
-
"type": "address"
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
"internalType": "address",
|
|
655
|
-
"name": "pt",
|
|
656
|
-
"type": "address"
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
"internalType": "uint256",
|
|
660
|
-
"name": "ytBalance",
|
|
661
|
-
"type": "uint256"
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
"internalType": "uint256",
|
|
665
|
-
"name": "ptBalance",
|
|
666
|
-
"type": "uint256"
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
"components": [
|
|
670
|
-
{
|
|
671
|
-
"internalType": "address",
|
|
672
|
-
"name": "token",
|
|
673
|
-
"type": "address"
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
"internalType": "uint256",
|
|
677
|
-
"name": "amount",
|
|
678
|
-
"type": "uint256"
|
|
679
|
-
}
|
|
680
|
-
],
|
|
681
|
-
"internalType": "struct IPRouterStatic.TokenAmount",
|
|
682
|
-
"name": "unclaimedInterest",
|
|
683
|
-
"type": "tuple"
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
"components": [
|
|
687
|
-
{
|
|
688
|
-
"internalType": "address",
|
|
689
|
-
"name": "token",
|
|
690
|
-
"type": "address"
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
"internalType": "uint256",
|
|
694
|
-
"name": "amount",
|
|
695
|
-
"type": "uint256"
|
|
696
|
-
}
|
|
697
|
-
],
|
|
698
|
-
"internalType": "struct IPRouterStatic.TokenAmount[]",
|
|
699
|
-
"name": "unclaimedRewards",
|
|
700
|
-
"type": "tuple[]"
|
|
701
|
-
}
|
|
702
|
-
],
|
|
703
|
-
"internalType": "struct IPRouterStatic.UserPYInfo",
|
|
704
|
-
"name": "userPYInfo",
|
|
705
|
-
"type": "tuple"
|
|
706
|
-
}
|
|
707
|
-
],
|
|
708
|
-
"name": "hasPYPosition",
|
|
709
|
-
"outputs": [
|
|
710
|
-
{
|
|
711
|
-
"internalType": "bool",
|
|
712
|
-
"name": "hasPosition",
|
|
713
|
-
"type": "bool"
|
|
714
|
-
}
|
|
715
|
-
],
|
|
716
|
-
"stateMutability": "pure",
|
|
717
|
-
"type": "function"
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
"inputs": [
|
|
721
|
-
{
|
|
722
|
-
"internalType": "address",
|
|
723
|
-
"name": "market",
|
|
724
|
-
"type": "address"
|
|
725
|
-
}
|
|
726
|
-
],
|
|
727
|
-
"name": "pyIndex",
|
|
728
|
-
"outputs": [
|
|
729
|
-
{
|
|
730
|
-
"internalType": "PYIndex",
|
|
731
|
-
"name": "index",
|
|
732
|
-
"type": "uint256"
|
|
733
|
-
}
|
|
734
|
-
],
|
|
735
|
-
"stateMutability": "nonpayable",
|
|
736
|
-
"type": "function"
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
"inputs": [
|
|
740
|
-
{
|
|
741
|
-
"internalType": "address",
|
|
742
|
-
"name": "market",
|
|
743
|
-
"type": "address"
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
"internalType": "uint256",
|
|
747
|
-
"name": "lpToRemove",
|
|
748
|
-
"type": "uint256"
|
|
749
|
-
}
|
|
750
|
-
],
|
|
751
|
-
"name": "removeLiquidityDualScyAndPtStatic",
|
|
752
|
-
"outputs": [
|
|
753
|
-
{
|
|
754
|
-
"internalType": "uint256",
|
|
755
|
-
"name": "netScyOut",
|
|
756
|
-
"type": "uint256"
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
"internalType": "uint256",
|
|
760
|
-
"name": "netPtOut",
|
|
761
|
-
"type": "uint256"
|
|
762
|
-
}
|
|
763
|
-
],
|
|
764
|
-
"stateMutability": "view",
|
|
765
|
-
"type": "function"
|
|
766
|
-
},
|
|
767
|
-
{
|
|
768
|
-
"inputs": [
|
|
769
|
-
{
|
|
770
|
-
"internalType": "address",
|
|
771
|
-
"name": "market",
|
|
772
|
-
"type": "address"
|
|
773
|
-
},
|
|
774
|
-
{
|
|
775
|
-
"internalType": "uint256",
|
|
776
|
-
"name": "exactPtIn",
|
|
777
|
-
"type": "uint256"
|
|
778
|
-
}
|
|
779
|
-
],
|
|
780
|
-
"name": "swapExactPtForScyStatic",
|
|
781
|
-
"outputs": [
|
|
782
|
-
{
|
|
783
|
-
"internalType": "uint256",
|
|
784
|
-
"name": "netScyOut",
|
|
785
|
-
"type": "uint256"
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
"internalType": "uint256",
|
|
789
|
-
"name": "netScyFee",
|
|
790
|
-
"type": "uint256"
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
"internalType": "uint256",
|
|
794
|
-
"name": "priceImpact",
|
|
795
|
-
"type": "uint256"
|
|
796
|
-
}
|
|
797
|
-
],
|
|
798
|
-
"stateMutability": "nonpayable",
|
|
799
|
-
"type": "function"
|
|
800
|
-
},
|
|
801
|
-
{
|
|
802
|
-
"inputs": [
|
|
803
|
-
{
|
|
804
|
-
"internalType": "address",
|
|
805
|
-
"name": "market",
|
|
806
|
-
"type": "address"
|
|
807
|
-
},
|
|
808
|
-
{
|
|
809
|
-
"internalType": "uint256",
|
|
810
|
-
"name": "exactScyIn",
|
|
811
|
-
"type": "uint256"
|
|
812
|
-
}
|
|
813
|
-
],
|
|
814
|
-
"name": "swapExactScyForPtStatic",
|
|
815
|
-
"outputs": [
|
|
816
|
-
{
|
|
817
|
-
"internalType": "uint256",
|
|
818
|
-
"name": "netPtOut",
|
|
819
|
-
"type": "uint256"
|
|
820
|
-
},
|
|
821
|
-
{
|
|
822
|
-
"internalType": "uint256",
|
|
823
|
-
"name": "netScyFee",
|
|
824
|
-
"type": "uint256"
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
"internalType": "uint256",
|
|
828
|
-
"name": "priceImpact",
|
|
829
|
-
"type": "uint256"
|
|
830
|
-
}
|
|
831
|
-
],
|
|
832
|
-
"stateMutability": "nonpayable",
|
|
833
|
-
"type": "function"
|
|
834
|
-
},
|
|
835
|
-
{
|
|
836
|
-
"inputs": [
|
|
837
|
-
{
|
|
838
|
-
"internalType": "address",
|
|
839
|
-
"name": "market",
|
|
840
|
-
"type": "address"
|
|
841
|
-
},
|
|
842
|
-
{
|
|
843
|
-
"internalType": "uint256",
|
|
844
|
-
"name": "exactPtOut",
|
|
845
|
-
"type": "uint256"
|
|
846
|
-
}
|
|
847
|
-
],
|
|
848
|
-
"name": "swapScyForExactPtStatic",
|
|
849
|
-
"outputs": [
|
|
850
|
-
{
|
|
851
|
-
"internalType": "uint256",
|
|
852
|
-
"name": "netScyIn",
|
|
853
|
-
"type": "uint256"
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
"internalType": "uint256",
|
|
857
|
-
"name": "netScyFee",
|
|
858
|
-
"type": "uint256"
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
"internalType": "uint256",
|
|
862
|
-
"name": "priceImpact",
|
|
863
|
-
"type": "uint256"
|
|
864
|
-
}
|
|
865
|
-
],
|
|
866
|
-
"stateMutability": "nonpayable",
|
|
867
|
-
"type": "function"
|
|
868
|
-
}
|
|
869
|
-
],
|
|
870
|
-
"bytecode": "0x",
|
|
871
|
-
"deployedBytecode": "0x",
|
|
872
|
-
"linkReferences": {},
|
|
873
|
-
"deployedLinkReferences": {}
|
|
874
|
-
}
|