@pendle/core-v2 0.8.1-beta → 0.9.0-gamma-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.json +833 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.json +723 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.json +723 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +20 -2
- 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 +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.json +784 -0
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.json +2 -2
- 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 +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
- 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 +47 -28
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- 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 +66 -4
- 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 +26 -2
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.json +24 -0
- 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/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 -77
- 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 +21 -96
- 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 +272 -136
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +75 -41
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json +1 -1
- 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 +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/IEulerEToken.sol/IEulerEToken.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.json +162 -0
- package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.json +87 -0
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.json +268 -132
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.json +71 -37
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +339 -169
- 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/IPInterestManagerYT.sol/IPInterestManagerYT.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 +23 -23
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.json +24 -0
- 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/IPYieldToken.sol/IPYieldToken.json +27 -27
- 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/ISAvax.sol/ISAvax.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.json +199 -0
- package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.json +168 -0
- package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.json +92 -0
- package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.json +252 -0
- 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/SCYUtils.sol/SCYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/{SCY/SCYIndex.sol/SCYIndexLib.json → helpers/PYIndex.sol/PYIndexLib.json} +4 -4
- package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/{traderjoe/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.json → kyberswap/KyberSwapHelper.sol/KyberSwapHelper.json} +3 -3
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +39 -39
- package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol +242 -0
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol +1 -1
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol +146 -0
- package/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol +170 -0
- package/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol +33 -6
- package/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol +182 -0
- package/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol +19 -10
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +3 -1
- package/contracts/core/LiquidityMining/PendleGauge.sol +3 -2
- package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +26 -8
- package/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +0 -4
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +30 -13
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol +2 -4
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol +5 -1
- package/contracts/core/Market/PendleMarket.sol +4 -5
- package/contracts/core/Market/PendleMarketFactory.sol +1 -1
- package/contracts/core/PendleRouter.sol +10 -10
- package/contracts/core/YieldContracts/InterestManagerYT.sol +0 -2
- package/contracts/core/YieldContracts/PendlePrincipalToken.sol +3 -3
- package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +2 -2
- package/contracts/core/YieldContracts/PendleYieldToken.sol +24 -25
- package/contracts/core/actions/ActionCallback.sol +7 -7
- package/contracts/core/actions/ActionCore.sol +54 -81
- package/contracts/core/actions/ActionYT.sol +17 -37
- package/contracts/core/actions/base/ActionSCYAndPTBase.sol +21 -37
- package/contracts/core/actions/base/ActionSCYAndPYBase.sol +39 -51
- package/contracts/core/actions/base/ActionSCYAndYTBase.sol +14 -31
- package/contracts/interfaces/IEulerEToken.sol +60 -0
- package/contracts/interfaces/IEulerMarkets.sol +46 -0
- package/contracts/interfaces/IPActionCore.sol +43 -50
- package/contracts/interfaces/IPActionYT.sol +11 -12
- package/contracts/interfaces/IPInterestManagerYT.sol +1 -1
- package/contracts/interfaces/IPMarket.sol +1 -0
- package/contracts/interfaces/IPRouterStatic.sol +2 -7
- package/contracts/interfaces/IPVeToken.sol +2 -0
- package/contracts/interfaces/IPYieldToken.sol +2 -2
- package/contracts/interfaces/ISAvax.sol +61 -0
- package/contracts/interfaces/ISJoe.sol +60 -0
- package/contracts/interfaces/IStETH.sol +14 -0
- package/contracts/interfaces/IWAvax.sol +34 -0
- package/contracts/libraries/helpers/PYIndex.sol +69 -0
- package/contracts/libraries/helpers/TokenHelper.sol +8 -3
- package/contracts/libraries/kyberswap/KyberSwapHelper.sol +61 -0
- package/contracts/libraries/math/MarketApproxLib.sol +5 -5
- package/contracts/libraries/math/MarketMathCore.sol +10 -10
- package/contracts/offchain-helpers/RouterStatic.sol +21 -39
- package/deployments/43113-benqi.json +2 -2
- package/deployments/43113-core.json +7 -7
- package/deployments/43113-markets/benqi-market-599408.json +7 -0
- package/deployments/43113-markets/benqi-market-93bbf0.json +7 -0
- package/deployments/80001-benqi.json +2 -2
- package/deployments/80001-core.json +6 -6
- package/deployments/80001-markets/benqi-market-007811.json +7 -0
- package/deployments/80001-markets/benqi-market-3fe528.json +7 -0
- package/package.json +1 -1
- package/typechain-types/ActionCore.ts +330 -356
- package/typechain-types/ActionSCYAndPTBase.ts +11 -8
- package/typechain-types/ActionSCYAndPYBase.ts +11 -8
- package/typechain-types/ActionSCYAndYTBase.ts +11 -8
- package/typechain-types/ActionYT.ts +119 -106
- package/typechain-types/CelerSenderUpg.ts +16 -16
- package/typechain-types/IERC20Upgradeable.ts +300 -0
- package/typechain-types/IEulerEToken.ts +320 -0
- package/typechain-types/IEulerMarkets.ts +204 -0
- package/typechain-types/IPActionCore.ts +320 -349
- package/typechain-types/IPActionYT.ts +110 -100
- package/typechain-types/IPAllAction.ts +400 -447
- package/typechain-types/IPInterestManagerYT.ts +3 -3
- package/typechain-types/IPRouterStatic.ts +60 -118
- package/typechain-types/IPVeToken.ts +34 -0
- package/typechain-types/IPYieldToken.ts +47 -47
- package/typechain-types/ISAvax.ts +430 -0
- package/typechain-types/ISJoe.ts +340 -0
- package/typechain-types/IStETH.ts +201 -0
- package/typechain-types/IWAvax.ts +380 -0
- package/typechain-types/KyberSwapHelper.ts +87 -0
- package/typechain-types/PendleEulerSCY.ts +965 -0
- package/typechain-types/PendlePrincipalToken.ts +0 -104
- package/typechain-types/PendleQiSAvaxSCY.ts +1098 -0
- package/typechain-types/PendleSAvaxSCY.ts +962 -0
- package/typechain-types/PendleSJoeSCY.ts +1053 -0
- package/typechain-types/PendleVotingControllerUpg.ts +89 -55
- package/typechain-types/PendleWstEthSCY.ts +13 -0
- package/typechain-types/PendleYieldToken.ts +44 -148
- package/typechain-types/RouterStatic.ts +133 -299
- package/typechain-types/VotingEscrowPendleMainchain.ts +118 -16
- package/typechain-types/VotingEscrowPendleSidechain.ts +34 -0
- package/typechain-types/VotingEscrowTokenBase.ts +34 -0
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionCore__factory.ts +275 -139
- package/typechain-types/factories/ActionSCYAndPTBase__factory.ts +1 -1
- package/typechain-types/factories/ActionSCYAndPYBase__factory.ts +1 -1
- package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +1 -1
- package/typechain-types/factories/ActionYT__factory.ts +78 -44
- package/typechain-types/factories/CelerSenderUpg__factory.ts +2 -2
- package/typechain-types/factories/IERC20Upgradeable__factory.ts +209 -0
- package/typechain-types/factories/IEulerEToken__factory.ts +174 -0
- package/typechain-types/factories/IEulerMarkets__factory.ts +99 -0
- package/typechain-types/factories/IPActionCore__factory.ts +268 -132
- package/typechain-types/factories/IPActionYT__factory.ts +71 -37
- package/typechain-types/factories/IPAllAction__factory.ts +339 -169
- package/typechain-types/factories/IPInterestManagerYT__factory.ts +1 -1
- package/typechain-types/factories/IPRouterStatic__factory.ts +23 -23
- package/typechain-types/factories/IPVeToken__factory.ts +24 -0
- package/typechain-types/factories/IPYieldToken__factory.ts +27 -27
- package/typechain-types/factories/ISAvax__factory.ts +208 -0
- package/typechain-types/factories/ISJoe__factory.ts +177 -0
- package/typechain-types/factories/IStETH__factory.ts +101 -0
- package/typechain-types/factories/IWAvax__factory.ts +261 -0
- package/typechain-types/factories/KyberSwapHelper__factory.ts +39 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +1 -1
- package/typechain-types/factories/PendleERC4626SCY__factory.ts +1 -1
- package/typechain-types/factories/PendleEulerSCY__factory.ts +796 -0
- 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 -76
- package/typechain-types/factories/PendleQiSAvaxSCY__factory.ts +917 -0
- package/typechain-types/factories/PendleQiTokenSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleSAvaxSCY__factory.ts +796 -0
- package/typechain-types/factories/PendleSJoeSCY__factory.ts +845 -0
- package/typechain-types/factories/PendleStargateSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +45 -26
- package/typechain-types/factories/PendleWstEthSCY__factory.ts +29 -2
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +19 -94
- package/typechain-types/factories/RouterStatic__factory.ts +38 -38
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +65 -3
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +25 -1
- package/typechain-types/factories/VotingEscrowTokenBase__factory.ts +24 -0
- package/typechain-types/hardhat.d.ts +107 -17
- package/typechain-types/index.ts +24 -4
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.json +0 -329
- package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.json +0 -662
- package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.json +0 -760
- package/build/artifacts/contracts/interfaces/IJoeRouter02.sol/IJoeRouter02.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IJoeRouter02.sol/IJoeRouter02.json +0 -962
- package/build/artifacts/contracts/libraries/SCY/SCYIndex.sol/SCYIndexLib.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/traderjoe/JoeLibrary.sol/JoeLibrary.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/traderjoe/JoeLibrary.sol/JoeLibrary.json +0 -10
- package/build/artifacts/contracts/libraries/traderjoe/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.dbg.json +0 -4
- package/contracts/core/PendleERC20Permit.sol +0 -84
- package/contracts/interfaces/IJoePair.sol +0 -98
- package/contracts/interfaces/IJoeRouter01.sol +0 -162
- package/contracts/interfaces/IJoeRouter02.sol +0 -52
- package/contracts/libraries/SCY/SCYIndex.sol +0 -72
- package/contracts/libraries/traderjoe/JoeLibrary.sol +0 -122
- package/contracts/libraries/traderjoe/PendleJoeSwapHelperUpg.sol +0 -80
- package/deployments/43113-markets/benqi-market-4Ccb97.json +0 -7
- package/deployments/43113-markets/benqi-market-534471.json +0 -7
- package/deployments/80001-markets/benqi-market-109acB.json +0 -7
- package/deployments/80001-markets/benqi-market-4e470E.json +0 -7
|
@@ -67,16 +67,10 @@
|
|
|
67
67
|
"name": "YT",
|
|
68
68
|
"type": "address"
|
|
69
69
|
},
|
|
70
|
-
{
|
|
71
|
-
"indexed": false,
|
|
72
|
-
"internalType": "address",
|
|
73
|
-
"name": "rawTokenIn",
|
|
74
|
-
"type": "address"
|
|
75
|
-
},
|
|
76
70
|
{
|
|
77
71
|
"indexed": false,
|
|
78
72
|
"internalType": "uint256",
|
|
79
|
-
"name": "
|
|
73
|
+
"name": "netScyIn",
|
|
80
74
|
"type": "uint256"
|
|
81
75
|
},
|
|
82
76
|
{
|
|
@@ -86,7 +80,7 @@
|
|
|
86
80
|
"type": "uint256"
|
|
87
81
|
}
|
|
88
82
|
],
|
|
89
|
-
"name": "
|
|
83
|
+
"name": "MintPyFromScy",
|
|
90
84
|
"type": "event"
|
|
91
85
|
},
|
|
92
86
|
{
|
|
@@ -110,10 +104,16 @@
|
|
|
110
104
|
"name": "YT",
|
|
111
105
|
"type": "address"
|
|
112
106
|
},
|
|
107
|
+
{
|
|
108
|
+
"indexed": false,
|
|
109
|
+
"internalType": "address",
|
|
110
|
+
"name": "tokenIn",
|
|
111
|
+
"type": "address"
|
|
112
|
+
},
|
|
113
113
|
{
|
|
114
114
|
"indexed": false,
|
|
115
115
|
"internalType": "uint256",
|
|
116
|
-
"name": "
|
|
116
|
+
"name": "netTokenIn",
|
|
117
117
|
"type": "uint256"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"type": "uint256"
|
|
124
124
|
}
|
|
125
125
|
],
|
|
126
|
-
"name": "
|
|
126
|
+
"name": "MintPyFromToken",
|
|
127
127
|
"type": "event"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
@@ -150,13 +150,13 @@
|
|
|
150
150
|
{
|
|
151
151
|
"indexed": false,
|
|
152
152
|
"internalType": "address",
|
|
153
|
-
"name": "
|
|
153
|
+
"name": "tokenIn",
|
|
154
154
|
"type": "address"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"indexed": false,
|
|
158
158
|
"internalType": "uint256",
|
|
159
|
-
"name": "
|
|
159
|
+
"name": "netTokenIn",
|
|
160
160
|
"type": "uint256"
|
|
161
161
|
},
|
|
162
162
|
{
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"type": "uint256"
|
|
167
167
|
}
|
|
168
168
|
],
|
|
169
|
-
"name": "
|
|
169
|
+
"name": "MintScyFromToken",
|
|
170
170
|
"type": "event"
|
|
171
171
|
},
|
|
172
172
|
{
|
|
@@ -196,20 +196,14 @@
|
|
|
196
196
|
"name": "netPyIn",
|
|
197
197
|
"type": "uint256"
|
|
198
198
|
},
|
|
199
|
-
{
|
|
200
|
-
"indexed": false,
|
|
201
|
-
"internalType": "address",
|
|
202
|
-
"name": "rawTokenOut",
|
|
203
|
-
"type": "address"
|
|
204
|
-
},
|
|
205
199
|
{
|
|
206
200
|
"indexed": false,
|
|
207
201
|
"internalType": "uint256",
|
|
208
|
-
"name": "
|
|
202
|
+
"name": "netScyOut",
|
|
209
203
|
"type": "uint256"
|
|
210
204
|
}
|
|
211
205
|
],
|
|
212
|
-
"name": "
|
|
206
|
+
"name": "RedeemPyToScy",
|
|
213
207
|
"type": "event"
|
|
214
208
|
},
|
|
215
209
|
{
|
|
@@ -239,14 +233,20 @@
|
|
|
239
233
|
"name": "netPyIn",
|
|
240
234
|
"type": "uint256"
|
|
241
235
|
},
|
|
236
|
+
{
|
|
237
|
+
"indexed": false,
|
|
238
|
+
"internalType": "address",
|
|
239
|
+
"name": "tokenOut",
|
|
240
|
+
"type": "address"
|
|
241
|
+
},
|
|
242
242
|
{
|
|
243
243
|
"indexed": false,
|
|
244
244
|
"internalType": "uint256",
|
|
245
|
-
"name": "
|
|
245
|
+
"name": "netTokenOut",
|
|
246
246
|
"type": "uint256"
|
|
247
247
|
}
|
|
248
248
|
],
|
|
249
|
-
"name": "
|
|
249
|
+
"name": "RedeemPyToToken",
|
|
250
250
|
"type": "event"
|
|
251
251
|
},
|
|
252
252
|
{
|
|
@@ -279,17 +279,17 @@
|
|
|
279
279
|
{
|
|
280
280
|
"indexed": false,
|
|
281
281
|
"internalType": "address",
|
|
282
|
-
"name": "
|
|
282
|
+
"name": "tokenOut",
|
|
283
283
|
"type": "address"
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
"indexed": false,
|
|
287
287
|
"internalType": "uint256",
|
|
288
|
-
"name": "
|
|
288
|
+
"name": "netTokenOut",
|
|
289
289
|
"type": "uint256"
|
|
290
290
|
}
|
|
291
291
|
],
|
|
292
|
-
"name": "
|
|
292
|
+
"name": "RedeemScyToToken",
|
|
293
293
|
"type": "event"
|
|
294
294
|
},
|
|
295
295
|
{
|
|
@@ -353,12 +353,6 @@
|
|
|
353
353
|
{
|
|
354
354
|
"indexed": true,
|
|
355
355
|
"internalType": "address",
|
|
356
|
-
"name": "rawToken",
|
|
357
|
-
"type": "address"
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
"indexed": false,
|
|
361
|
-
"internalType": "address",
|
|
362
356
|
"name": "receiver",
|
|
363
357
|
"type": "address"
|
|
364
358
|
},
|
|
@@ -371,11 +365,11 @@
|
|
|
371
365
|
{
|
|
372
366
|
"indexed": false,
|
|
373
367
|
"internalType": "int256",
|
|
374
|
-
"name": "
|
|
368
|
+
"name": "amountScyToAccount",
|
|
375
369
|
"type": "int256"
|
|
376
370
|
}
|
|
377
371
|
],
|
|
378
|
-
"name": "
|
|
372
|
+
"name": "SwapPtAndScy",
|
|
379
373
|
"type": "event"
|
|
380
374
|
},
|
|
381
375
|
{
|
|
@@ -396,6 +390,12 @@
|
|
|
396
390
|
{
|
|
397
391
|
"indexed": true,
|
|
398
392
|
"internalType": "address",
|
|
393
|
+
"name": "token",
|
|
394
|
+
"type": "address"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"indexed": false,
|
|
398
|
+
"internalType": "address",
|
|
399
399
|
"name": "receiver",
|
|
400
400
|
"type": "address"
|
|
401
401
|
},
|
|
@@ -408,11 +408,11 @@
|
|
|
408
408
|
{
|
|
409
409
|
"indexed": false,
|
|
410
410
|
"internalType": "int256",
|
|
411
|
-
"name": "
|
|
411
|
+
"name": "amountTokenToAccount",
|
|
412
412
|
"type": "int256"
|
|
413
413
|
}
|
|
414
414
|
],
|
|
415
|
-
"name": "
|
|
415
|
+
"name": "SwapPtAndToken",
|
|
416
416
|
"type": "event"
|
|
417
417
|
},
|
|
418
418
|
{
|
|
@@ -544,7 +544,7 @@
|
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
546
|
"internalType": "uint256",
|
|
547
|
-
"name": "
|
|
547
|
+
"name": "netScyIn",
|
|
548
548
|
"type": "uint256"
|
|
549
549
|
},
|
|
550
550
|
{
|
|
@@ -552,11 +552,6 @@
|
|
|
552
552
|
"name": "minLpOut",
|
|
553
553
|
"type": "uint256"
|
|
554
554
|
},
|
|
555
|
-
{
|
|
556
|
-
"internalType": "address[]",
|
|
557
|
-
"name": "path",
|
|
558
|
-
"type": "address[]"
|
|
559
|
-
},
|
|
560
555
|
{
|
|
561
556
|
"components": [
|
|
562
557
|
{
|
|
@@ -590,7 +585,7 @@
|
|
|
590
585
|
"type": "tuple"
|
|
591
586
|
}
|
|
592
587
|
],
|
|
593
|
-
"name": "
|
|
588
|
+
"name": "addLiquiditySingleScy",
|
|
594
589
|
"outputs": [
|
|
595
590
|
{
|
|
596
591
|
"internalType": "uint256",
|
|
@@ -613,11 +608,6 @@
|
|
|
613
608
|
"name": "market",
|
|
614
609
|
"type": "address"
|
|
615
610
|
},
|
|
616
|
-
{
|
|
617
|
-
"internalType": "uint256",
|
|
618
|
-
"name": "netScyIn",
|
|
619
|
-
"type": "uint256"
|
|
620
|
-
},
|
|
621
611
|
{
|
|
622
612
|
"internalType": "uint256",
|
|
623
613
|
"name": "minLpOut",
|
|
@@ -654,9 +644,36 @@
|
|
|
654
644
|
"internalType": "struct ApproxParams",
|
|
655
645
|
"name": "guessPtReceivedFromScy",
|
|
656
646
|
"type": "tuple"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"components": [
|
|
650
|
+
{
|
|
651
|
+
"internalType": "address",
|
|
652
|
+
"name": "tokenIn",
|
|
653
|
+
"type": "address"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"internalType": "uint256",
|
|
657
|
+
"name": "netTokenIn",
|
|
658
|
+
"type": "uint256"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"internalType": "address",
|
|
662
|
+
"name": "tokenMintScy",
|
|
663
|
+
"type": "address"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"internalType": "bytes",
|
|
667
|
+
"name": "kybercall",
|
|
668
|
+
"type": "bytes"
|
|
669
|
+
}
|
|
670
|
+
],
|
|
671
|
+
"internalType": "struct TokenInput",
|
|
672
|
+
"name": "input",
|
|
673
|
+
"type": "tuple"
|
|
657
674
|
}
|
|
658
675
|
],
|
|
659
|
-
"name": "
|
|
676
|
+
"name": "addLiquiditySingleToken",
|
|
660
677
|
"outputs": [
|
|
661
678
|
{
|
|
662
679
|
"internalType": "uint256",
|
|
@@ -681,21 +698,16 @@
|
|
|
681
698
|
},
|
|
682
699
|
{
|
|
683
700
|
"internalType": "uint256",
|
|
684
|
-
"name": "
|
|
701
|
+
"name": "netScyIn",
|
|
685
702
|
"type": "uint256"
|
|
686
703
|
},
|
|
687
704
|
{
|
|
688
705
|
"internalType": "uint256",
|
|
689
706
|
"name": "minPyOut",
|
|
690
707
|
"type": "uint256"
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
"internalType": "address[]",
|
|
694
|
-
"name": "path",
|
|
695
|
-
"type": "address[]"
|
|
696
708
|
}
|
|
697
709
|
],
|
|
698
|
-
"name": "
|
|
710
|
+
"name": "mintPyFromScy",
|
|
699
711
|
"outputs": [
|
|
700
712
|
{
|
|
701
713
|
"internalType": "uint256",
|
|
@@ -720,16 +732,38 @@
|
|
|
720
732
|
},
|
|
721
733
|
{
|
|
722
734
|
"internalType": "uint256",
|
|
723
|
-
"name": "
|
|
735
|
+
"name": "minPyOut",
|
|
724
736
|
"type": "uint256"
|
|
725
737
|
},
|
|
726
738
|
{
|
|
727
|
-
"
|
|
728
|
-
|
|
729
|
-
|
|
739
|
+
"components": [
|
|
740
|
+
{
|
|
741
|
+
"internalType": "address",
|
|
742
|
+
"name": "tokenIn",
|
|
743
|
+
"type": "address"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"internalType": "uint256",
|
|
747
|
+
"name": "netTokenIn",
|
|
748
|
+
"type": "uint256"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"internalType": "address",
|
|
752
|
+
"name": "tokenMintScy",
|
|
753
|
+
"type": "address"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"internalType": "bytes",
|
|
757
|
+
"name": "kybercall",
|
|
758
|
+
"type": "bytes"
|
|
759
|
+
}
|
|
760
|
+
],
|
|
761
|
+
"internalType": "struct TokenInput",
|
|
762
|
+
"name": "input",
|
|
763
|
+
"type": "tuple"
|
|
730
764
|
}
|
|
731
765
|
],
|
|
732
|
-
"name": "
|
|
766
|
+
"name": "mintPyFromToken",
|
|
733
767
|
"outputs": [
|
|
734
768
|
{
|
|
735
769
|
"internalType": "uint256",
|
|
@@ -752,23 +786,40 @@
|
|
|
752
786
|
"name": "SCY",
|
|
753
787
|
"type": "address"
|
|
754
788
|
},
|
|
755
|
-
{
|
|
756
|
-
"internalType": "uint256",
|
|
757
|
-
"name": "netRawTokenIn",
|
|
758
|
-
"type": "uint256"
|
|
759
|
-
},
|
|
760
789
|
{
|
|
761
790
|
"internalType": "uint256",
|
|
762
791
|
"name": "minScyOut",
|
|
763
792
|
"type": "uint256"
|
|
764
793
|
},
|
|
765
794
|
{
|
|
766
|
-
"
|
|
767
|
-
|
|
768
|
-
|
|
795
|
+
"components": [
|
|
796
|
+
{
|
|
797
|
+
"internalType": "address",
|
|
798
|
+
"name": "tokenIn",
|
|
799
|
+
"type": "address"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"internalType": "uint256",
|
|
803
|
+
"name": "netTokenIn",
|
|
804
|
+
"type": "uint256"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"internalType": "address",
|
|
808
|
+
"name": "tokenMintScy",
|
|
809
|
+
"type": "address"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"internalType": "bytes",
|
|
813
|
+
"name": "kybercall",
|
|
814
|
+
"type": "bytes"
|
|
815
|
+
}
|
|
816
|
+
],
|
|
817
|
+
"internalType": "struct TokenInput",
|
|
818
|
+
"name": "input",
|
|
819
|
+
"type": "tuple"
|
|
769
820
|
}
|
|
770
821
|
],
|
|
771
|
-
"name": "
|
|
822
|
+
"name": "mintScyFromToken",
|
|
772
823
|
"outputs": [
|
|
773
824
|
{
|
|
774
825
|
"internalType": "uint256",
|
|
@@ -847,20 +898,15 @@
|
|
|
847
898
|
},
|
|
848
899
|
{
|
|
849
900
|
"internalType": "uint256",
|
|
850
|
-
"name": "
|
|
901
|
+
"name": "minScyOut",
|
|
851
902
|
"type": "uint256"
|
|
852
|
-
},
|
|
853
|
-
{
|
|
854
|
-
"internalType": "address[]",
|
|
855
|
-
"name": "path",
|
|
856
|
-
"type": "address[]"
|
|
857
903
|
}
|
|
858
904
|
],
|
|
859
|
-
"name": "
|
|
905
|
+
"name": "redeemPyToScy",
|
|
860
906
|
"outputs": [
|
|
861
907
|
{
|
|
862
908
|
"internalType": "uint256",
|
|
863
|
-
"name": "
|
|
909
|
+
"name": "netScyOut",
|
|
864
910
|
"type": "uint256"
|
|
865
911
|
}
|
|
866
912
|
],
|
|
@@ -885,16 +931,38 @@
|
|
|
885
931
|
"type": "uint256"
|
|
886
932
|
},
|
|
887
933
|
{
|
|
888
|
-
"
|
|
889
|
-
|
|
890
|
-
|
|
934
|
+
"components": [
|
|
935
|
+
{
|
|
936
|
+
"internalType": "address",
|
|
937
|
+
"name": "tokenOut",
|
|
938
|
+
"type": "address"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"internalType": "uint256",
|
|
942
|
+
"name": "minTokenOut",
|
|
943
|
+
"type": "uint256"
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"internalType": "address",
|
|
947
|
+
"name": "tokenRedeemScy",
|
|
948
|
+
"type": "address"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"internalType": "bytes",
|
|
952
|
+
"name": "kybercall",
|
|
953
|
+
"type": "bytes"
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
"internalType": "struct TokenOutput",
|
|
957
|
+
"name": "output",
|
|
958
|
+
"type": "tuple"
|
|
891
959
|
}
|
|
892
960
|
],
|
|
893
|
-
"name": "
|
|
961
|
+
"name": "redeemPyToToken",
|
|
894
962
|
"outputs": [
|
|
895
963
|
{
|
|
896
964
|
"internalType": "uint256",
|
|
897
|
-
"name": "
|
|
965
|
+
"name": "netTokenOut",
|
|
898
966
|
"type": "uint256"
|
|
899
967
|
}
|
|
900
968
|
],
|
|
@@ -919,21 +987,38 @@
|
|
|
919
987
|
"type": "uint256"
|
|
920
988
|
},
|
|
921
989
|
{
|
|
922
|
-
"
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
990
|
+
"components": [
|
|
991
|
+
{
|
|
992
|
+
"internalType": "address",
|
|
993
|
+
"name": "tokenOut",
|
|
994
|
+
"type": "address"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"internalType": "uint256",
|
|
998
|
+
"name": "minTokenOut",
|
|
999
|
+
"type": "uint256"
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"internalType": "address",
|
|
1003
|
+
"name": "tokenRedeemScy",
|
|
1004
|
+
"type": "address"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"internalType": "bytes",
|
|
1008
|
+
"name": "kybercall",
|
|
1009
|
+
"type": "bytes"
|
|
1010
|
+
}
|
|
1011
|
+
],
|
|
1012
|
+
"internalType": "struct TokenOutput",
|
|
1013
|
+
"name": "output",
|
|
1014
|
+
"type": "tuple"
|
|
930
1015
|
}
|
|
931
1016
|
],
|
|
932
|
-
"name": "
|
|
1017
|
+
"name": "redeemScyToToken",
|
|
933
1018
|
"outputs": [
|
|
934
1019
|
{
|
|
935
1020
|
"internalType": "uint256",
|
|
936
|
-
"name": "
|
|
1021
|
+
"name": "netTokenOut",
|
|
937
1022
|
"type": "uint256"
|
|
938
1023
|
}
|
|
939
1024
|
],
|
|
@@ -1069,20 +1154,15 @@
|
|
|
1069
1154
|
},
|
|
1070
1155
|
{
|
|
1071
1156
|
"internalType": "uint256",
|
|
1072
|
-
"name": "
|
|
1157
|
+
"name": "minScyOut",
|
|
1073
1158
|
"type": "uint256"
|
|
1074
|
-
},
|
|
1075
|
-
{
|
|
1076
|
-
"internalType": "address[]",
|
|
1077
|
-
"name": "path",
|
|
1078
|
-
"type": "address[]"
|
|
1079
1159
|
}
|
|
1080
1160
|
],
|
|
1081
|
-
"name": "
|
|
1161
|
+
"name": "removeLiquiditySingleScy",
|
|
1082
1162
|
"outputs": [
|
|
1083
1163
|
{
|
|
1084
1164
|
"internalType": "uint256",
|
|
1085
|
-
"name": "
|
|
1165
|
+
"name": "netScyOut",
|
|
1086
1166
|
"type": "uint256"
|
|
1087
1167
|
}
|
|
1088
1168
|
],
|
|
@@ -1107,16 +1187,38 @@
|
|
|
1107
1187
|
"type": "uint256"
|
|
1108
1188
|
},
|
|
1109
1189
|
{
|
|
1110
|
-
"
|
|
1111
|
-
|
|
1112
|
-
|
|
1190
|
+
"components": [
|
|
1191
|
+
{
|
|
1192
|
+
"internalType": "address",
|
|
1193
|
+
"name": "tokenOut",
|
|
1194
|
+
"type": "address"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"internalType": "uint256",
|
|
1198
|
+
"name": "minTokenOut",
|
|
1199
|
+
"type": "uint256"
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
"internalType": "address",
|
|
1203
|
+
"name": "tokenRedeemScy",
|
|
1204
|
+
"type": "address"
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
"internalType": "bytes",
|
|
1208
|
+
"name": "kybercall",
|
|
1209
|
+
"type": "bytes"
|
|
1210
|
+
}
|
|
1211
|
+
],
|
|
1212
|
+
"internalType": "struct TokenOutput",
|
|
1213
|
+
"name": "output",
|
|
1214
|
+
"type": "tuple"
|
|
1113
1215
|
}
|
|
1114
1216
|
],
|
|
1115
|
-
"name": "
|
|
1217
|
+
"name": "removeLiquiditySingleToken",
|
|
1116
1218
|
"outputs": [
|
|
1117
1219
|
{
|
|
1118
1220
|
"internalType": "uint256",
|
|
1119
|
-
"name": "
|
|
1221
|
+
"name": "netTokenOut",
|
|
1120
1222
|
"type": "uint256"
|
|
1121
1223
|
}
|
|
1122
1224
|
],
|
|
@@ -1142,20 +1244,15 @@
|
|
|
1142
1244
|
},
|
|
1143
1245
|
{
|
|
1144
1246
|
"internalType": "uint256",
|
|
1145
|
-
"name": "
|
|
1247
|
+
"name": "minScyOut",
|
|
1146
1248
|
"type": "uint256"
|
|
1147
|
-
},
|
|
1148
|
-
{
|
|
1149
|
-
"internalType": "address[]",
|
|
1150
|
-
"name": "path",
|
|
1151
|
-
"type": "address[]"
|
|
1152
1249
|
}
|
|
1153
1250
|
],
|
|
1154
|
-
"name": "
|
|
1251
|
+
"name": "swapExactPtForScy",
|
|
1155
1252
|
"outputs": [
|
|
1156
1253
|
{
|
|
1157
1254
|
"internalType": "uint256",
|
|
1158
|
-
"name": "
|
|
1255
|
+
"name": "netScyOut",
|
|
1159
1256
|
"type": "uint256"
|
|
1160
1257
|
}
|
|
1161
1258
|
],
|
|
@@ -1180,16 +1277,38 @@
|
|
|
1180
1277
|
"type": "uint256"
|
|
1181
1278
|
},
|
|
1182
1279
|
{
|
|
1183
|
-
"
|
|
1184
|
-
|
|
1185
|
-
|
|
1280
|
+
"components": [
|
|
1281
|
+
{
|
|
1282
|
+
"internalType": "address",
|
|
1283
|
+
"name": "tokenOut",
|
|
1284
|
+
"type": "address"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"internalType": "uint256",
|
|
1288
|
+
"name": "minTokenOut",
|
|
1289
|
+
"type": "uint256"
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
"internalType": "address",
|
|
1293
|
+
"name": "tokenRedeemScy",
|
|
1294
|
+
"type": "address"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"internalType": "bytes",
|
|
1298
|
+
"name": "kybercall",
|
|
1299
|
+
"type": "bytes"
|
|
1300
|
+
}
|
|
1301
|
+
],
|
|
1302
|
+
"internalType": "struct TokenOutput",
|
|
1303
|
+
"name": "output",
|
|
1304
|
+
"type": "tuple"
|
|
1186
1305
|
}
|
|
1187
1306
|
],
|
|
1188
|
-
"name": "
|
|
1307
|
+
"name": "swapExactPtForToken",
|
|
1189
1308
|
"outputs": [
|
|
1190
1309
|
{
|
|
1191
1310
|
"internalType": "uint256",
|
|
1192
|
-
"name": "
|
|
1311
|
+
"name": "netTokenOut",
|
|
1193
1312
|
"type": "uint256"
|
|
1194
1313
|
}
|
|
1195
1314
|
],
|
|
@@ -1210,7 +1329,7 @@
|
|
|
1210
1329
|
},
|
|
1211
1330
|
{
|
|
1212
1331
|
"internalType": "uint256",
|
|
1213
|
-
"name": "
|
|
1332
|
+
"name": "exactScyIn",
|
|
1214
1333
|
"type": "uint256"
|
|
1215
1334
|
},
|
|
1216
1335
|
{
|
|
@@ -1218,11 +1337,6 @@
|
|
|
1218
1337
|
"name": "minPtOut",
|
|
1219
1338
|
"type": "uint256"
|
|
1220
1339
|
},
|
|
1221
|
-
{
|
|
1222
|
-
"internalType": "address[]",
|
|
1223
|
-
"name": "path",
|
|
1224
|
-
"type": "address[]"
|
|
1225
|
-
},
|
|
1226
1340
|
{
|
|
1227
1341
|
"components": [
|
|
1228
1342
|
{
|
|
@@ -1256,7 +1370,7 @@
|
|
|
1256
1370
|
"type": "tuple"
|
|
1257
1371
|
}
|
|
1258
1372
|
],
|
|
1259
|
-
"name": "
|
|
1373
|
+
"name": "swapExactScyForPt",
|
|
1260
1374
|
"outputs": [
|
|
1261
1375
|
{
|
|
1262
1376
|
"internalType": "uint256",
|
|
@@ -1279,11 +1393,6 @@
|
|
|
1279
1393
|
"name": "market",
|
|
1280
1394
|
"type": "address"
|
|
1281
1395
|
},
|
|
1282
|
-
{
|
|
1283
|
-
"internalType": "uint256",
|
|
1284
|
-
"name": "exactScyIn",
|
|
1285
|
-
"type": "uint256"
|
|
1286
|
-
},
|
|
1287
1396
|
{
|
|
1288
1397
|
"internalType": "uint256",
|
|
1289
1398
|
"name": "minPtOut",
|
|
@@ -1320,9 +1429,36 @@
|
|
|
1320
1429
|
"internalType": "struct ApproxParams",
|
|
1321
1430
|
"name": "guessPtOut",
|
|
1322
1431
|
"type": "tuple"
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
"components": [
|
|
1435
|
+
{
|
|
1436
|
+
"internalType": "address",
|
|
1437
|
+
"name": "tokenIn",
|
|
1438
|
+
"type": "address"
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
"internalType": "uint256",
|
|
1442
|
+
"name": "netTokenIn",
|
|
1443
|
+
"type": "uint256"
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
"internalType": "address",
|
|
1447
|
+
"name": "tokenMintScy",
|
|
1448
|
+
"type": "address"
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
"internalType": "bytes",
|
|
1452
|
+
"name": "kybercall",
|
|
1453
|
+
"type": "bytes"
|
|
1454
|
+
}
|
|
1455
|
+
],
|
|
1456
|
+
"internalType": "struct TokenInput",
|
|
1457
|
+
"name": "input",
|
|
1458
|
+
"type": "tuple"
|
|
1323
1459
|
}
|
|
1324
1460
|
],
|
|
1325
|
-
"name": "
|
|
1461
|
+
"name": "swapExactTokenForPt",
|
|
1326
1462
|
"outputs": [
|
|
1327
1463
|
{
|
|
1328
1464
|
"internalType": "uint256",
|