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