@pendle/core-v2 2.17.0 → 2.17.2-tradingbot
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/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.json +638 -0
- package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.json +638 -0
- package/build/artifacts/contracts/core/TradingBot/BotDecisionLib.sol/BotDecisionLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/BotDecisionLib.sol/BotDecisionLib.json +567 -0
- package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.json +10 -0
- package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.json +1882 -0
- package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.json +24 -0
- package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.json +588 -0
- package/build/artifacts/contracts/core/TradingBot/TradingBotOffchain.sol/TradingBotOffchain.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/TradingBotOffchain.sol/TradingBotOffchain.json +1053 -0
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +151 -2
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.json +10 -0
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IERC4626LinearPool.sol/IERC4626LinearPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotFactory.sol/ICamelotFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTFactory.sol/ICamelotNFTFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTHandler.sol/ICamelotNFTHandler.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotRouter.sol/ICamelotRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotYieldBooster.sol/ICamelotYieldBooster.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/IXGrail.sol/IXGrail.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ITriCrvPool.sol/ITriCrvPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Frax/IFrxEthMinter.sol/IFrxEthMinter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILooksFeeSharing.sol/ILooksFeeSharing.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILooksStaking.sol/ILooksStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPtOracle.sol/IPPtOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.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/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateLP.sol/IStargateLP.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateStaking.sol/IStargateStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +884 -0
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +390 -0
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.json +10 -0
- package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.json +166 -0
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.json +2 -2
- package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +2 -2
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IHashflow.sol/IHashflow.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberInputScalingHelper.sol/KyberInputScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
- package/contracts/core/TradingBot/BotActionCallback.sol +112 -0
- package/contracts/core/TradingBot/BotActionHelper.sol +138 -0
- package/contracts/core/TradingBot/BotDecisionLib.sol +272 -0
- package/contracts/core/TradingBot/BotSimulationLib.sol +115 -0
- package/contracts/core/TradingBot/LongYieldTradingBot.sol +154 -0
- package/contracts/core/TradingBot/MarketExtLib.sol +246 -0
- package/contracts/core/TradingBot/README.md +151 -0
- package/contracts/core/TradingBot/TradingBotBase.sol +131 -0
- package/contracts/core/TradingBot/TradingBotOffchain.sol +137 -0
- package/contracts/core/libraries/Errors.sol +12 -0
- package/contracts/core/libraries/TokenAmountLib.sol +47 -0
- package/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol +89 -0
- package/contracts/interfaces/TradingBot/ITradingBotBase.sol +43 -0
- package/contracts/offchain-helpers/BoringLpSeller.sol +47 -0
- package/contracts/oracles/samples/PendleLpGlpOracle.sol +49 -0
- package/package.json +1 -1
- package/typechain-types/BotActionCallback.ts +727 -0
- package/typechain-types/BotActionHelper.ts +727 -0
- package/typechain-types/BotDecisionLib.ts +330 -0
- package/typechain-types/CamelotV1LpHelper.ts +203 -0
- package/typechain-types/CamelotV1Preview.ts +431 -0
- package/typechain-types/ICamelotSY.ts +100 -0
- package/typechain-types/ILongYieldTradingBot.ts +652 -0
- package/typechain-types/IPendlePreviewHelper.ts +147 -0
- package/typechain-types/IThenaFactory.ts +245 -0
- package/typechain-types/IThenaGaugeV2.ts +206 -0
- package/typechain-types/IThenaPair.ts +579 -0
- package/typechain-types/IThenaRouter.ts +313 -0
- package/typechain-types/IThenaSY.ts +81 -0
- package/typechain-types/ITradingBotBase.ts +447 -0
- package/typechain-types/LongYieldTradingBot.ts +1520 -0
- package/typechain-types/MarketExtLib.ts +81 -0
- package/typechain-types/PendleArbitrumStakedEthSY.ts +1222 -0
- package/typechain-types/PendleCamelotV1SY.ts +1961 -0
- package/typechain-types/PendleLpGlpOracle.ts +145 -0
- package/typechain-types/PendleThenaSY.ts +1445 -0
- package/typechain-types/ThenaLpHelper.ts +172 -0
- package/typechain-types/ThenaPreview.ts +431 -0
- package/typechain-types/TradingBotBase.ts +683 -0
- package/typechain-types/TradingBotOffchain.ts +563 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/BotActionCallback__factory.ts +653 -0
- package/typechain-types/factories/BotActionHelper__factory.ts +653 -0
- package/typechain-types/factories/BotDecisionLib__factory.ts +620 -0
- package/typechain-types/factories/Broadcaster__factory.ts +1 -1
- package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
- package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
- package/typechain-types/factories/BulkSeller__factory.ts +1 -1
- package/typechain-types/factories/CamelotV1LpHelper__factory.ts +143 -0
- package/typechain-types/factories/CamelotV1Preview__factory.ts +309 -0
- package/typechain-types/factories/Errors__factory.ts +150 -1
- package/typechain-types/factories/ICamelotSY__factory.ts +49 -0
- package/typechain-types/factories/ILongYieldTradingBot__factory.ts +903 -0
- package/typechain-types/factories/IPendlePreviewHelper__factory.ts +78 -0
- package/typechain-types/factories/IThenaFactory__factory.ts +164 -0
- package/typechain-types/factories/IThenaGaugeV2__factory.ts +83 -0
- package/typechain-types/factories/IThenaPair__factory.ts +421 -0
- package/typechain-types/factories/IThenaRouter__factory.ts +200 -0
- package/typechain-types/factories/IThenaSY__factory.ts +36 -0
- package/typechain-types/factories/ITradingBotBase__factory.ts +405 -0
- package/typechain-types/factories/LongYieldTradingBot__factory.ts +1951 -0
- package/typechain-types/factories/MarketExtLib__factory.ts +74 -0
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleArbitrumStakedEthSY__factory.ts +1068 -0
- package/typechain-types/factories/PendleAuraBbAWethSwethSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +1 -1
- package/typechain-types/factories/PendleCamelotV1SY__factory.ts +1595 -0
- package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +1 -1
- package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
- package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
- package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
- package/typechain-types/factories/PendleLpGlpOracle__factory.ts +246 -0
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
- package/typechain-types/factories/PendlePtOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleStargateLPSY__factory.ts +1 -1
- package/typechain-types/factories/PendleThenaSY__factory.ts +1268 -0
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/SAPE__factory.ts +1 -1
- package/typechain-types/factories/ThenaLpHelper__factory.ts +127 -0
- package/typechain-types/factories/ThenaPreview__factory.ts +306 -0
- package/typechain-types/factories/TradingBotBase__factory.ts +603 -0
- package/typechain-types/factories/TradingBotOffchain__factory.ts +1111 -0
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +90 -108
- package/typechain-types/index.ts +22 -14
|
@@ -0,0 +1,1951 @@
|
|
|
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 {
|
|
7
|
+
LongYieldTradingBot,
|
|
8
|
+
LongYieldTradingBotInterface,
|
|
9
|
+
} from "../LongYieldTradingBot";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "address",
|
|
16
|
+
name: "_market",
|
|
17
|
+
type: "address",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "_PENDLE",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "_decisionLib",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
stateMutability: "nonpayable",
|
|
31
|
+
type: "constructor",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
inputs: [],
|
|
35
|
+
name: "ApproxFail",
|
|
36
|
+
type: "error",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
inputs: [
|
|
40
|
+
{
|
|
41
|
+
internalType: "uint256",
|
|
42
|
+
name: "guessMin",
|
|
43
|
+
type: "uint256",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
internalType: "uint256",
|
|
47
|
+
name: "guessMax",
|
|
48
|
+
type: "uint256",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
internalType: "uint256",
|
|
52
|
+
name: "eps",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
name: "ApproxParamsInvalid",
|
|
57
|
+
type: "error",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
inputs: [
|
|
61
|
+
{
|
|
62
|
+
internalType: "address",
|
|
63
|
+
name: "caller",
|
|
64
|
+
type: "address",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
name: "BotCallbackNotMarket",
|
|
68
|
+
type: "error",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
inputs: [
|
|
72
|
+
{
|
|
73
|
+
internalType: "uint256",
|
|
74
|
+
name: "actualLpToRemove",
|
|
75
|
+
type: "uint256",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
internalType: "uint256",
|
|
79
|
+
name: "limitLpToRemove",
|
|
80
|
+
type: "uint256",
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
name: "BotExceededLimitLpToRemove",
|
|
84
|
+
type: "error",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
inputs: [
|
|
88
|
+
{
|
|
89
|
+
internalType: "uint256",
|
|
90
|
+
name: "actualSyIn",
|
|
91
|
+
type: "uint256",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
internalType: "uint256",
|
|
95
|
+
name: "limitSyIn",
|
|
96
|
+
type: "uint256",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
name: "BotExceededLimitSyIn",
|
|
100
|
+
type: "error",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
inputs: [
|
|
104
|
+
{
|
|
105
|
+
internalType: "uint256",
|
|
106
|
+
name: "actualYtIn",
|
|
107
|
+
type: "uint256",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
internalType: "uint256",
|
|
111
|
+
name: "limitYtIn",
|
|
112
|
+
type: "uint256",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
name: "BotExceededLimitYtIn",
|
|
116
|
+
type: "error",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [
|
|
120
|
+
{
|
|
121
|
+
internalType: "uint256",
|
|
122
|
+
name: "actualLpOut",
|
|
123
|
+
type: "uint256",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
internalType: "uint256",
|
|
127
|
+
name: "requiredLpOut",
|
|
128
|
+
type: "uint256",
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
name: "BotInsufficientLpOut",
|
|
132
|
+
type: "error",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
inputs: [
|
|
136
|
+
{
|
|
137
|
+
internalType: "uint256",
|
|
138
|
+
name: "actualSyOut",
|
|
139
|
+
type: "uint256",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
internalType: "uint256",
|
|
143
|
+
name: "requiredSyOut",
|
|
144
|
+
type: "uint256",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
name: "BotInsufficientSyOut",
|
|
148
|
+
type: "error",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
inputs: [
|
|
152
|
+
{
|
|
153
|
+
internalType: "uint256",
|
|
154
|
+
name: "actualYtOut",
|
|
155
|
+
type: "uint256",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
internalType: "uint256",
|
|
159
|
+
name: "requiredYtOut",
|
|
160
|
+
type: "uint256",
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
name: "BotInsufficientYtOut",
|
|
164
|
+
type: "error",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
inputs: [
|
|
168
|
+
{
|
|
169
|
+
internalType: "int256",
|
|
170
|
+
name: "exchangeRate",
|
|
171
|
+
type: "int256",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
name: "MarketExchangeRateBelowOne",
|
|
175
|
+
type: "error",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
inputs: [],
|
|
179
|
+
name: "MarketExpired",
|
|
180
|
+
type: "error",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
inputs: [
|
|
184
|
+
{
|
|
185
|
+
internalType: "int256",
|
|
186
|
+
name: "currentAmount",
|
|
187
|
+
type: "int256",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
internalType: "int256",
|
|
191
|
+
name: "requiredAmount",
|
|
192
|
+
type: "int256",
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
name: "MarketInsufficientPtForTrade",
|
|
196
|
+
type: "error",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
inputs: [],
|
|
200
|
+
name: "MarketProportionMustNotEqualOne",
|
|
201
|
+
type: "error",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
inputs: [
|
|
205
|
+
{
|
|
206
|
+
internalType: "int256",
|
|
207
|
+
name: "proportion",
|
|
208
|
+
type: "int256",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
internalType: "int256",
|
|
212
|
+
name: "maxProportion",
|
|
213
|
+
type: "int256",
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
name: "MarketProportionTooHigh",
|
|
217
|
+
type: "error",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
inputs: [
|
|
221
|
+
{
|
|
222
|
+
internalType: "int256",
|
|
223
|
+
name: "rateScalar",
|
|
224
|
+
type: "int256",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
name: "MarketRateScalarBelowZero",
|
|
228
|
+
type: "error",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
inputs: [],
|
|
232
|
+
name: "MarketZeroAmountsInput",
|
|
233
|
+
type: "error",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
inputs: [],
|
|
237
|
+
name: "MarketZeroAmountsOutput",
|
|
238
|
+
type: "error",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
inputs: [],
|
|
242
|
+
name: "MarketZeroLnImpliedRate",
|
|
243
|
+
type: "error",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
inputs: [
|
|
247
|
+
{
|
|
248
|
+
internalType: "int256",
|
|
249
|
+
name: "totalPt",
|
|
250
|
+
type: "int256",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
internalType: "int256",
|
|
254
|
+
name: "totalAsset",
|
|
255
|
+
type: "int256",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
name: "MarketZeroTotalPtOrTotalAsset",
|
|
259
|
+
type: "error",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
anonymous: false,
|
|
263
|
+
inputs: [
|
|
264
|
+
{
|
|
265
|
+
components: [
|
|
266
|
+
{
|
|
267
|
+
internalType: "enum StrategyFlag",
|
|
268
|
+
name: "iyFlag",
|
|
269
|
+
type: "uint8",
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
internalType: "enum StrategyFlag",
|
|
273
|
+
name: "syRatioFlag",
|
|
274
|
+
type: "uint8",
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
indexed: false,
|
|
278
|
+
internalType: "struct StrategyState",
|
|
279
|
+
name: "state",
|
|
280
|
+
type: "tuple",
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
components: [
|
|
284
|
+
{
|
|
285
|
+
internalType: "uint256",
|
|
286
|
+
name: "guessMin",
|
|
287
|
+
type: "uint256",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
internalType: "uint256",
|
|
291
|
+
name: "guessMax",
|
|
292
|
+
type: "uint256",
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
internalType: "uint256",
|
|
296
|
+
name: "guessOffchain",
|
|
297
|
+
type: "uint256",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
internalType: "uint256",
|
|
301
|
+
name: "maxIteration",
|
|
302
|
+
type: "uint256",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
internalType: "uint256",
|
|
306
|
+
name: "eps",
|
|
307
|
+
type: "uint256",
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
indexed: false,
|
|
311
|
+
internalType: "struct ApproxParams",
|
|
312
|
+
name: "botParams",
|
|
313
|
+
type: "tuple",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
indexed: false,
|
|
317
|
+
internalType: "uint256",
|
|
318
|
+
name: "maxSyIn",
|
|
319
|
+
type: "uint256",
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
indexed: false,
|
|
323
|
+
internalType: "uint256",
|
|
324
|
+
name: "netSyIn",
|
|
325
|
+
type: "uint256",
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
indexed: false,
|
|
329
|
+
internalType: "uint256",
|
|
330
|
+
name: "netLpOut",
|
|
331
|
+
type: "uint256",
|
|
332
|
+
},
|
|
333
|
+
],
|
|
334
|
+
name: "AddLiqFromSy",
|
|
335
|
+
type: "event",
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
anonymous: false,
|
|
339
|
+
inputs: [
|
|
340
|
+
{
|
|
341
|
+
components: [
|
|
342
|
+
{
|
|
343
|
+
internalType: "enum StrategyFlag",
|
|
344
|
+
name: "iyFlag",
|
|
345
|
+
type: "uint8",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
internalType: "enum StrategyFlag",
|
|
349
|
+
name: "syRatioFlag",
|
|
350
|
+
type: "uint8",
|
|
351
|
+
},
|
|
352
|
+
],
|
|
353
|
+
indexed: false,
|
|
354
|
+
internalType: "struct StrategyState",
|
|
355
|
+
name: "state",
|
|
356
|
+
type: "tuple",
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
components: [
|
|
360
|
+
{
|
|
361
|
+
internalType: "uint256",
|
|
362
|
+
name: "guessMin",
|
|
363
|
+
type: "uint256",
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
internalType: "uint256",
|
|
367
|
+
name: "guessMax",
|
|
368
|
+
type: "uint256",
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
internalType: "uint256",
|
|
372
|
+
name: "guessOffchain",
|
|
373
|
+
type: "uint256",
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
internalType: "uint256",
|
|
377
|
+
name: "maxIteration",
|
|
378
|
+
type: "uint256",
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
internalType: "uint256",
|
|
382
|
+
name: "eps",
|
|
383
|
+
type: "uint256",
|
|
384
|
+
},
|
|
385
|
+
],
|
|
386
|
+
indexed: false,
|
|
387
|
+
internalType: "struct ApproxParams",
|
|
388
|
+
name: "botParams",
|
|
389
|
+
type: "tuple",
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
indexed: false,
|
|
393
|
+
internalType: "uint256",
|
|
394
|
+
name: "maxYtIn",
|
|
395
|
+
type: "uint256",
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
indexed: false,
|
|
399
|
+
internalType: "uint256",
|
|
400
|
+
name: "netYtIn",
|
|
401
|
+
type: "uint256",
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
indexed: false,
|
|
405
|
+
internalType: "uint256",
|
|
406
|
+
name: "netLpOut",
|
|
407
|
+
type: "uint256",
|
|
408
|
+
},
|
|
409
|
+
],
|
|
410
|
+
name: "AddLiqFromYt",
|
|
411
|
+
type: "event",
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
anonymous: false,
|
|
415
|
+
inputs: [
|
|
416
|
+
{
|
|
417
|
+
components: [
|
|
418
|
+
{
|
|
419
|
+
internalType: "enum StrategyFlag",
|
|
420
|
+
name: "iyFlag",
|
|
421
|
+
type: "uint8",
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
internalType: "enum StrategyFlag",
|
|
425
|
+
name: "syRatioFlag",
|
|
426
|
+
type: "uint8",
|
|
427
|
+
},
|
|
428
|
+
],
|
|
429
|
+
indexed: false,
|
|
430
|
+
internalType: "struct StrategyState",
|
|
431
|
+
name: "state",
|
|
432
|
+
type: "tuple",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
components: [
|
|
436
|
+
{
|
|
437
|
+
internalType: "uint256",
|
|
438
|
+
name: "guessMin",
|
|
439
|
+
type: "uint256",
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
internalType: "uint256",
|
|
443
|
+
name: "guessMax",
|
|
444
|
+
type: "uint256",
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
internalType: "uint256",
|
|
448
|
+
name: "guessOffchain",
|
|
449
|
+
type: "uint256",
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
internalType: "uint256",
|
|
453
|
+
name: "maxIteration",
|
|
454
|
+
type: "uint256",
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
internalType: "uint256",
|
|
458
|
+
name: "eps",
|
|
459
|
+
type: "uint256",
|
|
460
|
+
},
|
|
461
|
+
],
|
|
462
|
+
indexed: false,
|
|
463
|
+
internalType: "struct ApproxParams",
|
|
464
|
+
name: "botParams",
|
|
465
|
+
type: "tuple",
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
indexed: false,
|
|
469
|
+
internalType: "uint256",
|
|
470
|
+
name: "maxSyIn",
|
|
471
|
+
type: "uint256",
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
indexed: false,
|
|
475
|
+
internalType: "uint256",
|
|
476
|
+
name: "netSyIn",
|
|
477
|
+
type: "uint256",
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
indexed: false,
|
|
481
|
+
internalType: "uint256",
|
|
482
|
+
name: "netLpOut",
|
|
483
|
+
type: "uint256",
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
indexed: false,
|
|
487
|
+
internalType: "uint256",
|
|
488
|
+
name: "netYtOut",
|
|
489
|
+
type: "uint256",
|
|
490
|
+
},
|
|
491
|
+
],
|
|
492
|
+
name: "AddLiqKeepYt",
|
|
493
|
+
type: "event",
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
anonymous: false,
|
|
497
|
+
inputs: [
|
|
498
|
+
{
|
|
499
|
+
indexed: false,
|
|
500
|
+
internalType: "address",
|
|
501
|
+
name: "previousAdmin",
|
|
502
|
+
type: "address",
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
indexed: false,
|
|
506
|
+
internalType: "address",
|
|
507
|
+
name: "newAdmin",
|
|
508
|
+
type: "address",
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
name: "AdminChanged",
|
|
512
|
+
type: "event",
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
anonymous: false,
|
|
516
|
+
inputs: [
|
|
517
|
+
{
|
|
518
|
+
indexed: true,
|
|
519
|
+
internalType: "address",
|
|
520
|
+
name: "beacon",
|
|
521
|
+
type: "address",
|
|
522
|
+
},
|
|
523
|
+
],
|
|
524
|
+
name: "BeaconUpgraded",
|
|
525
|
+
type: "event",
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
anonymous: false,
|
|
529
|
+
inputs: [
|
|
530
|
+
{
|
|
531
|
+
indexed: false,
|
|
532
|
+
internalType: "uint256",
|
|
533
|
+
name: "netSyOut",
|
|
534
|
+
type: "uint256",
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
indexed: false,
|
|
538
|
+
internalType: "uint256",
|
|
539
|
+
name: "netPendleOut",
|
|
540
|
+
type: "uint256",
|
|
541
|
+
},
|
|
542
|
+
],
|
|
543
|
+
name: "ClaimAndCompound",
|
|
544
|
+
type: "event",
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
anonymous: false,
|
|
548
|
+
inputs: [
|
|
549
|
+
{
|
|
550
|
+
indexed: false,
|
|
551
|
+
internalType: "uint256",
|
|
552
|
+
name: "netSyIn",
|
|
553
|
+
type: "uint256",
|
|
554
|
+
},
|
|
555
|
+
],
|
|
556
|
+
name: "DepositSy",
|
|
557
|
+
type: "event",
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
anonymous: false,
|
|
561
|
+
inputs: [
|
|
562
|
+
{
|
|
563
|
+
indexed: true,
|
|
564
|
+
internalType: "address",
|
|
565
|
+
name: "token",
|
|
566
|
+
type: "address",
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
indexed: false,
|
|
570
|
+
internalType: "uint256",
|
|
571
|
+
name: "netTokenIn",
|
|
572
|
+
type: "uint256",
|
|
573
|
+
},
|
|
574
|
+
],
|
|
575
|
+
name: "DepositToken",
|
|
576
|
+
type: "event",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
anonymous: false,
|
|
580
|
+
inputs: [
|
|
581
|
+
{
|
|
582
|
+
indexed: false,
|
|
583
|
+
internalType: "uint8",
|
|
584
|
+
name: "version",
|
|
585
|
+
type: "uint8",
|
|
586
|
+
},
|
|
587
|
+
],
|
|
588
|
+
name: "Initialized",
|
|
589
|
+
type: "event",
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
anonymous: false,
|
|
593
|
+
inputs: [
|
|
594
|
+
{
|
|
595
|
+
indexed: true,
|
|
596
|
+
internalType: "address",
|
|
597
|
+
name: "previousOwner",
|
|
598
|
+
type: "address",
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
indexed: true,
|
|
602
|
+
internalType: "address",
|
|
603
|
+
name: "newOwner",
|
|
604
|
+
type: "address",
|
|
605
|
+
},
|
|
606
|
+
],
|
|
607
|
+
name: "OwnershipTransferred",
|
|
608
|
+
type: "event",
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
anonymous: false,
|
|
612
|
+
inputs: [
|
|
613
|
+
{
|
|
614
|
+
components: [
|
|
615
|
+
{
|
|
616
|
+
internalType: "enum StrategyFlag",
|
|
617
|
+
name: "iyFlag",
|
|
618
|
+
type: "uint8",
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
internalType: "enum StrategyFlag",
|
|
622
|
+
name: "syRatioFlag",
|
|
623
|
+
type: "uint8",
|
|
624
|
+
},
|
|
625
|
+
],
|
|
626
|
+
indexed: false,
|
|
627
|
+
internalType: "struct StrategyState",
|
|
628
|
+
name: "state",
|
|
629
|
+
type: "tuple",
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
components: [
|
|
633
|
+
{
|
|
634
|
+
internalType: "uint256",
|
|
635
|
+
name: "guessMin",
|
|
636
|
+
type: "uint256",
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
internalType: "uint256",
|
|
640
|
+
name: "guessMax",
|
|
641
|
+
type: "uint256",
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
internalType: "uint256",
|
|
645
|
+
name: "guessOffchain",
|
|
646
|
+
type: "uint256",
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
internalType: "uint256",
|
|
650
|
+
name: "maxIteration",
|
|
651
|
+
type: "uint256",
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
internalType: "uint256",
|
|
655
|
+
name: "eps",
|
|
656
|
+
type: "uint256",
|
|
657
|
+
},
|
|
658
|
+
],
|
|
659
|
+
indexed: false,
|
|
660
|
+
internalType: "struct ApproxParams",
|
|
661
|
+
name: "botParams",
|
|
662
|
+
type: "tuple",
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
indexed: false,
|
|
666
|
+
internalType: "uint256",
|
|
667
|
+
name: "maxLpRemoved",
|
|
668
|
+
type: "uint256",
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
indexed: false,
|
|
672
|
+
internalType: "uint256",
|
|
673
|
+
name: "netLpIn",
|
|
674
|
+
type: "uint256",
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
indexed: false,
|
|
678
|
+
internalType: "uint256",
|
|
679
|
+
name: "netYtOut",
|
|
680
|
+
type: "uint256",
|
|
681
|
+
},
|
|
682
|
+
],
|
|
683
|
+
name: "RemoveLiqToYt",
|
|
684
|
+
type: "event",
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
anonymous: false,
|
|
688
|
+
inputs: [
|
|
689
|
+
{
|
|
690
|
+
components: [
|
|
691
|
+
{
|
|
692
|
+
internalType: "enum StrategyFlag",
|
|
693
|
+
name: "iyFlag",
|
|
694
|
+
type: "uint8",
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
internalType: "enum StrategyFlag",
|
|
698
|
+
name: "syRatioFlag",
|
|
699
|
+
type: "uint8",
|
|
700
|
+
},
|
|
701
|
+
],
|
|
702
|
+
indexed: false,
|
|
703
|
+
internalType: "struct StrategyState",
|
|
704
|
+
name: "state",
|
|
705
|
+
type: "tuple",
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
components: [
|
|
709
|
+
{
|
|
710
|
+
internalType: "uint256",
|
|
711
|
+
name: "guessMin",
|
|
712
|
+
type: "uint256",
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
internalType: "uint256",
|
|
716
|
+
name: "guessMax",
|
|
717
|
+
type: "uint256",
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
internalType: "uint256",
|
|
721
|
+
name: "guessOffchain",
|
|
722
|
+
type: "uint256",
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
internalType: "uint256",
|
|
726
|
+
name: "maxIteration",
|
|
727
|
+
type: "uint256",
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
internalType: "uint256",
|
|
731
|
+
name: "eps",
|
|
732
|
+
type: "uint256",
|
|
733
|
+
},
|
|
734
|
+
],
|
|
735
|
+
indexed: false,
|
|
736
|
+
internalType: "struct ApproxParams",
|
|
737
|
+
name: "botParams",
|
|
738
|
+
type: "tuple",
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
indexed: false,
|
|
742
|
+
internalType: "uint256",
|
|
743
|
+
name: "maxSyIn",
|
|
744
|
+
type: "uint256",
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
indexed: false,
|
|
748
|
+
internalType: "uint256",
|
|
749
|
+
name: "exactYtOut",
|
|
750
|
+
type: "uint256",
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
indexed: false,
|
|
754
|
+
internalType: "uint256",
|
|
755
|
+
name: "netSyIn",
|
|
756
|
+
type: "uint256",
|
|
757
|
+
},
|
|
758
|
+
],
|
|
759
|
+
name: "SwapSyToYt",
|
|
760
|
+
type: "event",
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
anonymous: false,
|
|
764
|
+
inputs: [
|
|
765
|
+
{
|
|
766
|
+
indexed: true,
|
|
767
|
+
internalType: "address",
|
|
768
|
+
name: "implementation",
|
|
769
|
+
type: "address",
|
|
770
|
+
},
|
|
771
|
+
],
|
|
772
|
+
name: "Upgraded",
|
|
773
|
+
type: "event",
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
anonymous: false,
|
|
777
|
+
inputs: [
|
|
778
|
+
{
|
|
779
|
+
indexed: true,
|
|
780
|
+
internalType: "address",
|
|
781
|
+
name: "token",
|
|
782
|
+
type: "address",
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
indexed: false,
|
|
786
|
+
internalType: "uint256",
|
|
787
|
+
name: "amount",
|
|
788
|
+
type: "uint256",
|
|
789
|
+
},
|
|
790
|
+
],
|
|
791
|
+
name: "WithdrawFunds",
|
|
792
|
+
type: "event",
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
inputs: [],
|
|
796
|
+
name: "PENDLE",
|
|
797
|
+
outputs: [
|
|
798
|
+
{
|
|
799
|
+
internalType: "address",
|
|
800
|
+
name: "",
|
|
801
|
+
type: "address",
|
|
802
|
+
},
|
|
803
|
+
],
|
|
804
|
+
stateMutability: "view",
|
|
805
|
+
type: "function",
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
inputs: [],
|
|
809
|
+
name: "PT",
|
|
810
|
+
outputs: [
|
|
811
|
+
{
|
|
812
|
+
internalType: "address",
|
|
813
|
+
name: "",
|
|
814
|
+
type: "address",
|
|
815
|
+
},
|
|
816
|
+
],
|
|
817
|
+
stateMutability: "view",
|
|
818
|
+
type: "function",
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
inputs: [],
|
|
822
|
+
name: "SY",
|
|
823
|
+
outputs: [
|
|
824
|
+
{
|
|
825
|
+
internalType: "address",
|
|
826
|
+
name: "",
|
|
827
|
+
type: "address",
|
|
828
|
+
},
|
|
829
|
+
],
|
|
830
|
+
stateMutability: "view",
|
|
831
|
+
type: "function",
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
inputs: [],
|
|
835
|
+
name: "YT",
|
|
836
|
+
outputs: [
|
|
837
|
+
{
|
|
838
|
+
internalType: "address",
|
|
839
|
+
name: "",
|
|
840
|
+
type: "address",
|
|
841
|
+
},
|
|
842
|
+
],
|
|
843
|
+
stateMutability: "view",
|
|
844
|
+
type: "function",
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
inputs: [
|
|
848
|
+
{
|
|
849
|
+
components: [
|
|
850
|
+
{
|
|
851
|
+
internalType: "enum StrategyFlag",
|
|
852
|
+
name: "iyFlag",
|
|
853
|
+
type: "uint8",
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
internalType: "enum StrategyFlag",
|
|
857
|
+
name: "syRatioFlag",
|
|
858
|
+
type: "uint8",
|
|
859
|
+
},
|
|
860
|
+
],
|
|
861
|
+
internalType: "struct StrategyState",
|
|
862
|
+
name: "oldState",
|
|
863
|
+
type: "tuple",
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
components: [
|
|
867
|
+
{
|
|
868
|
+
internalType: "uint256",
|
|
869
|
+
name: "guessMin",
|
|
870
|
+
type: "uint256",
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
internalType: "uint256",
|
|
874
|
+
name: "guessMax",
|
|
875
|
+
type: "uint256",
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
internalType: "uint256",
|
|
879
|
+
name: "guessOffchain",
|
|
880
|
+
type: "uint256",
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
internalType: "uint256",
|
|
884
|
+
name: "maxIteration",
|
|
885
|
+
type: "uint256",
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
internalType: "uint256",
|
|
889
|
+
name: "eps",
|
|
890
|
+
type: "uint256",
|
|
891
|
+
},
|
|
892
|
+
],
|
|
893
|
+
internalType: "struct ApproxParams",
|
|
894
|
+
name: "botParams",
|
|
895
|
+
type: "tuple",
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
internalType: "uint256",
|
|
899
|
+
name: "minLpOut",
|
|
900
|
+
type: "uint256",
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
internalType: "uint256",
|
|
904
|
+
name: "maxSyIn",
|
|
905
|
+
type: "uint256",
|
|
906
|
+
},
|
|
907
|
+
],
|
|
908
|
+
name: "addLiqFromSy",
|
|
909
|
+
outputs: [
|
|
910
|
+
{
|
|
911
|
+
internalType: "uint256",
|
|
912
|
+
name: "netPtFromSwap",
|
|
913
|
+
type: "uint256",
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
internalType: "uint256",
|
|
917
|
+
name: "netLpOut",
|
|
918
|
+
type: "uint256",
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
internalType: "uint256",
|
|
922
|
+
name: "netSyIn",
|
|
923
|
+
type: "uint256",
|
|
924
|
+
},
|
|
925
|
+
],
|
|
926
|
+
stateMutability: "nonpayable",
|
|
927
|
+
type: "function",
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
inputs: [
|
|
931
|
+
{
|
|
932
|
+
components: [
|
|
933
|
+
{
|
|
934
|
+
internalType: "enum StrategyFlag",
|
|
935
|
+
name: "iyFlag",
|
|
936
|
+
type: "uint8",
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
internalType: "enum StrategyFlag",
|
|
940
|
+
name: "syRatioFlag",
|
|
941
|
+
type: "uint8",
|
|
942
|
+
},
|
|
943
|
+
],
|
|
944
|
+
internalType: "struct StrategyState",
|
|
945
|
+
name: "oldState",
|
|
946
|
+
type: "tuple",
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
components: [
|
|
950
|
+
{
|
|
951
|
+
internalType: "uint256",
|
|
952
|
+
name: "guessMin",
|
|
953
|
+
type: "uint256",
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
internalType: "uint256",
|
|
957
|
+
name: "guessMax",
|
|
958
|
+
type: "uint256",
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
internalType: "uint256",
|
|
962
|
+
name: "guessOffchain",
|
|
963
|
+
type: "uint256",
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
internalType: "uint256",
|
|
967
|
+
name: "maxIteration",
|
|
968
|
+
type: "uint256",
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
internalType: "uint256",
|
|
972
|
+
name: "eps",
|
|
973
|
+
type: "uint256",
|
|
974
|
+
},
|
|
975
|
+
],
|
|
976
|
+
internalType: "struct ApproxParams",
|
|
977
|
+
name: "botParams",
|
|
978
|
+
type: "tuple",
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
internalType: "uint256",
|
|
982
|
+
name: "minLpOut",
|
|
983
|
+
type: "uint256",
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
internalType: "uint256",
|
|
987
|
+
name: "maxYtIn",
|
|
988
|
+
type: "uint256",
|
|
989
|
+
},
|
|
990
|
+
],
|
|
991
|
+
name: "addLiqFromYt",
|
|
992
|
+
outputs: [
|
|
993
|
+
{
|
|
994
|
+
internalType: "uint256",
|
|
995
|
+
name: "netPtFromSwap",
|
|
996
|
+
type: "uint256",
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
internalType: "uint256",
|
|
1000
|
+
name: "netLpOut",
|
|
1001
|
+
type: "uint256",
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
internalType: "uint256",
|
|
1005
|
+
name: "netYtIn",
|
|
1006
|
+
type: "uint256",
|
|
1007
|
+
},
|
|
1008
|
+
],
|
|
1009
|
+
stateMutability: "nonpayable",
|
|
1010
|
+
type: "function",
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
inputs: [
|
|
1014
|
+
{
|
|
1015
|
+
internalType: "address",
|
|
1016
|
+
name: "router",
|
|
1017
|
+
type: "address",
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
components: [
|
|
1021
|
+
{
|
|
1022
|
+
internalType: "enum StrategyFlag",
|
|
1023
|
+
name: "iyFlag",
|
|
1024
|
+
type: "uint8",
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
internalType: "enum StrategyFlag",
|
|
1028
|
+
name: "syRatioFlag",
|
|
1029
|
+
type: "uint8",
|
|
1030
|
+
},
|
|
1031
|
+
],
|
|
1032
|
+
internalType: "struct StrategyState",
|
|
1033
|
+
name: "oldState",
|
|
1034
|
+
type: "tuple",
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
components: [
|
|
1038
|
+
{
|
|
1039
|
+
internalType: "uint256",
|
|
1040
|
+
name: "guessMin",
|
|
1041
|
+
type: "uint256",
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
internalType: "uint256",
|
|
1045
|
+
name: "guessMax",
|
|
1046
|
+
type: "uint256",
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
internalType: "uint256",
|
|
1050
|
+
name: "guessOffchain",
|
|
1051
|
+
type: "uint256",
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
internalType: "uint256",
|
|
1055
|
+
name: "maxIteration",
|
|
1056
|
+
type: "uint256",
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
internalType: "uint256",
|
|
1060
|
+
name: "eps",
|
|
1061
|
+
type: "uint256",
|
|
1062
|
+
},
|
|
1063
|
+
],
|
|
1064
|
+
internalType: "struct ApproxParams",
|
|
1065
|
+
name: "botParams",
|
|
1066
|
+
type: "tuple",
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
internalType: "uint256",
|
|
1070
|
+
name: "maxSyIn",
|
|
1071
|
+
type: "uint256",
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
internalType: "uint256",
|
|
1075
|
+
name: "minLpOut",
|
|
1076
|
+
type: "uint256",
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
internalType: "uint256",
|
|
1080
|
+
name: "minYtOut",
|
|
1081
|
+
type: "uint256",
|
|
1082
|
+
},
|
|
1083
|
+
],
|
|
1084
|
+
name: "addLiqKeepYt",
|
|
1085
|
+
outputs: [
|
|
1086
|
+
{
|
|
1087
|
+
internalType: "uint256",
|
|
1088
|
+
name: "netSyIn",
|
|
1089
|
+
type: "uint256",
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
internalType: "uint256",
|
|
1093
|
+
name: "netLpOut",
|
|
1094
|
+
type: "uint256",
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
internalType: "uint256",
|
|
1098
|
+
name: "netYtOut",
|
|
1099
|
+
type: "uint256",
|
|
1100
|
+
},
|
|
1101
|
+
],
|
|
1102
|
+
stateMutability: "nonpayable",
|
|
1103
|
+
type: "function",
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
inputs: [
|
|
1107
|
+
{
|
|
1108
|
+
components: [
|
|
1109
|
+
{
|
|
1110
|
+
internalType: "address[]",
|
|
1111
|
+
name: "tokens",
|
|
1112
|
+
type: "address[]",
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
internalType: "address",
|
|
1116
|
+
name: "spender",
|
|
1117
|
+
type: "address",
|
|
1118
|
+
},
|
|
1119
|
+
],
|
|
1120
|
+
internalType: "struct ITradingBotBase.MultiApproval[]",
|
|
1121
|
+
name: "arr",
|
|
1122
|
+
type: "tuple[]",
|
|
1123
|
+
},
|
|
1124
|
+
],
|
|
1125
|
+
name: "approveInf",
|
|
1126
|
+
outputs: [],
|
|
1127
|
+
stateMutability: "nonpayable",
|
|
1128
|
+
type: "function",
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
inputs: [
|
|
1132
|
+
{
|
|
1133
|
+
internalType: "address",
|
|
1134
|
+
name: "router",
|
|
1135
|
+
type: "address",
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
components: [
|
|
1139
|
+
{
|
|
1140
|
+
internalType: "address",
|
|
1141
|
+
name: "tokenIn",
|
|
1142
|
+
type: "address",
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
internalType: "uint256",
|
|
1146
|
+
name: "netTokenIn",
|
|
1147
|
+
type: "uint256",
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
internalType: "address",
|
|
1151
|
+
name: "tokenMintSy",
|
|
1152
|
+
type: "address",
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
internalType: "address",
|
|
1156
|
+
name: "bulk",
|
|
1157
|
+
type: "address",
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
internalType: "address",
|
|
1161
|
+
name: "pendleSwap",
|
|
1162
|
+
type: "address",
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
components: [
|
|
1166
|
+
{
|
|
1167
|
+
internalType: "enum SwapType",
|
|
1168
|
+
name: "swapType",
|
|
1169
|
+
type: "uint8",
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
internalType: "address",
|
|
1173
|
+
name: "extRouter",
|
|
1174
|
+
type: "address",
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
internalType: "bytes",
|
|
1178
|
+
name: "extCalldata",
|
|
1179
|
+
type: "bytes",
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
internalType: "bool",
|
|
1183
|
+
name: "needScale",
|
|
1184
|
+
type: "bool",
|
|
1185
|
+
},
|
|
1186
|
+
],
|
|
1187
|
+
internalType: "struct SwapData",
|
|
1188
|
+
name: "swapData",
|
|
1189
|
+
type: "tuple",
|
|
1190
|
+
},
|
|
1191
|
+
],
|
|
1192
|
+
internalType: "struct TokenInput[]",
|
|
1193
|
+
name: "inps",
|
|
1194
|
+
type: "tuple[]",
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
internalType: "uint256",
|
|
1198
|
+
name: "minSyOut",
|
|
1199
|
+
type: "uint256",
|
|
1200
|
+
},
|
|
1201
|
+
],
|
|
1202
|
+
name: "claimAndCompound",
|
|
1203
|
+
outputs: [
|
|
1204
|
+
{
|
|
1205
|
+
internalType: "uint256",
|
|
1206
|
+
name: "netSyOut",
|
|
1207
|
+
type: "uint256",
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
internalType: "uint256",
|
|
1211
|
+
name: "netPendleOut",
|
|
1212
|
+
type: "uint256",
|
|
1213
|
+
},
|
|
1214
|
+
],
|
|
1215
|
+
stateMutability: "nonpayable",
|
|
1216
|
+
type: "function",
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
inputs: [],
|
|
1220
|
+
name: "claimOwnership",
|
|
1221
|
+
outputs: [],
|
|
1222
|
+
stateMutability: "nonpayable",
|
|
1223
|
+
type: "function",
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
inputs: [],
|
|
1227
|
+
name: "decisionLib",
|
|
1228
|
+
outputs: [
|
|
1229
|
+
{
|
|
1230
|
+
internalType: "address",
|
|
1231
|
+
name: "",
|
|
1232
|
+
type: "address",
|
|
1233
|
+
},
|
|
1234
|
+
],
|
|
1235
|
+
stateMutability: "view",
|
|
1236
|
+
type: "function",
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
inputs: [
|
|
1240
|
+
{
|
|
1241
|
+
internalType: "uint256",
|
|
1242
|
+
name: "netSyIn",
|
|
1243
|
+
type: "uint256",
|
|
1244
|
+
},
|
|
1245
|
+
],
|
|
1246
|
+
name: "depositSy",
|
|
1247
|
+
outputs: [],
|
|
1248
|
+
stateMutability: "nonpayable",
|
|
1249
|
+
type: "function",
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
inputs: [
|
|
1253
|
+
{
|
|
1254
|
+
internalType: "address",
|
|
1255
|
+
name: "router",
|
|
1256
|
+
type: "address",
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
components: [
|
|
1260
|
+
{
|
|
1261
|
+
internalType: "address",
|
|
1262
|
+
name: "tokenIn",
|
|
1263
|
+
type: "address",
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
internalType: "uint256",
|
|
1267
|
+
name: "netTokenIn",
|
|
1268
|
+
type: "uint256",
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
internalType: "address",
|
|
1272
|
+
name: "tokenMintSy",
|
|
1273
|
+
type: "address",
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
internalType: "address",
|
|
1277
|
+
name: "bulk",
|
|
1278
|
+
type: "address",
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
internalType: "address",
|
|
1282
|
+
name: "pendleSwap",
|
|
1283
|
+
type: "address",
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
components: [
|
|
1287
|
+
{
|
|
1288
|
+
internalType: "enum SwapType",
|
|
1289
|
+
name: "swapType",
|
|
1290
|
+
type: "uint8",
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
internalType: "address",
|
|
1294
|
+
name: "extRouter",
|
|
1295
|
+
type: "address",
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
internalType: "bytes",
|
|
1299
|
+
name: "extCalldata",
|
|
1300
|
+
type: "bytes",
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
internalType: "bool",
|
|
1304
|
+
name: "needScale",
|
|
1305
|
+
type: "bool",
|
|
1306
|
+
},
|
|
1307
|
+
],
|
|
1308
|
+
internalType: "struct SwapData",
|
|
1309
|
+
name: "swapData",
|
|
1310
|
+
type: "tuple",
|
|
1311
|
+
},
|
|
1312
|
+
],
|
|
1313
|
+
internalType: "struct TokenInput",
|
|
1314
|
+
name: "inp",
|
|
1315
|
+
type: "tuple",
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
internalType: "uint256",
|
|
1319
|
+
name: "minSyOut",
|
|
1320
|
+
type: "uint256",
|
|
1321
|
+
},
|
|
1322
|
+
],
|
|
1323
|
+
name: "depositToken",
|
|
1324
|
+
outputs: [],
|
|
1325
|
+
stateMutability: "payable",
|
|
1326
|
+
type: "function",
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
inputs: [
|
|
1330
|
+
{
|
|
1331
|
+
components: [
|
|
1332
|
+
{
|
|
1333
|
+
internalType: "uint256",
|
|
1334
|
+
name: "lowerIyLimit",
|
|
1335
|
+
type: "uint256",
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
internalType: "uint256",
|
|
1339
|
+
name: "upperIyLimit",
|
|
1340
|
+
type: "uint256",
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
internalType: "uint256",
|
|
1344
|
+
name: "floatingSyRatioLimit",
|
|
1345
|
+
type: "uint256",
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
internalType: "uint256",
|
|
1349
|
+
name: "ytPtRatioLimit",
|
|
1350
|
+
type: "uint256",
|
|
1351
|
+
},
|
|
1352
|
+
],
|
|
1353
|
+
internalType: "struct LongTradingSpecs",
|
|
1354
|
+
name: "_specs",
|
|
1355
|
+
type: "tuple",
|
|
1356
|
+
},
|
|
1357
|
+
],
|
|
1358
|
+
name: "initialize",
|
|
1359
|
+
outputs: [],
|
|
1360
|
+
stateMutability: "nonpayable",
|
|
1361
|
+
type: "function",
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
inputs: [],
|
|
1365
|
+
name: "market",
|
|
1366
|
+
outputs: [
|
|
1367
|
+
{
|
|
1368
|
+
internalType: "address",
|
|
1369
|
+
name: "",
|
|
1370
|
+
type: "address",
|
|
1371
|
+
},
|
|
1372
|
+
],
|
|
1373
|
+
stateMutability: "view",
|
|
1374
|
+
type: "function",
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
inputs: [],
|
|
1378
|
+
name: "owner",
|
|
1379
|
+
outputs: [
|
|
1380
|
+
{
|
|
1381
|
+
internalType: "address",
|
|
1382
|
+
name: "",
|
|
1383
|
+
type: "address",
|
|
1384
|
+
},
|
|
1385
|
+
],
|
|
1386
|
+
stateMutability: "view",
|
|
1387
|
+
type: "function",
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
inputs: [],
|
|
1391
|
+
name: "pendingOwner",
|
|
1392
|
+
outputs: [
|
|
1393
|
+
{
|
|
1394
|
+
internalType: "address",
|
|
1395
|
+
name: "",
|
|
1396
|
+
type: "address",
|
|
1397
|
+
},
|
|
1398
|
+
],
|
|
1399
|
+
stateMutability: "view",
|
|
1400
|
+
type: "function",
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
inputs: [],
|
|
1404
|
+
name: "proxiableUUID",
|
|
1405
|
+
outputs: [
|
|
1406
|
+
{
|
|
1407
|
+
internalType: "bytes32",
|
|
1408
|
+
name: "",
|
|
1409
|
+
type: "bytes32",
|
|
1410
|
+
},
|
|
1411
|
+
],
|
|
1412
|
+
stateMutability: "view",
|
|
1413
|
+
type: "function",
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
inputs: [],
|
|
1417
|
+
name: "readBotState",
|
|
1418
|
+
outputs: [
|
|
1419
|
+
{
|
|
1420
|
+
components: [
|
|
1421
|
+
{
|
|
1422
|
+
internalType: "uint256",
|
|
1423
|
+
name: "lpBalance",
|
|
1424
|
+
type: "uint256",
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
internalType: "uint256",
|
|
1428
|
+
name: "ytBalance",
|
|
1429
|
+
type: "uint256",
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
internalType: "uint256",
|
|
1433
|
+
name: "syBalance",
|
|
1434
|
+
type: "uint256",
|
|
1435
|
+
},
|
|
1436
|
+
],
|
|
1437
|
+
internalType: "struct BotState",
|
|
1438
|
+
name: "botState",
|
|
1439
|
+
type: "tuple",
|
|
1440
|
+
},
|
|
1441
|
+
],
|
|
1442
|
+
stateMutability: "view",
|
|
1443
|
+
type: "function",
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
inputs: [
|
|
1447
|
+
{
|
|
1448
|
+
internalType: "address",
|
|
1449
|
+
name: "router",
|
|
1450
|
+
type: "address",
|
|
1451
|
+
},
|
|
1452
|
+
],
|
|
1453
|
+
name: "readMarketExtState",
|
|
1454
|
+
outputs: [
|
|
1455
|
+
{
|
|
1456
|
+
components: [
|
|
1457
|
+
{
|
|
1458
|
+
components: [
|
|
1459
|
+
{
|
|
1460
|
+
internalType: "int256",
|
|
1461
|
+
name: "totalPt",
|
|
1462
|
+
type: "int256",
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
internalType: "int256",
|
|
1466
|
+
name: "totalSy",
|
|
1467
|
+
type: "int256",
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
internalType: "int256",
|
|
1471
|
+
name: "totalLp",
|
|
1472
|
+
type: "int256",
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
internalType: "address",
|
|
1476
|
+
name: "treasury",
|
|
1477
|
+
type: "address",
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
internalType: "int256",
|
|
1481
|
+
name: "scalarRoot",
|
|
1482
|
+
type: "int256",
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
internalType: "uint256",
|
|
1486
|
+
name: "expiry",
|
|
1487
|
+
type: "uint256",
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
internalType: "uint256",
|
|
1491
|
+
name: "lnFeeRateRoot",
|
|
1492
|
+
type: "uint256",
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
internalType: "uint256",
|
|
1496
|
+
name: "reserveFeePercent",
|
|
1497
|
+
type: "uint256",
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
internalType: "uint256",
|
|
1501
|
+
name: "lastLnImpliedRate",
|
|
1502
|
+
type: "uint256",
|
|
1503
|
+
},
|
|
1504
|
+
],
|
|
1505
|
+
internalType: "struct MarketState",
|
|
1506
|
+
name: "state",
|
|
1507
|
+
type: "tuple",
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
internalType: "PYIndex",
|
|
1511
|
+
name: "index",
|
|
1512
|
+
type: "uint256",
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
internalType: "uint256",
|
|
1516
|
+
name: "blockTime",
|
|
1517
|
+
type: "uint256",
|
|
1518
|
+
},
|
|
1519
|
+
],
|
|
1520
|
+
internalType: "struct MarketExtState",
|
|
1521
|
+
name: "marketExt",
|
|
1522
|
+
type: "tuple",
|
|
1523
|
+
},
|
|
1524
|
+
],
|
|
1525
|
+
stateMutability: "nonpayable",
|
|
1526
|
+
type: "function",
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
inputs: [
|
|
1530
|
+
{
|
|
1531
|
+
components: [
|
|
1532
|
+
{
|
|
1533
|
+
internalType: "enum StrategyFlag",
|
|
1534
|
+
name: "iyFlag",
|
|
1535
|
+
type: "uint8",
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
internalType: "enum StrategyFlag",
|
|
1539
|
+
name: "syRatioFlag",
|
|
1540
|
+
type: "uint8",
|
|
1541
|
+
},
|
|
1542
|
+
],
|
|
1543
|
+
internalType: "struct StrategyState",
|
|
1544
|
+
name: "oldState",
|
|
1545
|
+
type: "tuple",
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
components: [
|
|
1549
|
+
{
|
|
1550
|
+
internalType: "uint256",
|
|
1551
|
+
name: "guessMin",
|
|
1552
|
+
type: "uint256",
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
internalType: "uint256",
|
|
1556
|
+
name: "guessMax",
|
|
1557
|
+
type: "uint256",
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
internalType: "uint256",
|
|
1561
|
+
name: "guessOffchain",
|
|
1562
|
+
type: "uint256",
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
internalType: "uint256",
|
|
1566
|
+
name: "maxIteration",
|
|
1567
|
+
type: "uint256",
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
internalType: "uint256",
|
|
1571
|
+
name: "eps",
|
|
1572
|
+
type: "uint256",
|
|
1573
|
+
},
|
|
1574
|
+
],
|
|
1575
|
+
internalType: "struct ApproxParams",
|
|
1576
|
+
name: "botParams",
|
|
1577
|
+
type: "tuple",
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
components: [
|
|
1581
|
+
{
|
|
1582
|
+
internalType: "uint256",
|
|
1583
|
+
name: "guessMin",
|
|
1584
|
+
type: "uint256",
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
internalType: "uint256",
|
|
1588
|
+
name: "guessMax",
|
|
1589
|
+
type: "uint256",
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
internalType: "uint256",
|
|
1593
|
+
name: "guessOffchain",
|
|
1594
|
+
type: "uint256",
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
internalType: "uint256",
|
|
1598
|
+
name: "maxIteration",
|
|
1599
|
+
type: "uint256",
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
internalType: "uint256",
|
|
1603
|
+
name: "eps",
|
|
1604
|
+
type: "uint256",
|
|
1605
|
+
},
|
|
1606
|
+
],
|
|
1607
|
+
internalType: "struct ApproxParams",
|
|
1608
|
+
name: "guessTotalPtToSwap",
|
|
1609
|
+
type: "tuple",
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
internalType: "uint256",
|
|
1613
|
+
name: "maxLpRemoved",
|
|
1614
|
+
type: "uint256",
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
internalType: "uint256",
|
|
1618
|
+
name: "minYtOut",
|
|
1619
|
+
type: "uint256",
|
|
1620
|
+
},
|
|
1621
|
+
],
|
|
1622
|
+
name: "removeLiqToYt",
|
|
1623
|
+
outputs: [
|
|
1624
|
+
{
|
|
1625
|
+
internalType: "uint256",
|
|
1626
|
+
name: "netLpRemoved",
|
|
1627
|
+
type: "uint256",
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
internalType: "uint256",
|
|
1631
|
+
name: "netYtOut",
|
|
1632
|
+
type: "uint256",
|
|
1633
|
+
},
|
|
1634
|
+
],
|
|
1635
|
+
stateMutability: "nonpayable",
|
|
1636
|
+
type: "function",
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
inputs: [
|
|
1640
|
+
{
|
|
1641
|
+
components: [
|
|
1642
|
+
{
|
|
1643
|
+
internalType: "uint256",
|
|
1644
|
+
name: "lowerIyLimit",
|
|
1645
|
+
type: "uint256",
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
internalType: "uint256",
|
|
1649
|
+
name: "upperIyLimit",
|
|
1650
|
+
type: "uint256",
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
internalType: "uint256",
|
|
1654
|
+
name: "floatingSyRatioLimit",
|
|
1655
|
+
type: "uint256",
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
internalType: "uint256",
|
|
1659
|
+
name: "ytPtRatioLimit",
|
|
1660
|
+
type: "uint256",
|
|
1661
|
+
},
|
|
1662
|
+
],
|
|
1663
|
+
internalType: "struct LongTradingSpecs",
|
|
1664
|
+
name: "_specs",
|
|
1665
|
+
type: "tuple",
|
|
1666
|
+
},
|
|
1667
|
+
],
|
|
1668
|
+
name: "setSpecs",
|
|
1669
|
+
outputs: [],
|
|
1670
|
+
stateMutability: "nonpayable",
|
|
1671
|
+
type: "function",
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
inputs: [],
|
|
1675
|
+
name: "specs",
|
|
1676
|
+
outputs: [
|
|
1677
|
+
{
|
|
1678
|
+
internalType: "uint256",
|
|
1679
|
+
name: "lowerIyLimit",
|
|
1680
|
+
type: "uint256",
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
internalType: "uint256",
|
|
1684
|
+
name: "upperIyLimit",
|
|
1685
|
+
type: "uint256",
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
internalType: "uint256",
|
|
1689
|
+
name: "floatingSyRatioLimit",
|
|
1690
|
+
type: "uint256",
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
internalType: "uint256",
|
|
1694
|
+
name: "ytPtRatioLimit",
|
|
1695
|
+
type: "uint256",
|
|
1696
|
+
},
|
|
1697
|
+
],
|
|
1698
|
+
stateMutability: "view",
|
|
1699
|
+
type: "function",
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
inputs: [
|
|
1703
|
+
{
|
|
1704
|
+
internalType: "int256",
|
|
1705
|
+
name: "ptToAccount",
|
|
1706
|
+
type: "int256",
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
internalType: "int256",
|
|
1710
|
+
name: "syToAccount",
|
|
1711
|
+
type: "int256",
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
internalType: "bytes",
|
|
1715
|
+
name: "data",
|
|
1716
|
+
type: "bytes",
|
|
1717
|
+
},
|
|
1718
|
+
],
|
|
1719
|
+
name: "swapCallback",
|
|
1720
|
+
outputs: [],
|
|
1721
|
+
stateMutability: "nonpayable",
|
|
1722
|
+
type: "function",
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
inputs: [
|
|
1726
|
+
{
|
|
1727
|
+
internalType: "address",
|
|
1728
|
+
name: "router",
|
|
1729
|
+
type: "address",
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
components: [
|
|
1733
|
+
{
|
|
1734
|
+
internalType: "enum StrategyFlag",
|
|
1735
|
+
name: "iyFlag",
|
|
1736
|
+
type: "uint8",
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
internalType: "enum StrategyFlag",
|
|
1740
|
+
name: "syRatioFlag",
|
|
1741
|
+
type: "uint8",
|
|
1742
|
+
},
|
|
1743
|
+
],
|
|
1744
|
+
internalType: "struct StrategyState",
|
|
1745
|
+
name: "oldState",
|
|
1746
|
+
type: "tuple",
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
components: [
|
|
1750
|
+
{
|
|
1751
|
+
internalType: "uint256",
|
|
1752
|
+
name: "guessMin",
|
|
1753
|
+
type: "uint256",
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
internalType: "uint256",
|
|
1757
|
+
name: "guessMax",
|
|
1758
|
+
type: "uint256",
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
internalType: "uint256",
|
|
1762
|
+
name: "guessOffchain",
|
|
1763
|
+
type: "uint256",
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
internalType: "uint256",
|
|
1767
|
+
name: "maxIteration",
|
|
1768
|
+
type: "uint256",
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
internalType: "uint256",
|
|
1772
|
+
name: "eps",
|
|
1773
|
+
type: "uint256",
|
|
1774
|
+
},
|
|
1775
|
+
],
|
|
1776
|
+
internalType: "struct ApproxParams",
|
|
1777
|
+
name: "botParams",
|
|
1778
|
+
type: "tuple",
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
internalType: "uint256",
|
|
1782
|
+
name: "minYtOut",
|
|
1783
|
+
type: "uint256",
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
internalType: "uint256",
|
|
1787
|
+
name: "maxSyIn",
|
|
1788
|
+
type: "uint256",
|
|
1789
|
+
},
|
|
1790
|
+
],
|
|
1791
|
+
name: "swapSyToYt",
|
|
1792
|
+
outputs: [
|
|
1793
|
+
{
|
|
1794
|
+
internalType: "uint256",
|
|
1795
|
+
name: "exactYtOut",
|
|
1796
|
+
type: "uint256",
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
internalType: "uint256",
|
|
1800
|
+
name: "netSyIn",
|
|
1801
|
+
type: "uint256",
|
|
1802
|
+
},
|
|
1803
|
+
],
|
|
1804
|
+
stateMutability: "nonpayable",
|
|
1805
|
+
type: "function",
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
inputs: [
|
|
1809
|
+
{
|
|
1810
|
+
internalType: "address",
|
|
1811
|
+
name: "newOwner",
|
|
1812
|
+
type: "address",
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
internalType: "bool",
|
|
1816
|
+
name: "direct",
|
|
1817
|
+
type: "bool",
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
internalType: "bool",
|
|
1821
|
+
name: "renounce",
|
|
1822
|
+
type: "bool",
|
|
1823
|
+
},
|
|
1824
|
+
],
|
|
1825
|
+
name: "transferOwnership",
|
|
1826
|
+
outputs: [],
|
|
1827
|
+
stateMutability: "nonpayable",
|
|
1828
|
+
type: "function",
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
inputs: [
|
|
1832
|
+
{
|
|
1833
|
+
internalType: "address",
|
|
1834
|
+
name: "newImplementation",
|
|
1835
|
+
type: "address",
|
|
1836
|
+
},
|
|
1837
|
+
],
|
|
1838
|
+
name: "upgradeTo",
|
|
1839
|
+
outputs: [],
|
|
1840
|
+
stateMutability: "nonpayable",
|
|
1841
|
+
type: "function",
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
inputs: [
|
|
1845
|
+
{
|
|
1846
|
+
internalType: "address",
|
|
1847
|
+
name: "newImplementation",
|
|
1848
|
+
type: "address",
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
internalType: "bytes",
|
|
1852
|
+
name: "data",
|
|
1853
|
+
type: "bytes",
|
|
1854
|
+
},
|
|
1855
|
+
],
|
|
1856
|
+
name: "upgradeToAndCall",
|
|
1857
|
+
outputs: [],
|
|
1858
|
+
stateMutability: "payable",
|
|
1859
|
+
type: "function",
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
inputs: [
|
|
1863
|
+
{
|
|
1864
|
+
internalType: "address",
|
|
1865
|
+
name: "token",
|
|
1866
|
+
type: "address",
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
internalType: "uint256",
|
|
1870
|
+
name: "amount",
|
|
1871
|
+
type: "uint256",
|
|
1872
|
+
},
|
|
1873
|
+
],
|
|
1874
|
+
name: "withdrawFunds",
|
|
1875
|
+
outputs: [],
|
|
1876
|
+
stateMutability: "nonpayable",
|
|
1877
|
+
type: "function",
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
stateMutability: "payable",
|
|
1881
|
+
type: "receive",
|
|
1882
|
+
},
|
|
1883
|
+
];
|
|
1884
|
+
|
|
1885
|
+
const _bytecode =
|
|
1886
|
+
"0x61016060405230610120523480156200001757600080fd5b5060405162006287380380620062878339810160408190526200003a91620002e2565b60015483908390600160a81b900460ff161580801562000065575060018054600160a01b900460ff16105b806200009b575062000082306200023760201b620017281760201c565b1580156200009b575060018054600160a01b900460ff16145b620001045760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6001805460ff60a01b1916600160a01b179055801562000132576001805460ff60a81b1916600160a81b1790555b6000806000856001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa15801562000176573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200019c9190620002e2565b6001600160a01b03808a1660805280841660a05280831660c05280821660e05288166101005291945092509050620001d362000246565b50505080156200021e576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050506001600160a01b03166101405250620003369050565b6001600160a01b03163b151590565b600154600160a81b900460ff16620002b55760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401620000fb565b600080546001600160a01b03191633179055565b6001600160a01b0381168114620002df57600080fd5b50565b600080600060608486031215620002f857600080fd5b83516200030581620002c9565b60208501519093506200031881620002c9565b60408501519092506200032b81620002c9565b809150509250925092565b60805160a05160c05160e051610100516101205161014051615d7c6200050b60003960008181610258015281816106f301528181610bbc01528181610e86015281816113e9015261154d0152600081816108300152818161087001528181610a2e01528181610a6e0152610aea01526000818161031e01528181610db60152610de60152600081816102ea01528181610d4201528181611109015281816117b8015281816118f6015281816119b601528181611d030152818161202b0152818161270401528181612a0901528181612a3201528181612ac001528181612ae101528181612b1d0152612c3401526000818161053d015281816129e80152612bbb015260008181610449015281816109c801528181610d14015281816120bd015281816125db015261277701526000818161035201528181610ce901528181611083015281816116860152818161173e0152818161175f01528181611789015281816117d9015281816118610152818161198701528181611c6e01528181611df701528181611ec601528181612151015281816123420152818161266f01528181612798015281816127da015281816128740152818161294301528181612b4a01528181612bdc0152612c610152615d7c6000f3fe6080604052600436106101565760003560e01c8063078dfbe7146101625780630fccf461146101845780633659cfe6146101bb5780634e71e0c8146101db5780634f0364b1146101f05780634f1ef2861461021057806352d1902d146102235780635a15345a14610246578063651cb51b1461028757806365b800e6146102b6578063781c18db146102d85780637cf738d21461030c57806380f55605146103405780638c236640146103745780638da5cb5b146103945780638e62e100146103b4578063acdb32df146103d4578063adb7c3f7146103f4578063afd27bf514610437578063aff0314d1461046b578063b1e93e6a14610498578063c1075329146104b8578063cabe5ec7146104d8578063cc0f16cb146104eb578063cc402df71461050b578063d94073d41461052b578063e30c39781461055f578063ea6ba81d1461057f578063fa483e721461059f57600080fd5b3661015d57005b600080fd5b34801561016e57600080fd5b5061018261017d366004614bdc565b6105bf565b005b34801561019057600080fd5b506101a461019f366004614d14565b6106c4565b6040516101b2929190614d6f565b60405180910390f35b3480156101c757600080fd5b506101826101d6366004614d7d565b610826565b3480156101e757600080fd5b506101826108ee565b3480156101fc57600080fd5b5061018261020b366004614d9a565b610999565b61018261021e366004614e22565b610a24565b34801561022f57600080fd5b50610238610add565b6040519081526020016101b2565b34801561025257600080fd5b5061027a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516101b29190614e71565b34801561029357600080fd5b506102a76102a2366004614e85565b610b8b565b6040516101b293929190614ecb565b3480156102c257600080fd5b506102cb610cc0565b6040516101b29190614efa565b3480156102e457600080fd5b5061027a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561031857600080fd5b5061027a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561034c57600080fd5b5061027a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561038057600080fd5b506101a461038f366004614f53565b610d6e565b3480156103a057600080fd5b5060005461027a906001600160a01b031681565b3480156103c057600080fd5b506101a46103cf366004614fae565b610e57565b3480156103e057600080fd5b506101826103ef36600461500a565b610f99565b34801561040057600080fd5b506032546033546034546035546104179392919084565b6040805194855260208501939093529183015260608201526080016101b2565b34801561044357600080fd5b5061027a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561047757600080fd5b5061048b610486366004614d7d565b611064565b6040516101b291906150c6565b3480156104a457600080fd5b506101826104b33660046150d5565b61113e565b3480156104c457600080fd5b506101826104d336600461513a565b611276565b6101826104e6366004615166565b611307565b3480156104f757600080fd5b506102a7610506366004614e85565b6113b8565b34801561051757600080fd5b506101826105263660046151c4565b6114db565b34801561053757600080fd5b5061027a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561056b57600080fd5b5060015461027a906001600160a01b031681565b34801561058b57600080fd5b506102a761059a3660046151d6565b61151c565b3480156105ab57600080fd5b506101826105ba36600461523d565b61167b565b6000546001600160a01b031633146105f25760405162461bcd60e51b81526004016105e9906152bc565b60405180910390fd5b81156106a3576001600160a01b03831615158061060c5750805b6106505760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b60448201526064016105e9565b600080546040516001600160a01b0380871693921691600080516020615d0083398151915291a3600080546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b6000805481906001600160a01b031633146106f15760405162461bcd60e51b81526004016105e9906152bc565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a546c1d1610728610cc0565b61073130611064565b603260048c8c8c6040518863ffffffff1660e01b815260040161075a9796959493929190615368565b602060405180830381865afa158015610777573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079b91906153ee565b9150838211156107c25781846040516390fe811760e01b81526004016105e9929190614d6f565b6107db826107d536889003880188615407565b85611737565b90507f6a33a5d7343b5206385f7955db66315dc325cf50f01f1312f7a7a8e4c266a6488787868585604051610814959493929190615476565b60405180910390a19550959350505050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361086e5760405162461bcd60e51b81526004016105e9906154b0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166108a0611a4f565b6001600160a01b0316146108c65760405162461bcd60e51b81526004016105e9906154ea565b6108cf81611a6b565b604080516000808252602082019092526108eb91839190611a95565b50565b6001546001600160a01b03163381146109495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e657260448201526064016105e9565b600080546040516001600160a01b0380851693921691600080516020615d0083398151915291a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6000546001600160a01b031633146109c35760405162461bcd60e51b81526004016105e9906152bc565b6109ee7f00000000000000000000000000000000000000000000000000000000000000003383611c00565b6040518181527ffbf5b64cc7bd746fa51ff05d539d45d159c0bd41ae16d90375281f2925062bb19060200160405180910390a150565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610a6c5760405162461bcd60e51b81526004016105e9906154b0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610a9e611a4f565b6001600160a01b031614610ac45760405162461bcd60e51b81526004016105e9906154ea565b610acd82611a6b565b610ad982826001611a95565b5050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b785760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016105e9565b50600080516020615ce083398151915290565b60008054819081906001600160a01b03163314610bba5760405162461bcd60e51b81526004016105e9906152bc565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a546c1d1610bf1610cc0565b610bfa30611064565b603260038c8c8d6040518863ffffffff1660e01b8152600401610c239796959493929190615368565b602060405180830381865afa158015610c40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6491906153ee565b9250610c71838686611c67565b60405191935091507f2e715d4d014db293371aa1e4fe14944622c3208f28448ba33bc2d7a6d42ca75490610cae9089908990889086908890615476565b60405180910390a19450945094915050565b610ce460405180606001604052806000815260200160008152602001600081525090565b610d0d7f0000000000000000000000000000000000000000000000000000000000000000611f7d565b8152610d387f0000000000000000000000000000000000000000000000000000000000000000611f7d565b6040820152610d667f0000000000000000000000000000000000000000000000000000000000000000611f7d565b602082015290565b6000805481906001600160a01b03163314610d9b5760405162461bcd60e51b81526004016105e9906152bc565b610da3612008565b610daf868686866121cd565b9150610dda7f0000000000000000000000000000000000000000000000000000000000000000611f7d565b600054909150610e15907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b03168361225b565b7f9fdfc39e9c36ec108e0a3b25ecb0818f9dba6993f27c8ab183d6f707c0a0e3198282604051610e46929190614d6f565b60405180910390a194509492505050565b6000805481906001600160a01b03163314610e845760405162461bcd60e51b81526004016105e9906152bc565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a546c1d1610ebb610cc0565b610ec48a611064565b603260008b8b8c6040518863ffffffff1660e01b8152600401610eed9796959493929190615368565b602060405180830381865afa158015610f0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2e91906153ee565b915083821015610f5557818460405163716d9a5760e11b81526004016105e9929190614d6f565b610f60878385612325565b90507fb31443f10bbf0bf5fdcfd0e5944a69a0e9c2d2761bf89e259de1466c29889ea88686858585604051610814959493929190615476565b6000546001600160a01b03163314610fc35760405162461bcd60e51b81526004016105e9906152bc565b60005b818110156106bf5736838383818110610fe157610fe1615524565b9050602002810190610ff3919061553a565b905060005b611002828061555a565b905081101561105a57611052611018838061555a565b8381811061102857611028615524565b905060200201602081019061103d9190614d7d565b61104d6040850160208601614d7d565b6123d1565b600101610ff8565b5050600101610fc6565b61106c614b37565b60405163794052f360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063794052f3906110b8908590600401614e71565b61012060405180830381865afa1580156110d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fa91906155ae565b815261112e6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661248c565b6020820152426040820152919050565b600154600160a81b900460ff1615808015611164575060018054600160a01b900460ff16105b8061118b575061117330611728565b15801561118b575060018054600160a01b900460ff16145b6111ee5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016105e9565b6001805460ff60a01b1916600160a01b179055801561121b576001805460ff60a81b1916600160a81b1790555b611224826124f2565b61122c612510565b8015610ad9576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6000546001600160a01b031633146112a05760405162461bcd60e51b81526004016105e9906152bc565b60001981036112b5576112b282611f7d565b90505b6112c082338361225b565b816001600160a01b03167f21901fa892c430ea8bd38b9390225ac8e67eac75ee10ffba16feefc539a288f9826040516112fb91815260200190565b60405180910390a25050565b6000546001600160a01b031633146113315760405162461bcd60e51b81526004016105e9906152bc565b61134c6113416020840184614d7d565b338460200135611c00565b61135f83611359846156d7565b83612591565b5061136d6020830183614d7d565b6001600160a01b03167f2d0c0a8842b9944ece1495eb61121621b5e36bd6af3bba0318c695f525aef79f83602001356040516113ab91815260200190565b60405180910390a2505050565b60008054819081906001600160a01b031633146113e75760405162461bcd60e51b81526004016105e9906152bc565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a546c1d161141e610cc0565b61142730611064565b603260028c8c8d6040518863ffffffff1660e01b81526004016114509796959493929190615368565b602060405180830381865afa15801561146d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149191906153ee565b925061149e838686612668565b60405191935091507f4753edfcb22dafe8653fc1379f4889a94e76e43133b39f251d55df152d9be5b290610cae9089908990889086908890615476565b6000546001600160a01b031633146115055760405162461bcd60e51b81526004016105e9906152bc565b6108eb611517368390038301836150d5565b6124f2565b60008054819081906001600160a01b0316331461154b5760405162461bcd60e51b81526004016105e9906152bc565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a546c1d1611582610cc0565b61158b8c611064565b603260018d8d8e6040518863ffffffff1660e01b81526004016115b49796959493929190615368565b602060405180830381865afa1580156115d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f591906153ee565b92508583111561161c578286604051633f20d48560e01b81526004016105e9929190614d6f565b61162889848787612926565b60405191935091507f62356229ba82e73df4e40725e1bf471560820a2020ca45c55655e2898ecaaacb90611667908a908a908a90889088908890615794565b60405180910390a196509650969350505050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681146116c7578060405163719d6b0360e01b81526004016105e99190614e71565b823560038160058111156116dd576116dd6152f1565b036116f3576116ee868686866129de565b611720565b6004816005811115611707576117076152f1565b03611718576116ee86868686612c14565b6117206157d6565b505050505050565b6001600160a01b03163b151590565b60006117847f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008661225b565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f6b911bc7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000896040518463ffffffff1660e01b8152600401611817939291906157ec565b60408051808303816000875af1158015611835573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118599190615810565b9150915060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663794052f3306040518263ffffffff1660e01b81526004016118ab9190614e71565b61012060405180830381865afa1580156118c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ed91906155ae565b905060006119237f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661248c565b905060006119318286612cf5565b905060008061194e84611944858961584a565b879190428e612d01565b50909250905061195e838361584a565b97508888101561198557878960405163716d9a5760e11b81526004016105e9929190614d6f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166329910b117f0000000000000000000000000000000000000000000000000000000000000000836119df8d612e22565b6040518463ffffffff1660e01b81526004016119fd939291906158ad565b60408051808303816000875af1158015611a1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3f9190615810565b5050505050505050509392505050565b600080516020615ce0833981519152546001600160a01b031690565b6000546001600160a01b031633146108eb5760405162461bcd60e51b81526004016105e9906152bc565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611ac8576106bf83612e56565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611b22575060408051601f3d908101601f19168201909252611b1f918101906153ee565b60015b611b855760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016105e9565b600080516020615ce08339815191528114611bf45760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016105e9565b506106bf838383612ef0565b6001600160a01b038316611c4c578034146106bf5760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b60448201526064016105e9565b80156106bf576106bf6001600160a01b038416833084612f15565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663794052f3306040518263ffffffff1660e01b8152600401611cb89190614e71565b61012060405180830381865afa158015611cd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cfa91906155ae565b90506000611d307f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661248c565b90506000611d4083838a42612f6d565b509091508290506000611d5382846158dd565b611d65670de0b6b3a76400008c6158dd565b611d6f91906158f4565b90506000611d808660000151612fc6565b83611d8e8860200151612fc6565b611d9891906158dd565b611da2919061591d565b611db490670de0b6b3a764000061584a565b90506000611dc2828461591d565b9050611dce818d6158f4565b975089881115611df557878a604051636a7a7c8760e11b81526004016105e9929190614d6f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635b709f17308e611e2f8c612fd9565b6040518463ffffffff1660e01b8152600401611e4d939291906158ad565b60408051808303816000875af1158015611e6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e8f9190615810565b5060009050611e9e878a613000565b90506000611eac87836158f4565b604051630ab714fb60e11b81529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063156e29f690611eff90309085908890600401615931565b6060604051808303816000875af1158015611f1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f429190615952565b50909b50508c8b1015611f6c578a8d60405163066d180b60e01b81526004016105e9929190614d6f565b505050505050505050935093915050565b60006001600160a01b03821615612000576040516370a0823160e01b81526001600160a01b038316906370a0823190611fba903090600401614e71565b602060405180830381865afa158015611fd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ffb91906153ee565b612002565b475b92915050565b604051637d24da4d60e01b815230600482015260016024820181905260448201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637d24da4d906064016000604051808303816000875af115801561207c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120a491908101906159f4565b5050604051633bd73ee360e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ef5cfb8c906120f2903090600401614e71565b6000604051808303816000875af1158015612111573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526121399190810190615a31565b50604051639262187b60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690639262187b90612186903090600401614e71565b6000604051808303816000875af11580156121a5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108eb9190810190615a31565b6000805b8381101561222d57612211868686848181106121ef576121ef615524565b90506020028101906122019190615a65565b61220a906156d7565b6000612591565b61221b908361584a565b915061222681615a7b565b90506121d1565b508181101561225357808260405163d294eca360e01b81526004016105e9929190614d6f565b949350505050565b8060000361226857505050565b6001600160a01b038316612311576000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146122c3576040519150601f19603f3d011682016040523d82523d6000602084013e6122c8565b606091505b505090508061230b5760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b60448201526064016105e9565b50505050565b6106bf6001600160a01b038416838361300c565b604051632fc6f50d60e21b81523060048201526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116602483015260448201849052606482018390526000919085169063bf1bd4349060840160408051808303816000875af11580156123a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123c89190615810565b50949350505050565b6001600160a01b0382166123e3575050565b6123f560026001600160601b03615a94565b6001600160601b0316826001600160a01b031663dd62ed3e30846040518363ffffffff1660e01b815260040161242c929190615aba565b602060405180830381865afa158015612449573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061246d91906153ee565b1015610ad95761247f8282600061302b565b610ad9828260001961302b565b6000816001600160a01b0316631d52edc46040518163ffffffff1660e01b81526004016020604051808303816000875af11580156124ce573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200291906153ee565b80516032556020810151603355604081015160345560600151603555565b600154600160a81b900460ff1661257d5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016105e9565b600080546001600160a01b03191633179055565b60006000198360200151036125b15782516125ab90611f7d565b60208401525b82516001600160a01b038086169163443e65129116156125d25760006125d8565b84602001515b307f000000000000000000000000000000000000000000000000000000000000000086886040518663ffffffff1660e01b815260040161261b9493929190615ad4565b60206040518083038185885af1158015612639573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061265e91906153ee565b90505b9392505050565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663794052f3306040518263ffffffff1660e01b81526004016126b99190614e71565b61012060405180830381865afa1580156126d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126fb91906155ae565b905060006127317f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661248c565b9050600061274183838a42612f6d565b50509050600061275f828861275691906158f4565b85908b4261313f565b50925050508082612770919061584a565b94506127bd7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008761225b565b60408051600081526020810191829052635b709f1760e01b9091527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03811691635b709f1791612819918d90602481016158ad565b60408051808303816000875af1158015612837573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061285b9190615810565b5050604051630ab714fb60e11b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063156e29f6906128ad90309085908e90600401615931565b6060604051808303816000875af11580156128cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128f09190615952565b50909650508786101561291a57858860405163066d180b60e01b81526004016105e9929190614d6f565b50505050935093915050565b604051634221c25560e11b81523060048201526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166024830152604482018590526064820184905260848201839052600091829187169063844384aa9060a40160408051808303816000875af11580156129ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129d19190615810565b9150915094509492505050565b6020820135612a2e7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008361225b565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632f13b60c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab29190615b9b565b1590508015612b0657612b067f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008461225b565b60405163bcb7ea5d60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063bcb7ea5d90612b72907f000000000000000000000000000000000000000000000000000000000000000090600401614e71565b6020604051808303816000875af1158015612b91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bb591906153ee565b506117207f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000084612c058a612fc6565b612c0f91906158f4565b61225b565b60405163db74aa1560e01b81526020830135906000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063db74aa1590612c8b907f0000000000000000000000000000000000000000000000000000000000000000903090600401615aba565b6020604051808303816000875af1158015612caa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cce91906153ee565b90508181101561172057808260405163716d9a5760e11b81526004016105e9929190614d6f565b600061266183836131aa565b6000808080612d118989886131c9565b90508460400151600003612d53578451612d2b90886132c3565b85526020850151612d4590612d408b846132d9565b61335d565b6020860152612d538561336c565b60005b8560600151811015612dfd576000612d6e87836133b7565b9050600080612d7f8d868e86613423565b5090925090506000612d918d84612cf5565b90506000612d9f82866158f4565b90508c8111612dd657612db7818e8d60800151613454565b15612dce57509750919550909350612e1792505050565b848b52612de7565b612de16001866158f4565b60208c01525b505050505080612df690615a7b565b9050612d56565b50604051637d388ed960e11b815260040160405180910390fd5b955095509592505050565b604080518181526060818101835291602082018180368337019050509050600060045b602083015250604081019190915290565b612e5f81611728565b612ec15760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016105e9565b600080516020615ce083398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b612ef983613487565b600082511180612f065750805b156106bf5761230b83836134c7565b61230b846323b872dd60e01b858585604051602401612f36939291906157ec565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526134ec565b600080600080600080612f8a8a8a612f848b6135be565b8a6135d4565b925092509250612fa1612f9c84613667565b612fc6565b9550612fac82612fc6565b9450612fb781612fc6565b93505050509450945094915050565b600080821215612fd557600080fd5b5090565b60408051818152606081810183529160208201818036833701905050905060006003612e45565b60006126618383613675565b6106bf8363a9059cbb60e01b8484604051602401612f36929190615bb8565b600080846001600160a01b031663095ea7b360e01b8585604051602401613053929190615bb8565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516130919190615bd1565b6000604051808303816000865af19150503d80600081146130ce576040519150601f19603f3d011682016040523d82523d6000602084013e6130d3565b606091505b50915091508180156130fd5750805115806130fd5750808060200190518101906130fd9190615b9b565b6131385760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b60448201526064016105e9565b5050505050565b6000806000806000806000806131678c6131588d6135be565b6131618d6135be565b8c61368a565b935093509350935061317884612fc6565b975061318383612fc6565b965061318e82612fc6565b955061319981612fc6565b945050505050945094509450949050565b6000670de0b6b3a76400006131bf84846158dd565b612661919061591d565b6131f46040518060800160405280600081526020016000815260200160008152602001600081525090565b60a084015182106132185760405163b2094b5960e01b815260040160405180910390fd5b6000828560a0015161322a91906158f4565b9050613236858261383d565b82526020850151613248908590613899565b60208301528451158061325d57506020820151155b15613284578451602083015160405163b1c4aefb60e01b81526105e9929190600401614d6f565b6132a2856000015186610100015184602001518560000151856138d0565b604083015260c08501516132b69082613951565b6060830152509392505050565b60008183116132d25781612661565b5090919050565b600080600090506000600184602001516132f391906158f4565b90505b808214613355576000600261330b838561584a565b61331690600161584a565b613320919061591d565b905060006133338688600001518461398a565b121561334b576133446001826158f4565b915061334f565b8092505b506132f6565b509392505050565b60008183106132d25781612661565b60208101518151118061338a5750670de0b6b3a76400008160800151115b156108eb57805160208201516080830151604051632cc06bc160e21b81526105e993929190600401614ecb565b6000811580156133ca5750604083015115155b156133da57506040820151612002565b602083015183511161340a57602083015183516002916133f99161584a565b613403919061591d565b9050612002565b604051637d388ed960e11b815260040160405180910390fd5b6000808080808061344189896134388a615be3565b8d929190613a82565b919c909b50909950975050505050505050565b600082841115801561265e575061347c8361347784670de0b6b3a76400006158f4565b613bd6565b909310159392505050565b61349081612e56565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606126618383604051806060016040528060278152602001615d2060279139613bf6565b6000613541826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613cd19092919063ffffffff16565b8051909150156106bf578080602001905181019061355f9190615b9b565b6106bf5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105e9565b60006001600160ff1b03821115612fd557600080fd5b60008060006135e78760a0015185101590565b156136055760405163b2094b5960e01b815260040160405180910390fd5b8651851261362b578651604051632185509b60e21b81526105e991908790600401614d6f565b60006136388888876131c9565b905061364688828989613a82565b9195509350915061365c8882898988878b613ce0565b509450945094915050565b600061200282600019615bff565b6000826131bf670de0b6b3a7640000846158dd565b600080808086158061369a575085155b156136b8576040516325daaec360e01b815260040160405180910390fd5b60a088015185106136dc5760405163b2094b5960e01b815260040160405180910390fd5b8760400151600003613724576103e86137086137036136fe612f9c8a8c615bff565b613d72565b6135be565b6137129190615c2f565b92506103e893508691508590506137c7565b87516040890151600091906137399089615bff565b6137439190615c56565b9050600089602001518a604001518a61375c9190615bff565b6137669190615c56565b90508082121561379c578194508792508960400151858b6020015161378b9190615bff565b6137959190615c56565b93506137c4565b8094508893508960400151858b600001516137b79190615bff565b6137c19190615c56565b92505b50505b600083136137e857604051631997ea8d60e31b815260040160405180910390fd5b81886020018181516137fa9190615c84565b90525087518190899061380e908390615c84565b90525061381b8484615c84565b8860400181815161382c9190615c84565b905250929791965094509092509050565b6000613848826135be565b61385a6137036201518061016d6158dd565b84608001516138699190615bff565b6138739190615c56565b90506000811361200257604051630e520c3b60e11b8152600481018290526024016105e9565b600080600083126138ab5760016138af565b6000195b90506138c6613703856138c186613de2565b6131aa565b6122539082615bff565b6000806138dd8684613951565b9050670de0b6b3a764000081121561390b5760405163329e322960e21b8152600481018290526024016105e9565b600061392161391a878a615c84565b8990613df4565b9050600061392e82613e23565b905061393a8187613df4565b6139449084615c2f565b9998505050505050505050565b6000806139636201518061016d6158dd565b61396d84866158dd565b613977919061591d565b9050612253613985826135be565b613e76565b60008082856020015161399d9190615c2f565b905060006139ab8585615c84565b90506000821380156139bd5750600081135b6139fe5760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a59081c1d151bd3585c9ad95d60721b60448201526064016105e9565b6000613a2c613a0d8484615bff565b6020890151613a1c9089615c84565b613a269088615bff565b90613df4565b90506000613a42613a3d8486613df4565b61428b565b8851909150600090613a5d90670de0b6b3a764000090613df4565b9050613a7381613a6d8486615c2f565b90614317565b89604001516139449190615c2f565b600080600080613aa58860000151886020015189600001518a6040015189614335565b90506000613abb613ab68784613df4565b613667565b60608901519091506000871315613b2a576000613ad88483613df4565b9050670de0b6b3a7640000811215613b065760405163329e322960e21b8152600481018290526024016105e9565b613b22613b1b83670de0b6b3a7640000615c2f565b8490614317565b915050613b57565b613b5481613b4081670de0b6b3a7640000615c2f565b613b4a9085615bff565b613ab69190615c56565b90505b60006064613b688c60e001516135be565b613b729084615bff565b613b7c9190615c56565b90506000613b8a8385615c2f565b905060008112613ba357613b9e8a826143ed565b613bad565b613bad8a8261441a565b9750613bb98a846143ed565b9650613bc58a836143ed565b955050505050509450945094915050565b600080613be383856158dd565b670de0b6b3a76400009004949350505050565b6060613c0184611728565b613c5c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016105e9565b600080856001600160a01b031685604051613c779190615bd1565b600060405180830381855af49150503d8060008114613cb2576040519150601f19603f3d011682016040523d82523d6000602084013e613cb7565b606091505b5091509150613cc7828286614447565b9695505050505050565b606061265e8484600085614480565b6000818860a00151613cf291906158f4565b8851909150613d0190866145af565b8852613d1b613d108486615c84565b60208a0151906145af565b602089018190528851613d4091613d33908990613899565b895160408b0151856145f6565b6101008901819052600003613d6857604051635534d70f60e11b815260040160405180910390fd5b5050505050505050565b60006003821115613dd35750806000613d8c60028361591d565b613d9790600161584a565b90505b81811015613dcd57905080600281613db2818661591d565b613dbc919061584a565b613dc6919061591d565b9050613d9a565b50919050565b8115613ddd575060015b919050565b6000808213612fd557611ffb82615be3565b600080613e09670de0b6b3a764000085615bff565b9050828181613e1a57613e1a615907565b05949350505050565b6000670de0b6b3a76400008203613e4d5760405163a9c8b14d60e01b815260040160405180910390fd5b6000613e6b613e6484670de0b6b3a7640000615c2f565b8490613df4565b90506126618161428b565b6000680238fd42c5cf03ffff198212158015613e9b575068070c1cc73b00c800008213155b613eda5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b60448201526064016105e9565b6000821215613f1257613eef82600003613e76565b6a0c097ce7bc90715b34b9f160241b81613f0b57613f0b615907565b0592915050565b60006806f05b59d3b20000008312613f5057506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b613f86565b6803782dace9d90000008312613f8257506803782dace9d8ffffff19909101906b1425982cf597cd205cef7380613f86565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac620000008412613fd65768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412614012576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b18800000841261404c57682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008412614086576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac620000084126140bf57680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126140f85768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b18800008412614131576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c40000841261416a5768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b60008082136142cc5760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b60448201526064016105e9565b670c7d713b49da0000821380156142ea5750670f43fc2c04ee000082125b1561430e57670de0b6b3a764000061430183614649565b81613f0b57613f0b615907565b61200282614768565b6000806143248385615bff565b9050670de0b6b3a764000081613e1a565b60008061434287846145af565b9050600061435a614353888a615c84565b8390613df4565b9050670d529ae9e86000008113156143915780670d529ae9e8600000604051637e34684f60e11b81526004016105e9929190614d6f565b600061439c82613e23565b9050856143a98289613df4565b6143b39190615c84565b9350670de0b6b3a76400008412156143e15760405163329e322960e21b8152600481018590526024016105e9565b50505095945050505050565b600080600083126143ff576001614403565b6000195b90506138c66137038561441586613de2565b613675565b6000806000831261442c576001614430565b6000195b90506138c66137038561444286613de2565b614b0b565b60608315614456575081612661565b8251156144665782518084602001fd5b8160405162461bcd60e51b81526004016105e99190615cac565b6060824710156144e15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105e9565b6144ea85611728565b6145365760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105e9565b600080866001600160a01b031685876040516145529190615bd1565b60006040518083038185875af1925050503d806000811461458f576040519150601f19603f3d011682016040523d82523d6000602084013e614594565b606091505b50915091506145a4828286614447565b979650505050505050565b6000818312156145ec5760405162461bcd60e51b81526020600482015260086024820152676e6567617469766560c01b60448201526064016105e9565b6126618284615c2f565b600080614607878787876000614335565b90506000614617612f9c8361428b565b9050836146296201518061016d6158dd565b61463390836158dd565b61463d919061591d565b98975050505050505050565b670de0b6b3a7640000026000806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff198501028161468a5761468a615907565b05905060006a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b6000670de0b6b3a76400008212156147a9576147a0826a0c097ce7bc90715b34b9f160241b8161479a5761479a615907565b05614768565b60000392915050565b6000775803bcc5cb9634ba4cfb2213f784019318ed4dcb6017880f60361b83126147f45772195e54c5dd42177f53a27172fa9ec63026282760241b830592506806f05b59d3b2000000015b6f8bcc0026baae9e45e470190267a230cf60191b831261482b576b1425982cf597cd205cef7380830592506803782dace9d9000000015b606492830292026e01855144814a7ff805980ff00840008312614873576e01855144814a7ff805980ff008400068056bc75e2d63100000840205925068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a70083126148ae576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000084020592506856bc75e2d631000000015b693f1fce3da636ea5cf85083126148e557693f1fce3da636ea5cf85068056bc75e2d631000008402059250682b5e3af16b18800000015b690127fa27722cc06cc5e2831261491c57690127fa27722cc06cc5e268056bc75e2d6310000084020592506815af1d78b58c400000015b68280e60114edb805d0383126149515768280e60114edb805d0368056bc75e2d631000008402059250680ad78ebc5ac6200000015b680ebc5fb41746121110831261497c57680ebc5fb4174612111068056bc75e2d631000009384020592015b6808f00f760a4b2db55d83126149b1576808f00f760a4b2db55d68056bc75e2d6310000084020592506802b5e3af16b1880000015b6806f5f177578893793783126149e6576806f5f177578893793768056bc75e2d63100000840205925068015af1d78b58c40000015b6806248f33704b2866038312614a1a576806248f33704b28660368056bc75e2d63100000840205925067ad78ebc5ac620000015b6805c548670b9510e7ac8312614a4e576805c548670b9510e7ac68056bc75e2d6310000084020592506756bc75e2d6310000015b600068056bc75e2d63100000840168056bc75e2d631000008086030281614a7757614a77615907565b059050600068056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b820501600202606485820105979650505050505050565b600082600181614b23670de0b6b3a7640000866158dd565b614b2d919061584a565b6131bf91906158f4565b6040518060600160405280614b9a60405180610120016040528060008152602001600081526020016000815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081525090565b815260200160008152602001600081525090565b6001600160a01b03811681146108eb57600080fd5b8035613ddd81614bae565b80151581146108eb57600080fd5b600080600060608486031215614bf157600080fd5b8335614bfc81614bae565b92506020840135614c0c81614bce565b91506040840135614c1c81614bce565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b0381118282101715614c6057614c60614c27565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614c8e57614c8e614c27565b604052919050565b803560038110613ddd57600080fd5b600060408284031215614cb757600080fd5b604080519081016001600160401b0381118282101715614cd957614cd9614c27565b604052905080614ce883614c96565b8152614cf660208401614c96565b60208201525092915050565b600060a08284031215613dcd57600080fd5b60008060008060006101c08688031215614d2d57600080fd5b614d378787614ca5565b9450614d468760408801614d02565b9350614d558760e08801614d02565b9497939650939461018081013594506101a0013592915050565b918252602082015260400190565b600060208284031215614d8f57600080fd5b813561266181614bae565b600060208284031215614dac57600080fd5b5035919050565b600082601f830112614dc457600080fd5b81356001600160401b03811115614ddd57614ddd614c27565b614df0601f8201601f1916602001614c66565b818152846020838601011115614e0557600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215614e3557600080fd5b8235614e4081614bae565b915060208301356001600160401b03811115614e5b57600080fd5b614e6785828601614db3565b9150509250929050565b6001600160a01b0391909116815260200190565b6000806000806101208587031215614e9c57600080fd5b614ea68686614ca5565b9350614eb58660408701614d02565b939693955050505060e082013591610100013590565b9283526020830191909152604082015260600190565b8051825260208082015190830152604090810151910152565b606081016120028284614ee1565b60008083601f840112614f1a57600080fd5b5081356001600160401b03811115614f3157600080fd5b6020830191508360208260051b8501011115614f4c57600080fd5b9250929050565b60008060008060608587031215614f6957600080fd5b8435614f7481614bae565b935060208501356001600160401b03811115614f8f57600080fd5b614f9b87828801614f08565b9598909750949560400135949350505050565b60008060008060006101408688031215614fc757600080fd5b8535614fd281614bae565b9450614fe18760208801614ca5565b9350614ff08760608801614d02565b949793965093946101008101359450610120013592915050565b6000806020838503121561501d57600080fd5b82356001600160401b0381111561503357600080fd5b61503f85828601614f08565b90969095509350505050565b805180518352602081015160208401526040810151604084015260018060a01b0360608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010080820151818501525050602081015161012083015260408101516101408301525050565b6101608101612002828461504b565b6000608082840312156150e757600080fd5b604051608081016001600160401b038111828210171561510957615109614c27565b8060405250823581526020830135602082015260408301356040820152606083013560608201528091505092915050565b6000806040838503121561514d57600080fd5b823561515881614bae565b946020939093013593505050565b60008060006060848603121561517b57600080fd5b833561518681614bae565b925060208401356001600160401b038111156151a157600080fd5b840160c081870312156151b357600080fd5b929592945050506040919091013590565b600060808284031215613dcd57600080fd5b60008060008060008061016087890312156151f057600080fd5b86356151fb81614bae565b955061520a8860208901614ca5565b94506152198860608901614d02565b93506101008701359250610120870135915061014087013590509295509295509295565b6000806000806060858703121561525357600080fd5b843593506020850135925060408501356001600160401b038082111561527857600080fd5b818701915087601f83011261528c57600080fd5b81358181111561529b57600080fd5b8860208285010111156152ad57600080fd5b95989497505060200194505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60038110615317576153176152f1565b9052565b615326828251615307565b60208101516106bf6020840182615307565b80358252602081013560208301526040810135604083015260608101356060830152608081013560808301525050565b6103e08101615377828a614ee1565b615384606083018961504b565b86546101c083015260018701546101e083015260028701546102008301526003870154610220830152600686106153bd576153bd6152f1565b856102408301526153d261026083018661531b565b6153e06102a0830185615338565b61463d610340830184615338565b60006020828403121561540057600080fd5b5051919050565b600060a0828403121561541957600080fd5b60405160a081016001600160401b038111828210171561543b5761543b614c27565b806040525082358152602083013560208201526040830135604082015260608301356060820152608083013560808201528091505092915050565b6101408101615485828861531b565b6154926040830187615338565b8460e083015283610100830152826101208301529695505050505050565b6020808252602c90820152600080516020615cc083398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c90820152600080516020615cc083398151915260408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60008235603e1983360301811261555057600080fd5b9190910192915050565b6000808335601e1984360301811261557157600080fd5b8301803591506001600160401b0382111561558b57600080fd5b6020019150600581901b3603821315614f4c57600080fd5b8051613ddd81614bae565b600061012082840312156155c157600080fd5b6155c9614c3d565b8251815260208301516020820152604083015160408201526155ed606084016155a3565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152508091505092915050565b60006080828403121561564257600080fd5b604051608081016001600160401b03808211838310171561566557615665614c27565b81604052829350843591506004821061567d57600080fd5b90825260208401359061568f82614bae565b81602084015260408501359150808211156156a957600080fd5b506156b685828601614db3565b60408301525060608301356156ca81614bce565b6060919091015292915050565b600060c082360312156156e957600080fd5b60405160c081016001600160401b03808211838310171561570c5761570c614c27565b816040528435915061571d82614bae565b818352602085013560208401526040850135915061573a82614bae565b8160408401526060850135915061575082614bae565b81606084015261576260808601614bc3565b608084015260a085013591508082111561577b57600080fd5b5061578836828601615630565b60a08301525092915050565b61016081016157a3828961531b565b6157b06040830188615338565b8560e0830152846101008301528361012083015282610140830152979650505050505050565b634e487b7160e01b600052600160045260246000fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000806040838503121561582357600080fd5b505080516020909101519092909150565b634e487b7160e01b600052601160045260246000fd5b8082018082111561200257612002615834565b60005b83811015615878578181015183820152602001615860565b50506000910152565b6000815180845261589981602086016020860161585d565b601f01601f19169290920160200192915050565b60018060a01b03841681528260208201526060604082015260006158d46060830184615881565b95945050505050565b808202811582820484141761200257612002615834565b8181038181111561200257612002615834565b634e487b7160e01b600052601260045260246000fd5b60008261592c5761592c615907565b500490565b6001600160a01b039390931683526020830191909152604082015260600190565b60008060006060848603121561596757600080fd5b8351925060208401519150604084015190509250925092565b600082601f83011261599157600080fd5b815160206001600160401b038211156159ac576159ac614c27565b8160051b6159bb828201614c66565b92835284810182019282810190878511156159d557600080fd5b83870192505b848310156145a4578251825291830191908301906159db565b60008060408385031215615a0757600080fd5b825160208401519092506001600160401b03811115615a2557600080fd5b614e6785828601615980565b600060208284031215615a4357600080fd5b81516001600160401b03811115615a5957600080fd5b61225384828501615980565b6000823560be1983360301811261555057600080fd5b600060018201615a8d57615a8d615834565b5060010190565b60006001600160601b0383811680615aae57615aae615907565b92169190910492915050565b6001600160a01b0392831681529116602082015260400190565b600060018060a01b038087168352808616602084015284604084015260806060840152808451166080840152602084015160a08401528060408501511660c08401528060608501511660e08401528060808501511661010084015260a084015160c0610120850152805160048110615b4e57615b4e6152f1565b61014085015260208101519091166101608401526040810151608061018085015290615b7e6101c0850183615881565b9150606081015115156101a0850152508091505095945050505050565b600060208284031215615bad57600080fd5b815161266181614bce565b6001600160a01b03929092168252602082015260400190565b6000825161555081846020870161585d565b6000600160ff1b8201615bf857615bf8615834565b5060000390565b80820260008212600160ff1b84141615615c1b57615c1b615834565b818105831482151761200257612002615834565b8181036000831280158383131683831282161715615c4f57615c4f615834565b5092915050565b600082615c6557615c65615907565b600160ff1b821460001984141615615c7f57615c7f615834565b500590565b8082018281126000831280158216821582161715615ca457615ca4615834565b505092915050565b602081526000612661602083018461588156fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220aea4b3ca72c3bb0e2910712aabb3ee018548b5133751df96d709854add9aa3c664736f6c63430008110033";
|
|
1887
|
+
|
|
1888
|
+
type LongYieldTradingBotConstructorParams =
|
|
1889
|
+
| [signer?: Signer]
|
|
1890
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
1891
|
+
|
|
1892
|
+
const isSuperArgs = (
|
|
1893
|
+
xs: LongYieldTradingBotConstructorParams
|
|
1894
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
1895
|
+
|
|
1896
|
+
export class LongYieldTradingBot__factory extends ContractFactory {
|
|
1897
|
+
constructor(...args: LongYieldTradingBotConstructorParams) {
|
|
1898
|
+
if (isSuperArgs(args)) {
|
|
1899
|
+
super(...args);
|
|
1900
|
+
} else {
|
|
1901
|
+
super(_abi, _bytecode, args[0]);
|
|
1902
|
+
}
|
|
1903
|
+
this.contractName = "LongYieldTradingBot";
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
deploy(
|
|
1907
|
+
_market: string,
|
|
1908
|
+
_PENDLE: string,
|
|
1909
|
+
_decisionLib: string,
|
|
1910
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1911
|
+
): Promise<LongYieldTradingBot> {
|
|
1912
|
+
return super.deploy(
|
|
1913
|
+
_market,
|
|
1914
|
+
_PENDLE,
|
|
1915
|
+
_decisionLib,
|
|
1916
|
+
overrides || {}
|
|
1917
|
+
) as Promise<LongYieldTradingBot>;
|
|
1918
|
+
}
|
|
1919
|
+
getDeployTransaction(
|
|
1920
|
+
_market: string,
|
|
1921
|
+
_PENDLE: string,
|
|
1922
|
+
_decisionLib: string,
|
|
1923
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1924
|
+
): TransactionRequest {
|
|
1925
|
+
return super.getDeployTransaction(
|
|
1926
|
+
_market,
|
|
1927
|
+
_PENDLE,
|
|
1928
|
+
_decisionLib,
|
|
1929
|
+
overrides || {}
|
|
1930
|
+
);
|
|
1931
|
+
}
|
|
1932
|
+
attach(address: string): LongYieldTradingBot {
|
|
1933
|
+
return super.attach(address) as LongYieldTradingBot;
|
|
1934
|
+
}
|
|
1935
|
+
connect(signer: Signer): LongYieldTradingBot__factory {
|
|
1936
|
+
return super.connect(signer) as LongYieldTradingBot__factory;
|
|
1937
|
+
}
|
|
1938
|
+
static readonly contractName: "LongYieldTradingBot";
|
|
1939
|
+
public readonly contractName: "LongYieldTradingBot";
|
|
1940
|
+
static readonly bytecode = _bytecode;
|
|
1941
|
+
static readonly abi = _abi;
|
|
1942
|
+
static createInterface(): LongYieldTradingBotInterface {
|
|
1943
|
+
return new utils.Interface(_abi) as LongYieldTradingBotInterface;
|
|
1944
|
+
}
|
|
1945
|
+
static connect(
|
|
1946
|
+
address: string,
|
|
1947
|
+
signerOrProvider: Signer | Provider
|
|
1948
|
+
): LongYieldTradingBot {
|
|
1949
|
+
return new Contract(address, _abi, signerOrProvider) as LongYieldTradingBot;
|
|
1950
|
+
}
|
|
1951
|
+
}
|