@pendle/core-v2 2.17.7-tradingbot → 2.18.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/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/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.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/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- 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/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- 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/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- 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/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- 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/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/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/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- 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/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
- 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/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.json +32 -17
- package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.json +32 -17
- package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.json +1190 -0
- package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.json +301 -397
- package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/SpecSegmentLib.sol/SpecSegmentLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/SpecSegmentLib.sol/SpecSegmentLib.json +10 -0
- package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.json +32 -17
- 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/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- 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/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IERC4626LinearPool.sol/IERC4626LinearPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.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/ICamelotPair.sol/ICamelotPair.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/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/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.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/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/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.json +542 -581
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +256 -325
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +6 -17
- package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
- 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/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.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/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- 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/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- 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/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- 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/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
- 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/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- 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/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IHashflow.sol/IHashflow.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberInputScalingHelper.sol/KyberInputScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
- package/contracts/core/TradingBot/BotActionCallback.sol +1 -1
- package/contracts/core/TradingBot/BotActionHelper.sol +1 -3
- package/contracts/core/TradingBot/BotSimulationLib.sol +2 -1
- package/contracts/core/TradingBot/LongYieldDecisionHelper.sol +413 -0
- package/contracts/core/TradingBot/LongYieldTradingBot.sol +63 -91
- package/contracts/core/TradingBot/SpecSegmentLib.sol +62 -0
- package/contracts/core/TradingBot/TradingBotBase.sol +14 -9
- package/contracts/interfaces/TradingBot/IBotDecisionHelper.sol +41 -57
- package/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol +24 -34
- package/contracts/interfaces/TradingBot/ITradingBotBase.sol +1 -3
- package/package.json +1 -1
- package/typechain-types/BotActionCallback.ts +40 -22
- package/typechain-types/BotActionHelper.ts +40 -22
- package/typechain-types/BotDecisionHelper.ts +221 -187
- package/typechain-types/IAnkrBNB.ts +150 -0
- package/typechain-types/IAnkrLiquidStaking.ts +253 -0
- package/typechain-types/IBotDecisionHelper.ts +142 -212
- package/typechain-types/ILongYieldTradingBot.ts +147 -230
- package/typechain-types/ISwETH.ts +123 -0
- package/typechain-types/ITradingBotBase.ts +14 -22
- package/typechain-types/LongYieldDecisionHelper.ts +598 -0
- package/typechain-types/LongYieldTradingBot.ts +191 -248
- package/typechain-types/PendleAnkrBNBSY.ts +1235 -0
- package/typechain-types/PendleAuraWstethAnkreth.ts +1511 -0
- package/typechain-types/PendleSwETH.ts +1216 -0
- package/typechain-types/PendleThenaSY.ts +153 -0
- package/typechain-types/PendleWbEthSY.ts +1229 -0
- package/typechain-types/ThenaLpHelper.ts +19 -0
- package/typechain-types/ThenaMath.ts +87 -0
- package/typechain-types/ThenaPreview.ts +19 -0
- package/typechain-types/TradingBotBase.ts +40 -22
- package/typechain-types/factories/BotActionCallback__factory.ts +31 -16
- package/typechain-types/factories/BotActionHelper__factory.ts +31 -16
- package/typechain-types/factories/BotDecisionHelper__factory.ts +490 -421
- package/typechain-types/factories/IAnkrBNB__factory.ts +74 -0
- package/typechain-types/factories/IAnkrLiquidStaking__factory.ts +123 -0
- package/typechain-types/factories/IBotDecisionHelper__factory.ts +540 -579
- package/typechain-types/factories/ILongYieldTradingBot__factory.ts +255 -324
- package/typechain-types/factories/ISwETH__factory.ts +53 -0
- package/typechain-types/factories/ITradingBotBase__factory.ts +6 -17
- package/typechain-types/factories/LongYieldDecisionHelper__factory.ts +1247 -0
- package/typechain-types/factories/LongYieldTradingBot__factory.ts +301 -393
- package/typechain-types/factories/PendleAnkrBNBSY__factory.ts +1100 -0
- package/typechain-types/factories/PendleAuraWstethAnkreth__factory.ts +1244 -0
- package/typechain-types/factories/PendleSwETH__factory.ts +1022 -0
- package/typechain-types/factories/PendleThenaSY__factory.ts +85 -1
- package/typechain-types/factories/PendleWbEthSY__factory.ts +1049 -0
- package/typechain-types/factories/PtAndLpToAsset__factory.ts +1 -1
- package/typechain-types/factories/ThenaLpHelper__factory.ts +13 -0
- package/typechain-types/factories/ThenaMath__factory.ts +36 -0
- package/typechain-types/factories/ThenaPreview__factory.ts +14 -1
- package/typechain-types/factories/TradingBotBase__factory.ts +31 -16
- package/typechain-types/hardhat.d.ts +4 -40
- package/typechain-types/index.ts +2 -10
- package/build/artifacts/contracts/core/TradingBot/BotDecisionHelper.sol/BotDecisionHelper.dbg.json +0 -4
- package/build/artifacts/contracts/core/TradingBot/BotDecisionHelper.sol/BotDecisionHelper.json +0 -1070
- package/contracts/core/TradingBot/BotDecisionHelper.sol +0 -306
|
@@ -7,6 +7,8 @@ import {
|
|
|
7
7
|
BigNumberish,
|
|
8
8
|
BytesLike,
|
|
9
9
|
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
10
12
|
PopulatedTransaction,
|
|
11
13
|
Signer,
|
|
12
14
|
utils,
|
|
@@ -20,28 +22,6 @@ import type {
|
|
|
20
22
|
OnEvent,
|
|
21
23
|
} from "./common";
|
|
22
24
|
|
|
23
|
-
export type BotStateStruct = {
|
|
24
|
-
lpBalance: BigNumberish;
|
|
25
|
-
ytBalance: BigNumberish;
|
|
26
|
-
syBalance: BigNumberish;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export type BotStateStructOutput = [BigNumber, BigNumber, BigNumber] & {
|
|
30
|
-
lpBalance: BigNumber;
|
|
31
|
-
ytBalance: BigNumber;
|
|
32
|
-
syBalance: BigNumber;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export type StrategyStateStruct = {
|
|
36
|
-
iyFlag: BigNumberish;
|
|
37
|
-
syRatioFlag: BigNumberish;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export type StrategyStateStructOutput = [number, number] & {
|
|
41
|
-
iyFlag: number;
|
|
42
|
-
syRatioFlag: number;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
25
|
export type MarketStateStruct = {
|
|
46
26
|
totalPt: BigNumberish;
|
|
47
27
|
totalSy: BigNumberish;
|
|
@@ -110,13 +90,32 @@ export type ApproxParamsStructOutput = [
|
|
|
110
90
|
eps: BigNumber;
|
|
111
91
|
};
|
|
112
92
|
|
|
93
|
+
export type BotStateStruct = {
|
|
94
|
+
lpBalance: BigNumberish;
|
|
95
|
+
ytBalance: BigNumberish;
|
|
96
|
+
syBalance: BigNumberish;
|
|
97
|
+
buyBins: BigNumberish;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export type BotStateStructOutput = [
|
|
101
|
+
BigNumber,
|
|
102
|
+
BigNumber,
|
|
103
|
+
BigNumber,
|
|
104
|
+
BigNumber
|
|
105
|
+
] & {
|
|
106
|
+
lpBalance: BigNumber;
|
|
107
|
+
ytBalance: BigNumber;
|
|
108
|
+
syBalance: BigNumber;
|
|
109
|
+
buyBins: BigNumber;
|
|
110
|
+
};
|
|
111
|
+
|
|
113
112
|
export type LongTradingSpecsStruct = {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
113
|
+
buyYtIy: BigNumberish;
|
|
114
|
+
sellYtIy: BigNumberish;
|
|
115
|
+
targetSyRatio: BigNumberish;
|
|
116
|
+
maxSyRatio: BigNumberish;
|
|
117
|
+
minYtPtRatio: BigNumberish;
|
|
118
|
+
numOfBins: BigNumberish;
|
|
120
119
|
};
|
|
121
120
|
|
|
122
121
|
export type LongTradingSpecsStructOutput = [
|
|
@@ -127,37 +126,72 @@ export type LongTradingSpecsStructOutput = [
|
|
|
127
126
|
BigNumber,
|
|
128
127
|
BigNumber
|
|
129
128
|
] & {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
129
|
+
buyYtIy: BigNumber;
|
|
130
|
+
sellYtIy: BigNumber;
|
|
131
|
+
targetSyRatio: BigNumber;
|
|
132
|
+
maxSyRatio: BigNumber;
|
|
133
|
+
minYtPtRatio: BigNumber;
|
|
134
|
+
numOfBins: BigNumber;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export type StrategyDataStruct = {
|
|
138
|
+
botState: BotStateStruct;
|
|
139
|
+
marketExt: MarketExtStateStruct;
|
|
140
|
+
specs: LongTradingSpecsStruct;
|
|
136
141
|
};
|
|
137
142
|
|
|
143
|
+
export type StrategyDataStructOutput = [
|
|
144
|
+
BotStateStructOutput,
|
|
145
|
+
MarketExtStateStructOutput,
|
|
146
|
+
LongTradingSpecsStructOutput
|
|
147
|
+
] & {
|
|
148
|
+
botState: BotStateStructOutput;
|
|
149
|
+
marketExt: MarketExtStateStructOutput;
|
|
150
|
+
specs: LongTradingSpecsStructOutput;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export declare namespace IBotDecisionHelper {
|
|
154
|
+
export type ActionToTakeResultStruct = {
|
|
155
|
+
action: BigNumberish;
|
|
156
|
+
currentBin: BigNumberish;
|
|
157
|
+
guessBotParams: BigNumberish;
|
|
158
|
+
guessIntParams: BigNumberish;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export type ActionToTakeResultStructOutput = [
|
|
162
|
+
number,
|
|
163
|
+
BigNumber,
|
|
164
|
+
BigNumber,
|
|
165
|
+
BigNumber
|
|
166
|
+
] & {
|
|
167
|
+
action: number;
|
|
168
|
+
currentBin: BigNumber;
|
|
169
|
+
guessBotParams: BigNumber;
|
|
170
|
+
guessIntParams: BigNumber;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
138
174
|
export interface BotDecisionHelperInterface extends utils.Interface {
|
|
139
175
|
contractName: "BotDecisionHelper";
|
|
140
176
|
functions: {
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
177
|
+
"INF()": FunctionFragment;
|
|
178
|
+
"MINIMAL_EPS()": FunctionFragment;
|
|
179
|
+
"_searchForIntParam(((int256,int256,int256,address,int256,uint256,uint256,uint256,uint256),uint256,uint256),uint8,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
180
|
+
"botExtStats((uint256,uint256,uint256,uint256),((int256,int256,int256,address,int256,uint256,uint256,uint256,uint256),uint256,uint256))": FunctionFragment;
|
|
181
|
+
"getActionDetails(address)": FunctionFragment;
|
|
182
|
+
"getCurrentBin(((uint256,uint256,uint256,uint256),((int256,int256,int256,address,int256,uint256,uint256,uint256,uint256),uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256)))": FunctionFragment;
|
|
183
|
+
"previewAction(((uint256,uint256,uint256,uint256),((int256,int256,int256,address,int256,uint256,uint256,uint256,uint256),uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256)),uint8,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
184
|
+
"searchForBotParam(((uint256,uint256,uint256,uint256),((int256,int256,int256,address,int256,uint256,uint256,uint256,uint256),uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256)),uint8,uint256,(uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
147
185
|
};
|
|
148
186
|
|
|
187
|
+
encodeFunctionData(functionFragment: "INF", values?: undefined): string;
|
|
149
188
|
encodeFunctionData(
|
|
150
|
-
functionFragment: "
|
|
151
|
-
values
|
|
189
|
+
functionFragment: "MINIMAL_EPS",
|
|
190
|
+
values?: undefined
|
|
152
191
|
): string;
|
|
153
192
|
encodeFunctionData(
|
|
154
|
-
functionFragment: "
|
|
155
|
-
values: [BotStateStruct, MarketExtStateStruct]
|
|
156
|
-
): string;
|
|
157
|
-
encodeFunctionData(
|
|
158
|
-
functionFragment: "previewAction",
|
|
193
|
+
functionFragment: "_searchForIntParam",
|
|
159
194
|
values: [
|
|
160
|
-
BotStateStruct,
|
|
161
195
|
MarketExtStateStruct,
|
|
162
196
|
BigNumberish,
|
|
163
197
|
BigNumberish,
|
|
@@ -165,32 +199,39 @@ export interface BotDecisionHelperInterface extends utils.Interface {
|
|
|
165
199
|
]
|
|
166
200
|
): string;
|
|
167
201
|
encodeFunctionData(
|
|
168
|
-
functionFragment: "
|
|
169
|
-
values: [
|
|
170
|
-
BotStateStruct,
|
|
171
|
-
MarketExtStateStruct,
|
|
172
|
-
LongTradingSpecsStruct,
|
|
173
|
-
BigNumberish,
|
|
174
|
-
ApproxParamsStruct,
|
|
175
|
-
ApproxParamsStruct
|
|
176
|
-
]
|
|
202
|
+
functionFragment: "botExtStats",
|
|
203
|
+
values: [BotStateStruct, MarketExtStateStruct]
|
|
177
204
|
): string;
|
|
178
205
|
encodeFunctionData(
|
|
179
|
-
functionFragment: "
|
|
206
|
+
functionFragment: "getActionDetails",
|
|
207
|
+
values: [string]
|
|
208
|
+
): string;
|
|
209
|
+
encodeFunctionData(
|
|
210
|
+
functionFragment: "getCurrentBin",
|
|
211
|
+
values: [StrategyDataStruct]
|
|
212
|
+
): string;
|
|
213
|
+
encodeFunctionData(
|
|
214
|
+
functionFragment: "previewAction",
|
|
215
|
+
values: [StrategyDataStruct, BigNumberish, BigNumberish, ApproxParamsStruct]
|
|
216
|
+
): string;
|
|
217
|
+
encodeFunctionData(
|
|
218
|
+
functionFragment: "searchForBotParam",
|
|
180
219
|
values: [
|
|
181
|
-
|
|
220
|
+
StrategyDataStruct,
|
|
182
221
|
BigNumberish,
|
|
183
222
|
BigNumberish,
|
|
223
|
+
ApproxParamsStruct,
|
|
184
224
|
ApproxParamsStruct
|
|
185
225
|
]
|
|
186
226
|
): string;
|
|
187
|
-
encodeFunctionData(
|
|
188
|
-
functionFragment: "strategyState",
|
|
189
|
-
values: [BotStateStruct, MarketExtStateStruct, LongTradingSpecsStruct]
|
|
190
|
-
): string;
|
|
191
227
|
|
|
228
|
+
decodeFunctionResult(functionFragment: "INF", data: BytesLike): Result;
|
|
229
|
+
decodeFunctionResult(
|
|
230
|
+
functionFragment: "MINIMAL_EPS",
|
|
231
|
+
data: BytesLike
|
|
232
|
+
): Result;
|
|
192
233
|
decodeFunctionResult(
|
|
193
|
-
functionFragment: "
|
|
234
|
+
functionFragment: "_searchForIntParam",
|
|
194
235
|
data: BytesLike
|
|
195
236
|
): Result;
|
|
196
237
|
decodeFunctionResult(
|
|
@@ -198,19 +239,19 @@ export interface BotDecisionHelperInterface extends utils.Interface {
|
|
|
198
239
|
data: BytesLike
|
|
199
240
|
): Result;
|
|
200
241
|
decodeFunctionResult(
|
|
201
|
-
functionFragment: "
|
|
242
|
+
functionFragment: "getActionDetails",
|
|
202
243
|
data: BytesLike
|
|
203
244
|
): Result;
|
|
204
245
|
decodeFunctionResult(
|
|
205
|
-
functionFragment: "
|
|
246
|
+
functionFragment: "getCurrentBin",
|
|
206
247
|
data: BytesLike
|
|
207
248
|
): Result;
|
|
208
249
|
decodeFunctionResult(
|
|
209
|
-
functionFragment: "
|
|
250
|
+
functionFragment: "previewAction",
|
|
210
251
|
data: BytesLike
|
|
211
252
|
): Result;
|
|
212
253
|
decodeFunctionResult(
|
|
213
|
-
functionFragment: "
|
|
254
|
+
functionFragment: "searchForBotParam",
|
|
214
255
|
data: BytesLike
|
|
215
256
|
): Result;
|
|
216
257
|
|
|
@@ -245,14 +286,20 @@ export interface BotDecisionHelper extends BaseContract {
|
|
|
245
286
|
removeListener: OnEvent<this>;
|
|
246
287
|
|
|
247
288
|
functions: {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
289
|
+
INF(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
290
|
+
|
|
291
|
+
MINIMAL_EPS(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
292
|
+
|
|
293
|
+
_searchForIntParam(
|
|
294
|
+
marketExt: MarketExtStateStruct,
|
|
295
|
+
action: BigNumberish,
|
|
296
|
+
botParam: BigNumberish,
|
|
297
|
+
intParams: ApproxParamsStruct,
|
|
251
298
|
overrides?: CallOverrides
|
|
252
|
-
): Promise<[
|
|
299
|
+
): Promise<[BigNumber]>;
|
|
253
300
|
|
|
254
301
|
botExtStats(
|
|
255
|
-
|
|
302
|
+
botState: BotStateStruct,
|
|
256
303
|
marketExt: MarketExtStateStruct,
|
|
257
304
|
overrides?: CallOverrides
|
|
258
305
|
): Promise<
|
|
@@ -264,9 +311,18 @@ export interface BotDecisionHelper extends BaseContract {
|
|
|
264
311
|
}
|
|
265
312
|
>;
|
|
266
313
|
|
|
314
|
+
getActionDetails(
|
|
315
|
+
botAddress: string,
|
|
316
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
317
|
+
): Promise<ContractTransaction>;
|
|
318
|
+
|
|
319
|
+
getCurrentBin(
|
|
320
|
+
strategyData: StrategyDataStruct,
|
|
321
|
+
overrides?: CallOverrides
|
|
322
|
+
): Promise<[BigNumber]>;
|
|
323
|
+
|
|
267
324
|
previewAction(
|
|
268
|
-
|
|
269
|
-
marketExtData: MarketExtStateStruct,
|
|
325
|
+
strategyData: StrategyDataStruct,
|
|
270
326
|
action: BigNumberish,
|
|
271
327
|
botParam: BigNumberish,
|
|
272
328
|
swapApproxParams: ApproxParamsStruct,
|
|
@@ -280,41 +336,29 @@ export interface BotDecisionHelper extends BaseContract {
|
|
|
280
336
|
>;
|
|
281
337
|
|
|
282
338
|
searchForBotParam(
|
|
283
|
-
|
|
284
|
-
marketExt: MarketExtStateStruct,
|
|
285
|
-
specs: LongTradingSpecsStruct,
|
|
339
|
+
strategyData: StrategyDataStruct,
|
|
286
340
|
action: BigNumberish,
|
|
341
|
+
targetIy: BigNumberish,
|
|
287
342
|
botParams: ApproxParamsStruct,
|
|
288
343
|
intParams: ApproxParamsStruct,
|
|
289
344
|
overrides?: CallOverrides
|
|
290
|
-
): Promise<[BigNumber, number]>;
|
|
291
|
-
|
|
292
|
-
searchForIntParam(
|
|
293
|
-
marketExt: MarketExtStateStruct,
|
|
294
|
-
action: BigNumberish,
|
|
295
|
-
botParam: BigNumberish,
|
|
296
|
-
intParams: ApproxParamsStruct,
|
|
297
|
-
overrides?: CallOverrides
|
|
298
345
|
): Promise<[BigNumber]>;
|
|
299
|
-
|
|
300
|
-
strategyState(
|
|
301
|
-
bot: BotStateStruct,
|
|
302
|
-
marketExt: MarketExtStateStruct,
|
|
303
|
-
specs: LongTradingSpecsStruct,
|
|
304
|
-
overrides?: CallOverrides
|
|
305
|
-
): Promise<
|
|
306
|
-
[StrategyStateStructOutput] & { currentState: StrategyStateStructOutput }
|
|
307
|
-
>;
|
|
308
346
|
};
|
|
309
347
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
348
|
+
INF(overrides?: CallOverrides): Promise<BigNumber>;
|
|
349
|
+
|
|
350
|
+
MINIMAL_EPS(overrides?: CallOverrides): Promise<BigNumber>;
|
|
351
|
+
|
|
352
|
+
_searchForIntParam(
|
|
353
|
+
marketExt: MarketExtStateStruct,
|
|
354
|
+
action: BigNumberish,
|
|
355
|
+
botParam: BigNumberish,
|
|
356
|
+
intParams: ApproxParamsStruct,
|
|
313
357
|
overrides?: CallOverrides
|
|
314
|
-
): Promise<
|
|
358
|
+
): Promise<BigNumber>;
|
|
315
359
|
|
|
316
360
|
botExtStats(
|
|
317
|
-
|
|
361
|
+
botState: BotStateStruct,
|
|
318
362
|
marketExt: MarketExtStateStruct,
|
|
319
363
|
overrides?: CallOverrides
|
|
320
364
|
): Promise<
|
|
@@ -326,9 +370,18 @@ export interface BotDecisionHelper extends BaseContract {
|
|
|
326
370
|
}
|
|
327
371
|
>;
|
|
328
372
|
|
|
373
|
+
getActionDetails(
|
|
374
|
+
botAddress: string,
|
|
375
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
376
|
+
): Promise<ContractTransaction>;
|
|
377
|
+
|
|
378
|
+
getCurrentBin(
|
|
379
|
+
strategyData: StrategyDataStruct,
|
|
380
|
+
overrides?: CallOverrides
|
|
381
|
+
): Promise<BigNumber>;
|
|
382
|
+
|
|
329
383
|
previewAction(
|
|
330
|
-
|
|
331
|
-
marketExtData: MarketExtStateStruct,
|
|
384
|
+
strategyData: StrategyDataStruct,
|
|
332
385
|
action: BigNumberish,
|
|
333
386
|
botParam: BigNumberish,
|
|
334
387
|
swapApproxParams: ApproxParamsStruct,
|
|
@@ -342,39 +395,29 @@ export interface BotDecisionHelper extends BaseContract {
|
|
|
342
395
|
>;
|
|
343
396
|
|
|
344
397
|
searchForBotParam(
|
|
345
|
-
|
|
346
|
-
marketExt: MarketExtStateStruct,
|
|
347
|
-
specs: LongTradingSpecsStruct,
|
|
398
|
+
strategyData: StrategyDataStruct,
|
|
348
399
|
action: BigNumberish,
|
|
400
|
+
targetIy: BigNumberish,
|
|
349
401
|
botParams: ApproxParamsStruct,
|
|
350
402
|
intParams: ApproxParamsStruct,
|
|
351
403
|
overrides?: CallOverrides
|
|
352
|
-
): Promise<[BigNumber, number]>;
|
|
353
|
-
|
|
354
|
-
searchForIntParam(
|
|
355
|
-
marketExt: MarketExtStateStruct,
|
|
356
|
-
action: BigNumberish,
|
|
357
|
-
botParam: BigNumberish,
|
|
358
|
-
intParams: ApproxParamsStruct,
|
|
359
|
-
overrides?: CallOverrides
|
|
360
404
|
): Promise<BigNumber>;
|
|
361
405
|
|
|
362
|
-
strategyState(
|
|
363
|
-
bot: BotStateStruct,
|
|
364
|
-
marketExt: MarketExtStateStruct,
|
|
365
|
-
specs: LongTradingSpecsStruct,
|
|
366
|
-
overrides?: CallOverrides
|
|
367
|
-
): Promise<StrategyStateStructOutput>;
|
|
368
|
-
|
|
369
406
|
callStatic: {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
407
|
+
INF(overrides?: CallOverrides): Promise<BigNumber>;
|
|
408
|
+
|
|
409
|
+
MINIMAL_EPS(overrides?: CallOverrides): Promise<BigNumber>;
|
|
410
|
+
|
|
411
|
+
_searchForIntParam(
|
|
412
|
+
marketExt: MarketExtStateStruct,
|
|
413
|
+
action: BigNumberish,
|
|
414
|
+
botParam: BigNumberish,
|
|
415
|
+
intParams: ApproxParamsStruct,
|
|
373
416
|
overrides?: CallOverrides
|
|
374
|
-
): Promise<
|
|
417
|
+
): Promise<BigNumber>;
|
|
375
418
|
|
|
376
419
|
botExtStats(
|
|
377
|
-
|
|
420
|
+
botState: BotStateStruct,
|
|
378
421
|
marketExt: MarketExtStateStruct,
|
|
379
422
|
overrides?: CallOverrides
|
|
380
423
|
): Promise<
|
|
@@ -386,9 +429,18 @@ export interface BotDecisionHelper extends BaseContract {
|
|
|
386
429
|
}
|
|
387
430
|
>;
|
|
388
431
|
|
|
432
|
+
getActionDetails(
|
|
433
|
+
botAddress: string,
|
|
434
|
+
overrides?: CallOverrides
|
|
435
|
+
): Promise<IBotDecisionHelper.ActionToTakeResultStructOutput>;
|
|
436
|
+
|
|
437
|
+
getCurrentBin(
|
|
438
|
+
strategyData: StrategyDataStruct,
|
|
439
|
+
overrides?: CallOverrides
|
|
440
|
+
): Promise<BigNumber>;
|
|
441
|
+
|
|
389
442
|
previewAction(
|
|
390
|
-
|
|
391
|
-
marketExtData: MarketExtStateStruct,
|
|
443
|
+
strategyData: StrategyDataStruct,
|
|
392
444
|
action: BigNumberish,
|
|
393
445
|
botParam: BigNumberish,
|
|
394
446
|
swapApproxParams: ApproxParamsStruct,
|
|
@@ -402,16 +454,23 @@ export interface BotDecisionHelper extends BaseContract {
|
|
|
402
454
|
>;
|
|
403
455
|
|
|
404
456
|
searchForBotParam(
|
|
405
|
-
|
|
406
|
-
marketExt: MarketExtStateStruct,
|
|
407
|
-
specs: LongTradingSpecsStruct,
|
|
457
|
+
strategyData: StrategyDataStruct,
|
|
408
458
|
action: BigNumberish,
|
|
459
|
+
targetIy: BigNumberish,
|
|
409
460
|
botParams: ApproxParamsStruct,
|
|
410
461
|
intParams: ApproxParamsStruct,
|
|
411
462
|
overrides?: CallOverrides
|
|
412
|
-
): Promise<
|
|
463
|
+
): Promise<BigNumber>;
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
filters: {};
|
|
467
|
+
|
|
468
|
+
estimateGas: {
|
|
469
|
+
INF(overrides?: CallOverrides): Promise<BigNumber>;
|
|
470
|
+
|
|
471
|
+
MINIMAL_EPS(overrides?: CallOverrides): Promise<BigNumber>;
|
|
413
472
|
|
|
414
|
-
|
|
473
|
+
_searchForIntParam(
|
|
415
474
|
marketExt: MarketExtStateStruct,
|
|
416
475
|
action: BigNumberish,
|
|
417
476
|
botParam: BigNumberish,
|
|
@@ -419,32 +478,24 @@ export interface BotDecisionHelper extends BaseContract {
|
|
|
419
478
|
overrides?: CallOverrides
|
|
420
479
|
): Promise<BigNumber>;
|
|
421
480
|
|
|
422
|
-
|
|
423
|
-
|
|
481
|
+
botExtStats(
|
|
482
|
+
botState: BotStateStruct,
|
|
424
483
|
marketExt: MarketExtStateStruct,
|
|
425
|
-
specs: LongTradingSpecsStruct,
|
|
426
484
|
overrides?: CallOverrides
|
|
427
|
-
): Promise<
|
|
428
|
-
};
|
|
429
|
-
|
|
430
|
-
filters: {};
|
|
485
|
+
): Promise<BigNumber>;
|
|
431
486
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
currentState: StrategyStateStruct,
|
|
436
|
-
overrides?: CallOverrides
|
|
487
|
+
getActionDetails(
|
|
488
|
+
botAddress: string,
|
|
489
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
437
490
|
): Promise<BigNumber>;
|
|
438
491
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
marketExt: MarketExtStateStruct,
|
|
492
|
+
getCurrentBin(
|
|
493
|
+
strategyData: StrategyDataStruct,
|
|
442
494
|
overrides?: CallOverrides
|
|
443
495
|
): Promise<BigNumber>;
|
|
444
496
|
|
|
445
497
|
previewAction(
|
|
446
|
-
|
|
447
|
-
marketExtData: MarketExtStateStruct,
|
|
498
|
+
strategyData: StrategyDataStruct,
|
|
448
499
|
action: BigNumberish,
|
|
449
500
|
botParam: BigNumberish,
|
|
450
501
|
swapApproxParams: ApproxParamsStruct,
|
|
@@ -452,47 +503,46 @@ export interface BotDecisionHelper extends BaseContract {
|
|
|
452
503
|
): Promise<BigNumber>;
|
|
453
504
|
|
|
454
505
|
searchForBotParam(
|
|
455
|
-
|
|
456
|
-
marketExt: MarketExtStateStruct,
|
|
457
|
-
specs: LongTradingSpecsStruct,
|
|
506
|
+
strategyData: StrategyDataStruct,
|
|
458
507
|
action: BigNumberish,
|
|
508
|
+
targetIy: BigNumberish,
|
|
459
509
|
botParams: ApproxParamsStruct,
|
|
460
510
|
intParams: ApproxParamsStruct,
|
|
461
511
|
overrides?: CallOverrides
|
|
462
512
|
): Promise<BigNumber>;
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
populateTransaction: {
|
|
516
|
+
INF(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
463
517
|
|
|
464
|
-
|
|
518
|
+
MINIMAL_EPS(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
519
|
+
|
|
520
|
+
_searchForIntParam(
|
|
465
521
|
marketExt: MarketExtStateStruct,
|
|
466
522
|
action: BigNumberish,
|
|
467
523
|
botParam: BigNumberish,
|
|
468
524
|
intParams: ApproxParamsStruct,
|
|
469
525
|
overrides?: CallOverrides
|
|
470
|
-
): Promise<
|
|
526
|
+
): Promise<PopulatedTransaction>;
|
|
471
527
|
|
|
472
|
-
|
|
473
|
-
|
|
528
|
+
botExtStats(
|
|
529
|
+
botState: BotStateStruct,
|
|
474
530
|
marketExt: MarketExtStateStruct,
|
|
475
|
-
specs: LongTradingSpecsStruct,
|
|
476
531
|
overrides?: CallOverrides
|
|
477
|
-
): Promise<
|
|
478
|
-
};
|
|
532
|
+
): Promise<PopulatedTransaction>;
|
|
479
533
|
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
currentState: StrategyStateStruct,
|
|
484
|
-
overrides?: CallOverrides
|
|
534
|
+
getActionDetails(
|
|
535
|
+
botAddress: string,
|
|
536
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
485
537
|
): Promise<PopulatedTransaction>;
|
|
486
538
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
marketExt: MarketExtStateStruct,
|
|
539
|
+
getCurrentBin(
|
|
540
|
+
strategyData: StrategyDataStruct,
|
|
490
541
|
overrides?: CallOverrides
|
|
491
542
|
): Promise<PopulatedTransaction>;
|
|
492
543
|
|
|
493
544
|
previewAction(
|
|
494
|
-
|
|
495
|
-
marketExtData: MarketExtStateStruct,
|
|
545
|
+
strategyData: StrategyDataStruct,
|
|
496
546
|
action: BigNumberish,
|
|
497
547
|
botParam: BigNumberish,
|
|
498
548
|
swapApproxParams: ApproxParamsStruct,
|
|
@@ -500,28 +550,12 @@ export interface BotDecisionHelper extends BaseContract {
|
|
|
500
550
|
): Promise<PopulatedTransaction>;
|
|
501
551
|
|
|
502
552
|
searchForBotParam(
|
|
503
|
-
|
|
504
|
-
marketExt: MarketExtStateStruct,
|
|
505
|
-
specs: LongTradingSpecsStruct,
|
|
553
|
+
strategyData: StrategyDataStruct,
|
|
506
554
|
action: BigNumberish,
|
|
555
|
+
targetIy: BigNumberish,
|
|
507
556
|
botParams: ApproxParamsStruct,
|
|
508
557
|
intParams: ApproxParamsStruct,
|
|
509
558
|
overrides?: CallOverrides
|
|
510
559
|
): Promise<PopulatedTransaction>;
|
|
511
|
-
|
|
512
|
-
searchForIntParam(
|
|
513
|
-
marketExt: MarketExtStateStruct,
|
|
514
|
-
action: BigNumberish,
|
|
515
|
-
botParam: BigNumberish,
|
|
516
|
-
intParams: ApproxParamsStruct,
|
|
517
|
-
overrides?: CallOverrides
|
|
518
|
-
): Promise<PopulatedTransaction>;
|
|
519
|
-
|
|
520
|
-
strategyState(
|
|
521
|
-
bot: BotStateStruct,
|
|
522
|
-
marketExt: MarketExtStateStruct,
|
|
523
|
-
specs: LongTradingSpecsStruct,
|
|
524
|
-
overrides?: CallOverrides
|
|
525
|
-
): Promise<PopulatedTransaction>;
|
|
526
560
|
};
|
|
527
561
|
}
|