@pendle/core-v2 0.8.0-beta-12 → 0.8.1-beta
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 +39 -7
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
- 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 +39 -7
- 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 +38 -6
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.json +864 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +38 -6
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.json +38 -6
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.json +36 -4
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +36 -4
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +242 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/{PendleGaugeControllerSidechain.sol → PendleGaugeControllerSidechainUpg.sol}/PendleGaugeControllerSidechainUpg.json +3 -3
- 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 +2 -15
- 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 +0 -13
- 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 +2 -2
- 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 +2 -2
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
- package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.json +2 -2
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.json +2 -2
- 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/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 +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/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/ActionCore.sol/ActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +2 -2
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +1 -1
- 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/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/IJoePair.sol/IJoePair.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoeRouter02.sol/IJoeRouter02.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- 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/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- 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/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +15 -0
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- 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/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/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.json +137 -0
- package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.json +135 -0
- package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.json +63 -0
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.json +36 -4
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.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/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/SCYIndex.sol/SCYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/SCY/SCYIndex.sol/SCYIndexLib.json +2 -2
- 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/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/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/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/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/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.json +2 -2
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/traderjoe/JoeLibrary.sol/JoeLibrary.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/traderjoe/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +174 -6
- package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
- package/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol +13 -3
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol +13 -9
- package/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol +12 -2
- package/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol +194 -0
- package/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol +12 -8
- package/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol +12 -8
- package/contracts/SuperComposableYield/base-implementations/SCYBase.sol +10 -12
- package/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol +1 -2
- package/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol +1 -0
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +1 -1
- package/contracts/core/LiquidityMining/GaugeController/{PendleGaugeControllerMainchain.sol → PendleGaugeControllerMainchainUpg.sol} +0 -0
- package/contracts/core/LiquidityMining/GaugeController/{PendleGaugeControllerSidechain.sol → PendleGaugeControllerSidechainUpg.sol} +0 -0
- package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +18 -24
- package/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +8 -10
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +3 -3
- package/contracts/core/Market/PendleMarketFactory.sol +1 -0
- package/contracts/core/PendleERC20.sol +1 -1
- package/contracts/core/YieldContracts/PendleYieldToken.sol +0 -7
- package/contracts/core/actions/ActionCallback.sol +3 -1
- package/contracts/core/actions/base/ActionSCYAndYTBase.sol +1 -0
- package/contracts/core/actions/base/CallbackHelper.sol +1 -1
- package/contracts/interfaces/IPGaugeController.sol +1 -1
- package/contracts/interfaces/IPRouterStatic.sol +15 -3
- package/contracts/interfaces/IStargateLPStaking.sol +47 -0
- package/contracts/interfaces/IStargatePool.sol +49 -0
- package/contracts/interfaces/IStargateRouter.sol +37 -0
- package/contracts/interfaces/ISuperComposableYield.sol +6 -9
- package/contracts/libraries/RewardManager.sol +2 -3
- package/contracts/libraries/RewardManagerAbstract.sol +1 -0
- package/contracts/libraries/VeBalanceLib.sol +13 -0
- package/contracts/libraries/helpers/ArrayLib.sol +0 -17
- package/contracts/libraries/helpers/TokenHelper.sol +4 -2
- package/contracts/libraries/math/LogExpMath.sol +46 -44
- package/contracts/libraries/math/MarketApproxLib.sol +5 -7
- package/contracts/libraries/math/MarketMathCore.sol +14 -5
- package/contracts/libraries/math/Math.sol +14 -0
- package/contracts/offchain-helpers/RouterStatic.sol +163 -34
- package/deployments/43113-core.json +7 -7
- package/deployments/43113-markets/benqi-market-4Ccb97.json +7 -0
- package/deployments/43113-markets/benqi-market-534471.json +7 -0
- package/deployments/80001-core.json +6 -6
- package/deployments/80001-markets/benqi-market-109acB.json +7 -0
- package/deployments/80001-markets/benqi-market-4e470E.json +7 -0
- package/package.json +3 -3
- package/typechain-types/IPRouterStatic.ts +45 -9
- package/typechain-types/IStargateLPStaking.ts +108 -0
- package/typechain-types/IStargatePool.ts +94 -0
- package/typechain-types/ISuperComposableYield.ts +72 -26
- package/typechain-types/PendleAaveV3SCY.ts +74 -28
- package/typechain-types/PendleERC4626SCY.ts +73 -27
- package/typechain-types/PendleQiTokenSCY.ts +74 -28
- package/typechain-types/PendleStargatePool.ts +73 -27
- package/typechain-types/PendleStargateSCY.ts +1135 -0
- package/typechain-types/PendleVotingControllerUpg.ts +0 -21
- package/typechain-types/PendleWstEthSCY.ts +73 -27
- package/typechain-types/PendleYearnVaultScy.ts +73 -27
- package/typechain-types/RouterStatic.ts +314 -74
- package/typechain-types/SCYBase.ts +73 -27
- package/typechain-types/SCYBaseWithRewards.ts +73 -27
- package/typechain-types/VotingControllerStorageUpg.ts +0 -21
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionCore__factory.ts +1 -1
- package/typechain-types/factories/ActionYT__factory.ts +1 -1
- package/typechain-types/factories/IPRouterStatic__factory.ts +15 -0
- package/typechain-types/factories/IStargateLPStaking__factory.ts +90 -0
- package/typechain-types/factories/IStargatePool__factory.ts +79 -0
- package/typechain-types/factories/ISuperComposableYield__factory.ts +36 -4
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +38 -6
- package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
- package/typechain-types/factories/PendleERC20__factory.ts +1 -1
- package/typechain-types/factories/PendleERC4626SCY__factory.ts +37 -5
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSCY__factory.ts +38 -6
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleStargatePool__factory.ts +37 -5
- package/typechain-types/factories/PendleStargateSCY__factory.ts +952 -0
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -14
- package/typechain-types/factories/PendleWstEthSCY__factory.ts +37 -5
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +37 -5
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/RouterStatic__factory.ts +173 -5
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +36 -4
- package/typechain-types/factories/SCYBase__factory.ts +36 -4
- package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +0 -13
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +9 -0
- package/typechain-types/index.ts +2 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchain.sol/PendleGaugeControllerMainchainUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchain.sol/PendleGaugeControllerMainchainUpg.json +0 -242
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechain.sol/PendleGaugeControllerSidechainUpg.dbg.json +0 -4
- package/deployments/43113-markets/benqi-market-5C60ba.json +0 -7
- package/deployments/43113-markets/benqi-market-611eA3.json +0 -7
- package/deployments/43113-markets/benqi-market-A386eA.json +0 -7
- package/deployments/43113-markets/benqi-market-bf8841.json +0 -7
- package/deployments/80001-markets/benqi-market-5E1104.json +0 -7
- package/deployments/80001-markets/benqi-market-899134.json +0 -7
- package/deployments/80001-markets/benqi-market-94C86f.json +0 -7
- package/deployments/80001-markets/benqi-market-c68429.json +0 -7
|
@@ -163,23 +163,38 @@ contract RouterStatic is IPRouterStatic {
|
|
|
163
163
|
|
|
164
164
|
function addLiquiditySinglePtStatic(address market, uint256 netPtIn)
|
|
165
165
|
external
|
|
166
|
-
returns (
|
|
166
|
+
returns (
|
|
167
|
+
uint256 netLpOut,
|
|
168
|
+
uint256 netScyFee,
|
|
169
|
+
uint256 priceImpact
|
|
170
|
+
)
|
|
167
171
|
{
|
|
168
172
|
require(false, "NOT IMPLEMENTED");
|
|
169
173
|
}
|
|
170
174
|
|
|
171
|
-
function
|
|
175
|
+
function addLiquiditySingleScyStatic(address market, uint256 netScyIn)
|
|
172
176
|
external
|
|
173
|
-
returns (
|
|
177
|
+
returns (
|
|
178
|
+
uint256 netLpOut,
|
|
179
|
+
uint256 netScyFee,
|
|
180
|
+
uint256 priceImpact
|
|
181
|
+
)
|
|
174
182
|
{
|
|
175
183
|
require(false, "NOT IMPLEMENTED");
|
|
176
184
|
}
|
|
177
185
|
|
|
178
|
-
function
|
|
186
|
+
function addLiquiditySingleBaseTokenStatic(
|
|
179
187
|
address market,
|
|
180
188
|
address baseToken,
|
|
181
189
|
uint256 netBaseTokenIn
|
|
182
|
-
)
|
|
190
|
+
)
|
|
191
|
+
external
|
|
192
|
+
returns (
|
|
193
|
+
uint256 netLpOut,
|
|
194
|
+
uint256 netScyFee,
|
|
195
|
+
uint256 priceImpact
|
|
196
|
+
)
|
|
197
|
+
{
|
|
183
198
|
require(false, "NOT IMPLEMENTED");
|
|
184
199
|
}
|
|
185
200
|
|
|
@@ -194,30 +209,49 @@ contract RouterStatic is IPRouterStatic {
|
|
|
194
209
|
|
|
195
210
|
function removeLiquiditySinglePtStatic(address market, uint256 lpToRemove)
|
|
196
211
|
external
|
|
197
|
-
returns (
|
|
212
|
+
returns (
|
|
213
|
+
uint256 netPtOut,
|
|
214
|
+
uint256 netScyFee,
|
|
215
|
+
uint256 priceImpact
|
|
216
|
+
)
|
|
198
217
|
{
|
|
199
218
|
require(false, "NOT IMPLEMENTED");
|
|
200
219
|
}
|
|
201
220
|
|
|
202
|
-
function
|
|
221
|
+
function removeLiquiditySingleScyStatic(address market, uint256 lpToRemove)
|
|
203
222
|
external
|
|
204
|
-
returns (
|
|
223
|
+
returns (
|
|
224
|
+
uint256 netScyOut,
|
|
225
|
+
uint256 netScyFee,
|
|
226
|
+
uint256 priceImpact
|
|
227
|
+
)
|
|
205
228
|
{
|
|
206
229
|
require(false, "NOT IMPLEMENTED");
|
|
207
230
|
}
|
|
208
231
|
|
|
209
|
-
function
|
|
232
|
+
function removeLiquiditySingleBaseTokenStatic(
|
|
210
233
|
address market,
|
|
211
234
|
uint256 lpToRemove,
|
|
212
235
|
address baseToken
|
|
213
|
-
)
|
|
236
|
+
)
|
|
237
|
+
external
|
|
238
|
+
returns (
|
|
239
|
+
uint256 netBaseTokenOut,
|
|
240
|
+
uint256 netScyFee,
|
|
241
|
+
uint256 priceImpact
|
|
242
|
+
)
|
|
243
|
+
{
|
|
214
244
|
require(false, "NOT IMPLEMENTED");
|
|
215
245
|
}
|
|
216
246
|
|
|
217
247
|
function swapExactPtForScyStatic(address market, uint256 exactPtIn)
|
|
218
248
|
public
|
|
219
249
|
view
|
|
220
|
-
returns (
|
|
250
|
+
returns (
|
|
251
|
+
uint256 netScyOut,
|
|
252
|
+
uint256 netScyFee,
|
|
253
|
+
uint256 priceImpact
|
|
254
|
+
)
|
|
221
255
|
{
|
|
222
256
|
MarketState memory state = IPMarket(market).readState(false);
|
|
223
257
|
(netScyOut, netScyFee) = state.swapExactPtForScy(
|
|
@@ -225,12 +259,17 @@ contract RouterStatic is IPRouterStatic {
|
|
|
225
259
|
exactPtIn,
|
|
226
260
|
block.timestamp
|
|
227
261
|
);
|
|
262
|
+
priceImpact = calcPriceImpact(market, exactPtIn.neg());
|
|
228
263
|
}
|
|
229
264
|
|
|
230
265
|
function swapScyForExactPtStatic(address market, uint256 exactPtOut)
|
|
231
266
|
external
|
|
232
267
|
view
|
|
233
|
-
returns (
|
|
268
|
+
returns (
|
|
269
|
+
uint256 netScyIn,
|
|
270
|
+
uint256 netScyFee,
|
|
271
|
+
uint256 priceImpact
|
|
272
|
+
)
|
|
234
273
|
{
|
|
235
274
|
MarketState memory state = IPMarket(market).readState(false);
|
|
236
275
|
(netScyIn, netScyFee) = state.swapScyForExactPt(
|
|
@@ -238,12 +277,17 @@ contract RouterStatic is IPRouterStatic {
|
|
|
238
277
|
exactPtOut,
|
|
239
278
|
block.timestamp
|
|
240
279
|
);
|
|
280
|
+
priceImpact = calcPriceImpact(market, exactPtOut.Int());
|
|
241
281
|
}
|
|
242
282
|
|
|
243
283
|
function swapExactScyForPtStatic(address market, uint256 exactScyIn)
|
|
244
284
|
public
|
|
245
285
|
view
|
|
246
|
-
returns (
|
|
286
|
+
returns (
|
|
287
|
+
uint256 netPtOut,
|
|
288
|
+
uint256 netScyFee,
|
|
289
|
+
uint256 priceImpact
|
|
290
|
+
)
|
|
247
291
|
{
|
|
248
292
|
MarketState memory state = IPMarket(market).readState(false);
|
|
249
293
|
(netPtOut, , netScyFee) = state.approxSwapExactScyForPt(
|
|
@@ -252,12 +296,17 @@ contract RouterStatic is IPRouterStatic {
|
|
|
252
296
|
block.timestamp,
|
|
253
297
|
approxParams
|
|
254
298
|
);
|
|
299
|
+
priceImpact = calcPriceImpact(market, netPtOut.Int());
|
|
255
300
|
}
|
|
256
301
|
|
|
257
302
|
function swapPtForExactScyStatic(address market, uint256 exactScyOut)
|
|
258
303
|
public
|
|
259
304
|
view
|
|
260
|
-
returns (
|
|
305
|
+
returns (
|
|
306
|
+
uint256 netPtIn,
|
|
307
|
+
uint256 netScyFee,
|
|
308
|
+
uint256 priceImpact
|
|
309
|
+
)
|
|
261
310
|
{
|
|
262
311
|
MarketState memory state = IPMarket(market).readState(false);
|
|
263
312
|
|
|
@@ -267,13 +316,22 @@ contract RouterStatic is IPRouterStatic {
|
|
|
267
316
|
block.timestamp,
|
|
268
317
|
approxParams
|
|
269
318
|
);
|
|
319
|
+
priceImpact = calcPriceImpact(market, netPtIn.neg());
|
|
270
320
|
}
|
|
271
321
|
|
|
272
322
|
function swapExactBaseTokenForPtStatic(
|
|
273
323
|
address market,
|
|
274
324
|
address baseToken,
|
|
275
325
|
uint256 amountBaseToken
|
|
276
|
-
)
|
|
326
|
+
)
|
|
327
|
+
external
|
|
328
|
+
view
|
|
329
|
+
returns (
|
|
330
|
+
uint256 netPtOut,
|
|
331
|
+
uint256 netScyFee,
|
|
332
|
+
uint256 priceImpact
|
|
333
|
+
)
|
|
334
|
+
{
|
|
277
335
|
(ISuperComposableYield SCY, , ) = IPMarket(market).readTokens();
|
|
278
336
|
|
|
279
337
|
return swapExactScyForPtStatic(market, SCY.previewDeposit(baseToken, amountBaseToken));
|
|
@@ -283,9 +341,17 @@ contract RouterStatic is IPRouterStatic {
|
|
|
283
341
|
address market,
|
|
284
342
|
uint256 exactYtIn,
|
|
285
343
|
address baseToken
|
|
286
|
-
)
|
|
344
|
+
)
|
|
345
|
+
external
|
|
346
|
+
view
|
|
347
|
+
returns (
|
|
348
|
+
uint256 netBaseTokenOut,
|
|
349
|
+
uint256 netScyFee,
|
|
350
|
+
uint256 priceImpact
|
|
351
|
+
)
|
|
352
|
+
{
|
|
287
353
|
uint256 netScyOut;
|
|
288
|
-
(netScyOut, netScyFee) = swapExactPtForScyStatic(market, exactYtIn);
|
|
354
|
+
(netScyOut, netScyFee, priceImpact) = swapExactPtForScyStatic(market, exactYtIn);
|
|
289
355
|
|
|
290
356
|
(ISuperComposableYield SCY, , ) = IPMarket(market).readTokens();
|
|
291
357
|
netBaseTokenOut = SCY.previewRedeem(baseToken, netScyOut);
|
|
@@ -294,7 +360,11 @@ contract RouterStatic is IPRouterStatic {
|
|
|
294
360
|
function swapScyForExactYtStatic(address market, uint256 exactYtOut)
|
|
295
361
|
external
|
|
296
362
|
view
|
|
297
|
-
returns (
|
|
363
|
+
returns (
|
|
364
|
+
uint256 netScyIn,
|
|
365
|
+
uint256 netScyFee,
|
|
366
|
+
uint256 priceImpact
|
|
367
|
+
)
|
|
298
368
|
{
|
|
299
369
|
MarketState memory state = IPMarket(market).readState(false);
|
|
300
370
|
|
|
@@ -309,12 +379,18 @@ contract RouterStatic is IPRouterStatic {
|
|
|
309
379
|
|
|
310
380
|
uint256 totalScyNeed = index.assetToScyUp(exactYtOut);
|
|
311
381
|
netScyIn = totalScyNeed.subMax0(scyReceived);
|
|
382
|
+
|
|
383
|
+
priceImpact = calcPriceImpact(market, exactYtOut.neg());
|
|
312
384
|
}
|
|
313
385
|
|
|
314
386
|
function swapExactScyForYtStatic(address market, uint256 exactScyIn)
|
|
315
387
|
public
|
|
316
388
|
view
|
|
317
|
-
returns (
|
|
389
|
+
returns (
|
|
390
|
+
uint256 netYtOut,
|
|
391
|
+
uint256 netScyFee,
|
|
392
|
+
uint256 priceImpact
|
|
393
|
+
)
|
|
318
394
|
{
|
|
319
395
|
MarketState memory state = IPMarket(market).readState(false);
|
|
320
396
|
SCYIndex index = scyIndex(market);
|
|
@@ -325,12 +401,18 @@ contract RouterStatic is IPRouterStatic {
|
|
|
325
401
|
block.timestamp,
|
|
326
402
|
approxParams
|
|
327
403
|
);
|
|
404
|
+
|
|
405
|
+
priceImpact = calcPriceImpact(market, netYtOut.neg());
|
|
328
406
|
}
|
|
329
407
|
|
|
330
408
|
function swapExactYtForScyStatic(address market, uint256 exactYtIn)
|
|
331
409
|
public
|
|
332
410
|
view
|
|
333
|
-
returns (
|
|
411
|
+
returns (
|
|
412
|
+
uint256 netScyOut,
|
|
413
|
+
uint256 netScyFee,
|
|
414
|
+
uint256 priceImpact
|
|
415
|
+
)
|
|
334
416
|
{
|
|
335
417
|
MarketState memory state = IPMarket(market).readState(false);
|
|
336
418
|
|
|
@@ -343,12 +425,17 @@ contract RouterStatic is IPRouterStatic {
|
|
|
343
425
|
uint256 amountPYToRedeemScyOut = exactYtIn - amountPYToRepayScyOwed;
|
|
344
426
|
|
|
345
427
|
netScyOut = index.assetToScy(amountPYToRedeemScyOut);
|
|
428
|
+
priceImpact = calcPriceImpact(market, exactYtIn.Int());
|
|
346
429
|
}
|
|
347
430
|
|
|
348
431
|
function swapYtForExactScyStatic(address market, uint256 exactScyOut)
|
|
349
432
|
external
|
|
350
433
|
view
|
|
351
|
-
returns (
|
|
434
|
+
returns (
|
|
435
|
+
uint256 netYtIn,
|
|
436
|
+
uint256 netScyFee,
|
|
437
|
+
uint256 priceImpact
|
|
438
|
+
)
|
|
352
439
|
{
|
|
353
440
|
MarketState memory state = IPMarket(market).readState(false);
|
|
354
441
|
|
|
@@ -360,15 +447,24 @@ contract RouterStatic is IPRouterStatic {
|
|
|
360
447
|
block.timestamp,
|
|
361
448
|
approxParams
|
|
362
449
|
);
|
|
450
|
+
priceImpact = calcPriceImpact(market, netYtIn.Int());
|
|
363
451
|
}
|
|
364
452
|
|
|
365
453
|
function swapExactYtForBaseTokenStatic(
|
|
366
454
|
address market,
|
|
367
455
|
uint256 exactYtIn,
|
|
368
456
|
address baseToken
|
|
369
|
-
)
|
|
457
|
+
)
|
|
458
|
+
external
|
|
459
|
+
view
|
|
460
|
+
returns (
|
|
461
|
+
uint256 netBaseTokenOut,
|
|
462
|
+
uint256 netScyFee,
|
|
463
|
+
uint256 priceImpact
|
|
464
|
+
)
|
|
465
|
+
{
|
|
370
466
|
uint256 netScyOut;
|
|
371
|
-
(netScyOut, netScyFee) = swapExactYtForScyStatic(market, exactYtIn);
|
|
467
|
+
(netScyOut, netScyFee, priceImpact) = swapExactYtForScyStatic(market, exactYtIn);
|
|
372
468
|
|
|
373
469
|
(ISuperComposableYield SCY, , ) = IPMarket(market).readTokens();
|
|
374
470
|
netBaseTokenOut = SCY.previewRedeem(baseToken, netScyOut);
|
|
@@ -378,7 +474,15 @@ contract RouterStatic is IPRouterStatic {
|
|
|
378
474
|
address market,
|
|
379
475
|
address baseToken,
|
|
380
476
|
uint256 amountBaseToken
|
|
381
|
-
)
|
|
477
|
+
)
|
|
478
|
+
external
|
|
479
|
+
view
|
|
480
|
+
returns (
|
|
481
|
+
uint256 netPtOut,
|
|
482
|
+
uint256 netScyFee,
|
|
483
|
+
uint256 priceImpact
|
|
484
|
+
)
|
|
485
|
+
{
|
|
382
486
|
(ISuperComposableYield SCY, , ) = IPMarket(market).readTokens();
|
|
383
487
|
|
|
384
488
|
return swapExactScyForYtStatic(market, SCY.previewDeposit(baseToken, amountBaseToken));
|
|
@@ -445,22 +549,47 @@ contract RouterStatic is IPRouterStatic {
|
|
|
445
549
|
}
|
|
446
550
|
|
|
447
551
|
function getExchangeRate(address market) public view returns (uint256) {
|
|
552
|
+
return getTradeExchangeRateIncludeFee(market, 0);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
function getTradeExchangeRateIncludeFee(address market, int256 netPtOut)
|
|
556
|
+
public
|
|
557
|
+
view
|
|
558
|
+
returns (uint256)
|
|
559
|
+
{
|
|
560
|
+
int256 netPtToAccount = netPtOut;
|
|
448
561
|
MarketState memory state = IPMarket(market).readState(false);
|
|
449
562
|
MarketPreCompute memory comp = state.getMarketPreCompute(
|
|
450
563
|
scyIndex(market),
|
|
451
564
|
block.timestamp
|
|
452
565
|
);
|
|
453
566
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
567
|
+
int256 preFeeExchangeRate = MarketMathCore._getExchangeRate(
|
|
568
|
+
state.totalPt,
|
|
569
|
+
comp.totalAsset,
|
|
570
|
+
comp.rateScalar,
|
|
571
|
+
comp.rateAnchor,
|
|
572
|
+
netPtToAccount
|
|
573
|
+
);
|
|
574
|
+
|
|
575
|
+
if (netPtToAccount > 0) {
|
|
576
|
+
int256 postFeeExchangeRate = preFeeExchangeRate.divDown(comp.feeRate);
|
|
577
|
+
require(postFeeExchangeRate >= Math.IONE, "exchange rate below 1");
|
|
578
|
+
return postFeeExchangeRate.Uint();
|
|
579
|
+
} else {
|
|
580
|
+
return preFeeExchangeRate.mulDown(comp.feeRate).Uint();
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
function calcPriceImpact(address market, int256 netPtOut)
|
|
585
|
+
public
|
|
586
|
+
view
|
|
587
|
+
returns (uint256 priceImpact)
|
|
588
|
+
{
|
|
589
|
+
uint256 preTradeRate = getExchangeRate(market);
|
|
590
|
+
uint256 tradedRate = getTradeExchangeRateIncludeFee(market, netPtOut);
|
|
591
|
+
|
|
592
|
+
priceImpact = (tradedRate.Int() - preTradeRate.Int()).abs().divDown(preTradeRate);
|
|
464
593
|
}
|
|
465
594
|
|
|
466
595
|
function getUserPYInfo(address py, address user)
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"network": 43113,
|
|
4
4
|
"celerBus": "0xE9533976C590200E32d95C53f06AE12d292cFc47",
|
|
5
5
|
"treasury": "0xB4E292AD98Ba0D5531Ca573757f7b7d6c0C205d8",
|
|
6
|
-
"governanceManager": "
|
|
6
|
+
"governanceManager": "0x9Fa21ea40DC8Bec8374370dC41311EBd0094fe90",
|
|
7
7
|
"PENDLE": "0x83B694f9Ef84D22BECe87257f0cd4513737A505e",
|
|
8
|
-
"yieldContractFactory": "
|
|
9
|
-
"marketFactory": "
|
|
8
|
+
"yieldContractFactory": "0x7cD7cc0990A0F61532410fE11f884f2caD7e59D3",
|
|
9
|
+
"marketFactory": "0xC548667E796eE4C8Ca5DC77267fC54280D0186bd",
|
|
10
10
|
"router": "0xFEdBED4682D136925d30FFb9B8977CC9b3a6c406",
|
|
11
|
-
"routerStatic": "
|
|
11
|
+
"routerStatic": "0x7ED62d31D43327b754dC5Ad19b1d52350d42fc98",
|
|
12
12
|
"startTime": 1657756800,
|
|
13
|
-
"vePendle": "
|
|
14
|
-
"votingController": "
|
|
15
|
-
"gaugeController": "
|
|
13
|
+
"vePendle": "0x962CF13c612e9Deb36909BFb18a4E2A8C0E21F04",
|
|
14
|
+
"votingController": "0x62610A346Ae06bffE41A3b2CF489202Cc612c174",
|
|
15
|
+
"gaugeController": "0x05Ce96794ad10E63E45D3a0D5a7292B9ad4d320C"
|
|
16
16
|
}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
"network": 80001,
|
|
4
4
|
"celerBus": "0x7d43AABC515C356145049227CeE54B608342c0ad",
|
|
5
5
|
"treasury": "0x1fAd3Ce1c1aB563441d58b79e49cb0ebC12C1Bd5",
|
|
6
|
-
"governanceManager": "
|
|
6
|
+
"governanceManager": "0xBbB6d40218DaCd41244959C6ce5d49962aC654D2",
|
|
7
7
|
"PENDLE": "0x563f1e87a6a3Cb4A84F7D438fCF4882133e59d6d",
|
|
8
|
-
"yieldContractFactory": "
|
|
9
|
-
"marketFactory": "
|
|
8
|
+
"yieldContractFactory": "0xa5d6a70E58697aA02DE87B93D4A60BEc35653124",
|
|
9
|
+
"marketFactory": "0x48b2FC3f745E142e43A701040764d466F68FCb4C",
|
|
10
10
|
"router": "0x24d7CEaFBA7c7b32BE200aD6dA38C03797F0611f",
|
|
11
|
-
"routerStatic": "
|
|
11
|
+
"routerStatic": "0x5424C1096EfD73Dd1a095A7dD7AC6c90Fdc011F2",
|
|
12
12
|
"startTime": 1657756800,
|
|
13
|
-
"vePendle": "
|
|
14
|
-
"gaugeController": "
|
|
13
|
+
"vePendle": "0x9dA981bD2fEf17699372E63B0E1F23d972dB2829",
|
|
14
|
+
"gaugeController": "0x1cE4840aE31221A64409Ec19c75b81984dFaBD1B"
|
|
15
15
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@pendle/core-v2",
|
|
3
3
|
"description": "Core smart contracts of Pendle Protocol.",
|
|
4
4
|
"license": "BUSL-1.1",
|
|
5
|
-
"version": "0.8.
|
|
5
|
+
"version": "0.8.1-beta",
|
|
6
6
|
"homepage": "https://pendle.finance",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"pendle",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"hardhat-contract-sizer": "^2.5.1",
|
|
30
30
|
"prettier": "^2.6.2",
|
|
31
31
|
"prettier-plugin-solidity": "^1.0.0-beta.19",
|
|
32
|
-
"solc": "
|
|
32
|
+
"solc": "0.8.14-fixed",
|
|
33
33
|
"solhint": "^3.3.7",
|
|
34
34
|
"ts-node": "^10.7.0",
|
|
35
35
|
"typechain": "^8.0.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"clean": "yarn hardhat clean",
|
|
42
42
|
"fcompile": "yarn clean && yarn compile"
|
|
43
43
|
},
|
|
44
|
-
"packageManager": "yarn@3.
|
|
44
|
+
"packageManager": "yarn@3.2.2",
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@openzeppelin/contracts": "^4.5.0",
|
|
47
47
|
"@openzeppelin/contracts-upgradeable": "^4.5.2",
|
|
@@ -439,7 +439,11 @@ export interface IPRouterStatic extends BaseContract {
|
|
|
439
439
|
exactPtIn: BigNumberish,
|
|
440
440
|
overrides?: CallOverrides
|
|
441
441
|
): Promise<
|
|
442
|
-
[BigNumber, BigNumber] & {
|
|
442
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
443
|
+
netScyOut: BigNumber;
|
|
444
|
+
netScyFee: BigNumber;
|
|
445
|
+
priceImpact: BigNumber;
|
|
446
|
+
}
|
|
443
447
|
>;
|
|
444
448
|
|
|
445
449
|
swapExactScyForPtStatic(
|
|
@@ -447,7 +451,11 @@ export interface IPRouterStatic extends BaseContract {
|
|
|
447
451
|
exactScyIn: BigNumberish,
|
|
448
452
|
overrides?: CallOverrides
|
|
449
453
|
): Promise<
|
|
450
|
-
[BigNumber, BigNumber] & {
|
|
454
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
455
|
+
netPtOut: BigNumber;
|
|
456
|
+
netScyFee: BigNumber;
|
|
457
|
+
priceImpact: BigNumber;
|
|
458
|
+
}
|
|
451
459
|
>;
|
|
452
460
|
|
|
453
461
|
swapScyForExactPtStatic(
|
|
@@ -455,7 +463,11 @@ export interface IPRouterStatic extends BaseContract {
|
|
|
455
463
|
exactPtOut: BigNumberish,
|
|
456
464
|
overrides?: CallOverrides
|
|
457
465
|
): Promise<
|
|
458
|
-
[BigNumber, BigNumber] & {
|
|
466
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
467
|
+
netScyIn: BigNumber;
|
|
468
|
+
netScyFee: BigNumber;
|
|
469
|
+
priceImpact: BigNumber;
|
|
470
|
+
}
|
|
459
471
|
>;
|
|
460
472
|
};
|
|
461
473
|
|
|
@@ -566,7 +578,11 @@ export interface IPRouterStatic extends BaseContract {
|
|
|
566
578
|
exactPtIn: BigNumberish,
|
|
567
579
|
overrides?: CallOverrides
|
|
568
580
|
): Promise<
|
|
569
|
-
[BigNumber, BigNumber] & {
|
|
581
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
582
|
+
netScyOut: BigNumber;
|
|
583
|
+
netScyFee: BigNumber;
|
|
584
|
+
priceImpact: BigNumber;
|
|
585
|
+
}
|
|
570
586
|
>;
|
|
571
587
|
|
|
572
588
|
swapExactScyForPtStatic(
|
|
@@ -574,7 +590,11 @@ export interface IPRouterStatic extends BaseContract {
|
|
|
574
590
|
exactScyIn: BigNumberish,
|
|
575
591
|
overrides?: CallOverrides
|
|
576
592
|
): Promise<
|
|
577
|
-
[BigNumber, BigNumber] & {
|
|
593
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
594
|
+
netPtOut: BigNumber;
|
|
595
|
+
netScyFee: BigNumber;
|
|
596
|
+
priceImpact: BigNumber;
|
|
597
|
+
}
|
|
578
598
|
>;
|
|
579
599
|
|
|
580
600
|
swapScyForExactPtStatic(
|
|
@@ -582,7 +602,11 @@ export interface IPRouterStatic extends BaseContract {
|
|
|
582
602
|
exactPtOut: BigNumberish,
|
|
583
603
|
overrides?: CallOverrides
|
|
584
604
|
): Promise<
|
|
585
|
-
[BigNumber, BigNumber] & {
|
|
605
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
606
|
+
netScyIn: BigNumber;
|
|
607
|
+
netScyFee: BigNumber;
|
|
608
|
+
priceImpact: BigNumber;
|
|
609
|
+
}
|
|
586
610
|
>;
|
|
587
611
|
|
|
588
612
|
callStatic: {
|
|
@@ -699,7 +723,11 @@ export interface IPRouterStatic extends BaseContract {
|
|
|
699
723
|
exactPtIn: BigNumberish,
|
|
700
724
|
overrides?: CallOverrides
|
|
701
725
|
): Promise<
|
|
702
|
-
[BigNumber, BigNumber] & {
|
|
726
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
727
|
+
netScyOut: BigNumber;
|
|
728
|
+
netScyFee: BigNumber;
|
|
729
|
+
priceImpact: BigNumber;
|
|
730
|
+
}
|
|
703
731
|
>;
|
|
704
732
|
|
|
705
733
|
swapExactScyForPtStatic(
|
|
@@ -707,7 +735,11 @@ export interface IPRouterStatic extends BaseContract {
|
|
|
707
735
|
exactScyIn: BigNumberish,
|
|
708
736
|
overrides?: CallOverrides
|
|
709
737
|
): Promise<
|
|
710
|
-
[BigNumber, BigNumber] & {
|
|
738
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
739
|
+
netPtOut: BigNumber;
|
|
740
|
+
netScyFee: BigNumber;
|
|
741
|
+
priceImpact: BigNumber;
|
|
742
|
+
}
|
|
711
743
|
>;
|
|
712
744
|
|
|
713
745
|
swapScyForExactPtStatic(
|
|
@@ -715,7 +747,11 @@ export interface IPRouterStatic extends BaseContract {
|
|
|
715
747
|
exactPtOut: BigNumberish,
|
|
716
748
|
overrides?: CallOverrides
|
|
717
749
|
): Promise<
|
|
718
|
-
[BigNumber, BigNumber] & {
|
|
750
|
+
[BigNumber, BigNumber, BigNumber] & {
|
|
751
|
+
netScyIn: BigNumber;
|
|
752
|
+
netScyFee: BigNumber;
|
|
753
|
+
priceImpact: BigNumber;
|
|
754
|
+
}
|
|
719
755
|
>;
|
|
720
756
|
};
|
|
721
757
|
|