@pendle/core-v2 0.9.4-beta → 0.10.2-testnet
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.json +7 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/{PendleYearnVaultScy.sol → PendleYearnVaultSCY.sol}/PendleYearnVaultSCY.json +3 -3
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.json +67 -5
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.json +63 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.json +65 -3
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +74 -10
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +79 -15
- package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +204 -123
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +127 -73
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +93 -34
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +90 -14
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.json +14 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +139 -37
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +84 -56
- package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +122 -11
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +96 -40
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +1025 -0
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +622 -0
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.json +35 -0
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +459 -0
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +459 -0
- package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/base/{ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json → ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json} +2 -2
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.json +24 -0
- package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPActionCore.sol/IPActionCore.json → IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json} +141 -912
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +598 -0
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.json +35 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +435 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPActionYT.sol/IPActionYT.json → IPActionSwapYT.sol/IPActionSwapYT.json} +23 -11
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +323 -47
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +4 -0
- package/build/artifacts/contracts/{core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json → interfaces/IPGauge.sol/IPGauge.json} +5 -5
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +72 -29
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.json +0 -11
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +0 -37
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IREDACTEDStaking.sol/IREDACTEDStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.json +1 -1
- package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.json +74 -0
- package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/SCY/SCYUtils.sol/SCYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +93 -0
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +427 -39
- package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +4 -0
- package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.json +86 -0
- package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +4 -0
- package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.json +37 -0
- package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.dbg.json +1 -1
- package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol +8 -0
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol +1 -1
- package/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol +11 -5
- package/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol +0 -1
- package/contracts/SuperComposableYield/SCY-implementations/{PendleYearnVaultScy.sol → PendleYearnVaultSCY.sol} +0 -0
- package/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol +1 -0
- package/contracts/SuperComposableYield/base-implementations/SCYBase.sol +1 -1
- package/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol +7 -7
- package/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol +7 -6
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +4 -5
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +6 -3
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +6 -3
- package/contracts/core/LiquidityMining/PendleGauge.sol +3 -2
- package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +22 -28
- package/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +71 -13
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +7 -4
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol +6 -2
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol +4 -3
- package/contracts/core/Market/PendleMarket.sol +93 -57
- package/contracts/core/Market/PendleMarketFactory.sol +18 -33
- package/contracts/core/PendleRouter.sol +60 -52
- package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +12 -12
- package/contracts/core/YieldContracts/PendleYieldToken.sol +1 -1
- package/contracts/core/actions/ActionAddRemoveLiq.sol +366 -0
- package/contracts/core/actions/ActionCallback.sol +6 -6
- package/contracts/core/actions/ActionMintRedeem.sol +124 -0
- package/contracts/core/actions/ActionMisc.sol +24 -0
- package/contracts/core/actions/ActionSwapPT.sol +199 -0
- package/contracts/core/actions/{base/ActionSCYAndYTBase.sol → ActionSwapYT.sol} +109 -74
- package/contracts/core/actions/base/{ActionSCYAndPYBase.sol → ActionBaseMintRedeem.sol} +9 -8
- package/contracts/interfaces/IBenQiComptroller.sol +2 -0
- package/contracts/interfaces/IPActionAddRemoveLiq.sol +188 -0
- package/contracts/interfaces/IPActionMintRedeem.sol +115 -0
- package/contracts/interfaces/IPActionMisc.sol +9 -0
- package/contracts/interfaces/IPActionSwapPT.sol +69 -0
- package/contracts/interfaces/{IPActionYT.sol → IPActionSwapYT.sol} +12 -10
- package/contracts/interfaces/IPAllAction.sol +12 -3
- package/contracts/interfaces/IPGauge.sol +6 -0
- package/contracts/interfaces/IPGaugeController.sol +0 -2
- package/contracts/interfaces/IPMarket.sol +28 -10
- package/contracts/interfaces/IPMarketFactory.sol +1 -7
- package/contracts/interfaces/IPVeToken.sol +1 -1
- package/contracts/interfaces/IPVotingController.sol +0 -2
- package/contracts/interfaces/IRewardManager.sol +1 -1
- package/contracts/libraries/OracleLib.sol +214 -0
- package/contracts/libraries/RewardManagerAbstract.sol +1 -1
- package/contracts/libraries/math/MarketApproxLib.sol +227 -14
- package/contracts/libraries/math/MarketMathCore.sol +0 -33
- package/contracts/offchain-helpers/MarketMathStatic.sol +565 -0
- package/contracts/offchain-helpers/RouterStatic.sol +187 -251
- package/contracts/periphery/BoringOwnableUpgradeable.sol +62 -0
- package/deployments/43113-core.json +7 -8
- package/deployments/43113-markets/benqi-market-590025.json +8 -0
- package/deployments/43113-markets/benqi-market-c93916.json +8 -0
- package/deployments/80001-core.json +6 -7
- package/deployments/80001-markets/benqi-market-3b8BD1.json +8 -0
- package/deployments/80001-markets/benqi-market-b61e7f.json +8 -0
- package/package.json +11 -11
- package/typechain-types/ActionAddRemoveLiq.ts +1037 -0
- package/typechain-types/ActionBaseMintRedeem.ts +87 -0
- package/typechain-types/ActionCore.ts +21 -20
- package/typechain-types/ActionMintRedeem.ts +665 -0
- package/typechain-types/ActionMisc.ts +105 -0
- package/typechain-types/ActionSwapPT.ts +515 -0
- package/typechain-types/ActionSwapYT.ts +515 -0
- package/typechain-types/ActionYT.ts +5 -4
- package/typechain-types/BoringOwnable.ts +194 -0
- package/typechain-types/BoringOwnableData.ts +100 -0
- package/typechain-types/BoringOwnableUpgradeable.ts +194 -0
- package/typechain-types/BoringOwnableUpgradeableData.ts +100 -0
- package/typechain-types/CelerReceiverUpg.ts +124 -19
- package/typechain-types/CelerSenderUpg.ts +116 -11
- package/typechain-types/IBenQiComptroller.ts +39 -0
- package/typechain-types/IPActionAddRemoveLiq.ts +1018 -0
- package/typechain-types/IPActionCore.ts +21 -20
- package/typechain-types/IPActionMintRedeem.ts +646 -0
- package/typechain-types/IPActionMisc.ts +105 -0
- package/typechain-types/IPActionSwapPT.ts +496 -0
- package/typechain-types/IPActionSwapYT.ts +496 -0
- package/typechain-types/IPActionYT.ts +5 -4
- package/typechain-types/IPAllAction.ts +431 -193
- package/typechain-types/IPGauge.ts +87 -0
- package/typechain-types/IPMarket.ts +133 -50
- package/typechain-types/IPMarketFactory.ts +7 -17
- package/typechain-types/IPVeToken.ts +8 -8
- package/typechain-types/IPVotingController.ts +0 -20
- package/typechain-types/IPYieldToken.ts +3 -3
- package/typechain-types/IRewardManager.ts +3 -3
- package/typechain-types/MarketMathStatic.ts +198 -0
- package/typechain-types/OracleLib.ts +124 -0
- package/typechain-types/PendleGaugeControllerBaseUpg.ts +118 -15
- package/typechain-types/PendleGaugeControllerMainchainUpg.ts +136 -9
- package/typechain-types/PendleGaugeControllerSidechainUpg.ts +138 -11
- package/typechain-types/PendleMarket.ts +178 -59
- package/typechain-types/PendleMarketFactory.ts +135 -61
- package/typechain-types/PendleRouter.ts +201 -31
- package/typechain-types/PendleVotingControllerUpg.ts +325 -149
- package/typechain-types/PendleYieldContractFactory.ts +144 -21
- package/typechain-types/RouterStatic.ts +344 -64
- package/typechain-types/VotingControllerStorageUpg.ts +182 -113
- package/typechain-types/VotingEscrowPendleMainchain.ts +170 -63
- package/typechain-types/VotingEscrowPendleSidechain.ts +163 -17
- package/typechain-types/VotingEscrowTokenBase.ts +27 -8
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1083 -0
- package/typechain-types/factories/ActionBaseMintRedeem__factory.ts +43 -0
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionCore__factory.ts +6 -6
- package/typechain-types/factories/ActionMintRedeem__factory.ts +680 -0
- package/typechain-types/factories/ActionMisc__factory.ts +85 -0
- package/typechain-types/factories/ActionSwapPT__factory.ts +514 -0
- package/typechain-types/factories/ActionSwapYT__factory.ts +514 -0
- package/typechain-types/factories/ActionYT__factory.ts +2 -2
- package/typechain-types/factories/BoringOwnableData__factory.ts +90 -0
- package/typechain-types/factories/BoringOwnableUpgradeableData__factory.ts +96 -0
- package/typechain-types/factories/BoringOwnableUpgradeable__factory.ts +143 -0
- package/typechain-types/factories/BoringOwnable__factory.ts +141 -0
- package/typechain-types/factories/CelerReceiverUpg__factory.ts +67 -5
- package/typechain-types/factories/CelerSenderUpg__factory.ts +63 -1
- package/typechain-types/factories/IBenQiComptroller__factory.ts +24 -0
- package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +1020 -0
- package/typechain-types/factories/IPActionCore__factory.ts +5 -5
- package/typechain-types/factories/IPActionMintRedeem__factory.ts +613 -0
- package/typechain-types/factories/IPActionMisc__factory.ts +47 -0
- package/typechain-types/factories/IPActionSwapPT__factory.ts +450 -0
- package/typechain-types/factories/IPActionSwapYT__factory.ts +450 -0
- package/typechain-types/factories/IPActionYT__factory.ts +1 -1
- package/typechain-types/factories/IPAllAction__factory.ts +323 -47
- package/typechain-types/factories/IPGauge__factory.ts +36 -0
- package/typechain-types/factories/IPMarketFactory__factory.ts +0 -11
- package/typechain-types/factories/IPMarket__factory.ts +72 -29
- package/typechain-types/factories/IPVeToken__factory.ts +1 -1
- package/typechain-types/factories/IPVotingController__factory.ts +0 -37
- package/typechain-types/factories/IPYieldToken__factory.ts +1 -1
- package/typechain-types/factories/IRewardManager__factory.ts +1 -1
- package/typechain-types/factories/MarketMathStatic__factory.ts +146 -0
- package/typechain-types/factories/OracleLib__factory.ts +124 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +1 -1
- package/typechain-types/factories/PendleERC4626SCY__factory.ts +1 -1
- package/typechain-types/factories/PendleEulerSCY__factory.ts +10 -1
- package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +65 -3
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +73 -13
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +79 -23
- package/typechain-types/factories/PendleMarketFactory__factory.ts +84 -86
- package/typechain-types/factories/PendleMarket__factory.ts +131 -37
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendleQiSAvaxSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +141 -22
- package/typechain-types/factories/PendleSAvaxSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleSJoeSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleStargateSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +203 -129
- package/typechain-types/factories/PendleWstEthSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleYearnVaultSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +97 -72
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/RouterStatic__factory.ts +233 -39
- package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +126 -72
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +93 -41
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +90 -17
- package/typechain-types/factories/VotingEscrowTokenBase__factory.ts +14 -1
- package/typechain-types/hardhat.d.ts +162 -0
- package/typechain-types/index.ts +36 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +0 -1801
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +0 -447
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.json +0 -24
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +0 -874
- package/contracts/core/actions/ActionCore.sol +0 -382
- package/contracts/core/actions/ActionYT.sol +0 -93
- package/contracts/core/actions/base/ActionSCYAndPTBase.sol +0 -303
- package/contracts/interfaces/IPActionCore.sol +0 -306
- package/contracts/interfaces/IPRouterStatic.sol +0 -152
- package/deployments/43113-markets/benqi-market-599408.json +0 -7
- package/deployments/43113-markets/benqi-market-93bbf0.json +0 -7
- package/deployments/43113-markets/benqi-market-95E744.json +0 -7
- package/deployments/43113-markets/benqi-market-D91a3F.json +0 -7
- package/deployments/80001-markets/benqi-market-007811.json +0 -7
- package/deployments/80001-markets/benqi-market-3fe528.json +0 -7
- package/typechain-types/FeeDistributorAbstract.ts +0 -164
- package/typechain-types/IPVotingControllerStorage.ts +0 -169
- package/typechain-types/factories/FeeDistributorAbstract__factory.ts +0 -90
- package/typechain-types/factories/IPVotingControllerStorage__factory.ts +0 -107
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "
|
|
4
|
-
"sourceName": "contracts/interfaces/
|
|
3
|
+
"contractName": "IPActionAddRemoveLiq",
|
|
4
|
+
"sourceName": "contracts/interfaces/IPActionAddRemoveLiq.sol",
|
|
5
5
|
"abi": [
|
|
6
6
|
{
|
|
7
7
|
"anonymous": false,
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
{
|
|
28
28
|
"indexed": false,
|
|
29
29
|
"internalType": "uint256",
|
|
30
|
-
"name": "
|
|
30
|
+
"name": "netScyUsed",
|
|
31
31
|
"type": "uint256"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"indexed": false,
|
|
35
35
|
"internalType": "uint256",
|
|
36
|
-
"name": "
|
|
36
|
+
"name": "netPtUsed",
|
|
37
37
|
"type": "uint256"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"indexed": false,
|
|
41
41
|
"internalType": "uint256",
|
|
42
|
-
"name": "
|
|
42
|
+
"name": "netLpOut",
|
|
43
43
|
"type": "uint256"
|
|
44
44
|
}
|
|
45
45
|
],
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
{
|
|
83
83
|
"indexed": false,
|
|
84
84
|
"internalType": "uint256",
|
|
85
|
-
"name": "
|
|
85
|
+
"name": "netPtUsed",
|
|
86
86
|
"type": "uint256"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
"indexed": false,
|
|
90
90
|
"internalType": "uint256",
|
|
91
|
-
"name": "
|
|
91
|
+
"name": "netLpOut",
|
|
92
92
|
"type": "uint256"
|
|
93
93
|
}
|
|
94
94
|
],
|
|
@@ -107,29 +107,29 @@
|
|
|
107
107
|
{
|
|
108
108
|
"indexed": true,
|
|
109
109
|
"internalType": "address",
|
|
110
|
-
"name": "
|
|
110
|
+
"name": "market",
|
|
111
111
|
"type": "address"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"indexed": true,
|
|
115
115
|
"internalType": "address",
|
|
116
|
-
"name": "
|
|
116
|
+
"name": "receiver",
|
|
117
117
|
"type": "address"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"indexed": false,
|
|
121
121
|
"internalType": "uint256",
|
|
122
|
-
"name": "
|
|
122
|
+
"name": "netPtIn",
|
|
123
123
|
"type": "uint256"
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
"indexed": false,
|
|
127
127
|
"internalType": "uint256",
|
|
128
|
-
"name": "
|
|
128
|
+
"name": "netLpOut",
|
|
129
129
|
"type": "uint256"
|
|
130
130
|
}
|
|
131
131
|
],
|
|
132
|
-
"name": "
|
|
132
|
+
"name": "AddLiquiditySinglePt",
|
|
133
133
|
"type": "event"
|
|
134
134
|
},
|
|
135
135
|
{
|
|
@@ -144,35 +144,29 @@
|
|
|
144
144
|
{
|
|
145
145
|
"indexed": true,
|
|
146
146
|
"internalType": "address",
|
|
147
|
-
"name": "
|
|
147
|
+
"name": "market",
|
|
148
148
|
"type": "address"
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
"indexed": true,
|
|
152
152
|
"internalType": "address",
|
|
153
|
-
"name": "
|
|
154
|
-
"type": "address"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"indexed": false,
|
|
158
|
-
"internalType": "address",
|
|
159
|
-
"name": "tokenIn",
|
|
153
|
+
"name": "receiver",
|
|
160
154
|
"type": "address"
|
|
161
155
|
},
|
|
162
156
|
{
|
|
163
157
|
"indexed": false,
|
|
164
158
|
"internalType": "uint256",
|
|
165
|
-
"name": "
|
|
159
|
+
"name": "netScyIn",
|
|
166
160
|
"type": "uint256"
|
|
167
161
|
},
|
|
168
162
|
{
|
|
169
163
|
"indexed": false,
|
|
170
164
|
"internalType": "uint256",
|
|
171
|
-
"name": "
|
|
165
|
+
"name": "netLpOut",
|
|
172
166
|
"type": "uint256"
|
|
173
167
|
}
|
|
174
168
|
],
|
|
175
|
-
"name": "
|
|
169
|
+
"name": "AddLiquiditySingleScy",
|
|
176
170
|
"type": "event"
|
|
177
171
|
},
|
|
178
172
|
{
|
|
@@ -187,19 +181,19 @@
|
|
|
187
181
|
{
|
|
188
182
|
"indexed": true,
|
|
189
183
|
"internalType": "address",
|
|
190
|
-
"name": "
|
|
184
|
+
"name": "market",
|
|
191
185
|
"type": "address"
|
|
192
186
|
},
|
|
193
187
|
{
|
|
194
188
|
"indexed": true,
|
|
195
189
|
"internalType": "address",
|
|
196
|
-
"name": "
|
|
190
|
+
"name": "token",
|
|
197
191
|
"type": "address"
|
|
198
192
|
},
|
|
199
193
|
{
|
|
200
194
|
"indexed": false,
|
|
201
195
|
"internalType": "address",
|
|
202
|
-
"name": "
|
|
196
|
+
"name": "receiver",
|
|
203
197
|
"type": "address"
|
|
204
198
|
},
|
|
205
199
|
{
|
|
@@ -211,11 +205,11 @@
|
|
|
211
205
|
{
|
|
212
206
|
"indexed": false,
|
|
213
207
|
"internalType": "uint256",
|
|
214
|
-
"name": "
|
|
208
|
+
"name": "netLpOut",
|
|
215
209
|
"type": "uint256"
|
|
216
210
|
}
|
|
217
211
|
],
|
|
218
|
-
"name": "
|
|
212
|
+
"name": "AddLiquiditySingleToken",
|
|
219
213
|
"type": "event"
|
|
220
214
|
},
|
|
221
215
|
{
|
|
@@ -230,19 +224,25 @@
|
|
|
230
224
|
{
|
|
231
225
|
"indexed": true,
|
|
232
226
|
"internalType": "address",
|
|
233
|
-
"name": "
|
|
227
|
+
"name": "market",
|
|
234
228
|
"type": "address"
|
|
235
229
|
},
|
|
236
230
|
{
|
|
237
231
|
"indexed": true,
|
|
238
232
|
"internalType": "address",
|
|
239
|
-
"name": "
|
|
233
|
+
"name": "receiver",
|
|
240
234
|
"type": "address"
|
|
241
235
|
},
|
|
242
236
|
{
|
|
243
237
|
"indexed": false,
|
|
244
238
|
"internalType": "uint256",
|
|
245
|
-
"name": "
|
|
239
|
+
"name": "netLpToRemove",
|
|
240
|
+
"type": "uint256"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"indexed": false,
|
|
244
|
+
"internalType": "uint256",
|
|
245
|
+
"name": "netPtOut",
|
|
246
246
|
"type": "uint256"
|
|
247
247
|
},
|
|
248
248
|
{
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"type": "uint256"
|
|
253
253
|
}
|
|
254
254
|
],
|
|
255
|
-
"name": "
|
|
255
|
+
"name": "RemoveLiquidityDualScyAndPt",
|
|
256
256
|
"type": "event"
|
|
257
257
|
},
|
|
258
258
|
{
|
|
@@ -267,62 +267,25 @@
|
|
|
267
267
|
{
|
|
268
268
|
"indexed": true,
|
|
269
269
|
"internalType": "address",
|
|
270
|
-
"name": "
|
|
270
|
+
"name": "market",
|
|
271
271
|
"type": "address"
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
274
|
"indexed": true,
|
|
275
275
|
"internalType": "address",
|
|
276
|
-
"name": "
|
|
277
|
-
"type": "address"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"indexed": false,
|
|
281
|
-
"internalType": "uint256",
|
|
282
|
-
"name": "netPyIn",
|
|
283
|
-
"type": "uint256"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"indexed": false,
|
|
287
|
-
"internalType": "address",
|
|
288
|
-
"name": "tokenOut",
|
|
276
|
+
"name": "receiver",
|
|
289
277
|
"type": "address"
|
|
290
278
|
},
|
|
291
279
|
{
|
|
292
280
|
"indexed": false,
|
|
293
281
|
"internalType": "uint256",
|
|
294
|
-
"name": "
|
|
282
|
+
"name": "netLpToRemove",
|
|
295
283
|
"type": "uint256"
|
|
296
|
-
}
|
|
297
|
-
],
|
|
298
|
-
"name": "RedeemPyToToken",
|
|
299
|
-
"type": "event"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"anonymous": false,
|
|
303
|
-
"inputs": [
|
|
304
|
-
{
|
|
305
|
-
"indexed": true,
|
|
306
|
-
"internalType": "address",
|
|
307
|
-
"name": "caller",
|
|
308
|
-
"type": "address"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"indexed": true,
|
|
312
|
-
"internalType": "address",
|
|
313
|
-
"name": "receiver",
|
|
314
|
-
"type": "address"
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
"indexed": true,
|
|
318
|
-
"internalType": "address",
|
|
319
|
-
"name": "SCY",
|
|
320
|
-
"type": "address"
|
|
321
284
|
},
|
|
322
285
|
{
|
|
323
286
|
"indexed": false,
|
|
324
287
|
"internalType": "uint256",
|
|
325
|
-
"name": "
|
|
288
|
+
"name": "netPtOut",
|
|
326
289
|
"type": "uint256"
|
|
327
290
|
},
|
|
328
291
|
{
|
|
@@ -338,7 +301,7 @@
|
|
|
338
301
|
"type": "uint256"
|
|
339
302
|
}
|
|
340
303
|
],
|
|
341
|
-
"name": "
|
|
304
|
+
"name": "RemoveLiquidityDualTokenAndPt",
|
|
342
305
|
"type": "event"
|
|
343
306
|
},
|
|
344
307
|
{
|
|
@@ -357,7 +320,7 @@
|
|
|
357
320
|
"type": "address"
|
|
358
321
|
},
|
|
359
322
|
{
|
|
360
|
-
"indexed":
|
|
323
|
+
"indexed": true,
|
|
361
324
|
"internalType": "address",
|
|
362
325
|
"name": "receiver",
|
|
363
326
|
"type": "address"
|
|
@@ -365,23 +328,17 @@
|
|
|
365
328
|
{
|
|
366
329
|
"indexed": false,
|
|
367
330
|
"internalType": "uint256",
|
|
368
|
-
"name": "
|
|
331
|
+
"name": "netLpToRemove",
|
|
369
332
|
"type": "uint256"
|
|
370
333
|
},
|
|
371
334
|
{
|
|
372
335
|
"indexed": false,
|
|
373
336
|
"internalType": "uint256",
|
|
374
|
-
"name": "
|
|
375
|
-
"type": "uint256"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"indexed": false,
|
|
379
|
-
"internalType": "uint256",
|
|
380
|
-
"name": "amountIbTokenOut",
|
|
337
|
+
"name": "netPtOut",
|
|
381
338
|
"type": "uint256"
|
|
382
339
|
}
|
|
383
340
|
],
|
|
384
|
-
"name": "
|
|
341
|
+
"name": "RemoveLiquiditySinglePt",
|
|
385
342
|
"type": "event"
|
|
386
343
|
},
|
|
387
344
|
{
|
|
@@ -400,7 +357,7 @@
|
|
|
400
357
|
"type": "address"
|
|
401
358
|
},
|
|
402
359
|
{
|
|
403
|
-
"indexed":
|
|
360
|
+
"indexed": true,
|
|
404
361
|
"internalType": "address",
|
|
405
362
|
"name": "receiver",
|
|
406
363
|
"type": "address"
|
|
@@ -408,60 +365,17 @@
|
|
|
408
365
|
{
|
|
409
366
|
"indexed": false,
|
|
410
367
|
"internalType": "uint256",
|
|
411
|
-
"name": "
|
|
368
|
+
"name": "netLpToRemove",
|
|
412
369
|
"type": "uint256"
|
|
413
370
|
},
|
|
414
371
|
{
|
|
415
372
|
"indexed": false,
|
|
416
373
|
"internalType": "uint256",
|
|
417
|
-
"name": "
|
|
418
|
-
"type": "uint256"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
"indexed": false,
|
|
422
|
-
"internalType": "uint256",
|
|
423
|
-
"name": "amountSCYOut",
|
|
374
|
+
"name": "netScyOut",
|
|
424
375
|
"type": "uint256"
|
|
425
376
|
}
|
|
426
377
|
],
|
|
427
|
-
"name": "
|
|
428
|
-
"type": "event"
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
"anonymous": false,
|
|
432
|
-
"inputs": [
|
|
433
|
-
{
|
|
434
|
-
"indexed": true,
|
|
435
|
-
"internalType": "address",
|
|
436
|
-
"name": "caller",
|
|
437
|
-
"type": "address"
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"indexed": true,
|
|
441
|
-
"internalType": "address",
|
|
442
|
-
"name": "market",
|
|
443
|
-
"type": "address"
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
"indexed": true,
|
|
447
|
-
"internalType": "address",
|
|
448
|
-
"name": "receiver",
|
|
449
|
-
"type": "address"
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
"indexed": false,
|
|
453
|
-
"internalType": "int256",
|
|
454
|
-
"name": "amountPtToAccount",
|
|
455
|
-
"type": "int256"
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
"indexed": false,
|
|
459
|
-
"internalType": "int256",
|
|
460
|
-
"name": "amountScyToAccount",
|
|
461
|
-
"type": "int256"
|
|
462
|
-
}
|
|
463
|
-
],
|
|
464
|
-
"name": "SwapPtAndScy",
|
|
378
|
+
"name": "RemoveLiquiditySingleScy",
|
|
465
379
|
"type": "event"
|
|
466
380
|
},
|
|
467
381
|
{
|
|
@@ -493,18 +407,18 @@
|
|
|
493
407
|
},
|
|
494
408
|
{
|
|
495
409
|
"indexed": false,
|
|
496
|
-
"internalType": "
|
|
497
|
-
"name": "
|
|
498
|
-
"type": "
|
|
410
|
+
"internalType": "uint256",
|
|
411
|
+
"name": "netLpToRemove",
|
|
412
|
+
"type": "uint256"
|
|
499
413
|
},
|
|
500
414
|
{
|
|
501
415
|
"indexed": false,
|
|
502
|
-
"internalType": "
|
|
503
|
-
"name": "
|
|
504
|
-
"type": "
|
|
416
|
+
"internalType": "uint256",
|
|
417
|
+
"name": "netTokenOut",
|
|
418
|
+
"type": "uint256"
|
|
505
419
|
}
|
|
506
420
|
],
|
|
507
|
-
"name": "
|
|
421
|
+
"name": "RemoveLiquiditySingleToken",
|
|
508
422
|
"type": "event"
|
|
509
423
|
},
|
|
510
424
|
{
|
|
@@ -521,12 +435,12 @@
|
|
|
521
435
|
},
|
|
522
436
|
{
|
|
523
437
|
"internalType": "uint256",
|
|
524
|
-
"name": "
|
|
438
|
+
"name": "netScyDesired",
|
|
525
439
|
"type": "uint256"
|
|
526
440
|
},
|
|
527
441
|
{
|
|
528
442
|
"internalType": "uint256",
|
|
529
|
-
"name": "
|
|
443
|
+
"name": "netPtDesired",
|
|
530
444
|
"type": "uint256"
|
|
531
445
|
},
|
|
532
446
|
{
|
|
@@ -549,7 +463,7 @@
|
|
|
549
463
|
},
|
|
550
464
|
{
|
|
551
465
|
"internalType": "uint256",
|
|
552
|
-
"name": "
|
|
466
|
+
"name": "netPtUsed",
|
|
553
467
|
"type": "uint256"
|
|
554
468
|
}
|
|
555
469
|
],
|
|
@@ -575,12 +489,12 @@
|
|
|
575
489
|
},
|
|
576
490
|
{
|
|
577
491
|
"internalType": "uint256",
|
|
578
|
-
"name": "
|
|
492
|
+
"name": "netTokenDesired",
|
|
579
493
|
"type": "uint256"
|
|
580
494
|
},
|
|
581
495
|
{
|
|
582
496
|
"internalType": "uint256",
|
|
583
|
-
"name": "
|
|
497
|
+
"name": "netPtDesired",
|
|
584
498
|
"type": "uint256"
|
|
585
499
|
},
|
|
586
500
|
{
|
|
@@ -598,16 +512,16 @@
|
|
|
598
512
|
},
|
|
599
513
|
{
|
|
600
514
|
"internalType": "uint256",
|
|
601
|
-
"name": "
|
|
515
|
+
"name": "netTokenUsed",
|
|
602
516
|
"type": "uint256"
|
|
603
517
|
},
|
|
604
518
|
{
|
|
605
519
|
"internalType": "uint256",
|
|
606
|
-
"name": "
|
|
520
|
+
"name": "netPtUsed",
|
|
607
521
|
"type": "uint256"
|
|
608
522
|
}
|
|
609
523
|
],
|
|
610
|
-
"stateMutability": "
|
|
524
|
+
"stateMutability": "payable",
|
|
611
525
|
"type": "function"
|
|
612
526
|
},
|
|
613
527
|
{
|
|
@@ -827,7 +741,7 @@
|
|
|
827
741
|
"type": "uint256"
|
|
828
742
|
}
|
|
829
743
|
],
|
|
830
|
-
"stateMutability": "
|
|
744
|
+
"stateMutability": "payable",
|
|
831
745
|
"type": "function"
|
|
832
746
|
},
|
|
833
747
|
{
|
|
@@ -839,25 +753,35 @@
|
|
|
839
753
|
},
|
|
840
754
|
{
|
|
841
755
|
"internalType": "address",
|
|
842
|
-
"name": "
|
|
756
|
+
"name": "market",
|
|
843
757
|
"type": "address"
|
|
844
758
|
},
|
|
845
759
|
{
|
|
846
760
|
"internalType": "uint256",
|
|
847
|
-
"name": "
|
|
761
|
+
"name": "netLpToRemove",
|
|
762
|
+
"type": "uint256"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"internalType": "uint256",
|
|
766
|
+
"name": "minScyOut",
|
|
848
767
|
"type": "uint256"
|
|
849
768
|
},
|
|
850
769
|
{
|
|
851
770
|
"internalType": "uint256",
|
|
852
|
-
"name": "
|
|
771
|
+
"name": "minPtOut",
|
|
853
772
|
"type": "uint256"
|
|
854
773
|
}
|
|
855
774
|
],
|
|
856
|
-
"name": "
|
|
775
|
+
"name": "removeLiquidityDualScyAndPt",
|
|
857
776
|
"outputs": [
|
|
858
777
|
{
|
|
859
778
|
"internalType": "uint256",
|
|
860
|
-
"name": "
|
|
779
|
+
"name": "netScyOut",
|
|
780
|
+
"type": "uint256"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"internalType": "uint256",
|
|
784
|
+
"name": "netPtOut",
|
|
861
785
|
"type": "uint256"
|
|
862
786
|
}
|
|
863
787
|
],
|
|
@@ -873,47 +797,40 @@
|
|
|
873
797
|
},
|
|
874
798
|
{
|
|
875
799
|
"internalType": "address",
|
|
876
|
-
"name": "
|
|
800
|
+
"name": "market",
|
|
877
801
|
"type": "address"
|
|
878
802
|
},
|
|
879
803
|
{
|
|
880
804
|
"internalType": "uint256",
|
|
881
|
-
"name": "
|
|
805
|
+
"name": "netLpToRemove",
|
|
882
806
|
"type": "uint256"
|
|
883
807
|
},
|
|
884
808
|
{
|
|
885
|
-
"
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
"name": "tokenMintScy",
|
|
899
|
-
"type": "address"
|
|
900
|
-
},
|
|
901
|
-
{
|
|
902
|
-
"internalType": "bytes",
|
|
903
|
-
"name": "kybercall",
|
|
904
|
-
"type": "bytes"
|
|
905
|
-
}
|
|
906
|
-
],
|
|
907
|
-
"internalType": "struct TokenInput",
|
|
908
|
-
"name": "input",
|
|
909
|
-
"type": "tuple"
|
|
809
|
+
"internalType": "address",
|
|
810
|
+
"name": "tokenOut",
|
|
811
|
+
"type": "address"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"internalType": "uint256",
|
|
815
|
+
"name": "minTokenOut",
|
|
816
|
+
"type": "uint256"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"internalType": "uint256",
|
|
820
|
+
"name": "minPtOut",
|
|
821
|
+
"type": "uint256"
|
|
910
822
|
}
|
|
911
823
|
],
|
|
912
|
-
"name": "
|
|
824
|
+
"name": "removeLiquidityDualTokenAndPt",
|
|
913
825
|
"outputs": [
|
|
914
826
|
{
|
|
915
827
|
"internalType": "uint256",
|
|
916
|
-
"name": "
|
|
828
|
+
"name": "netTokenOut",
|
|
829
|
+
"type": "uint256"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"internalType": "uint256",
|
|
833
|
+
"name": "netPtOut",
|
|
917
834
|
"type": "uint256"
|
|
918
835
|
}
|
|
919
836
|
],
|
|
@@ -929,47 +846,57 @@
|
|
|
929
846
|
},
|
|
930
847
|
{
|
|
931
848
|
"internalType": "address",
|
|
932
|
-
"name": "
|
|
849
|
+
"name": "market",
|
|
933
850
|
"type": "address"
|
|
934
851
|
},
|
|
935
852
|
{
|
|
936
853
|
"internalType": "uint256",
|
|
937
|
-
"name": "
|
|
854
|
+
"name": "netLpToRemove",
|
|
855
|
+
"type": "uint256"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"internalType": "uint256",
|
|
859
|
+
"name": "minPtOut",
|
|
938
860
|
"type": "uint256"
|
|
939
861
|
},
|
|
940
862
|
{
|
|
941
863
|
"components": [
|
|
942
864
|
{
|
|
943
|
-
"internalType": "
|
|
944
|
-
"name": "
|
|
945
|
-
"type": "
|
|
865
|
+
"internalType": "uint256",
|
|
866
|
+
"name": "guessMin",
|
|
867
|
+
"type": "uint256"
|
|
946
868
|
},
|
|
947
869
|
{
|
|
948
870
|
"internalType": "uint256",
|
|
949
|
-
"name": "
|
|
871
|
+
"name": "guessMax",
|
|
950
872
|
"type": "uint256"
|
|
951
873
|
},
|
|
952
874
|
{
|
|
953
|
-
"internalType": "
|
|
954
|
-
"name": "
|
|
955
|
-
"type": "
|
|
875
|
+
"internalType": "uint256",
|
|
876
|
+
"name": "guessOffchain",
|
|
877
|
+
"type": "uint256"
|
|
956
878
|
},
|
|
957
879
|
{
|
|
958
|
-
"internalType": "
|
|
959
|
-
"name": "
|
|
960
|
-
"type": "
|
|
880
|
+
"internalType": "uint256",
|
|
881
|
+
"name": "maxIteration",
|
|
882
|
+
"type": "uint256"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"internalType": "uint256",
|
|
886
|
+
"name": "eps",
|
|
887
|
+
"type": "uint256"
|
|
961
888
|
}
|
|
962
889
|
],
|
|
963
|
-
"internalType": "struct
|
|
964
|
-
"name": "
|
|
890
|
+
"internalType": "struct ApproxParams",
|
|
891
|
+
"name": "guessPtOut",
|
|
965
892
|
"type": "tuple"
|
|
966
893
|
}
|
|
967
894
|
],
|
|
968
|
-
"name": "
|
|
895
|
+
"name": "removeLiquiditySinglePt",
|
|
969
896
|
"outputs": [
|
|
970
897
|
{
|
|
971
898
|
"internalType": "uint256",
|
|
972
|
-
"name": "
|
|
899
|
+
"name": "netPtOut",
|
|
973
900
|
"type": "uint256"
|
|
974
901
|
}
|
|
975
902
|
],
|
|
@@ -980,46 +907,31 @@
|
|
|
980
907
|
"inputs": [
|
|
981
908
|
{
|
|
982
909
|
"internalType": "address",
|
|
983
|
-
"name": "
|
|
910
|
+
"name": "receiver",
|
|
984
911
|
"type": "address"
|
|
985
912
|
},
|
|
986
913
|
{
|
|
987
|
-
"internalType": "address
|
|
988
|
-
"name": "
|
|
989
|
-
"type": "address
|
|
914
|
+
"internalType": "address",
|
|
915
|
+
"name": "market",
|
|
916
|
+
"type": "address"
|
|
990
917
|
},
|
|
991
918
|
{
|
|
992
|
-
"internalType": "
|
|
993
|
-
"name": "
|
|
994
|
-
"type": "
|
|
919
|
+
"internalType": "uint256",
|
|
920
|
+
"name": "netLpToRemove",
|
|
921
|
+
"type": "uint256"
|
|
995
922
|
},
|
|
996
923
|
{
|
|
997
|
-
"internalType": "
|
|
998
|
-
"name": "
|
|
999
|
-
"type": "
|
|
924
|
+
"internalType": "uint256",
|
|
925
|
+
"name": "minScyOut",
|
|
926
|
+
"type": "uint256"
|
|
1000
927
|
}
|
|
1001
928
|
],
|
|
1002
|
-
"name": "
|
|
929
|
+
"name": "removeLiquiditySingleScy",
|
|
1003
930
|
"outputs": [
|
|
1004
931
|
{
|
|
1005
|
-
"internalType": "uint256
|
|
1006
|
-
"name": "
|
|
1007
|
-
"type": "uint256
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
"internalType": "uint256[]",
|
|
1011
|
-
"name": "ytInterests",
|
|
1012
|
-
"type": "uint256[]"
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
"internalType": "uint256[][]",
|
|
1016
|
-
"name": "ytRewards",
|
|
1017
|
-
"type": "uint256[][]"
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
"internalType": "uint256[][]",
|
|
1021
|
-
"name": "marketRewards",
|
|
1022
|
-
"type": "uint256[][]"
|
|
932
|
+
"internalType": "uint256",
|
|
933
|
+
"name": "netScyOut",
|
|
934
|
+
"type": "uint256"
|
|
1023
935
|
}
|
|
1024
936
|
],
|
|
1025
937
|
"stateMutability": "nonpayable",
|
|
@@ -1034,441 +946,12 @@
|
|
|
1034
946
|
},
|
|
1035
947
|
{
|
|
1036
948
|
"internalType": "address",
|
|
1037
|
-
"name": "
|
|
949
|
+
"name": "market",
|
|
1038
950
|
"type": "address"
|
|
1039
951
|
},
|
|
1040
952
|
{
|
|
1041
953
|
"internalType": "uint256",
|
|
1042
|
-
"name": "
|
|
1043
|
-
"type": "uint256"
|
|
1044
|
-
},
|
|
1045
|
-
{
|
|
1046
|
-
"internalType": "uint256",
|
|
1047
|
-
"name": "minScyOut",
|
|
1048
|
-
"type": "uint256"
|
|
1049
|
-
}
|
|
1050
|
-
],
|
|
1051
|
-
"name": "redeemPyToScy",
|
|
1052
|
-
"outputs": [
|
|
1053
|
-
{
|
|
1054
|
-
"internalType": "uint256",
|
|
1055
|
-
"name": "netScyOut",
|
|
1056
|
-
"type": "uint256"
|
|
1057
|
-
}
|
|
1058
|
-
],
|
|
1059
|
-
"stateMutability": "nonpayable",
|
|
1060
|
-
"type": "function"
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
"inputs": [
|
|
1064
|
-
{
|
|
1065
|
-
"internalType": "address",
|
|
1066
|
-
"name": "receiver",
|
|
1067
|
-
"type": "address"
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
"internalType": "address",
|
|
1071
|
-
"name": "YT",
|
|
1072
|
-
"type": "address"
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
"internalType": "uint256",
|
|
1076
|
-
"name": "netPyIn",
|
|
1077
|
-
"type": "uint256"
|
|
1078
|
-
},
|
|
1079
|
-
{
|
|
1080
|
-
"components": [
|
|
1081
|
-
{
|
|
1082
|
-
"internalType": "address",
|
|
1083
|
-
"name": "tokenOut",
|
|
1084
|
-
"type": "address"
|
|
1085
|
-
},
|
|
1086
|
-
{
|
|
1087
|
-
"internalType": "uint256",
|
|
1088
|
-
"name": "minTokenOut",
|
|
1089
|
-
"type": "uint256"
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
"internalType": "address",
|
|
1093
|
-
"name": "tokenRedeemScy",
|
|
1094
|
-
"type": "address"
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
"internalType": "bytes",
|
|
1098
|
-
"name": "kybercall",
|
|
1099
|
-
"type": "bytes"
|
|
1100
|
-
}
|
|
1101
|
-
],
|
|
1102
|
-
"internalType": "struct TokenOutput",
|
|
1103
|
-
"name": "output",
|
|
1104
|
-
"type": "tuple"
|
|
1105
|
-
}
|
|
1106
|
-
],
|
|
1107
|
-
"name": "redeemPyToToken",
|
|
1108
|
-
"outputs": [
|
|
1109
|
-
{
|
|
1110
|
-
"internalType": "uint256",
|
|
1111
|
-
"name": "netTokenOut",
|
|
1112
|
-
"type": "uint256"
|
|
1113
|
-
}
|
|
1114
|
-
],
|
|
1115
|
-
"stateMutability": "nonpayable",
|
|
1116
|
-
"type": "function"
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
"inputs": [
|
|
1120
|
-
{
|
|
1121
|
-
"internalType": "address",
|
|
1122
|
-
"name": "receiver",
|
|
1123
|
-
"type": "address"
|
|
1124
|
-
},
|
|
1125
|
-
{
|
|
1126
|
-
"internalType": "address",
|
|
1127
|
-
"name": "SCY",
|
|
1128
|
-
"type": "address"
|
|
1129
|
-
},
|
|
1130
|
-
{
|
|
1131
|
-
"internalType": "uint256",
|
|
1132
|
-
"name": "netScyIn",
|
|
1133
|
-
"type": "uint256"
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
"components": [
|
|
1137
|
-
{
|
|
1138
|
-
"internalType": "address",
|
|
1139
|
-
"name": "tokenOut",
|
|
1140
|
-
"type": "address"
|
|
1141
|
-
},
|
|
1142
|
-
{
|
|
1143
|
-
"internalType": "uint256",
|
|
1144
|
-
"name": "minTokenOut",
|
|
1145
|
-
"type": "uint256"
|
|
1146
|
-
},
|
|
1147
|
-
{
|
|
1148
|
-
"internalType": "address",
|
|
1149
|
-
"name": "tokenRedeemScy",
|
|
1150
|
-
"type": "address"
|
|
1151
|
-
},
|
|
1152
|
-
{
|
|
1153
|
-
"internalType": "bytes",
|
|
1154
|
-
"name": "kybercall",
|
|
1155
|
-
"type": "bytes"
|
|
1156
|
-
}
|
|
1157
|
-
],
|
|
1158
|
-
"internalType": "struct TokenOutput",
|
|
1159
|
-
"name": "output",
|
|
1160
|
-
"type": "tuple"
|
|
1161
|
-
}
|
|
1162
|
-
],
|
|
1163
|
-
"name": "redeemScyToToken",
|
|
1164
|
-
"outputs": [
|
|
1165
|
-
{
|
|
1166
|
-
"internalType": "uint256",
|
|
1167
|
-
"name": "netTokenOut",
|
|
1168
|
-
"type": "uint256"
|
|
1169
|
-
}
|
|
1170
|
-
],
|
|
1171
|
-
"stateMutability": "nonpayable",
|
|
1172
|
-
"type": "function"
|
|
1173
|
-
},
|
|
1174
|
-
{
|
|
1175
|
-
"inputs": [
|
|
1176
|
-
{
|
|
1177
|
-
"internalType": "address",
|
|
1178
|
-
"name": "receiver",
|
|
1179
|
-
"type": "address"
|
|
1180
|
-
},
|
|
1181
|
-
{
|
|
1182
|
-
"internalType": "address",
|
|
1183
|
-
"name": "market",
|
|
1184
|
-
"type": "address"
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
"internalType": "uint256",
|
|
1188
|
-
"name": "lpToRemove",
|
|
1189
|
-
"type": "uint256"
|
|
1190
|
-
},
|
|
1191
|
-
{
|
|
1192
|
-
"internalType": "uint256",
|
|
1193
|
-
"name": "scyOutMin",
|
|
1194
|
-
"type": "uint256"
|
|
1195
|
-
},
|
|
1196
|
-
{
|
|
1197
|
-
"internalType": "uint256",
|
|
1198
|
-
"name": "ptOutMin",
|
|
1199
|
-
"type": "uint256"
|
|
1200
|
-
}
|
|
1201
|
-
],
|
|
1202
|
-
"name": "removeLiquidityDualScyAndPt",
|
|
1203
|
-
"outputs": [
|
|
1204
|
-
{
|
|
1205
|
-
"internalType": "uint256",
|
|
1206
|
-
"name": "netScyOut",
|
|
1207
|
-
"type": "uint256"
|
|
1208
|
-
},
|
|
1209
|
-
{
|
|
1210
|
-
"internalType": "uint256",
|
|
1211
|
-
"name": "netPtOut",
|
|
1212
|
-
"type": "uint256"
|
|
1213
|
-
}
|
|
1214
|
-
],
|
|
1215
|
-
"stateMutability": "nonpayable",
|
|
1216
|
-
"type": "function"
|
|
1217
|
-
},
|
|
1218
|
-
{
|
|
1219
|
-
"inputs": [
|
|
1220
|
-
{
|
|
1221
|
-
"internalType": "address",
|
|
1222
|
-
"name": "receiver",
|
|
1223
|
-
"type": "address"
|
|
1224
|
-
},
|
|
1225
|
-
{
|
|
1226
|
-
"internalType": "address",
|
|
1227
|
-
"name": "market",
|
|
1228
|
-
"type": "address"
|
|
1229
|
-
},
|
|
1230
|
-
{
|
|
1231
|
-
"internalType": "uint256",
|
|
1232
|
-
"name": "lpToRemove",
|
|
1233
|
-
"type": "uint256"
|
|
1234
|
-
},
|
|
1235
|
-
{
|
|
1236
|
-
"internalType": "address",
|
|
1237
|
-
"name": "tokenOut",
|
|
1238
|
-
"type": "address"
|
|
1239
|
-
},
|
|
1240
|
-
{
|
|
1241
|
-
"internalType": "uint256",
|
|
1242
|
-
"name": "tokenOutMin",
|
|
1243
|
-
"type": "uint256"
|
|
1244
|
-
},
|
|
1245
|
-
{
|
|
1246
|
-
"internalType": "uint256",
|
|
1247
|
-
"name": "ptOutMin",
|
|
1248
|
-
"type": "uint256"
|
|
1249
|
-
}
|
|
1250
|
-
],
|
|
1251
|
-
"name": "removeLiquidityDualTokenAndPt",
|
|
1252
|
-
"outputs": [
|
|
1253
|
-
{
|
|
1254
|
-
"internalType": "uint256",
|
|
1255
|
-
"name": "netTokenOut",
|
|
1256
|
-
"type": "uint256"
|
|
1257
|
-
},
|
|
1258
|
-
{
|
|
1259
|
-
"internalType": "uint256",
|
|
1260
|
-
"name": "netPtOut",
|
|
1261
|
-
"type": "uint256"
|
|
1262
|
-
}
|
|
1263
|
-
],
|
|
1264
|
-
"stateMutability": "nonpayable",
|
|
1265
|
-
"type": "function"
|
|
1266
|
-
},
|
|
1267
|
-
{
|
|
1268
|
-
"inputs": [
|
|
1269
|
-
{
|
|
1270
|
-
"internalType": "address",
|
|
1271
|
-
"name": "receiver",
|
|
1272
|
-
"type": "address"
|
|
1273
|
-
},
|
|
1274
|
-
{
|
|
1275
|
-
"internalType": "address",
|
|
1276
|
-
"name": "market",
|
|
1277
|
-
"type": "address"
|
|
1278
|
-
},
|
|
1279
|
-
{
|
|
1280
|
-
"internalType": "uint256",
|
|
1281
|
-
"name": "lpToRemove",
|
|
1282
|
-
"type": "uint256"
|
|
1283
|
-
},
|
|
1284
|
-
{
|
|
1285
|
-
"internalType": "uint256",
|
|
1286
|
-
"name": "minPtOut",
|
|
1287
|
-
"type": "uint256"
|
|
1288
|
-
},
|
|
1289
|
-
{
|
|
1290
|
-
"components": [
|
|
1291
|
-
{
|
|
1292
|
-
"internalType": "uint256",
|
|
1293
|
-
"name": "guessMin",
|
|
1294
|
-
"type": "uint256"
|
|
1295
|
-
},
|
|
1296
|
-
{
|
|
1297
|
-
"internalType": "uint256",
|
|
1298
|
-
"name": "guessMax",
|
|
1299
|
-
"type": "uint256"
|
|
1300
|
-
},
|
|
1301
|
-
{
|
|
1302
|
-
"internalType": "uint256",
|
|
1303
|
-
"name": "guessOffchain",
|
|
1304
|
-
"type": "uint256"
|
|
1305
|
-
},
|
|
1306
|
-
{
|
|
1307
|
-
"internalType": "uint256",
|
|
1308
|
-
"name": "maxIteration",
|
|
1309
|
-
"type": "uint256"
|
|
1310
|
-
},
|
|
1311
|
-
{
|
|
1312
|
-
"internalType": "uint256",
|
|
1313
|
-
"name": "eps",
|
|
1314
|
-
"type": "uint256"
|
|
1315
|
-
}
|
|
1316
|
-
],
|
|
1317
|
-
"internalType": "struct ApproxParams",
|
|
1318
|
-
"name": "guessPtOut",
|
|
1319
|
-
"type": "tuple"
|
|
1320
|
-
}
|
|
1321
|
-
],
|
|
1322
|
-
"name": "removeLiquiditySinglePt",
|
|
1323
|
-
"outputs": [
|
|
1324
|
-
{
|
|
1325
|
-
"internalType": "uint256",
|
|
1326
|
-
"name": "netPtOut",
|
|
1327
|
-
"type": "uint256"
|
|
1328
|
-
}
|
|
1329
|
-
],
|
|
1330
|
-
"stateMutability": "nonpayable",
|
|
1331
|
-
"type": "function"
|
|
1332
|
-
},
|
|
1333
|
-
{
|
|
1334
|
-
"inputs": [
|
|
1335
|
-
{
|
|
1336
|
-
"internalType": "address",
|
|
1337
|
-
"name": "receiver",
|
|
1338
|
-
"type": "address"
|
|
1339
|
-
},
|
|
1340
|
-
{
|
|
1341
|
-
"internalType": "address",
|
|
1342
|
-
"name": "market",
|
|
1343
|
-
"type": "address"
|
|
1344
|
-
},
|
|
1345
|
-
{
|
|
1346
|
-
"internalType": "uint256",
|
|
1347
|
-
"name": "lpToRemove",
|
|
1348
|
-
"type": "uint256"
|
|
1349
|
-
},
|
|
1350
|
-
{
|
|
1351
|
-
"internalType": "uint256",
|
|
1352
|
-
"name": "minScyOut",
|
|
1353
|
-
"type": "uint256"
|
|
1354
|
-
}
|
|
1355
|
-
],
|
|
1356
|
-
"name": "removeLiquiditySingleScy",
|
|
1357
|
-
"outputs": [
|
|
1358
|
-
{
|
|
1359
|
-
"internalType": "uint256",
|
|
1360
|
-
"name": "netScyOut",
|
|
1361
|
-
"type": "uint256"
|
|
1362
|
-
}
|
|
1363
|
-
],
|
|
1364
|
-
"stateMutability": "nonpayable",
|
|
1365
|
-
"type": "function"
|
|
1366
|
-
},
|
|
1367
|
-
{
|
|
1368
|
-
"inputs": [
|
|
1369
|
-
{
|
|
1370
|
-
"internalType": "address",
|
|
1371
|
-
"name": "receiver",
|
|
1372
|
-
"type": "address"
|
|
1373
|
-
},
|
|
1374
|
-
{
|
|
1375
|
-
"internalType": "address",
|
|
1376
|
-
"name": "market",
|
|
1377
|
-
"type": "address"
|
|
1378
|
-
},
|
|
1379
|
-
{
|
|
1380
|
-
"internalType": "uint256",
|
|
1381
|
-
"name": "lpToRemove",
|
|
1382
|
-
"type": "uint256"
|
|
1383
|
-
},
|
|
1384
|
-
{
|
|
1385
|
-
"components": [
|
|
1386
|
-
{
|
|
1387
|
-
"internalType": "address",
|
|
1388
|
-
"name": "tokenOut",
|
|
1389
|
-
"type": "address"
|
|
1390
|
-
},
|
|
1391
|
-
{
|
|
1392
|
-
"internalType": "uint256",
|
|
1393
|
-
"name": "minTokenOut",
|
|
1394
|
-
"type": "uint256"
|
|
1395
|
-
},
|
|
1396
|
-
{
|
|
1397
|
-
"internalType": "address",
|
|
1398
|
-
"name": "tokenRedeemScy",
|
|
1399
|
-
"type": "address"
|
|
1400
|
-
},
|
|
1401
|
-
{
|
|
1402
|
-
"internalType": "bytes",
|
|
1403
|
-
"name": "kybercall",
|
|
1404
|
-
"type": "bytes"
|
|
1405
|
-
}
|
|
1406
|
-
],
|
|
1407
|
-
"internalType": "struct TokenOutput",
|
|
1408
|
-
"name": "output",
|
|
1409
|
-
"type": "tuple"
|
|
1410
|
-
}
|
|
1411
|
-
],
|
|
1412
|
-
"name": "removeLiquiditySingleToken",
|
|
1413
|
-
"outputs": [
|
|
1414
|
-
{
|
|
1415
|
-
"internalType": "uint256",
|
|
1416
|
-
"name": "netTokenOut",
|
|
1417
|
-
"type": "uint256"
|
|
1418
|
-
}
|
|
1419
|
-
],
|
|
1420
|
-
"stateMutability": "nonpayable",
|
|
1421
|
-
"type": "function"
|
|
1422
|
-
},
|
|
1423
|
-
{
|
|
1424
|
-
"inputs": [
|
|
1425
|
-
{
|
|
1426
|
-
"internalType": "address",
|
|
1427
|
-
"name": "receiver",
|
|
1428
|
-
"type": "address"
|
|
1429
|
-
},
|
|
1430
|
-
{
|
|
1431
|
-
"internalType": "address",
|
|
1432
|
-
"name": "market",
|
|
1433
|
-
"type": "address"
|
|
1434
|
-
},
|
|
1435
|
-
{
|
|
1436
|
-
"internalType": "uint256",
|
|
1437
|
-
"name": "exactPtIn",
|
|
1438
|
-
"type": "uint256"
|
|
1439
|
-
},
|
|
1440
|
-
{
|
|
1441
|
-
"internalType": "uint256",
|
|
1442
|
-
"name": "minScyOut",
|
|
1443
|
-
"type": "uint256"
|
|
1444
|
-
}
|
|
1445
|
-
],
|
|
1446
|
-
"name": "swapExactPtForScy",
|
|
1447
|
-
"outputs": [
|
|
1448
|
-
{
|
|
1449
|
-
"internalType": "uint256",
|
|
1450
|
-
"name": "netScyOut",
|
|
1451
|
-
"type": "uint256"
|
|
1452
|
-
}
|
|
1453
|
-
],
|
|
1454
|
-
"stateMutability": "nonpayable",
|
|
1455
|
-
"type": "function"
|
|
1456
|
-
},
|
|
1457
|
-
{
|
|
1458
|
-
"inputs": [
|
|
1459
|
-
{
|
|
1460
|
-
"internalType": "address",
|
|
1461
|
-
"name": "receiver",
|
|
1462
|
-
"type": "address"
|
|
1463
|
-
},
|
|
1464
|
-
{
|
|
1465
|
-
"internalType": "address",
|
|
1466
|
-
"name": "market",
|
|
1467
|
-
"type": "address"
|
|
1468
|
-
},
|
|
1469
|
-
{
|
|
1470
|
-
"internalType": "uint256",
|
|
1471
|
-
"name": "exactPtIn",
|
|
954
|
+
"name": "netLpToRemove",
|
|
1472
955
|
"type": "uint256"
|
|
1473
956
|
},
|
|
1474
957
|
{
|
|
@@ -1499,7 +982,7 @@
|
|
|
1499
982
|
"type": "tuple"
|
|
1500
983
|
}
|
|
1501
984
|
],
|
|
1502
|
-
"name": "
|
|
985
|
+
"name": "removeLiquiditySingleToken",
|
|
1503
986
|
"outputs": [
|
|
1504
987
|
{
|
|
1505
988
|
"internalType": "uint256",
|
|
@@ -1509,260 +992,6 @@
|
|
|
1509
992
|
],
|
|
1510
993
|
"stateMutability": "nonpayable",
|
|
1511
994
|
"type": "function"
|
|
1512
|
-
},
|
|
1513
|
-
{
|
|
1514
|
-
"inputs": [
|
|
1515
|
-
{
|
|
1516
|
-
"internalType": "address",
|
|
1517
|
-
"name": "receiver",
|
|
1518
|
-
"type": "address"
|
|
1519
|
-
},
|
|
1520
|
-
{
|
|
1521
|
-
"internalType": "address",
|
|
1522
|
-
"name": "market",
|
|
1523
|
-
"type": "address"
|
|
1524
|
-
},
|
|
1525
|
-
{
|
|
1526
|
-
"internalType": "uint256",
|
|
1527
|
-
"name": "exactScyIn",
|
|
1528
|
-
"type": "uint256"
|
|
1529
|
-
},
|
|
1530
|
-
{
|
|
1531
|
-
"internalType": "uint256",
|
|
1532
|
-
"name": "minPtOut",
|
|
1533
|
-
"type": "uint256"
|
|
1534
|
-
},
|
|
1535
|
-
{
|
|
1536
|
-
"components": [
|
|
1537
|
-
{
|
|
1538
|
-
"internalType": "uint256",
|
|
1539
|
-
"name": "guessMin",
|
|
1540
|
-
"type": "uint256"
|
|
1541
|
-
},
|
|
1542
|
-
{
|
|
1543
|
-
"internalType": "uint256",
|
|
1544
|
-
"name": "guessMax",
|
|
1545
|
-
"type": "uint256"
|
|
1546
|
-
},
|
|
1547
|
-
{
|
|
1548
|
-
"internalType": "uint256",
|
|
1549
|
-
"name": "guessOffchain",
|
|
1550
|
-
"type": "uint256"
|
|
1551
|
-
},
|
|
1552
|
-
{
|
|
1553
|
-
"internalType": "uint256",
|
|
1554
|
-
"name": "maxIteration",
|
|
1555
|
-
"type": "uint256"
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
"internalType": "uint256",
|
|
1559
|
-
"name": "eps",
|
|
1560
|
-
"type": "uint256"
|
|
1561
|
-
}
|
|
1562
|
-
],
|
|
1563
|
-
"internalType": "struct ApproxParams",
|
|
1564
|
-
"name": "guessPtOut",
|
|
1565
|
-
"type": "tuple"
|
|
1566
|
-
}
|
|
1567
|
-
],
|
|
1568
|
-
"name": "swapExactScyForPt",
|
|
1569
|
-
"outputs": [
|
|
1570
|
-
{
|
|
1571
|
-
"internalType": "uint256",
|
|
1572
|
-
"name": "netPtOut",
|
|
1573
|
-
"type": "uint256"
|
|
1574
|
-
}
|
|
1575
|
-
],
|
|
1576
|
-
"stateMutability": "nonpayable",
|
|
1577
|
-
"type": "function"
|
|
1578
|
-
},
|
|
1579
|
-
{
|
|
1580
|
-
"inputs": [
|
|
1581
|
-
{
|
|
1582
|
-
"internalType": "address",
|
|
1583
|
-
"name": "receiver",
|
|
1584
|
-
"type": "address"
|
|
1585
|
-
},
|
|
1586
|
-
{
|
|
1587
|
-
"internalType": "address",
|
|
1588
|
-
"name": "market",
|
|
1589
|
-
"type": "address"
|
|
1590
|
-
},
|
|
1591
|
-
{
|
|
1592
|
-
"internalType": "uint256",
|
|
1593
|
-
"name": "minPtOut",
|
|
1594
|
-
"type": "uint256"
|
|
1595
|
-
},
|
|
1596
|
-
{
|
|
1597
|
-
"components": [
|
|
1598
|
-
{
|
|
1599
|
-
"internalType": "uint256",
|
|
1600
|
-
"name": "guessMin",
|
|
1601
|
-
"type": "uint256"
|
|
1602
|
-
},
|
|
1603
|
-
{
|
|
1604
|
-
"internalType": "uint256",
|
|
1605
|
-
"name": "guessMax",
|
|
1606
|
-
"type": "uint256"
|
|
1607
|
-
},
|
|
1608
|
-
{
|
|
1609
|
-
"internalType": "uint256",
|
|
1610
|
-
"name": "guessOffchain",
|
|
1611
|
-
"type": "uint256"
|
|
1612
|
-
},
|
|
1613
|
-
{
|
|
1614
|
-
"internalType": "uint256",
|
|
1615
|
-
"name": "maxIteration",
|
|
1616
|
-
"type": "uint256"
|
|
1617
|
-
},
|
|
1618
|
-
{
|
|
1619
|
-
"internalType": "uint256",
|
|
1620
|
-
"name": "eps",
|
|
1621
|
-
"type": "uint256"
|
|
1622
|
-
}
|
|
1623
|
-
],
|
|
1624
|
-
"internalType": "struct ApproxParams",
|
|
1625
|
-
"name": "guessPtOut",
|
|
1626
|
-
"type": "tuple"
|
|
1627
|
-
},
|
|
1628
|
-
{
|
|
1629
|
-
"components": [
|
|
1630
|
-
{
|
|
1631
|
-
"internalType": "address",
|
|
1632
|
-
"name": "tokenIn",
|
|
1633
|
-
"type": "address"
|
|
1634
|
-
},
|
|
1635
|
-
{
|
|
1636
|
-
"internalType": "uint256",
|
|
1637
|
-
"name": "netTokenIn",
|
|
1638
|
-
"type": "uint256"
|
|
1639
|
-
},
|
|
1640
|
-
{
|
|
1641
|
-
"internalType": "address",
|
|
1642
|
-
"name": "tokenMintScy",
|
|
1643
|
-
"type": "address"
|
|
1644
|
-
},
|
|
1645
|
-
{
|
|
1646
|
-
"internalType": "bytes",
|
|
1647
|
-
"name": "kybercall",
|
|
1648
|
-
"type": "bytes"
|
|
1649
|
-
}
|
|
1650
|
-
],
|
|
1651
|
-
"internalType": "struct TokenInput",
|
|
1652
|
-
"name": "input",
|
|
1653
|
-
"type": "tuple"
|
|
1654
|
-
}
|
|
1655
|
-
],
|
|
1656
|
-
"name": "swapExactTokenForPt",
|
|
1657
|
-
"outputs": [
|
|
1658
|
-
{
|
|
1659
|
-
"internalType": "uint256",
|
|
1660
|
-
"name": "netPtOut",
|
|
1661
|
-
"type": "uint256"
|
|
1662
|
-
}
|
|
1663
|
-
],
|
|
1664
|
-
"stateMutability": "nonpayable",
|
|
1665
|
-
"type": "function"
|
|
1666
|
-
},
|
|
1667
|
-
{
|
|
1668
|
-
"inputs": [
|
|
1669
|
-
{
|
|
1670
|
-
"internalType": "address",
|
|
1671
|
-
"name": "receiver",
|
|
1672
|
-
"type": "address"
|
|
1673
|
-
},
|
|
1674
|
-
{
|
|
1675
|
-
"internalType": "address",
|
|
1676
|
-
"name": "market",
|
|
1677
|
-
"type": "address"
|
|
1678
|
-
},
|
|
1679
|
-
{
|
|
1680
|
-
"internalType": "uint256",
|
|
1681
|
-
"name": "exactScyOut",
|
|
1682
|
-
"type": "uint256"
|
|
1683
|
-
},
|
|
1684
|
-
{
|
|
1685
|
-
"internalType": "uint256",
|
|
1686
|
-
"name": "maxPtIn",
|
|
1687
|
-
"type": "uint256"
|
|
1688
|
-
},
|
|
1689
|
-
{
|
|
1690
|
-
"components": [
|
|
1691
|
-
{
|
|
1692
|
-
"internalType": "uint256",
|
|
1693
|
-
"name": "guessMin",
|
|
1694
|
-
"type": "uint256"
|
|
1695
|
-
},
|
|
1696
|
-
{
|
|
1697
|
-
"internalType": "uint256",
|
|
1698
|
-
"name": "guessMax",
|
|
1699
|
-
"type": "uint256"
|
|
1700
|
-
},
|
|
1701
|
-
{
|
|
1702
|
-
"internalType": "uint256",
|
|
1703
|
-
"name": "guessOffchain",
|
|
1704
|
-
"type": "uint256"
|
|
1705
|
-
},
|
|
1706
|
-
{
|
|
1707
|
-
"internalType": "uint256",
|
|
1708
|
-
"name": "maxIteration",
|
|
1709
|
-
"type": "uint256"
|
|
1710
|
-
},
|
|
1711
|
-
{
|
|
1712
|
-
"internalType": "uint256",
|
|
1713
|
-
"name": "eps",
|
|
1714
|
-
"type": "uint256"
|
|
1715
|
-
}
|
|
1716
|
-
],
|
|
1717
|
-
"internalType": "struct ApproxParams",
|
|
1718
|
-
"name": "guessPtIn",
|
|
1719
|
-
"type": "tuple"
|
|
1720
|
-
}
|
|
1721
|
-
],
|
|
1722
|
-
"name": "swapPtForExactScy",
|
|
1723
|
-
"outputs": [
|
|
1724
|
-
{
|
|
1725
|
-
"internalType": "uint256",
|
|
1726
|
-
"name": "netPtIn",
|
|
1727
|
-
"type": "uint256"
|
|
1728
|
-
}
|
|
1729
|
-
],
|
|
1730
|
-
"stateMutability": "nonpayable",
|
|
1731
|
-
"type": "function"
|
|
1732
|
-
},
|
|
1733
|
-
{
|
|
1734
|
-
"inputs": [
|
|
1735
|
-
{
|
|
1736
|
-
"internalType": "address",
|
|
1737
|
-
"name": "receiver",
|
|
1738
|
-
"type": "address"
|
|
1739
|
-
},
|
|
1740
|
-
{
|
|
1741
|
-
"internalType": "address",
|
|
1742
|
-
"name": "market",
|
|
1743
|
-
"type": "address"
|
|
1744
|
-
},
|
|
1745
|
-
{
|
|
1746
|
-
"internalType": "uint256",
|
|
1747
|
-
"name": "exactPtOut",
|
|
1748
|
-
"type": "uint256"
|
|
1749
|
-
},
|
|
1750
|
-
{
|
|
1751
|
-
"internalType": "uint256",
|
|
1752
|
-
"name": "maxScyIn",
|
|
1753
|
-
"type": "uint256"
|
|
1754
|
-
}
|
|
1755
|
-
],
|
|
1756
|
-
"name": "swapScyForExactPt",
|
|
1757
|
-
"outputs": [
|
|
1758
|
-
{
|
|
1759
|
-
"internalType": "uint256",
|
|
1760
|
-
"name": "netScyIn",
|
|
1761
|
-
"type": "uint256"
|
|
1762
|
-
}
|
|
1763
|
-
],
|
|
1764
|
-
"stateMutability": "nonpayable",
|
|
1765
|
-
"type": "function"
|
|
1766
995
|
}
|
|
1767
996
|
],
|
|
1768
997
|
"bytecode": "0x",
|