@pendle/core-v2 0.11.10-testnet → 0.12.0-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/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
- 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 +199 -30
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.json +1030 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.json +1025 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.json +948 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.json +76 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +140 -25
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.json +138 -23
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +138 -23
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +310 -0
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/{CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.json → CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.json} +18 -85
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +336 -0
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/{CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.json → CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.json} +8 -21
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.json +131 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +297 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +376 -0
- 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 +11 -0
- 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 +29 -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 +40 -86
- 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 +228 -40
- 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 +232 -12
- 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 +164 -47
- 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 +25 -93
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +222 -9
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +106 -5
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +4 -0
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.json +329 -0
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +13 -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 +87 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +80 -16
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +164 -2
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +172 -4
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +109 -2
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +62 -4
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.json +7 -2
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +199 -4
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.json +108 -2
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +146 -4
- package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.json +177 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.json +78 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.json +24 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.json +264 -0
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.json +305 -0
- package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.json +34 -0
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +31 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +5 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +30 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.json +10 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +30 -0
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +106 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +112 -0
- package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.json +76 -0
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +13 -0
- package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.json +24 -0
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.json +63 -0
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +148 -0
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPVotingEscrow.sol/IPVotingEscrow.json → IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.json} +88 -2
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.json +4 -28
- package/build/artifacts/contracts/libraries/Errors.sol/Errors.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/Errors.sol/Errors.json +886 -0
- package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.json +28 -2
- 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/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/{solmate/SSTORE2.sol/SSTORE2.json → VeHistoryLib.sol/CheckpointHelper.json} +4 -4
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.json +45 -0
- package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/helpers/{SSTORE2Deployer.sol/SSTORE2Deployer.json → BaseSplitCodeFactory.sol/CodeDeployer.json} +4 -4
- 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/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +2 -2
- package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.json +2 -2
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.json +167 -0
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +182 -4
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +126 -79
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol +3 -1
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol +19 -16
- package/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol +135 -0
- package/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol +96 -0
- package/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol +215 -0
- package/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol +83 -0
- package/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol +10 -15
- package/contracts/SuperComposableYield/base-implementations/SCYBase.sol +30 -43
- package/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol +74 -0
- package/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol +38 -0
- package/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol +83 -0
- package/contracts/core/LiquidityMining/{CelerAbstracts/CelerSenderUpg.sol → CrossChainMsg/PendleMsgSenderAppUpg.sol} +12 -13
- package/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol +159 -0
- package/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol +96 -0
- package/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol +68 -0
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +4 -3
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +6 -2
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +12 -4
- package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +29 -19
- package/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +27 -19
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +63 -27
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol +6 -5
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol +2 -2
- package/contracts/core/Market/PendleMarket.sol +26 -24
- package/contracts/core/Market/PendleMarketFactory.sol +41 -20
- package/contracts/core/PendleERC20Permit.sol +84 -0
- package/contracts/core/PendleRouter.sol +2 -1
- package/contracts/core/YieldContracts/PendlePrincipalToken.sol +8 -7
- package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +37 -22
- package/contracts/core/YieldContracts/PendleYieldToken.sol +106 -35
- package/contracts/core/actions/ActionAddRemoveLiq.sol +58 -41
- package/contracts/core/actions/ActionCallback.sol +24 -14
- package/contracts/core/actions/ActionMintRedeem.sol +14 -4
- package/contracts/core/actions/ActionMisc.sol +2 -1
- package/contracts/core/actions/ActionSwapPT.sol +38 -19
- package/contracts/core/actions/ActionSwapPTYT.sol +7 -6
- package/contracts/core/actions/ActionSwapYT.sol +36 -19
- package/contracts/core/actions/base/ActionBaseMintRedeem.sol +15 -8
- package/contracts/interfaces/ConvexCurve/IBooster.sol +32 -0
- package/contracts/interfaces/ConvexCurve/ICrvDepositor.sol +20 -0
- package/contracts/interfaces/ConvexCurve/ICvxCrv.sol +6 -0
- package/contracts/interfaces/ConvexCurve/IRewards.sol +38 -0
- package/contracts/interfaces/Curve/ICrvPool.sol +69 -0
- package/contracts/interfaces/IBoringOwnableUpgradeable.sol +10 -0
- package/contracts/interfaces/IPActionAddRemoveLiq.sol +7 -7
- package/contracts/interfaces/IPActionMintRedeem.sol +1 -0
- package/contracts/interfaces/IPActionSwapPT.sol +6 -6
- package/contracts/interfaces/IPActionSwapPTYT.sol +2 -2
- package/contracts/interfaces/IPActionSwapYT.sol +13 -13
- package/contracts/interfaces/IPFeeDistributor.sol +19 -0
- package/contracts/interfaces/IPFeeDistributorFactory.sol +14 -0
- package/contracts/interfaces/IPMarket.sol +2 -0
- package/contracts/interfaces/IPMsgReceiverApp.sol +7 -0
- package/contracts/interfaces/IPMsgSendEndpoint.sol +17 -0
- package/contracts/interfaces/IPVotingController.sol +22 -0
- package/contracts/interfaces/{IPVotingEscrow.sol → IPVotingEscrowMainchain.sol} +11 -1
- package/contracts/interfaces/ISuperComposableYield.sol +2 -7
- package/contracts/libraries/Errors.sol +121 -0
- package/contracts/libraries/OracleLib.sol +6 -3
- package/contracts/libraries/VeBalanceLib.sol +5 -1
- package/contracts/libraries/VeHistoryLib.sol +20 -31
- package/contracts/libraries/helpers/ArrayLib.sol +0 -17
- package/contracts/libraries/helpers/BaseSplitCodeFactory.sol +288 -0
- package/contracts/libraries/helpers/TokenHelper.sol +4 -0
- package/contracts/libraries/kyberswap/AggregationRouterHelper.sol +0 -7
- package/contracts/libraries/math/MarketMathCore.sol +29 -25
- package/contracts/libraries/math/Math.sol +6 -2
- package/contracts/libraries/math/WeekMath.sol +2 -2
- package/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol +43 -0
- package/contracts/offchain-helpers/MarketMathStatic.sol +36 -36
- package/contracts/offchain-helpers/RouterStatic.sol +45 -37
- package/deployments/43113-core.json +11 -10
- package/deployments/43113-markets/benqi-market-QI-USDC-FEB-2ND.json +8 -0
- package/deployments/43113-markets/benqi-market-QI-WETH-DEC-1ST.json +8 -0
- package/deployments/43113-testenv.json +9 -9
- package/deployments/80001-core.json +10 -9
- package/deployments/80001-markets/benqi-market-QI-USDC-FEB-2ND.json +8 -0
- package/deployments/80001-markets/benqi-market-QI-WETH-DEC-1ST.json +8 -0
- package/deployments/80001-testenv.json +16 -16
- package/package.json +1 -1
- package/typechain-types/ActionAddRemoveLiq.ts +18 -6
- package/typechain-types/ActionMintRedeem.ts +9 -2
- package/typechain-types/ActionSwapPT.ts +18 -6
- package/typechain-types/ActionSwapPTYT.ts +6 -2
- package/typechain-types/ActionSwapYT.ts +18 -6
- package/typechain-types/Errors.ts +57 -0
- package/typechain-types/ICrvPool.ts +137 -22
- package/typechain-types/IPActionAddRemoveLiq.ts +19 -7
- package/typechain-types/IPActionMintRedeem.ts +9 -2
- package/typechain-types/IPActionSwapPT.ts +18 -6
- package/typechain-types/IPActionSwapPTYT.ts +6 -2
- package/typechain-types/IPActionSwapYT.ts +18 -6
- package/typechain-types/IPAllAction.ts +70 -23
- package/typechain-types/IPBatchSeller.ts +252 -0
- package/typechain-types/IPMarket.ts +13 -0
- package/typechain-types/IPVotingController.ts +244 -7
- package/typechain-types/IPVotingEscrowMainchain.ts +461 -0
- package/typechain-types/IRewards.ts +25 -10
- package/typechain-types/ISuperComposableYield.ts +7 -46
- package/typechain-types/MarketMathStatic.ts +139 -10
- package/typechain-types/Pendle3CrvAndTokenSCY.ts +1215 -0
- package/typechain-types/Pendle3CrvTokenSCY.ts +85 -185
- package/typechain-types/PendleBatchSeller.ts +626 -0
- package/typechain-types/PendleConvexCurveLP2PoolSCY.ts +185 -220
- package/typechain-types/PendleConvexCurveLPSCY.ts +159 -182
- package/typechain-types/PendleCvxCRVSCY.ts +0 -34
- package/typechain-types/PendleGaugeControllerSidechainUpg.ts +28 -149
- package/typechain-types/PendleMarket.ts +104 -0
- package/typechain-types/PendleMarketFactory.ts +76 -13
- package/typechain-types/PendlePrincipalToken.ts +104 -0
- package/typechain-types/PendleQiTokenSCY.ts +111 -46
- package/typechain-types/PendleVotingControllerUpg.ts +133 -77
- package/typechain-types/PendleWstEthSCY.ts +111 -46
- package/typechain-types/PendleYieldContractFactory.ts +84 -21
- package/typechain-types/PendleYieldToken.ts +175 -0
- package/typechain-types/PtAMMArb.ts +587 -0
- package/typechain-types/RouterStatic.ts +99 -75
- package/typechain-types/SCYBase.ts +111 -46
- package/typechain-types/SCYBaseWithRewards.ts +111 -46
- package/typechain-types/VotingControllerStorageUpg.ts +246 -27
- package/typechain-types/VotingEscrowPendleMainchain.ts +81 -93
- package/typechain-types/VotingEscrowPendleSidechain.ts +26 -171
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +169 -1
- package/typechain-types/factories/ActionCallback__factory.ts +108 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +59 -1
- package/typechain-types/factories/ActionMisc__factory.ts +6 -1
- package/typechain-types/factories/ActionSwapPTYT__factory.ts +107 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +196 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +143 -1
- package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
- package/typechain-types/factories/Errors__factory.ts +933 -0
- package/typechain-types/factories/ICrvPool__factory.ts +85 -12
- package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +31 -1
- package/typechain-types/factories/IPActionMintRedeem__factory.ts +5 -0
- package/typechain-types/factories/IPActionSwapPTYT__factory.ts +10 -0
- package/typechain-types/factories/IPActionSwapPT__factory.ts +30 -0
- package/typechain-types/factories/IPActionSwapYT__factory.ts +30 -0
- package/typechain-types/factories/IPAllAction__factory.ts +106 -1
- package/typechain-types/factories/IPBatchSeller__factory.ts +138 -0
- package/typechain-types/factories/IPMarket__factory.ts +13 -0
- package/typechain-types/factories/IPVotingController__factory.ts +148 -0
- package/typechain-types/factories/IPVotingEscrowMainchain__factory.ts +340 -0
- package/typechain-types/factories/IRewards__factory.ts +14 -1
- package/typechain-types/factories/ISuperComposableYield__factory.ts +4 -28
- package/typechain-types/factories/MarketMathStatic__factory.ts +181 -3
- package/typechain-types/factories/OracleLib__factory.ts +27 -1
- package/typechain-types/factories/Pendle3CrvAndTokenSCY__factory.ts +1130 -0
- package/typechain-types/factories/Pendle3CrvHelper__factory.ts +1 -1
- package/typechain-types/factories/Pendle3CrvTokenSCY__factory.ts +74 -128
- package/typechain-types/factories/PendleBatchSeller__factory.ts +558 -0
- package/typechain-types/factories/PendleConvexCurveLP2PoolSCY__factory.ts +207 -136
- package/typechain-types/factories/PendleConvexCurveLPSCY__factory.ts +170 -95
- package/typechain-types/factories/PendleCvxCRVSCY__factory.ts +1 -29
- package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +17 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +6 -1
- package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +11 -0
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +28 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +48 -86
- package/typechain-types/factories/PendleMarketFactory__factory.ts +129 -9
- package/typechain-types/factories/PendleMarket__factory.ts +214 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +17 -1
- package/typechain-types/factories/PendleMsgReceiverAppUpg__factory.ts +11 -0
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +6 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +86 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSCY__factory.ts +198 -29
- package/typechain-types/factories/PendleRouter__factory.ts +12 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +235 -40
- package/typechain-types/factories/PendleWstEthSCY__factory.ts +137 -22
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +103 -20
- package/typechain-types/factories/PendleYieldToken__factory.ts +163 -1
- package/typechain-types/factories/PtAMMArb__factory.ts +525 -0
- package/typechain-types/factories/RouterStatic__factory.ts +67 -20
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +136 -21
- package/typechain-types/factories/SCYBase__factory.ts +136 -21
- package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +232 -12
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +171 -47
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +31 -93
- package/typechain-types/hardhat.d.ts +99 -0
- package/typechain-types/index.ts +22 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +0 -810
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.json +0 -10
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.json +0 -833
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.json +0 -723
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.json +0 -728
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.json +0 -705
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.json +0 -864
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.json +0 -718
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.json +0 -784
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/SSTORE2DeployerContract.sol/SSTORE2DeployerContract.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/SSTORE2DeployerContract.sol/SSTORE2DeployerContract.json +0 -134
- package/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol +0 -161
- package/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol +0 -126
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol +0 -242
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol +0 -146
- package/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol +0 -176
- package/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol +0 -129
- package/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol +0 -193
- package/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol +0 -155
- package/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol +0 -182
- package/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol +0 -53
- package/contracts/libraries/helpers/SSTORE2Deployer.sol +0 -30
- package/contracts/libraries/solmate/SSTORE2.sol +0 -99
- package/contracts/offchain-helpers/SSTORE2DeployerContract.sol +0 -21
- package/deployments/43113-markets/benqi-market-10D931.json +0 -8
- package/deployments/43113-markets/benqi-market-9fbD64.json +0 -8
- package/deployments/43113-markets/benqi-market-A12361.json +0 -8
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type { PtAMMArb, PtAMMArbInterface } from "../PtAMMArb";
|
|
7
|
+
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "_router",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "_market",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "_baseToken",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "address",
|
|
28
|
+
name: "_batchSeller",
|
|
29
|
+
type: "address",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
stateMutability: "nonpayable",
|
|
33
|
+
type: "constructor",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
inputs: [
|
|
37
|
+
{
|
|
38
|
+
internalType: "int256",
|
|
39
|
+
name: "exchangeRate",
|
|
40
|
+
type: "int256",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
name: "MarketExchangeRateBelowOne",
|
|
44
|
+
type: "error",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
inputs: [],
|
|
48
|
+
name: "MarketExpired",
|
|
49
|
+
type: "error",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
inputs: [
|
|
53
|
+
{
|
|
54
|
+
internalType: "int256",
|
|
55
|
+
name: "currentAmount",
|
|
56
|
+
type: "int256",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
internalType: "int256",
|
|
60
|
+
name: "requiredAmount",
|
|
61
|
+
type: "int256",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
name: "MarketInsufficientPtForTrade",
|
|
65
|
+
type: "error",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
inputs: [],
|
|
69
|
+
name: "MarketProportionMustNotEqualOne",
|
|
70
|
+
type: "error",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [
|
|
74
|
+
{
|
|
75
|
+
internalType: "int256",
|
|
76
|
+
name: "proportion",
|
|
77
|
+
type: "int256",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
internalType: "int256",
|
|
81
|
+
name: "maxProportion",
|
|
82
|
+
type: "int256",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
name: "MarketProportionTooHigh",
|
|
86
|
+
type: "error",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
inputs: [
|
|
90
|
+
{
|
|
91
|
+
internalType: "int256",
|
|
92
|
+
name: "rateScalar",
|
|
93
|
+
type: "int256",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
name: "MarketRateScalarBelowZero",
|
|
97
|
+
type: "error",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
inputs: [],
|
|
101
|
+
name: "MarketZeroLnImpliedRate",
|
|
102
|
+
type: "error",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
inputs: [
|
|
106
|
+
{
|
|
107
|
+
internalType: "int256",
|
|
108
|
+
name: "totalPt",
|
|
109
|
+
type: "int256",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
internalType: "int256",
|
|
113
|
+
name: "totalAsset",
|
|
114
|
+
type: "int256",
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
name: "MarketZeroTotalPtOrTotalAsset",
|
|
118
|
+
type: "error",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
anonymous: false,
|
|
122
|
+
inputs: [
|
|
123
|
+
{
|
|
124
|
+
indexed: false,
|
|
125
|
+
internalType: "address",
|
|
126
|
+
name: "previousAdmin",
|
|
127
|
+
type: "address",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
indexed: false,
|
|
131
|
+
internalType: "address",
|
|
132
|
+
name: "newAdmin",
|
|
133
|
+
type: "address",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
name: "AdminChanged",
|
|
137
|
+
type: "event",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
anonymous: false,
|
|
141
|
+
inputs: [
|
|
142
|
+
{
|
|
143
|
+
indexed: true,
|
|
144
|
+
internalType: "address",
|
|
145
|
+
name: "beacon",
|
|
146
|
+
type: "address",
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
name: "BeaconUpgraded",
|
|
150
|
+
type: "event",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
anonymous: false,
|
|
154
|
+
inputs: [
|
|
155
|
+
{
|
|
156
|
+
indexed: true,
|
|
157
|
+
internalType: "address",
|
|
158
|
+
name: "previousOwner",
|
|
159
|
+
type: "address",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
indexed: true,
|
|
163
|
+
internalType: "address",
|
|
164
|
+
name: "newOwner",
|
|
165
|
+
type: "address",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
name: "OwnershipTransferred",
|
|
169
|
+
type: "event",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
anonymous: false,
|
|
173
|
+
inputs: [
|
|
174
|
+
{
|
|
175
|
+
indexed: true,
|
|
176
|
+
internalType: "address",
|
|
177
|
+
name: "implementation",
|
|
178
|
+
type: "address",
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
name: "Upgraded",
|
|
182
|
+
type: "event",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
inputs: [],
|
|
186
|
+
name: "PT",
|
|
187
|
+
outputs: [
|
|
188
|
+
{
|
|
189
|
+
internalType: "contract IPPrincipalToken",
|
|
190
|
+
name: "",
|
|
191
|
+
type: "address",
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
stateMutability: "view",
|
|
195
|
+
type: "function",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
inputs: [],
|
|
199
|
+
name: "SCY",
|
|
200
|
+
outputs: [
|
|
201
|
+
{
|
|
202
|
+
internalType: "contract ISuperComposableYield",
|
|
203
|
+
name: "",
|
|
204
|
+
type: "address",
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
stateMutability: "view",
|
|
208
|
+
type: "function",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
inputs: [],
|
|
212
|
+
name: "YT",
|
|
213
|
+
outputs: [
|
|
214
|
+
{
|
|
215
|
+
internalType: "contract IPYieldToken",
|
|
216
|
+
name: "",
|
|
217
|
+
type: "address",
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
stateMutability: "view",
|
|
221
|
+
type: "function",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
inputs: [
|
|
225
|
+
{
|
|
226
|
+
internalType: "uint256",
|
|
227
|
+
name: "netTokenIn",
|
|
228
|
+
type: "uint256",
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
name: "arbitrage",
|
|
232
|
+
outputs: [
|
|
233
|
+
{
|
|
234
|
+
internalType: "uint256",
|
|
235
|
+
name: "profit",
|
|
236
|
+
type: "uint256",
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
stateMutability: "nonpayable",
|
|
240
|
+
type: "function",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
inputs: [],
|
|
244
|
+
name: "baseToken",
|
|
245
|
+
outputs: [
|
|
246
|
+
{
|
|
247
|
+
internalType: "address",
|
|
248
|
+
name: "",
|
|
249
|
+
type: "address",
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
stateMutability: "view",
|
|
253
|
+
type: "function",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
inputs: [],
|
|
257
|
+
name: "batchSeller",
|
|
258
|
+
outputs: [
|
|
259
|
+
{
|
|
260
|
+
internalType: "address",
|
|
261
|
+
name: "",
|
|
262
|
+
type: "address",
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
stateMutability: "view",
|
|
266
|
+
type: "function",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
inputs: [],
|
|
270
|
+
name: "claimOwnership",
|
|
271
|
+
outputs: [],
|
|
272
|
+
stateMutability: "nonpayable",
|
|
273
|
+
type: "function",
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
inputs: [
|
|
277
|
+
{
|
|
278
|
+
internalType: "uint256",
|
|
279
|
+
name: "amount",
|
|
280
|
+
type: "uint256",
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
name: "fundBaseToken",
|
|
284
|
+
outputs: [],
|
|
285
|
+
stateMutability: "nonpayable",
|
|
286
|
+
type: "function",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
inputs: [],
|
|
290
|
+
name: "initialize",
|
|
291
|
+
outputs: [],
|
|
292
|
+
stateMutability: "nonpayable",
|
|
293
|
+
type: "function",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
inputs: [],
|
|
297
|
+
name: "market",
|
|
298
|
+
outputs: [
|
|
299
|
+
{
|
|
300
|
+
internalType: "address",
|
|
301
|
+
name: "",
|
|
302
|
+
type: "address",
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
stateMutability: "view",
|
|
306
|
+
type: "function",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
inputs: [],
|
|
310
|
+
name: "minProfit",
|
|
311
|
+
outputs: [
|
|
312
|
+
{
|
|
313
|
+
internalType: "uint256",
|
|
314
|
+
name: "",
|
|
315
|
+
type: "uint256",
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
stateMutability: "view",
|
|
319
|
+
type: "function",
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
inputs: [],
|
|
323
|
+
name: "owner",
|
|
324
|
+
outputs: [
|
|
325
|
+
{
|
|
326
|
+
internalType: "address",
|
|
327
|
+
name: "",
|
|
328
|
+
type: "address",
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
stateMutability: "view",
|
|
332
|
+
type: "function",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
inputs: [],
|
|
336
|
+
name: "pendingOwner",
|
|
337
|
+
outputs: [
|
|
338
|
+
{
|
|
339
|
+
internalType: "address",
|
|
340
|
+
name: "",
|
|
341
|
+
type: "address",
|
|
342
|
+
},
|
|
343
|
+
],
|
|
344
|
+
stateMutability: "view",
|
|
345
|
+
type: "function",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
inputs: [],
|
|
349
|
+
name: "proxiableUUID",
|
|
350
|
+
outputs: [
|
|
351
|
+
{
|
|
352
|
+
internalType: "bytes32",
|
|
353
|
+
name: "",
|
|
354
|
+
type: "bytes32",
|
|
355
|
+
},
|
|
356
|
+
],
|
|
357
|
+
stateMutability: "view",
|
|
358
|
+
type: "function",
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
inputs: [],
|
|
362
|
+
name: "router",
|
|
363
|
+
outputs: [
|
|
364
|
+
{
|
|
365
|
+
internalType: "address",
|
|
366
|
+
name: "",
|
|
367
|
+
type: "address",
|
|
368
|
+
},
|
|
369
|
+
],
|
|
370
|
+
stateMutability: "view",
|
|
371
|
+
type: "function",
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
inputs: [
|
|
375
|
+
{
|
|
376
|
+
internalType: "uint256",
|
|
377
|
+
name: "_minProfit",
|
|
378
|
+
type: "uint256",
|
|
379
|
+
},
|
|
380
|
+
],
|
|
381
|
+
name: "setMinProfit",
|
|
382
|
+
outputs: [],
|
|
383
|
+
stateMutability: "nonpayable",
|
|
384
|
+
type: "function",
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
inputs: [
|
|
388
|
+
{
|
|
389
|
+
internalType: "address",
|
|
390
|
+
name: "newOwner",
|
|
391
|
+
type: "address",
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
internalType: "bool",
|
|
395
|
+
name: "direct",
|
|
396
|
+
type: "bool",
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
internalType: "bool",
|
|
400
|
+
name: "renounce",
|
|
401
|
+
type: "bool",
|
|
402
|
+
},
|
|
403
|
+
],
|
|
404
|
+
name: "transferOwnership",
|
|
405
|
+
outputs: [],
|
|
406
|
+
stateMutability: "nonpayable",
|
|
407
|
+
type: "function",
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
inputs: [
|
|
411
|
+
{
|
|
412
|
+
internalType: "address",
|
|
413
|
+
name: "newImplementation",
|
|
414
|
+
type: "address",
|
|
415
|
+
},
|
|
416
|
+
],
|
|
417
|
+
name: "upgradeTo",
|
|
418
|
+
outputs: [],
|
|
419
|
+
stateMutability: "nonpayable",
|
|
420
|
+
type: "function",
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
inputs: [
|
|
424
|
+
{
|
|
425
|
+
internalType: "address",
|
|
426
|
+
name: "newImplementation",
|
|
427
|
+
type: "address",
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
internalType: "bytes",
|
|
431
|
+
name: "data",
|
|
432
|
+
type: "bytes",
|
|
433
|
+
},
|
|
434
|
+
],
|
|
435
|
+
name: "upgradeToAndCall",
|
|
436
|
+
outputs: [],
|
|
437
|
+
stateMutability: "payable",
|
|
438
|
+
type: "function",
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
inputs: [
|
|
442
|
+
{
|
|
443
|
+
internalType: "uint256",
|
|
444
|
+
name: "amount",
|
|
445
|
+
type: "uint256",
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
name: "withdrawBaseToken",
|
|
449
|
+
outputs: [],
|
|
450
|
+
stateMutability: "nonpayable",
|
|
451
|
+
type: "function",
|
|
452
|
+
},
|
|
453
|
+
];
|
|
454
|
+
|
|
455
|
+
const _bytecode =
|
|
456
|
+
"0x610180604052306080523480156200001657600080fd5b506040516200328038038062003280833981016040819052620000399162000277565b600154600160a81b900460ff166200005f57600154600160a01b900460ff161562000069565b6200006962000231565b620000d15760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600154600160a81b900460ff16158015620000fc576001805461ffff60a01b191661010160a01b1790555b6001600160a01b0380861660a05284811660c08190529084166101405260408051630b2339af60e21b81529051632c8ce6bc916004808201926060929091908290030181865afa15801562000155573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200017b9190620002df565b6001600160a01b03908116610120529081166101005290811660e05282811661016081905260405163095ea7b360e01b8152600481019190915260001960248201529084169063095ea7b3906044016020604051808303816000875af1158015620001ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000210919062000333565b50801562000226576001805460ff60a81b191690555b50505050506200035e565b600062000249306200024f60201b62000ed51760201c565b15905090565b6001600160a01b03163b151590565b6001600160a01b03811681146200027457600080fd5b50565b600080600080608085870312156200028e57600080fd5b84516200029b816200025e565b6020860151909450620002ae816200025e565b6040860151909350620002c1816200025e565b6060860151909250620002d4816200025e565b939692955090935050565b600080600060608486031215620002f557600080fd5b835162000302816200025e565b602085015190935062000315816200025e565b604085015190925062000328816200025e565b809150509250925092565b6000602082840312156200034657600080fd5b815180151581146200035757600080fd5b9392505050565b60805160a05160c05160e05161010051610120516101405161016051612e456200043b6000396000818161037f0152818161095b0152610c8b0152600081816102f70152818161053101528181610b1d01528181610de30152610ead01526000818161021a0152610a550152600061032b01526000818161016801528181610aee01528181610d510152610e1e01526000818161026e015281816109ce01528181610c510152610d24015260006103d3015260008181610565015281816105a5015281816106d50152818161071501526107910152612e456000f3fe6080604052600436106100ef5760003560e01c8063078dfbe7146100f45780632fd33ddb146101165780633659cfe61461013657806347bfac62146101565780634e71e0c8146101a75780634f1ef286146101bc57806352d1902d146101cf57806375c81ad0146101f2578063781c18db1461020857806378400f171461023c57806380f556051461025c5780638129fc1c146102905780638da5cb5b146102a5578063be2ee0be146102c5578063c55dae63146102e5578063d94073d414610319578063e30c39781461034d578063f121d1791461036d578063f3498721146103a1578063f887ea40146103c1575b600080fd5b34801561010057600080fd5b5061011461010f3660046127bd565b6103f5565b005b34801561012257600080fd5b50610114610131366004612808565b6104fa565b34801561014257600080fd5b50610114610151366004612821565b61055b565b34801561016257600080fd5b5061018a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101b357600080fd5b50610114610620565b6101146101ca3660046128ad565b6106cb565b3480156101db57600080fd5b506101e4610784565b60405190815260200161019e565b3480156101fe57600080fd5b506101e460325481565b34801561021457600080fd5b5061018a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561024857600080fd5b50610114610257366004612808565b610832565b34801561026857600080fd5b5061018a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561029c57600080fd5b50610114610861565b3480156102b157600080fd5b5060005461018a906001600160a01b031681565b3480156102d157600080fd5b506101e46102e0366004612808565b610938565b3480156102f157600080fd5b5061018a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561032557600080fd5b5061018a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561035957600080fd5b5060015461018a906001600160a01b031681565b34801561037957600080fd5b5061018a7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ad57600080fd5b506101146103bc366004612808565b610ea0565b3480156103cd57600080fd5b5061018a7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031633146104285760405162461bcd60e51b815260040161041f90612954565b60405180910390fd5b81156104d9576001600160a01b0383161515806104425750805b6104865760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b604482015260640161041f565b600080546040516001600160a01b0380871693921691600080516020612dc983398151915291a3600080546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b6000546001600160a01b031633146105245760405162461bcd60e51b815260040161041f90612954565b6105586001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383610ee4565b50565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036105a35760405162461bcd60e51b815260040161041f90612989565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166105d5610f3a565b6001600160a01b0316146105fb5760405162461bcd60e51b815260040161041f906129c3565b61060481610f56565b6040805160008082526020820190925261055891839190610f80565b6001546001600160a01b031633811461067b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e6572604482015260640161041f565b600080546040516001600160a01b0380851693921691600080516020612dc983398151915291a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036107135760405162461bcd60e51b815260040161041f90612989565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610745610f3a565b6001600160a01b03161461076b5760405162461bcd60e51b815260040161041f906129c3565b61077482610f56565b61078082826001610f80565b5050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461081f5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b606482015260840161041f565b50600080516020612da983398151915290565b6000546001600160a01b0316331461085c5760405162461bcd60e51b815260040161041f90612954565b603255565b600154600160a81b900460ff1661088557600154600160a01b900460ff161561088d565b61088d6110eb565b6108f05760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161041f565b600154600160a81b900460ff1615801561091a576001805461ffff60a01b191661010160a01b1790555b6109226110fc565b8015610558576001805460ff60a81b1916905550565b6040516364a25a6d60e11b81526004810182905260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c944b4da906024016020604051808303816000875af11580156109a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c891906129fd565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632778c3346040518163ffffffff1660e01b815260040161012060405180830381865afa158015610a2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4f9190612a21565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631d52edc46040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610ab3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad791906129fd565b90506000610ae78383864261117d565b50905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663cbe52ae37f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b8152600401610b5a929190612aa3565b602060405180830381865afa158015610b77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9b91906129fd565b905086811015610bde5760405162461bcd60e51b815260206004820152600e60248201526d185c988e881b9bc81c1c9bd99a5d60921b604482015260640161041f565b603254610beb8883612ad2565b1015610c385760405162461bcd60e51b815260206004820152601c60248201527b185c988e881b5a5b881c1c9bd99a5d081b9bdd081858da1a595d995960221b604482015260640161041f565b5050604051631fefcded60e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820187905260006044830181905294507f0000000000000000000000000000000000000000000000000000000000000000169250637fbf37b491506064016020604051808303816000875af1158015610cd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfa91906129fd565b604080516000808252602082019283905263d8e763c160e01b909252919250906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d8e763c190610d7c907f000000000000000000000000000000000000000000000000000000000000000090869060248101612b41565b60408051808303816000875af1158015610d9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbe9190612b68565b5060405163769f8e5d60e01b8152306004820152602481018290526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166044830152600060648301819052600160848401529293507f0000000000000000000000000000000000000000000000000000000000000000169063769f8e5d9060a4016020604051808303816000875af1158015610e67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8b91906129fd565b9050610e978582612ad2565b95945050505050565b6105586001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330846111bc565b6001600160a01b03163b151590565b6104f58363a9059cbb60e01b8484604051602401610f03929190612aa3565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526111fa565b600080516020612da9833981519152546001600160a01b031690565b6000546001600160a01b031633146105585760405162461bcd60e51b815260040161041f90612954565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615610fb3576104f5836112cc565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561100d575060408051601f3d908101601f1916820190925261100a918101906129fd565b60015b6110705760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161041f565b600080516020612da983398151915281146110df5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161041f565b506104f5838383611366565b60006110f630610ed5565b15905090565b600154600160a81b900460ff166111695760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840161041f565b600080546001600160a01b03191633179055565b60008060008061119788886111918961138b565b886113a8565b915091506111a482611470565b93506111af81611470565b9250505094509492505050565b6040516001600160a01b03808516602483015283166044820152606481018290526111f49085906323b872dd60e01b90608401610f03565b50505050565b600061124f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114839092919063ffffffff16565b8051909150156104f5578080602001905181019061126d9190612b8c565b6104f55760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161041f565b6112d581610ed5565b6113375760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161041f565b600080516020612da983398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61136f8361149c565b60008251118061137c5750805b156104f5576111f483836114dc565b600061139682611501565b6113a290600019612ba9565b92915050565b6000806113b98660c0015184101590565b156113d75760405163b2094b5960e01b815260040160405180910390fd5b85518412611405578551604051632185509b60e21b815260048101919091526024810185905260440161041f565b6000611412878786611517565b9050600080611422898489611618565b915091506000821261143d576114388883611728565b611447565b611447888361176c565b94506114538882611728565b935061146489848a8a89898c611799565b50505094509492505050565b60008082121561147f57600080fd5b5090565b6060611492848460008561182b565b90505b9392505050565b6114a5816112cc565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606114958383604051806060016040528060278152602001612de96027913961195a565b60006001600160ff1b0382111561147f57600080fd5b6115426040518060800160405280600081526020016000815260200160008152602001600081525090565b60c084015182106115665760405163b2094b5960e01b815260040160405180910390fd5b6000828560c001516115789190612ad2565b90506115848582611a35565b82526020850151611596908590611a91565b6020830152845115806115ab57506020820151155b156115d9578451602083015160405163b1c4aefb60e01b81526004810192909252602482015260440161041f565b6115f785600001518661010001518460200151856000015185611abe565b604083015260a085015161160b9082611b3f565b6060830152509392505050565b600080600061163a866000015186602001518760000151886040015188611b78565b9050600061165061164b8684611c35565b611c64565b606087015190915060008613156116bf57600061166d8483611c35565b9050670de0b6b3a764000081121561169b5760405163329e322960e21b81526004810182905260240161041f565b6116b76116b083670de0b6b3a7640000612c2e565b8490611c72565b9150506116ec565b6116e9816116d581670de0b6b3a7640000612c2e565b6116df9085612ba9565b61164b9190612c83565b90505b60646116fb8960e00151611501565b6117059083612ba9565b61170f9190612c83565b935061171b8183612c2e565b9450505050935093915050565b6000806000831261173a57600161173e565b6000195b905061175a6117558561175086611c90565b611ca7565b611501565b6117649082612ba9565b949350505050565b6000806000831261177e576001611782565b6000195b905061175a6117558561179486611c90565b611cc6565b6000818860c001516117ab9190612ad2565b88519091506117ba9086611cf2565b88526117d46117c98486612cb1565b60208a015190611cf2565b6020890181905288516117f9916117ec908990611a91565b895160408b015185611d39565b610100890181905260000361182157604051635534d70f60e11b815260040160405180910390fd5b5050505050505050565b60608247101561188c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161041f565b61189585610ed5565b6118e15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161041f565b600080866001600160a01b031685876040516118fd9190612cf2565b60006040518083038185875af1925050503d806000811461193a576040519150601f19603f3d011682016040523d82523d6000602084013e61193f565b606091505b509150915061194f828286611d91565b979650505050505050565b606061196584610ed5565b6119c05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840161041f565b600080856001600160a01b0316856040516119db9190612cf2565b600060405180830381855af49150503d8060008114611a16576040519150601f19603f3d011682016040523d82523d6000602084013e611a1b565b606091505b5091509150611a2b828286611d91565b9695505050505050565b6000611a4082611501565b611a526117556201518061016d612d0e565b8460800151611a619190612ba9565b611a6b9190612c83565b9050600081136113a257604051630e520c3b60e11b81526004810182905260240161041f565b60008060008312611aa3576001611aa7565b6000195b905061175a61175585611ab986611c90565b611dca565b600080611acb8684611b3f565b9050670de0b6b3a7640000811215611af95760405163329e322960e21b81526004810182905260240161041f565b6000611b0f611b08878a612cb1565b8990611c35565b90506000611b1c82611ddf565b9050611b288187611c35565b611b329084612c2e565b9998505050505050505050565b600080611b516201518061016d612d0e565b611b5b8486612d0e565b611b659190612d2d565b9050611764611b7382611501565b611e32565b600080611b858784611cf2565b90506000611b9d611b96888a612cb1565b8390611c35565b9050670d529ae9e8600000811315611bd957604051637e34684f60e11b815260048101829052670d529ae9e8600000602482015260440161041f565b6000611be482611ddf565b905085611bf18289611c35565b611bfb9190612cb1565b9350670de0b6b3a7640000841215611c295760405163329e322960e21b81526004810185905260240161041f565b50505095945050505050565b600080611c4a670de0b6b3a764000085612ba9565b9050828181611c5b57611c5b612c6d565b05949350505050565b60006113a282600019612ba9565b600080611c7f8385612ba9565b9050670de0b6b3a764000081611c5b565b600080821361147f57611ca282612d41565b6113a2565b600082611cbc670de0b6b3a764000084612d0e565b6114959190612d2d565b600082600181611cde670de0b6b3a764000086612d0e565b611ce89190612d5d565b611cbc9190612ad2565b600081831215611d2f5760405162461bcd60e51b81526020600482015260086024820152676e6567617469766560c01b604482015260640161041f565b6114958284612c2e565b600080611d4a878787876000611b78565b90506000611d5f611d5a83612247565b611470565b905083611d716201518061016d612d0e565b611d7b9083612d0e565b611d859190612d2d565b98975050505050505050565b60608315611da0575081611495565b825115611db05782518084602001fd5b8160405162461bcd60e51b815260040161041f9190612d75565b6000670de0b6b3a7640000611cbc8484612d0e565b6000670de0b6b3a76400008203611e095760405163a9c8b14d60e01b815260040160405180910390fd5b6000611e27611e2084670de0b6b3a7640000612c2e565b8490611c35565b905061149581612247565b6000680238fd42c5cf03ffff198212158015611e57575068070c1cc73b00c800008213155b611e965760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b604482015260640161041f565b6000821215611ece57611eab82600003611e32565b6a0c097ce7bc90715b34b9f160241b81611ec757611ec7612c6d565b0592915050565b60006806f05b59d3b20000008312611f0c57506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b611f42565b6803782dace9d90000008312611f3e57506803782dace9d8ffffff19909101906b1425982cf597cd205cef7380611f42565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac620000008412611f925768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412611fce576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b18800000841261200857682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008412612042576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac6200000841261207b57680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126120b45768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b188000084126120ed576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126121265768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b60008082136122885760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b604482015260640161041f565b670c7d713b49da0000821380156122a65750670f43fc2c04ee000082125b156122ca57670de0b6b3a76400006122bd836122d8565b81611ec757611ec7612c6d565b6113a2826123f7565b919050565b670de0b6b3a7640000026000806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff198501028161231957612319612c6d565b05905060006a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b6000670de0b6b3a76400008212156124385761242f826a0c097ce7bc90715b34b9f160241b8161242957612429612c6d565b056123f7565b60000392915050565b6000775803bcc5cb9634ba4cfb2213f784019318ed4dcb6017880f60361b83126124835772195e54c5dd42177f53a27172fa9ec63026282760241b830592506806f05b59d3b2000000015b6f8bcc0026baae9e45e470190267a230cf60191b83126124ba576b1425982cf597cd205cef7380830592506803782dace9d9000000015b606492830292026e01855144814a7ff805980ff00840008312612502576e01855144814a7ff805980ff008400068056bc75e2d63100000840205925068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a700831261253d576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000084020592506856bc75e2d631000000015b693f1fce3da636ea5cf850831261257457693f1fce3da636ea5cf85068056bc75e2d631000008402059250682b5e3af16b18800000015b690127fa27722cc06cc5e283126125ab57690127fa27722cc06cc5e268056bc75e2d6310000084020592506815af1d78b58c400000015b68280e60114edb805d0383126125e05768280e60114edb805d0368056bc75e2d631000008402059250680ad78ebc5ac6200000015b680ebc5fb41746121110831261260b57680ebc5fb4174612111068056bc75e2d631000009384020592015b6808f00f760a4b2db55d8312612640576808f00f760a4b2db55d68056bc75e2d6310000084020592506802b5e3af16b1880000015b6806f5f17757889379378312612675576806f5f177578893793768056bc75e2d63100000840205925068015af1d78b58c40000015b6806248f33704b28660383126126a9576806248f33704b28660368056bc75e2d63100000840205925067ad78ebc5ac620000015b6805c548670b9510e7ac83126126dd576805c548670b9510e7ac68056bc75e2d6310000084020592506756bc75e2d6310000015b600068056bc75e2d63100000840168056bc75e2d63100000808603028161270657612706612c6d565b059050600068056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b820501600202606485820105979650505050505050565b6001600160a01b038116811461055857600080fd5b801515811461055857600080fd5b6000806000606084860312156127d257600080fd5b83356127dd8161279a565b925060208401356127ed816127af565b915060408401356127fd816127af565b809150509250925092565b60006020828403121561281a57600080fd5b5035919050565b60006020828403121561283357600080fd5b81356114958161279a565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b03811182821017156128775761287761283e565b60405290565b604051601f8201601f191681016001600160401b03811182821017156128a5576128a561283e565b604052919050565b600080604083850312156128c057600080fd5b82356128cb8161279a565b91506020838101356001600160401b03808211156128e857600080fd5b818601915086601f8301126128fc57600080fd5b81358181111561290e5761290e61283e565b612920601f8201601f1916850161287d565b9150808252878482850101111561293657600080fd5b80848401858401376000848284010152508093505050509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602c90820152600080516020612d8983398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c90820152600080516020612d8983398151915260408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215612a0f57600080fd5b5051919050565b80516122d38161279a565b60006101208284031215612a3457600080fd5b612a3c612854565b825181526020830151602082015260408301516040820152612a6060608401612a16565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152508091505092915050565b6001600160a01b03929092168252602082015260400190565b634e487b7160e01b600052601160045260246000fd5b600082821015612ae457612ae4612abc565b500390565b60005b83811015612b04578181015183820152602001612aec565b838111156111f45750506000910152565b60008151808452612b2d816020860160208601612ae9565b601f01601f19169290920160200192915050565b60018060a01b0384168152826020820152606060408201526000610e976060830184612b15565b60008060408385031215612b7b57600080fd5b505080516020909101519092909150565b600060208284031215612b9e57600080fd5b8151611495816127af565b60006001600160ff1b0381841382841380821686840486111615612bcf57612bcf612abc565b600160ff1b6000871282811687830589121615612bee57612bee612abc565b60008712925087820587128484161615612c0a57612c0a612abc565b87850587128184161615612c2057612c20612abc565b505050929093029392505050565b60008083128015600160ff1b850184121615612c4c57612c4c612abc565b6001600160ff1b0384018313811615612c6757612c67612abc565b50500390565b634e487b7160e01b600052601260045260246000fd5b600082612c9257612c92612c6d565b600160ff1b821460001984141615612cac57612cac612abc565b500590565b600080821280156001600160ff1b0384900385131615612cd357612cd3612abc565b600160ff1b8390038412811615612cec57612cec612abc565b50500190565b60008251612d04818460208701612ae9565b9190910192915050565b6000816000190483118215151615612d2857612d28612abc565b500290565b600082612d3c57612d3c612c6d565b500490565b6000600160ff1b8201612d5657612d56612abc565b5060000390565b60008219821115612d7057612d70612abc565b500190565b6020815260006114956020830184612b1556fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201ce2b4491e468d8abef11a769692d12fe46f2334958df332e59fb38e391c0ce864736f6c634300080f0033";
|
|
457
|
+
|
|
458
|
+
type PtAMMArbConstructorParams =
|
|
459
|
+
| [signer?: Signer]
|
|
460
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
461
|
+
|
|
462
|
+
const isSuperArgs = (
|
|
463
|
+
xs: PtAMMArbConstructorParams
|
|
464
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
465
|
+
|
|
466
|
+
export class PtAMMArb__factory extends ContractFactory {
|
|
467
|
+
constructor(...args: PtAMMArbConstructorParams) {
|
|
468
|
+
if (isSuperArgs(args)) {
|
|
469
|
+
super(...args);
|
|
470
|
+
} else {
|
|
471
|
+
super(_abi, _bytecode, args[0]);
|
|
472
|
+
}
|
|
473
|
+
this.contractName = "PtAMMArb";
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
deploy(
|
|
477
|
+
_router: string,
|
|
478
|
+
_market: string,
|
|
479
|
+
_baseToken: string,
|
|
480
|
+
_batchSeller: string,
|
|
481
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
482
|
+
): Promise<PtAMMArb> {
|
|
483
|
+
return super.deploy(
|
|
484
|
+
_router,
|
|
485
|
+
_market,
|
|
486
|
+
_baseToken,
|
|
487
|
+
_batchSeller,
|
|
488
|
+
overrides || {}
|
|
489
|
+
) as Promise<PtAMMArb>;
|
|
490
|
+
}
|
|
491
|
+
getDeployTransaction(
|
|
492
|
+
_router: string,
|
|
493
|
+
_market: string,
|
|
494
|
+
_baseToken: string,
|
|
495
|
+
_batchSeller: string,
|
|
496
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
497
|
+
): TransactionRequest {
|
|
498
|
+
return super.getDeployTransaction(
|
|
499
|
+
_router,
|
|
500
|
+
_market,
|
|
501
|
+
_baseToken,
|
|
502
|
+
_batchSeller,
|
|
503
|
+
overrides || {}
|
|
504
|
+
);
|
|
505
|
+
}
|
|
506
|
+
attach(address: string): PtAMMArb {
|
|
507
|
+
return super.attach(address) as PtAMMArb;
|
|
508
|
+
}
|
|
509
|
+
connect(signer: Signer): PtAMMArb__factory {
|
|
510
|
+
return super.connect(signer) as PtAMMArb__factory;
|
|
511
|
+
}
|
|
512
|
+
static readonly contractName: "PtAMMArb";
|
|
513
|
+
public readonly contractName: "PtAMMArb";
|
|
514
|
+
static readonly bytecode = _bytecode;
|
|
515
|
+
static readonly abi = _abi;
|
|
516
|
+
static createInterface(): PtAMMArbInterface {
|
|
517
|
+
return new utils.Interface(_abi) as PtAMMArbInterface;
|
|
518
|
+
}
|
|
519
|
+
static connect(
|
|
520
|
+
address: string,
|
|
521
|
+
signerOrProvider: Signer | Provider
|
|
522
|
+
): PtAMMArb {
|
|
523
|
+
return new Contract(address, _abi, signerOrProvider) as PtAMMArb;
|
|
524
|
+
}
|
|
525
|
+
}
|