@pendle/core-v2 0.6.5 → 0.6.6
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/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/ISuperComposableYield.sol/ISuperComposableYield.json +13 -0
- package/build/artifacts/contracts/SuperComposableYield/SCYUtils.sol/SCYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/implementations/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/implementations/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBase.sol/SCYBase.json +13 -0
- package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +13 -0
- package/build/artifacts/contracts/core/PendleBaseToken.sol/PendleBaseToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleBaseToken.sol/PendleBaseToken.json +1 -1
- package/build/artifacts/contracts/core/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleMarket.sol/PendleMarket.json +56 -51
- package/build/artifacts/contracts/core/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleMarketFactory.sol/PendleMarketFactory.json +30 -4
- package/build/artifacts/contracts/core/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +4 -0
- package/build/artifacts/contracts/core/PendlePrincipalToken.sol/PendlePrincipalToken.json +452 -0
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +2 -2
- package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +20 -2
- package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol/PendleBenQiErc20SCY.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol/PendleBenQiErc20SCY.json +21 -16
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol/PendleBtrflyScy.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol/PendleBtrflyScy.json +21 -16
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleStETHSCY.sol/PendleStEthSCY.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleStETHSCY.sol/PendleStEthSCY.json +23 -18
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol/PendleYearnVaultScy.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol/PendleYearnVaultScy.json +22 -17
- package/build/artifacts/contracts/core/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +7 -7
- package/build/artifacts/contracts/core/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleYieldToken.sol/PendleYieldToken.json +9 -9
- package/build/artifacts/contracts/core/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/core/RouterStatic.sol/RouterStatic.json +628 -12
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +3 -3
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +128 -92
- package/build/artifacts/contracts/core/actions/ActionRedeem.sol/ActionRedeem.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionRedeem.sol/{PendleRouterRedeemUpg.json → ActionRedeem.json} +3 -3
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +105 -69
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/base/{ActionSCYAndOTBase.sol/ActionSCYAndOTBase.json → ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json} +2 -2
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/base/{ActionSCYAndYOBase.sol/ActionSCYAndYOBase.json → ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json} +14 -14
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.json +12 -12
- package/build/artifacts/contracts/core/actions/base/ActionType.sol/ActionType.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/IJoePair.sol/IJoePair.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.json +114 -78
- package/build/artifacts/contracts/interfaces/IPActionRedeem.sol/IPActionRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.json +90 -54
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +210 -138
- package/build/artifacts/contracts/interfaces/IPBaseToken.sol/IPBaseToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.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 +14 -14
- package/build/artifacts/contracts/interfaces/IPMarketAddRemoveCallback.sol/IPMarketAddRemoveCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketAddRemoveCallback.sol/IPMarketAddRemoveCallback.json +2 -2
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.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 +4 -0
- package/build/artifacts/contracts/interfaces/{IPOwnershipToken.sol/IPOwnershipToken.json → IPPrincipalToken.sol/IPPrincipalToken.json} +2 -2
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +626 -10
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.json +3 -3
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.json +5 -5
- 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/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/JoeLibrary.sol/JoeLibrary.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/JoeLibrary.sol/JoeLibrary.json +2 -2
- package/build/artifacts/contracts/libraries/SCYIndex.sol/SCYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/SCYIndex.sol/SCYIndexLib.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.json +2 -2
- 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/MarketMathAux.sol/MarketMathAux.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathAux.sol/MarketMathAux.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.json +2 -2
- package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.dbg.json +1 -1
- package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.json +3 -3
- package/build/artifacts/contracts/periphery/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.dbg.json +1 -1
- package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
- package/contracts/libraries/math/MarketApproxLib.sol +1 -1
- package/package.json +1 -1
- package/typechain-types/ActionCallback.ts +5 -5
- package/typechain-types/ActionCore.ts +232 -280
- package/typechain-types/{PendleRouterRedeemUpg.ts → ActionRedeem.ts} +5 -5
- package/typechain-types/{ActionSCYAndYOBase.ts → ActionSCYAndPYBase.ts} +54 -54
- package/typechain-types/ActionSCYAndYTBase.ts +49 -49
- package/typechain-types/ActionYT.ts +92 -140
- package/typechain-types/IPActionCore.ts +183 -231
- package/typechain-types/IPActionYT.ts +43 -91
- package/typechain-types/IPAllAction.ts +204 -322
- package/typechain-types/IPMarket.ts +55 -55
- package/typechain-types/IPMarketAddRemoveCallback.ts +10 -10
- package/typechain-types/IPMarketFactory.ts +3 -3
- package/typechain-types/IPMarketSwapCallback.ts +5 -5
- package/typechain-types/{IPOwnershipToken.ts → IPPrincipalToken.ts} +5 -5
- package/typechain-types/IPRouterStatic.ts +529 -49
- package/typechain-types/IPYieldContractFactory.ts +19 -19
- package/typechain-types/IPYieldToken.ts +29 -29
- package/typechain-types/ISuperComposableYield.ts +13 -0
- package/typechain-types/PendleAaveV3SCY.ts +13 -0
- package/typechain-types/PendleBaseToken.ts +1 -1
- package/typechain-types/PendleBenQiErc20SCY.ts +14 -20
- package/typechain-types/PendleBtrflyScy.ts +14 -20
- package/typechain-types/PendleGovernanceManager.ts +5 -5
- package/typechain-types/PendleMarket.ts +102 -105
- package/typechain-types/PendleMarketFactory.ts +48 -8
- package/typechain-types/{PendleOwnershipToken.ts → PendlePrincipalToken.ts} +15 -6
- package/typechain-types/PendleStEthSCY.ts +15 -23
- package/typechain-types/PendleYearnVaultScy.ts +15 -23
- package/typechain-types/PendleYieldContractFactory.ts +28 -28
- package/typechain-types/PendleYieldToken.ts +30 -30
- package/typechain-types/RouterStatic.ts +529 -49
- package/typechain-types/SCYBase.ts +13 -0
- package/typechain-types/SCYBaseWithRewards.ts +13 -0
- package/typechain-types/factories/ActionCallback__factory.ts +2 -2
- package/typechain-types/factories/ActionCore__factory.ts +127 -91
- package/typechain-types/factories/{PendleRouterRedeemUpg__factory.ts → ActionRedeem__factory.ts} +19 -26
- package/typechain-types/factories/{ActionSCYAndYOBase__factory.ts → ActionSCYAndPYBase__factory.ts} +20 -20
- package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +12 -12
- package/typechain-types/factories/ActionYT__factory.ts +104 -68
- package/typechain-types/factories/IPActionCore__factory.ts +114 -78
- package/typechain-types/factories/IPActionYT__factory.ts +90 -54
- package/typechain-types/factories/IPAllAction__factory.ts +210 -138
- package/typechain-types/factories/IPMarketAddRemoveCallback__factory.ts +2 -2
- package/typechain-types/factories/IPMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/IPMarketSwapCallback__factory.ts +1 -1
- package/typechain-types/factories/IPMarket__factory.ts +14 -14
- package/typechain-types/factories/{IPOwnershipToken__factory.ts → IPPrincipalToken__factory.ts} +8 -8
- package/typechain-types/factories/IPRouterStatic__factory.ts +626 -10
- package/typechain-types/factories/IPYieldContractFactory__factory.ts +3 -3
- package/typechain-types/factories/IPYieldToken__factory.ts +5 -5
- package/typechain-types/factories/ISuperComposableYield__factory.ts +13 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +24 -1
- package/typechain-types/factories/PendleBaseToken__factory.ts +1 -1
- package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +25 -15
- package/typechain-types/factories/PendleBtrflyScy__factory.ts +25 -15
- package/typechain-types/factories/PendleGovernanceManager__factory.ts +2 -2
- package/typechain-types/factories/PendleMarketFactory__factory.ts +29 -3
- package/typechain-types/factories/PendleMarket__factory.ts +59 -54
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +540 -0
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleStEthSCY__factory.ts +27 -17
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +26 -16
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +6 -6
- package/typechain-types/factories/PendleYieldToken__factory.ts +12 -12
- package/typechain-types/factories/RouterStatic__factory.ts +627 -11
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +13 -0
- package/typechain-types/factories/SCYBase__factory.ts +13 -0
- package/typechain-types/hardhat.d.ts +20 -20
- package/typechain-types/index.ts +8 -8
- package/build/artifacts/contracts/core/PendleOwnershipToken.sol/PendleOwnershipToken.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleOwnershipToken.sol/PendleOwnershipToken.json +0 -439
- package/build/artifacts/contracts/core/actions/ActionRedeem.sol/PendleRouterRedeemUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndOTBase.sol/ActionSCYAndOTBase.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYOBase.sol/ActionSCYAndYOBase.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPOwnershipToken.sol/IPOwnershipToken.dbg.json +0 -4
- package/typechain-types/AggregatorV2V3Interface.ts +0 -380
- package/typechain-types/BenqiChainlinkOracle.ts +0 -362
- package/typechain-types/BoringOwnable.ts +0 -194
- package/typechain-types/BoringOwnableData.ts +0 -100
- package/typechain-types/BoringOwnableUpg.ts +0 -194
- package/typechain-types/BoringOwnableUpgData.ts +0 -100
- package/typechain-types/Comptroller.ts +0 -2860
- package/typechain-types/ComptrollerErrorReporter.ts +0 -70
- package/typechain-types/ComptrollerInterface.ts +0 -881
- package/typechain-types/ComptrollerVXStorage.ts +0 -781
- package/typechain-types/CrosschainContract.ts +0 -113
- package/typechain-types/CrosschainReceiver.ts +0 -347
- package/typechain-types/CrosschainSender.ts +0 -210
- package/typechain-types/EIP20Interface.ts +0 -337
- package/typechain-types/EIP20NonStandardInterface.ts +0 -298
- package/typechain-types/ERC20Burnable.ts +0 -473
- package/typechain-types/ERC20Locker.ts +0 -91
- package/typechain-types/ERC20Premined.ts +0 -473
- package/typechain-types/ERC20PresetFixedSupply.ts +0 -473
- package/typechain-types/EpochController.ts +0 -195
- package/typechain-types/FundKeeper.ts +0 -347
- package/typechain-types/GaugeTypeControllerAbstract.ts +0 -546
- package/typechain-types/GaugeTypeControllerCrosschain.ts +0 -733
- package/typechain-types/GaugeTypeControllerMainchain.ts +0 -604
- package/typechain-types/IGaugeController.ts +0 -99
- package/typechain-types/ILiquidYieldToken.ts +0 -639
- package/typechain-types/ILiquidYieldTokenWrap.ts +0 -790
- package/typechain-types/IMessageBus.ts +0 -543
- package/typechain-types/IMessageReceiverApp.ts +0 -110
- package/typechain-types/IPFlashCallback.ts +0 -115
- package/typechain-types/IPLiquidYieldToken.ts +0 -641
- package/typechain-types/IPMarketCallback.ts +0 -107
- package/typechain-types/IPRouterCore.ts +0 -769
- package/typechain-types/IPRouterRedeem.ts +0 -155
- package/typechain-types/IPRouterYT.ts +0 -489
- package/typechain-types/IPermissionsV2.ts +0 -87
- package/typechain-types/IRainbowBridge.ts +0 -91
- package/typechain-types/ISCYRewardIndex.ts +0 -695
- package/typechain-types/IVEPendleToken.ts +0 -121
- package/typechain-types/IXPendle.ts +0 -114
- package/typechain-types/InterestRateModel.ts +0 -178
- package/typechain-types/JumpRateModel.ts +0 -347
- package/typechain-types/LYTBase.ts +0 -721
- package/typechain-types/LYTBaseWithRewards.ts +0 -806
- package/typechain-types/LYTWrap.ts +0 -872
- package/typechain-types/LYTWrapWithRewards.ts +0 -979
- package/typechain-types/LiquidityMining.ts +0 -468
- package/typechain-types/Maximillion.ts +0 -145
- package/typechain-types/Ownable.ts +0 -160
- package/typechain-types/PendleAaveV3LYT.ts +0 -808
- package/typechain-types/PendleBenQiErc20LYT.ts +0 -901
- package/typechain-types/PendleBenqiLiquidYieldToken.ts +0 -1013
- package/typechain-types/PendleBtrflyLYT.ts +0 -781
- package/typechain-types/PendleGauge.ts +0 -469
- package/typechain-types/PendleJoeSwapHelper.ts +0 -92
- package/typechain-types/PendleLYTMockYT.ts +0 -894
- package/typechain-types/PendleLiquidYieldToken.ts +0 -814
- package/typechain-types/PendleLiquidYieldTokenBase.ts +0 -941
- package/typechain-types/PendleRouter01.ts +0 -184
- package/typechain-types/PendleRouter02.ts +0 -564
- package/typechain-types/PendleRouter03.ts +0 -224
- package/typechain-types/PendleRouterBase.ts +0 -126
- package/typechain-types/PendleRouterCore.ts +0 -328
- package/typechain-types/PendleRouterCoreUpg.ts +0 -798
- package/typechain-types/PendleRouterLytAndForge.ts +0 -331
- package/typechain-types/PendleRouterMarketBase.ts +0 -82
- package/typechain-types/PendleRouterOT.ts +0 -463
- package/typechain-types/PendleRouterProxy.ts +0 -335
- package/typechain-types/PendleRouterRawTokenOT.ts +0 -865
- package/typechain-types/PendleRouterRawTokenYT.ts +0 -520
- package/typechain-types/PendleRouterSCYAndForgeBaseUpg.ts +0 -98
- package/typechain-types/PendleRouterStaticUpg.ts +0 -399
- package/typechain-types/PendleRouterYT.ts +0 -227
- package/typechain-types/PendleRouterYTBaseUpg.ts +0 -134
- package/typechain-types/PendleRouterYTUpg.ts +0 -537
- package/typechain-types/PendleYTLYTBenqi.ts +0 -863
- package/typechain-types/PendleYearnVaultLYT.ts +0 -723
- package/typechain-types/PermissionsV2.ts +0 -87
- package/typechain-types/PermlessAbstract.ts +0 -57
- package/typechain-types/PglStakingContract.ts +0 -662
- package/typechain-types/PglStakingContractProxy.ts +0 -256
- package/typechain-types/PglStakingContractProxyStorage.ts +0 -136
- package/typechain-types/PglStakingContractStorage.ts +0 -397
- package/typechain-types/PriceOracle.ts +0 -116
- package/typechain-types/ProtocolFakeUser.ts +0 -105
- package/typechain-types/Qi.ts +0 -760
- package/typechain-types/QiAvax.ts +0 -1720
- package/typechain-types/QiDelegateInterface.ts +0 -145
- package/typechain-types/QiDelegationStorage.ts +0 -82
- package/typechain-types/QiDelegatorInterface.ts +0 -149
- package/typechain-types/QiErc20.ts +0 -1846
- package/typechain-types/QiErc20Delegate.ts +0 -1926
- package/typechain-types/QiErc20Delegator.ts +0 -1885
- package/typechain-types/QiErc20Interface.ts +0 -382
- package/typechain-types/QiErc20Storage.ts +0 -79
- package/typechain-types/QiToken.ts +0 -1475
- package/typechain-types/QiTokenInterface.ts +0 -1419
- package/typechain-types/QiTokenSaleDistributor.ts +0 -771
- package/typechain-types/QiTokenSaleDistributorProxy.ts +0 -256
- package/typechain-types/QiTokenSaleDistributorProxyStorage.ts +0 -136
- package/typechain-types/QiTokenSaleDistributorStorage.ts +0 -401
- package/typechain-types/QiTokenStorage.ts +0 -311
- package/typechain-types/ReentrancyGuard.ts +0 -52
- package/typechain-types/SingleGaugeTypeController.ts +0 -478
- package/typechain-types/TokenErrorReporter.ts +0 -70
- package/typechain-types/Unitroller.ts +0 -356
- package/typechain-types/UnitrollerAdminStorage.ts +0 -143
- package/typechain-types/VePendle.ts +0 -1156
- package/typechain-types/VePendleCrosschain.ts +0 -969
- package/typechain-types/VePendleToken.ts +0 -688
- package/typechain-types/VotingController.ts +0 -883
- package/typechain-types/WETH9.ts +0 -414
- package/typechain-types/WhitePaperInterestRateModel.ts +0 -304
- package/typechain-types/XPendle.ts +0 -618
- package/typechain-types/factories/AggregatorV2V3Interface__factory.ts +0 -288
- package/typechain-types/factories/BenqiChainlinkOracle__factory.ts +0 -311
- package/typechain-types/factories/BoringOwnableData__factory.ts +0 -90
- package/typechain-types/factories/BoringOwnableUpgData__factory.ts +0 -94
- package/typechain-types/factories/BoringOwnableUpg__factory.ts +0 -139
- package/typechain-types/factories/BoringOwnable__factory.ts +0 -149
- package/typechain-types/factories/ComptrollerErrorReporter__factory.ts +0 -93
- package/typechain-types/factories/ComptrollerInterface__factory.ts +0 -595
- package/typechain-types/factories/ComptrollerVXStorage__factory.ts +0 -610
- package/typechain-types/factories/Comptroller__factory.ts +0 -2189
- package/typechain-types/factories/CrosschainContract__factory.ts +0 -52
- package/typechain-types/factories/CrosschainReceiver__factory.ts +0 -187
- package/typechain-types/factories/CrosschainSender__factory.ts +0 -104
- package/typechain-types/factories/EIP20Interface__factory.ts +0 -248
- package/typechain-types/factories/EIP20NonStandardInterface__factory.ts +0 -213
- package/typechain-types/factories/ERC20Burnable__factory.ts +0 -324
- package/typechain-types/factories/ERC20Locker__factory.ts +0 -73
- package/typechain-types/factories/ERC20Premined__factory.ts +0 -393
- package/typechain-types/factories/ERC20PresetFixedSupply__factory.ts +0 -422
- package/typechain-types/factories/EpochController__factory.ts +0 -170
- package/typechain-types/factories/FundKeeper__factory.ts +0 -212
- package/typechain-types/factories/GaugeTypeControllerAbstract__factory.ts +0 -387
- package/typechain-types/factories/GaugeTypeControllerCrosschain__factory.ts +0 -522
- package/typechain-types/factories/GaugeTypeControllerMainchain__factory.ts +0 -431
- package/typechain-types/factories/IGaugeController__factory.ts +0 -45
- package/typechain-types/factories/ILiquidYieldTokenWrap__factory.ts +0 -533
- package/typechain-types/factories/ILiquidYieldToken__factory.ts +0 -429
- package/typechain-types/factories/IMessageBus__factory.ts +0 -396
- package/typechain-types/factories/IMessageReceiverApp__factory.ts +0 -55
- package/typechain-types/factories/IPFlashCallback__factory.ts +0 -49
- package/typechain-types/factories/IPLiquidYieldToken__factory.ts +0 -433
- package/typechain-types/factories/IPMarketCallback__factory.ts +0 -55
- package/typechain-types/factories/IPRouterCore__factory.ts +0 -531
- package/typechain-types/factories/IPRouterRedeem__factory.ts +0 -72
- package/typechain-types/factories/IPRouterYT__factory.ts +0 -305
- package/typechain-types/factories/IPermissionsV2__factory.ts +0 -39
- package/typechain-types/factories/IRainbowBridge__factory.ts +0 -76
- package/typechain-types/factories/ISCYRewardIndex__factory.ts +0 -465
- package/typechain-types/factories/IVEPendleToken__factory.ts +0 -71
- package/typechain-types/factories/IXPendle__factory.ts +0 -61
- package/typechain-types/factories/InterestRateModel__factory.ts +0 -108
- package/typechain-types/factories/JumpRateModel__factory.ts +0 -334
- package/typechain-types/factories/LYTBaseWithRewards__factory.ts +0 -530
- package/typechain-types/factories/LYTBase__factory.ts +0 -474
- package/typechain-types/factories/LYTWrapWithRewards__factory.ts +0 -643
- package/typechain-types/factories/LYTWrap__factory.ts +0 -574
- package/typechain-types/factories/LiquidityMining__factory.ts +0 -367
- package/typechain-types/factories/Maximillion__factory.ts +0 -125
- package/typechain-types/factories/Ownable__factory.ts +0 -75
- package/typechain-types/factories/PendleAaveV3LYT__factory.ts +0 -657
- package/typechain-types/factories/PendleBenQiErc20LYT__factory.ts +0 -748
- package/typechain-types/factories/PendleBenqiLiquidYieldToken__factory.ts +0 -785
- package/typechain-types/factories/PendleBtrflyLYT__factory.ts +0 -647
- package/typechain-types/factories/PendleGauge__factory.ts +0 -383
- package/typechain-types/factories/PendleJoeSwapHelper__factory.ts +0 -52
- package/typechain-types/factories/PendleLYTMockYT__factory.ts +0 -732
- package/typechain-types/factories/PendleLiquidYieldTokenBase__factory.ts +0 -603
- package/typechain-types/factories/PendleLiquidYieldToken__factory.ts +0 -510
- package/typechain-types/factories/PendleOwnershipToken__factory.ts +0 -527
- package/typechain-types/factories/PendleRouter01__factory.ts +0 -152
- package/typechain-types/factories/PendleRouter02__factory.ts +0 -438
- package/typechain-types/factories/PendleRouter03__factory.ts +0 -190
- package/typechain-types/factories/PendleRouterBase__factory.ts +0 -68
- package/typechain-types/factories/PendleRouterCoreUpg__factory.ts +0 -635
- package/typechain-types/factories/PendleRouterCore__factory.ts +0 -268
- package/typechain-types/factories/PendleRouterLytAndForge__factory.ts +0 -294
- package/typechain-types/factories/PendleRouterMarketBase__factory.ts +0 -43
- package/typechain-types/factories/PendleRouterOT__factory.ts +0 -372
- package/typechain-types/factories/PendleRouterProxy__factory.ts +0 -285
- package/typechain-types/factories/PendleRouterRawTokenOT__factory.ts +0 -697
- package/typechain-types/factories/PendleRouterRawTokenYT__factory.ts +0 -431
- package/typechain-types/factories/PendleRouterSCYAndForgeBaseUpg__factory.ts +0 -56
- package/typechain-types/factories/PendleRouterStaticUpg__factory.ts +0 -315
- package/typechain-types/factories/PendleRouterYTBaseUpg__factory.ts +0 -66
- package/typechain-types/factories/PendleRouterYTUpg__factory.ts +0 -422
- package/typechain-types/factories/PendleRouterYT__factory.ts +0 -184
- package/typechain-types/factories/PendleYTLYTBenqi__factory.ts +0 -713
- package/typechain-types/factories/PendleYearnVaultLYT__factory.ts +0 -586
- package/typechain-types/factories/PermissionsV2__factory.ts +0 -36
- package/typechain-types/factories/PermlessAbstract__factory.ts +0 -30
- package/typechain-types/factories/PglStakingContractProxyStorage__factory.ts +0 -130
- package/typechain-types/factories/PglStakingContractProxy__factory.ts +0 -187
- package/typechain-types/factories/PglStakingContractStorage__factory.ts +0 -309
- package/typechain-types/factories/PglStakingContract__factory.ts +0 -446
- package/typechain-types/factories/PriceOracle__factory.ts +0 -59
- package/typechain-types/factories/ProtocolFakeUser__factory.ts +0 -87
- package/typechain-types/factories/QiAvax__factory.ts +0 -1471
- package/typechain-types/factories/QiDelegateInterface__factory.ts +0 -65
- package/typechain-types/factories/QiDelegationStorage__factory.ts +0 -79
- package/typechain-types/factories/QiDelegatorInterface__factory.ts +0 -89
- package/typechain-types/factories/QiErc20Delegate__factory.ts +0 -1563
- package/typechain-types/factories/QiErc20Delegator__factory.ts +0 -1648
- package/typechain-types/factories/QiErc20Interface__factory.ts +0 -239
- package/typechain-types/factories/QiErc20Storage__factory.ts +0 -79
- package/typechain-types/factories/QiErc20__factory.ts +0 -1515
- package/typechain-types/factories/QiTokenInterface__factory.ts +0 -1182
- package/typechain-types/factories/QiTokenSaleDistributorProxyStorage__factory.ts +0 -124
- package/typechain-types/factories/QiTokenSaleDistributorProxy__factory.ts +0 -171
- package/typechain-types/factories/QiTokenSaleDistributorStorage__factory.ts +0 -289
- package/typechain-types/factories/QiTokenSaleDistributor__factory.ts +0 -480
- package/typechain-types/factories/QiTokenStorage__factory.ts +0 -274
- package/typechain-types/factories/QiToken__factory.ts +0 -1219
- package/typechain-types/factories/Qi__factory.ts +0 -648
- package/typechain-types/factories/ReentrancyGuard__factory.ts +0 -69
- package/typechain-types/factories/SingleGaugeTypeController__factory.ts +0 -341
- package/typechain-types/factories/TokenErrorReporter__factory.ts +0 -89
- package/typechain-types/factories/UnitrollerAdminStorage__factory.ts +0 -128
- package/typechain-types/factories/Unitroller__factory.ts +0 -305
- package/typechain-types/factories/VePendleCrosschain__factory.ts +0 -727
- package/typechain-types/factories/VePendleToken__factory.ts +0 -494
- package/typechain-types/factories/VePendle__factory.ts +0 -800
- package/typechain-types/factories/VotingController__factory.ts +0 -610
- package/typechain-types/factories/WETH9__factory.ts +0 -342
- package/typechain-types/factories/WhitePaperInterestRateModel__factory.ts +0 -281
- package/typechain-types/factories/XPendle__factory.ts +0 -473
|
@@ -22,17 +22,132 @@ import type {
|
|
|
22
22
|
OnEvent,
|
|
23
23
|
} from "./common";
|
|
24
24
|
|
|
25
|
+
export type MarketStateStruct = {
|
|
26
|
+
totalPt: BigNumberish;
|
|
27
|
+
totalScy: BigNumberish;
|
|
28
|
+
totalLp: BigNumberish;
|
|
29
|
+
oracleRate: BigNumberish;
|
|
30
|
+
treasury: string;
|
|
31
|
+
scalarRoot: BigNumberish;
|
|
32
|
+
lnFeeRateRoot: BigNumberish;
|
|
33
|
+
rateOracleTimeWindow: BigNumberish;
|
|
34
|
+
expiry: BigNumberish;
|
|
35
|
+
reserveFeePercent: BigNumberish;
|
|
36
|
+
lastLnImpliedRate: BigNumberish;
|
|
37
|
+
lastTradeTime: BigNumberish;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type MarketStateStructOutput = [
|
|
41
|
+
BigNumber,
|
|
42
|
+
BigNumber,
|
|
43
|
+
BigNumber,
|
|
44
|
+
BigNumber,
|
|
45
|
+
string,
|
|
46
|
+
BigNumber,
|
|
47
|
+
BigNumber,
|
|
48
|
+
BigNumber,
|
|
49
|
+
BigNumber,
|
|
50
|
+
BigNumber,
|
|
51
|
+
BigNumber,
|
|
52
|
+
BigNumber
|
|
53
|
+
] & {
|
|
54
|
+
totalPt: BigNumber;
|
|
55
|
+
totalScy: BigNumber;
|
|
56
|
+
totalLp: BigNumber;
|
|
57
|
+
oracleRate: BigNumber;
|
|
58
|
+
treasury: string;
|
|
59
|
+
scalarRoot: BigNumber;
|
|
60
|
+
lnFeeRateRoot: BigNumber;
|
|
61
|
+
rateOracleTimeWindow: BigNumber;
|
|
62
|
+
expiry: BigNumber;
|
|
63
|
+
reserveFeePercent: BigNumber;
|
|
64
|
+
lastLnImpliedRate: BigNumber;
|
|
65
|
+
lastTradeTime: BigNumber;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export declare namespace IPRouterStatic {
|
|
69
|
+
export type RewardIndexStruct = { rewardToken: string; index: BigNumberish };
|
|
70
|
+
|
|
71
|
+
export type RewardIndexStructOutput = [string, BigNumber] & {
|
|
72
|
+
rewardToken: string;
|
|
73
|
+
index: BigNumber;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export type TokenAmountStruct = { token: string; amount: BigNumberish };
|
|
77
|
+
|
|
78
|
+
export type TokenAmountStructOutput = [string, BigNumber] & {
|
|
79
|
+
token: string;
|
|
80
|
+
amount: BigNumber;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export type UserMarketInfoStruct = {
|
|
84
|
+
market: string;
|
|
85
|
+
lpBalance: BigNumberish;
|
|
86
|
+
ptBalance: IPRouterStatic.TokenAmountStruct;
|
|
87
|
+
scyBalance: IPRouterStatic.TokenAmountStruct;
|
|
88
|
+
assetBalance: IPRouterStatic.TokenAmountStruct;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export type UserMarketInfoStructOutput = [
|
|
92
|
+
string,
|
|
93
|
+
BigNumber,
|
|
94
|
+
IPRouterStatic.TokenAmountStructOutput,
|
|
95
|
+
IPRouterStatic.TokenAmountStructOutput,
|
|
96
|
+
IPRouterStatic.TokenAmountStructOutput
|
|
97
|
+
] & {
|
|
98
|
+
market: string;
|
|
99
|
+
lpBalance: BigNumber;
|
|
100
|
+
ptBalance: IPRouterStatic.TokenAmountStructOutput;
|
|
101
|
+
scyBalance: IPRouterStatic.TokenAmountStructOutput;
|
|
102
|
+
assetBalance: IPRouterStatic.TokenAmountStructOutput;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export type UserPYInfoStruct = {
|
|
106
|
+
yt: string;
|
|
107
|
+
pt: string;
|
|
108
|
+
ytBalance: BigNumberish;
|
|
109
|
+
ptBalance: BigNumberish;
|
|
110
|
+
unclaimedInterest: IPRouterStatic.TokenAmountStruct;
|
|
111
|
+
unclaimedRewards: IPRouterStatic.TokenAmountStruct[];
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type UserPYInfoStructOutput = [
|
|
115
|
+
string,
|
|
116
|
+
string,
|
|
117
|
+
BigNumber,
|
|
118
|
+
BigNumber,
|
|
119
|
+
IPRouterStatic.TokenAmountStructOutput,
|
|
120
|
+
IPRouterStatic.TokenAmountStructOutput[]
|
|
121
|
+
] & {
|
|
122
|
+
yt: string;
|
|
123
|
+
pt: string;
|
|
124
|
+
ytBalance: BigNumber;
|
|
125
|
+
ptBalance: BigNumber;
|
|
126
|
+
unclaimedInterest: IPRouterStatic.TokenAmountStructOutput;
|
|
127
|
+
unclaimedRewards: IPRouterStatic.TokenAmountStructOutput[];
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
25
131
|
export interface RouterStaticInterface extends utils.Interface {
|
|
26
132
|
contractName: "RouterStatic";
|
|
27
133
|
functions: {
|
|
28
134
|
"addLiquidityStatic(address,uint256,uint256)": FunctionFragment;
|
|
29
|
-
"
|
|
135
|
+
"getMarketInfo(address)": FunctionFragment;
|
|
136
|
+
"getPY(address)": FunctionFragment;
|
|
137
|
+
"getPYInfo(address)": FunctionFragment;
|
|
30
138
|
"getPendleTokenType(address)": FunctionFragment;
|
|
139
|
+
"getPtImpliedYield(address)": FunctionFragment;
|
|
140
|
+
"getUserMarketInfo(address,address)": FunctionFragment;
|
|
141
|
+
"getUserMarketPositions(address,address[])": FunctionFragment;
|
|
142
|
+
"getUserPYInfo(address,address)": FunctionFragment;
|
|
143
|
+
"getUserPYPositionsByPYs(address,address[])": FunctionFragment;
|
|
144
|
+
"getUserSCYInfo(address,address)": FunctionFragment;
|
|
145
|
+
"hasPYPosition((address,address,uint256,uint256,(address,uint256),(address,uint256)[]))": FunctionFragment;
|
|
31
146
|
"marketFactory()": FunctionFragment;
|
|
32
147
|
"removeLiquidityStatic(address,uint256)": FunctionFragment;
|
|
33
148
|
"scyIndex(address)": FunctionFragment;
|
|
34
|
-
"
|
|
35
|
-
"
|
|
149
|
+
"swapPtForScyStatic(address,uint256)": FunctionFragment;
|
|
150
|
+
"swapScyForPtStatic(address,uint256)": FunctionFragment;
|
|
36
151
|
"yieldContractFactory()": FunctionFragment;
|
|
37
152
|
};
|
|
38
153
|
|
|
@@ -41,13 +156,43 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
41
156
|
values: [string, BigNumberish, BigNumberish]
|
|
42
157
|
): string;
|
|
43
158
|
encodeFunctionData(
|
|
44
|
-
functionFragment: "
|
|
159
|
+
functionFragment: "getMarketInfo",
|
|
45
160
|
values: [string]
|
|
46
161
|
): string;
|
|
162
|
+
encodeFunctionData(functionFragment: "getPY", values: [string]): string;
|
|
163
|
+
encodeFunctionData(functionFragment: "getPYInfo", values: [string]): string;
|
|
47
164
|
encodeFunctionData(
|
|
48
165
|
functionFragment: "getPendleTokenType",
|
|
49
166
|
values: [string]
|
|
50
167
|
): string;
|
|
168
|
+
encodeFunctionData(
|
|
169
|
+
functionFragment: "getPtImpliedYield",
|
|
170
|
+
values: [string]
|
|
171
|
+
): string;
|
|
172
|
+
encodeFunctionData(
|
|
173
|
+
functionFragment: "getUserMarketInfo",
|
|
174
|
+
values: [string, string]
|
|
175
|
+
): string;
|
|
176
|
+
encodeFunctionData(
|
|
177
|
+
functionFragment: "getUserMarketPositions",
|
|
178
|
+
values: [string, string[]]
|
|
179
|
+
): string;
|
|
180
|
+
encodeFunctionData(
|
|
181
|
+
functionFragment: "getUserPYInfo",
|
|
182
|
+
values: [string, string]
|
|
183
|
+
): string;
|
|
184
|
+
encodeFunctionData(
|
|
185
|
+
functionFragment: "getUserPYPositionsByPYs",
|
|
186
|
+
values: [string, string[]]
|
|
187
|
+
): string;
|
|
188
|
+
encodeFunctionData(
|
|
189
|
+
functionFragment: "getUserSCYInfo",
|
|
190
|
+
values: [string, string]
|
|
191
|
+
): string;
|
|
192
|
+
encodeFunctionData(
|
|
193
|
+
functionFragment: "hasPYPosition",
|
|
194
|
+
values: [IPRouterStatic.UserPYInfoStruct]
|
|
195
|
+
): string;
|
|
51
196
|
encodeFunctionData(
|
|
52
197
|
functionFragment: "marketFactory",
|
|
53
198
|
values?: undefined
|
|
@@ -58,11 +203,11 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
58
203
|
): string;
|
|
59
204
|
encodeFunctionData(functionFragment: "scyIndex", values: [string]): string;
|
|
60
205
|
encodeFunctionData(
|
|
61
|
-
functionFragment: "
|
|
206
|
+
functionFragment: "swapPtForScyStatic",
|
|
62
207
|
values: [string, BigNumberish]
|
|
63
208
|
): string;
|
|
64
209
|
encodeFunctionData(
|
|
65
|
-
functionFragment: "
|
|
210
|
+
functionFragment: "swapScyForPtStatic",
|
|
66
211
|
values: [string, BigNumberish]
|
|
67
212
|
): string;
|
|
68
213
|
encodeFunctionData(
|
|
@@ -75,13 +220,43 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
75
220
|
data: BytesLike
|
|
76
221
|
): Result;
|
|
77
222
|
decodeFunctionResult(
|
|
78
|
-
functionFragment: "
|
|
223
|
+
functionFragment: "getMarketInfo",
|
|
79
224
|
data: BytesLike
|
|
80
225
|
): Result;
|
|
226
|
+
decodeFunctionResult(functionFragment: "getPY", data: BytesLike): Result;
|
|
227
|
+
decodeFunctionResult(functionFragment: "getPYInfo", data: BytesLike): Result;
|
|
81
228
|
decodeFunctionResult(
|
|
82
229
|
functionFragment: "getPendleTokenType",
|
|
83
230
|
data: BytesLike
|
|
84
231
|
): Result;
|
|
232
|
+
decodeFunctionResult(
|
|
233
|
+
functionFragment: "getPtImpliedYield",
|
|
234
|
+
data: BytesLike
|
|
235
|
+
): Result;
|
|
236
|
+
decodeFunctionResult(
|
|
237
|
+
functionFragment: "getUserMarketInfo",
|
|
238
|
+
data: BytesLike
|
|
239
|
+
): Result;
|
|
240
|
+
decodeFunctionResult(
|
|
241
|
+
functionFragment: "getUserMarketPositions",
|
|
242
|
+
data: BytesLike
|
|
243
|
+
): Result;
|
|
244
|
+
decodeFunctionResult(
|
|
245
|
+
functionFragment: "getUserPYInfo",
|
|
246
|
+
data: BytesLike
|
|
247
|
+
): Result;
|
|
248
|
+
decodeFunctionResult(
|
|
249
|
+
functionFragment: "getUserPYPositionsByPYs",
|
|
250
|
+
data: BytesLike
|
|
251
|
+
): Result;
|
|
252
|
+
decodeFunctionResult(
|
|
253
|
+
functionFragment: "getUserSCYInfo",
|
|
254
|
+
data: BytesLike
|
|
255
|
+
): Result;
|
|
256
|
+
decodeFunctionResult(
|
|
257
|
+
functionFragment: "hasPYPosition",
|
|
258
|
+
data: BytesLike
|
|
259
|
+
): Result;
|
|
85
260
|
decodeFunctionResult(
|
|
86
261
|
functionFragment: "marketFactory",
|
|
87
262
|
data: BytesLike
|
|
@@ -92,11 +267,11 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
92
267
|
): Result;
|
|
93
268
|
decodeFunctionResult(functionFragment: "scyIndex", data: BytesLike): Result;
|
|
94
269
|
decodeFunctionResult(
|
|
95
|
-
functionFragment: "
|
|
270
|
+
functionFragment: "swapPtForScyStatic",
|
|
96
271
|
data: BytesLike
|
|
97
272
|
): Result;
|
|
98
273
|
decodeFunctionResult(
|
|
99
|
-
functionFragment: "
|
|
274
|
+
functionFragment: "swapScyForPtStatic",
|
|
100
275
|
data: BytesLike
|
|
101
276
|
): Result;
|
|
102
277
|
decodeFunctionResult(
|
|
@@ -138,26 +313,105 @@ export interface RouterStatic extends BaseContract {
|
|
|
138
313
|
addLiquidityStatic(
|
|
139
314
|
market: string,
|
|
140
315
|
scyDesired: BigNumberish,
|
|
141
|
-
|
|
316
|
+
ptDesired: BigNumberish,
|
|
142
317
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
143
318
|
): Promise<ContractTransaction>;
|
|
144
319
|
|
|
145
|
-
|
|
320
|
+
getMarketInfo(
|
|
146
321
|
market: string,
|
|
147
322
|
overrides?: CallOverrides
|
|
148
|
-
): Promise<
|
|
323
|
+
): Promise<
|
|
324
|
+
[string, string, MarketStateStructOutput, BigNumber, BigNumber] & {
|
|
325
|
+
pt: string;
|
|
326
|
+
scy: string;
|
|
327
|
+
state: MarketStateStructOutput;
|
|
328
|
+
impliedYield: BigNumber;
|
|
329
|
+
exchangeRate: BigNumber;
|
|
330
|
+
}
|
|
331
|
+
>;
|
|
332
|
+
|
|
333
|
+
getPY(
|
|
334
|
+
py: string,
|
|
335
|
+
overrides?: CallOverrides
|
|
336
|
+
): Promise<[string, string] & { pt: string; yt: string }>;
|
|
337
|
+
|
|
338
|
+
getPYInfo(
|
|
339
|
+
py: string,
|
|
340
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
341
|
+
): Promise<ContractTransaction>;
|
|
149
342
|
|
|
150
343
|
getPendleTokenType(
|
|
151
344
|
token: string,
|
|
152
345
|
overrides?: CallOverrides
|
|
153
346
|
): Promise<
|
|
154
347
|
[boolean, boolean, boolean] & {
|
|
155
|
-
|
|
348
|
+
isPT: boolean;
|
|
156
349
|
isYT: boolean;
|
|
157
350
|
isMarket: boolean;
|
|
158
351
|
}
|
|
159
352
|
>;
|
|
160
353
|
|
|
354
|
+
getPtImpliedYield(
|
|
355
|
+
market: string,
|
|
356
|
+
overrides?: CallOverrides
|
|
357
|
+
): Promise<[BigNumber]>;
|
|
358
|
+
|
|
359
|
+
getUserMarketInfo(
|
|
360
|
+
market: string,
|
|
361
|
+
user: string,
|
|
362
|
+
overrides?: CallOverrides
|
|
363
|
+
): Promise<
|
|
364
|
+
[IPRouterStatic.UserMarketInfoStructOutput] & {
|
|
365
|
+
userMarketInfo: IPRouterStatic.UserMarketInfoStructOutput;
|
|
366
|
+
}
|
|
367
|
+
>;
|
|
368
|
+
|
|
369
|
+
getUserMarketPositions(
|
|
370
|
+
user: string,
|
|
371
|
+
markets: string[],
|
|
372
|
+
overrides?: CallOverrides
|
|
373
|
+
): Promise<
|
|
374
|
+
[IPRouterStatic.UserMarketInfoStructOutput[]] & {
|
|
375
|
+
userMarketPositions: IPRouterStatic.UserMarketInfoStructOutput[];
|
|
376
|
+
}
|
|
377
|
+
>;
|
|
378
|
+
|
|
379
|
+
getUserPYInfo(
|
|
380
|
+
py: string,
|
|
381
|
+
user: string,
|
|
382
|
+
overrides?: CallOverrides
|
|
383
|
+
): Promise<
|
|
384
|
+
[IPRouterStatic.UserPYInfoStructOutput] & {
|
|
385
|
+
userPYInfo: IPRouterStatic.UserPYInfoStructOutput;
|
|
386
|
+
}
|
|
387
|
+
>;
|
|
388
|
+
|
|
389
|
+
getUserPYPositionsByPYs(
|
|
390
|
+
user: string,
|
|
391
|
+
pys: string[],
|
|
392
|
+
overrides?: CallOverrides
|
|
393
|
+
): Promise<
|
|
394
|
+
[IPRouterStatic.UserPYInfoStructOutput[]] & {
|
|
395
|
+
userPYPositions: IPRouterStatic.UserPYInfoStructOutput[];
|
|
396
|
+
}
|
|
397
|
+
>;
|
|
398
|
+
|
|
399
|
+
getUserSCYInfo(
|
|
400
|
+
scy: string,
|
|
401
|
+
user: string,
|
|
402
|
+
overrides?: CallOverrides
|
|
403
|
+
): Promise<
|
|
404
|
+
[BigNumber, IPRouterStatic.TokenAmountStructOutput[]] & {
|
|
405
|
+
balance: BigNumber;
|
|
406
|
+
rewards: IPRouterStatic.TokenAmountStructOutput[];
|
|
407
|
+
}
|
|
408
|
+
>;
|
|
409
|
+
|
|
410
|
+
hasPYPosition(
|
|
411
|
+
userPYInfo: IPRouterStatic.UserPYInfoStruct,
|
|
412
|
+
overrides?: CallOverrides
|
|
413
|
+
): Promise<[boolean] & { hasPosition: boolean }>;
|
|
414
|
+
|
|
161
415
|
marketFactory(overrides?: CallOverrides): Promise<[string]>;
|
|
162
416
|
|
|
163
417
|
removeLiquidityStatic(
|
|
@@ -165,7 +419,7 @@ export interface RouterStatic extends BaseContract {
|
|
|
165
419
|
lpToRemove: BigNumberish,
|
|
166
420
|
overrides?: CallOverrides
|
|
167
421
|
): Promise<
|
|
168
|
-
[BigNumber, BigNumber] & { netScyOut: BigNumber;
|
|
422
|
+
[BigNumber, BigNumber] & { netScyOut: BigNumber; netPtOut: BigNumber }
|
|
169
423
|
>;
|
|
170
424
|
|
|
171
425
|
scyIndex(
|
|
@@ -173,15 +427,15 @@ export interface RouterStatic extends BaseContract {
|
|
|
173
427
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
174
428
|
): Promise<ContractTransaction>;
|
|
175
429
|
|
|
176
|
-
|
|
430
|
+
swapPtForScyStatic(
|
|
177
431
|
market: string,
|
|
178
|
-
|
|
432
|
+
exactPtIn: BigNumberish,
|
|
179
433
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
180
434
|
): Promise<ContractTransaction>;
|
|
181
435
|
|
|
182
|
-
|
|
436
|
+
swapScyForPtStatic(
|
|
183
437
|
market: string,
|
|
184
|
-
|
|
438
|
+
exactPtOut: BigNumberish,
|
|
185
439
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
186
440
|
): Promise<ContractTransaction>;
|
|
187
441
|
|
|
@@ -191,26 +445,89 @@ export interface RouterStatic extends BaseContract {
|
|
|
191
445
|
addLiquidityStatic(
|
|
192
446
|
market: string,
|
|
193
447
|
scyDesired: BigNumberish,
|
|
194
|
-
|
|
448
|
+
ptDesired: BigNumberish,
|
|
195
449
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
196
450
|
): Promise<ContractTransaction>;
|
|
197
451
|
|
|
198
|
-
|
|
452
|
+
getMarketInfo(
|
|
199
453
|
market: string,
|
|
200
454
|
overrides?: CallOverrides
|
|
201
|
-
): Promise<
|
|
455
|
+
): Promise<
|
|
456
|
+
[string, string, MarketStateStructOutput, BigNumber, BigNumber] & {
|
|
457
|
+
pt: string;
|
|
458
|
+
scy: string;
|
|
459
|
+
state: MarketStateStructOutput;
|
|
460
|
+
impliedYield: BigNumber;
|
|
461
|
+
exchangeRate: BigNumber;
|
|
462
|
+
}
|
|
463
|
+
>;
|
|
464
|
+
|
|
465
|
+
getPY(
|
|
466
|
+
py: string,
|
|
467
|
+
overrides?: CallOverrides
|
|
468
|
+
): Promise<[string, string] & { pt: string; yt: string }>;
|
|
469
|
+
|
|
470
|
+
getPYInfo(
|
|
471
|
+
py: string,
|
|
472
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
473
|
+
): Promise<ContractTransaction>;
|
|
202
474
|
|
|
203
475
|
getPendleTokenType(
|
|
204
476
|
token: string,
|
|
205
477
|
overrides?: CallOverrides
|
|
206
478
|
): Promise<
|
|
207
479
|
[boolean, boolean, boolean] & {
|
|
208
|
-
|
|
480
|
+
isPT: boolean;
|
|
209
481
|
isYT: boolean;
|
|
210
482
|
isMarket: boolean;
|
|
211
483
|
}
|
|
212
484
|
>;
|
|
213
485
|
|
|
486
|
+
getPtImpliedYield(
|
|
487
|
+
market: string,
|
|
488
|
+
overrides?: CallOverrides
|
|
489
|
+
): Promise<BigNumber>;
|
|
490
|
+
|
|
491
|
+
getUserMarketInfo(
|
|
492
|
+
market: string,
|
|
493
|
+
user: string,
|
|
494
|
+
overrides?: CallOverrides
|
|
495
|
+
): Promise<IPRouterStatic.UserMarketInfoStructOutput>;
|
|
496
|
+
|
|
497
|
+
getUserMarketPositions(
|
|
498
|
+
user: string,
|
|
499
|
+
markets: string[],
|
|
500
|
+
overrides?: CallOverrides
|
|
501
|
+
): Promise<IPRouterStatic.UserMarketInfoStructOutput[]>;
|
|
502
|
+
|
|
503
|
+
getUserPYInfo(
|
|
504
|
+
py: string,
|
|
505
|
+
user: string,
|
|
506
|
+
overrides?: CallOverrides
|
|
507
|
+
): Promise<IPRouterStatic.UserPYInfoStructOutput>;
|
|
508
|
+
|
|
509
|
+
getUserPYPositionsByPYs(
|
|
510
|
+
user: string,
|
|
511
|
+
pys: string[],
|
|
512
|
+
overrides?: CallOverrides
|
|
513
|
+
): Promise<IPRouterStatic.UserPYInfoStructOutput[]>;
|
|
514
|
+
|
|
515
|
+
getUserSCYInfo(
|
|
516
|
+
scy: string,
|
|
517
|
+
user: string,
|
|
518
|
+
overrides?: CallOverrides
|
|
519
|
+
): Promise<
|
|
520
|
+
[BigNumber, IPRouterStatic.TokenAmountStructOutput[]] & {
|
|
521
|
+
balance: BigNumber;
|
|
522
|
+
rewards: IPRouterStatic.TokenAmountStructOutput[];
|
|
523
|
+
}
|
|
524
|
+
>;
|
|
525
|
+
|
|
526
|
+
hasPYPosition(
|
|
527
|
+
userPYInfo: IPRouterStatic.UserPYInfoStruct,
|
|
528
|
+
overrides?: CallOverrides
|
|
529
|
+
): Promise<boolean>;
|
|
530
|
+
|
|
214
531
|
marketFactory(overrides?: CallOverrides): Promise<string>;
|
|
215
532
|
|
|
216
533
|
removeLiquidityStatic(
|
|
@@ -218,7 +535,7 @@ export interface RouterStatic extends BaseContract {
|
|
|
218
535
|
lpToRemove: BigNumberish,
|
|
219
536
|
overrides?: CallOverrides
|
|
220
537
|
): Promise<
|
|
221
|
-
[BigNumber, BigNumber] & { netScyOut: BigNumber;
|
|
538
|
+
[BigNumber, BigNumber] & { netScyOut: BigNumber; netPtOut: BigNumber }
|
|
222
539
|
>;
|
|
223
540
|
|
|
224
541
|
scyIndex(
|
|
@@ -226,15 +543,15 @@ export interface RouterStatic extends BaseContract {
|
|
|
226
543
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
227
544
|
): Promise<ContractTransaction>;
|
|
228
545
|
|
|
229
|
-
|
|
546
|
+
swapPtForScyStatic(
|
|
230
547
|
market: string,
|
|
231
|
-
|
|
548
|
+
exactPtIn: BigNumberish,
|
|
232
549
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
233
550
|
): Promise<ContractTransaction>;
|
|
234
551
|
|
|
235
|
-
|
|
552
|
+
swapScyForPtStatic(
|
|
236
553
|
market: string,
|
|
237
|
-
|
|
554
|
+
exactPtOut: BigNumberish,
|
|
238
555
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
239
556
|
): Promise<ContractTransaction>;
|
|
240
557
|
|
|
@@ -244,32 +561,101 @@ export interface RouterStatic extends BaseContract {
|
|
|
244
561
|
addLiquidityStatic(
|
|
245
562
|
market: string,
|
|
246
563
|
scyDesired: BigNumberish,
|
|
247
|
-
|
|
564
|
+
ptDesired: BigNumberish,
|
|
248
565
|
overrides?: CallOverrides
|
|
249
566
|
): Promise<
|
|
250
567
|
[BigNumber, BigNumber, BigNumber] & {
|
|
251
568
|
netLpOut: BigNumber;
|
|
252
569
|
scyUsed: BigNumber;
|
|
253
|
-
|
|
570
|
+
ptUsed: BigNumber;
|
|
254
571
|
}
|
|
255
572
|
>;
|
|
256
573
|
|
|
257
|
-
|
|
574
|
+
getMarketInfo(
|
|
258
575
|
market: string,
|
|
259
576
|
overrides?: CallOverrides
|
|
260
|
-
): Promise<
|
|
577
|
+
): Promise<
|
|
578
|
+
[string, string, MarketStateStructOutput, BigNumber, BigNumber] & {
|
|
579
|
+
pt: string;
|
|
580
|
+
scy: string;
|
|
581
|
+
state: MarketStateStructOutput;
|
|
582
|
+
impliedYield: BigNumber;
|
|
583
|
+
exchangeRate: BigNumber;
|
|
584
|
+
}
|
|
585
|
+
>;
|
|
586
|
+
|
|
587
|
+
getPY(
|
|
588
|
+
py: string,
|
|
589
|
+
overrides?: CallOverrides
|
|
590
|
+
): Promise<[string, string] & { pt: string; yt: string }>;
|
|
591
|
+
|
|
592
|
+
getPYInfo(
|
|
593
|
+
py: string,
|
|
594
|
+
overrides?: CallOverrides
|
|
595
|
+
): Promise<
|
|
596
|
+
[BigNumber, BigNumber, IPRouterStatic.RewardIndexStructOutput[]] & {
|
|
597
|
+
exchangeRate: BigNumber;
|
|
598
|
+
totalSupply: BigNumber;
|
|
599
|
+
rewardIndexes: IPRouterStatic.RewardIndexStructOutput[];
|
|
600
|
+
}
|
|
601
|
+
>;
|
|
261
602
|
|
|
262
603
|
getPendleTokenType(
|
|
263
604
|
token: string,
|
|
264
605
|
overrides?: CallOverrides
|
|
265
606
|
): Promise<
|
|
266
607
|
[boolean, boolean, boolean] & {
|
|
267
|
-
|
|
608
|
+
isPT: boolean;
|
|
268
609
|
isYT: boolean;
|
|
269
610
|
isMarket: boolean;
|
|
270
611
|
}
|
|
271
612
|
>;
|
|
272
613
|
|
|
614
|
+
getPtImpliedYield(
|
|
615
|
+
market: string,
|
|
616
|
+
overrides?: CallOverrides
|
|
617
|
+
): Promise<BigNumber>;
|
|
618
|
+
|
|
619
|
+
getUserMarketInfo(
|
|
620
|
+
market: string,
|
|
621
|
+
user: string,
|
|
622
|
+
overrides?: CallOverrides
|
|
623
|
+
): Promise<IPRouterStatic.UserMarketInfoStructOutput>;
|
|
624
|
+
|
|
625
|
+
getUserMarketPositions(
|
|
626
|
+
user: string,
|
|
627
|
+
markets: string[],
|
|
628
|
+
overrides?: CallOverrides
|
|
629
|
+
): Promise<IPRouterStatic.UserMarketInfoStructOutput[]>;
|
|
630
|
+
|
|
631
|
+
getUserPYInfo(
|
|
632
|
+
py: string,
|
|
633
|
+
user: string,
|
|
634
|
+
overrides?: CallOverrides
|
|
635
|
+
): Promise<IPRouterStatic.UserPYInfoStructOutput>;
|
|
636
|
+
|
|
637
|
+
getUserPYPositionsByPYs(
|
|
638
|
+
user: string,
|
|
639
|
+
pys: string[],
|
|
640
|
+
overrides?: CallOverrides
|
|
641
|
+
): Promise<IPRouterStatic.UserPYInfoStructOutput[]>;
|
|
642
|
+
|
|
643
|
+
getUserSCYInfo(
|
|
644
|
+
scy: string,
|
|
645
|
+
user: string,
|
|
646
|
+
overrides?: CallOverrides
|
|
647
|
+
): Promise<
|
|
648
|
+
[BigNumber, IPRouterStatic.TokenAmountStructOutput[]] & {
|
|
649
|
+
balance: BigNumber;
|
|
650
|
+
rewards: IPRouterStatic.TokenAmountStructOutput[];
|
|
651
|
+
}
|
|
652
|
+
>;
|
|
653
|
+
|
|
654
|
+
hasPYPosition(
|
|
655
|
+
userPYInfo: IPRouterStatic.UserPYInfoStruct,
|
|
656
|
+
overrides?: CallOverrides
|
|
657
|
+
): Promise<boolean>;
|
|
658
|
+
|
|
273
659
|
marketFactory(overrides?: CallOverrides): Promise<string>;
|
|
274
660
|
|
|
275
661
|
removeLiquidityStatic(
|
|
@@ -277,22 +663,22 @@ export interface RouterStatic extends BaseContract {
|
|
|
277
663
|
lpToRemove: BigNumberish,
|
|
278
664
|
overrides?: CallOverrides
|
|
279
665
|
): Promise<
|
|
280
|
-
[BigNumber, BigNumber] & { netScyOut: BigNumber;
|
|
666
|
+
[BigNumber, BigNumber] & { netScyOut: BigNumber; netPtOut: BigNumber }
|
|
281
667
|
>;
|
|
282
668
|
|
|
283
669
|
scyIndex(market: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
284
670
|
|
|
285
|
-
|
|
671
|
+
swapPtForScyStatic(
|
|
286
672
|
market: string,
|
|
287
|
-
|
|
673
|
+
exactPtIn: BigNumberish,
|
|
288
674
|
overrides?: CallOverrides
|
|
289
675
|
): Promise<
|
|
290
676
|
[BigNumber, BigNumber] & { netScyOut: BigNumber; netScyFee: BigNumber }
|
|
291
677
|
>;
|
|
292
678
|
|
|
293
|
-
|
|
679
|
+
swapScyForPtStatic(
|
|
294
680
|
market: string,
|
|
295
|
-
|
|
681
|
+
exactPtOut: BigNumberish,
|
|
296
682
|
overrides?: CallOverrides
|
|
297
683
|
): Promise<
|
|
298
684
|
[BigNumber, BigNumber] & { netScyIn: BigNumber; netScyFee: BigNumber }
|
|
@@ -307,20 +693,67 @@ export interface RouterStatic extends BaseContract {
|
|
|
307
693
|
addLiquidityStatic(
|
|
308
694
|
market: string,
|
|
309
695
|
scyDesired: BigNumberish,
|
|
310
|
-
|
|
696
|
+
ptDesired: BigNumberish,
|
|
311
697
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
312
698
|
): Promise<BigNumber>;
|
|
313
699
|
|
|
314
|
-
|
|
700
|
+
getMarketInfo(
|
|
315
701
|
market: string,
|
|
316
702
|
overrides?: CallOverrides
|
|
317
703
|
): Promise<BigNumber>;
|
|
318
704
|
|
|
705
|
+
getPY(py: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
706
|
+
|
|
707
|
+
getPYInfo(
|
|
708
|
+
py: string,
|
|
709
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
710
|
+
): Promise<BigNumber>;
|
|
711
|
+
|
|
319
712
|
getPendleTokenType(
|
|
320
713
|
token: string,
|
|
321
714
|
overrides?: CallOverrides
|
|
322
715
|
): Promise<BigNumber>;
|
|
323
716
|
|
|
717
|
+
getPtImpliedYield(
|
|
718
|
+
market: string,
|
|
719
|
+
overrides?: CallOverrides
|
|
720
|
+
): Promise<BigNumber>;
|
|
721
|
+
|
|
722
|
+
getUserMarketInfo(
|
|
723
|
+
market: string,
|
|
724
|
+
user: string,
|
|
725
|
+
overrides?: CallOverrides
|
|
726
|
+
): Promise<BigNumber>;
|
|
727
|
+
|
|
728
|
+
getUserMarketPositions(
|
|
729
|
+
user: string,
|
|
730
|
+
markets: string[],
|
|
731
|
+
overrides?: CallOverrides
|
|
732
|
+
): Promise<BigNumber>;
|
|
733
|
+
|
|
734
|
+
getUserPYInfo(
|
|
735
|
+
py: string,
|
|
736
|
+
user: string,
|
|
737
|
+
overrides?: CallOverrides
|
|
738
|
+
): Promise<BigNumber>;
|
|
739
|
+
|
|
740
|
+
getUserPYPositionsByPYs(
|
|
741
|
+
user: string,
|
|
742
|
+
pys: string[],
|
|
743
|
+
overrides?: CallOverrides
|
|
744
|
+
): Promise<BigNumber>;
|
|
745
|
+
|
|
746
|
+
getUserSCYInfo(
|
|
747
|
+
scy: string,
|
|
748
|
+
user: string,
|
|
749
|
+
overrides?: CallOverrides
|
|
750
|
+
): Promise<BigNumber>;
|
|
751
|
+
|
|
752
|
+
hasPYPosition(
|
|
753
|
+
userPYInfo: IPRouterStatic.UserPYInfoStruct,
|
|
754
|
+
overrides?: CallOverrides
|
|
755
|
+
): Promise<BigNumber>;
|
|
756
|
+
|
|
324
757
|
marketFactory(overrides?: CallOverrides): Promise<BigNumber>;
|
|
325
758
|
|
|
326
759
|
removeLiquidityStatic(
|
|
@@ -334,15 +767,15 @@ export interface RouterStatic extends BaseContract {
|
|
|
334
767
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
335
768
|
): Promise<BigNumber>;
|
|
336
769
|
|
|
337
|
-
|
|
770
|
+
swapPtForScyStatic(
|
|
338
771
|
market: string,
|
|
339
|
-
|
|
772
|
+
exactPtIn: BigNumberish,
|
|
340
773
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
341
774
|
): Promise<BigNumber>;
|
|
342
775
|
|
|
343
|
-
|
|
776
|
+
swapScyForPtStatic(
|
|
344
777
|
market: string,
|
|
345
|
-
|
|
778
|
+
exactPtOut: BigNumberish,
|
|
346
779
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
347
780
|
): Promise<BigNumber>;
|
|
348
781
|
|
|
@@ -353,20 +786,67 @@ export interface RouterStatic extends BaseContract {
|
|
|
353
786
|
addLiquidityStatic(
|
|
354
787
|
market: string,
|
|
355
788
|
scyDesired: BigNumberish,
|
|
356
|
-
|
|
789
|
+
ptDesired: BigNumberish,
|
|
357
790
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
358
791
|
): Promise<PopulatedTransaction>;
|
|
359
792
|
|
|
360
|
-
|
|
793
|
+
getMarketInfo(
|
|
361
794
|
market: string,
|
|
362
795
|
overrides?: CallOverrides
|
|
363
796
|
): Promise<PopulatedTransaction>;
|
|
364
797
|
|
|
798
|
+
getPY(py: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
799
|
+
|
|
800
|
+
getPYInfo(
|
|
801
|
+
py: string,
|
|
802
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
803
|
+
): Promise<PopulatedTransaction>;
|
|
804
|
+
|
|
365
805
|
getPendleTokenType(
|
|
366
806
|
token: string,
|
|
367
807
|
overrides?: CallOverrides
|
|
368
808
|
): Promise<PopulatedTransaction>;
|
|
369
809
|
|
|
810
|
+
getPtImpliedYield(
|
|
811
|
+
market: string,
|
|
812
|
+
overrides?: CallOverrides
|
|
813
|
+
): Promise<PopulatedTransaction>;
|
|
814
|
+
|
|
815
|
+
getUserMarketInfo(
|
|
816
|
+
market: string,
|
|
817
|
+
user: string,
|
|
818
|
+
overrides?: CallOverrides
|
|
819
|
+
): Promise<PopulatedTransaction>;
|
|
820
|
+
|
|
821
|
+
getUserMarketPositions(
|
|
822
|
+
user: string,
|
|
823
|
+
markets: string[],
|
|
824
|
+
overrides?: CallOverrides
|
|
825
|
+
): Promise<PopulatedTransaction>;
|
|
826
|
+
|
|
827
|
+
getUserPYInfo(
|
|
828
|
+
py: string,
|
|
829
|
+
user: string,
|
|
830
|
+
overrides?: CallOverrides
|
|
831
|
+
): Promise<PopulatedTransaction>;
|
|
832
|
+
|
|
833
|
+
getUserPYPositionsByPYs(
|
|
834
|
+
user: string,
|
|
835
|
+
pys: string[],
|
|
836
|
+
overrides?: CallOverrides
|
|
837
|
+
): Promise<PopulatedTransaction>;
|
|
838
|
+
|
|
839
|
+
getUserSCYInfo(
|
|
840
|
+
scy: string,
|
|
841
|
+
user: string,
|
|
842
|
+
overrides?: CallOverrides
|
|
843
|
+
): Promise<PopulatedTransaction>;
|
|
844
|
+
|
|
845
|
+
hasPYPosition(
|
|
846
|
+
userPYInfo: IPRouterStatic.UserPYInfoStruct,
|
|
847
|
+
overrides?: CallOverrides
|
|
848
|
+
): Promise<PopulatedTransaction>;
|
|
849
|
+
|
|
370
850
|
marketFactory(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
371
851
|
|
|
372
852
|
removeLiquidityStatic(
|
|
@@ -380,15 +860,15 @@ export interface RouterStatic extends BaseContract {
|
|
|
380
860
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
381
861
|
): Promise<PopulatedTransaction>;
|
|
382
862
|
|
|
383
|
-
|
|
863
|
+
swapPtForScyStatic(
|
|
384
864
|
market: string,
|
|
385
|
-
|
|
865
|
+
exactPtIn: BigNumberish,
|
|
386
866
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
387
867
|
): Promise<PopulatedTransaction>;
|
|
388
868
|
|
|
389
|
-
|
|
869
|
+
swapScyForPtStatic(
|
|
390
870
|
market: string,
|
|
391
|
-
|
|
871
|
+
exactPtOut: BigNumberish,
|
|
392
872
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
393
873
|
): Promise<PopulatedTransaction>;
|
|
394
874
|
|