@pendle/core-v2 2.17.6-tradingbot → 2.17.7-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.
Files changed (286) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  12. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  14. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
  16. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  18. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  23. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  24. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  29. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  30. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  32. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  36. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  38. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  40. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  43. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  45. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
  49. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.json +2 -2
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +2 -2
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +2 -2
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +2 -2
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +2 -2
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +2 -2
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  77. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
  78. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
  79. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
  80. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +2 -2
  81. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  82. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  83. package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.dbg.json +4 -0
  84. package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.json +663 -0
  85. package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.dbg.json +4 -0
  86. package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.json +663 -0
  87. package/build/artifacts/contracts/core/TradingBot/BotDecisionHelper.sol/BotDecisionHelper.dbg.json +4 -0
  88. package/build/artifacts/contracts/core/TradingBot/BotDecisionHelper.sol/BotDecisionHelper.json +1070 -0
  89. package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.dbg.json +4 -0
  90. package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.json +10 -0
  91. package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +4 -0
  92. package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.json +1767 -0
  93. package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.dbg.json +4 -0
  94. package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.json +24 -0
  95. package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.dbg.json +4 -0
  96. package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.json +613 -0
  97. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  98. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  99. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  100. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  101. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  102. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  103. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
  104. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
  105. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
  106. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
  107. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
  108. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
  109. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  110. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +151 -2
  111. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.dbg.json +4 -0
  112. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.json +10 -0
  113. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.json +6 -82
  117. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +22 -22
  119. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +4 -42
  122. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +32 -146
  131. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +4 -0
  135. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.json +917 -0
  136. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +4 -0
  137. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +1153 -0
  138. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +4 -0
  139. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +440 -0
  140. package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  141. package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  142. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  143. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
  144. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  145. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  146. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
  147. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +2 -2
  148. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  149. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  150. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  151. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  152. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  153. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +8 -84
  154. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  155. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +24 -24
  156. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  157. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +6 -44
  158. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  159. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  160. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  161. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  162. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  163. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  164. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  165. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
  166. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +2 -2
  167. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
  168. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.json +2 -2
  169. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +1 -1
  170. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.json +2 -2
  171. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
  172. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.json +2 -2
  173. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  174. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  175. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  176. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  177. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  178. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  179. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  180. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  181. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  182. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  183. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
  184. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +2 -2
  185. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
  186. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  187. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  188. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  189. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  190. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  191. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  192. package/package.json +1 -1
  193. package/typechain-types/ActionMarketAuxStatic.ts +38 -191
  194. package/typechain-types/ActionMarketCoreStatic.ts +134 -600
  195. package/typechain-types/ActionMintRedeemStatic.ts +26 -92
  196. package/typechain-types/BotActionCallback.ts +36 -0
  197. package/typechain-types/BotActionHelper.ts +36 -0
  198. package/typechain-types/BotDecisionHelper.ts +527 -0
  199. package/typechain-types/IBotDecisionHelper.ts +507 -0
  200. package/typechain-types/ILongYieldTradingBot.ts +481 -129
  201. package/typechain-types/IPActionMarketAuxStatic.ts +38 -191
  202. package/typechain-types/IPActionMarketCoreStatic.ts +134 -600
  203. package/typechain-types/IPActionMintRedeemStatic.ts +26 -92
  204. package/typechain-types/IPRouterStatic.ts +197 -888
  205. package/typechain-types/ITradingBotBase.ts +76 -0
  206. package/typechain-types/LongYieldTradingBot.ts +85 -141
  207. package/typechain-types/TradingBotBase.ts +36 -0
  208. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  209. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  210. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +7 -83
  211. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +23 -23
  212. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +5 -43
  213. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  214. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  215. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  216. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  217. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  218. package/typechain-types/factories/BotActionCallback__factory.ts +25 -0
  219. package/typechain-types/factories/BotActionHelper__factory.ts +25 -0
  220. package/typechain-types/factories/BotDecisionHelper__factory.ts +1123 -0
  221. package/typechain-types/factories/Broadcaster__factory.ts +1 -1
  222. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  223. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  224. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  225. package/typechain-types/factories/Errors__factory.ts +150 -1
  226. package/typechain-types/factories/IBotDecisionHelper__factory.ts +932 -0
  227. package/typechain-types/factories/ILongYieldTradingBot__factory.ts +425 -161
  228. package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +6 -82
  229. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +22 -22
  230. package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +4 -42
  231. package/typechain-types/factories/IPRouterStatic__factory.ts +32 -146
  232. package/typechain-types/factories/ITradingBotBase__factory.ts +50 -0
  233. package/typechain-types/factories/LongYieldTradingBot__factory.ts +63 -183
  234. package/typechain-types/factories/MarketExtLib__factory.ts +1 -1
  235. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  236. package/typechain-types/factories/PendleAuraBbAWethSwethSY__factory.ts +1 -1
  237. package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +1 -1
  238. package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +1 -1
  239. package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +1 -1
  240. package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +1 -1
  241. package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +1 -1
  242. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  243. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  244. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  245. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  246. package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
  247. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  248. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  249. package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
  250. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  251. package/typechain-types/factories/PendleLpGlpOracle__factory.ts +1 -1
  252. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  253. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  254. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  255. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  256. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
  257. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  258. package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
  259. package/typechain-types/factories/PendlePtOracle__factory.ts +1 -1
  260. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  261. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  262. package/typechain-types/factories/PendleRouterHelper__factory.ts +1 -1
  263. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  264. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  265. package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
  266. package/typechain-types/factories/PendleStargateLPSY__factory.ts +1 -1
  267. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  268. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  269. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
  270. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  271. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
  272. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  273. package/typechain-types/factories/SAPE__factory.ts +1 -1
  274. package/typechain-types/factories/TradingBotBase__factory.ts +25 -0
  275. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  276. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  277. package/typechain-types/hardhat.d.ts +81 -0
  278. package/typechain-types/index.ts +18 -0
  279. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.dbg.json +0 -4
  280. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.json +0 -976
  281. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBinanceEth.sol/PendleBinanceEth.dbg.json +0 -4
  282. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBinanceEth.sol/PendleBinanceEth.json +0 -979
  283. package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.dbg.json +0 -4
  284. package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.json +0 -42
  285. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.dbg.json +0 -4
  286. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.json +0 -97
@@ -0,0 +1,917 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IBotDecisionHelper",
4
+ "sourceName": "contracts/interfaces/TradingBot/IBotDecisionHelper.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "components": [
10
+ {
11
+ "internalType": "uint256",
12
+ "name": "lpBalance",
13
+ "type": "uint256"
14
+ },
15
+ {
16
+ "internalType": "uint256",
17
+ "name": "ytBalance",
18
+ "type": "uint256"
19
+ },
20
+ {
21
+ "internalType": "uint256",
22
+ "name": "syBalance",
23
+ "type": "uint256"
24
+ }
25
+ ],
26
+ "internalType": "struct BotState",
27
+ "name": "botState",
28
+ "type": "tuple"
29
+ },
30
+ {
31
+ "components": [
32
+ {
33
+ "internalType": "enum StrategyFlag",
34
+ "name": "iyFlag",
35
+ "type": "uint8"
36
+ },
37
+ {
38
+ "internalType": "enum StrategyFlag",
39
+ "name": "syRatioFlag",
40
+ "type": "uint8"
41
+ }
42
+ ],
43
+ "internalType": "struct StrategyState",
44
+ "name": "currentState",
45
+ "type": "tuple"
46
+ }
47
+ ],
48
+ "name": "actionToTake",
49
+ "outputs": [
50
+ {
51
+ "internalType": "enum ActionType",
52
+ "name": "",
53
+ "type": "uint8"
54
+ }
55
+ ],
56
+ "stateMutability": "pure",
57
+ "type": "function"
58
+ },
59
+ {
60
+ "inputs": [
61
+ {
62
+ "components": [
63
+ {
64
+ "internalType": "uint256",
65
+ "name": "lpBalance",
66
+ "type": "uint256"
67
+ },
68
+ {
69
+ "internalType": "uint256",
70
+ "name": "ytBalance",
71
+ "type": "uint256"
72
+ },
73
+ {
74
+ "internalType": "uint256",
75
+ "name": "syBalance",
76
+ "type": "uint256"
77
+ }
78
+ ],
79
+ "internalType": "struct BotState",
80
+ "name": "bot",
81
+ "type": "tuple"
82
+ },
83
+ {
84
+ "components": [
85
+ {
86
+ "components": [
87
+ {
88
+ "internalType": "int256",
89
+ "name": "totalPt",
90
+ "type": "int256"
91
+ },
92
+ {
93
+ "internalType": "int256",
94
+ "name": "totalSy",
95
+ "type": "int256"
96
+ },
97
+ {
98
+ "internalType": "int256",
99
+ "name": "totalLp",
100
+ "type": "int256"
101
+ },
102
+ {
103
+ "internalType": "address",
104
+ "name": "treasury",
105
+ "type": "address"
106
+ },
107
+ {
108
+ "internalType": "int256",
109
+ "name": "scalarRoot",
110
+ "type": "int256"
111
+ },
112
+ {
113
+ "internalType": "uint256",
114
+ "name": "expiry",
115
+ "type": "uint256"
116
+ },
117
+ {
118
+ "internalType": "uint256",
119
+ "name": "lnFeeRateRoot",
120
+ "type": "uint256"
121
+ },
122
+ {
123
+ "internalType": "uint256",
124
+ "name": "reserveFeePercent",
125
+ "type": "uint256"
126
+ },
127
+ {
128
+ "internalType": "uint256",
129
+ "name": "lastLnImpliedRate",
130
+ "type": "uint256"
131
+ }
132
+ ],
133
+ "internalType": "struct MarketState",
134
+ "name": "state",
135
+ "type": "tuple"
136
+ },
137
+ {
138
+ "internalType": "PYIndex",
139
+ "name": "index",
140
+ "type": "uint256"
141
+ },
142
+ {
143
+ "internalType": "uint256",
144
+ "name": "blockTime",
145
+ "type": "uint256"
146
+ }
147
+ ],
148
+ "internalType": "struct MarketExtState",
149
+ "name": "marketExt",
150
+ "type": "tuple"
151
+ }
152
+ ],
153
+ "name": "botExtStats",
154
+ "outputs": [
155
+ {
156
+ "internalType": "uint256",
157
+ "name": "tvlInSy",
158
+ "type": "uint256"
159
+ },
160
+ {
161
+ "internalType": "uint256",
162
+ "name": "iy",
163
+ "type": "uint256"
164
+ },
165
+ {
166
+ "internalType": "uint256",
167
+ "name": "currentSyRatio",
168
+ "type": "uint256"
169
+ },
170
+ {
171
+ "internalType": "uint256",
172
+ "name": "currentYtPtRatio",
173
+ "type": "uint256"
174
+ }
175
+ ],
176
+ "stateMutability": "pure",
177
+ "type": "function"
178
+ },
179
+ {
180
+ "inputs": [
181
+ {
182
+ "components": [
183
+ {
184
+ "internalType": "uint256",
185
+ "name": "lpBalance",
186
+ "type": "uint256"
187
+ },
188
+ {
189
+ "internalType": "uint256",
190
+ "name": "ytBalance",
191
+ "type": "uint256"
192
+ },
193
+ {
194
+ "internalType": "uint256",
195
+ "name": "syBalance",
196
+ "type": "uint256"
197
+ }
198
+ ],
199
+ "internalType": "struct BotState",
200
+ "name": "botData",
201
+ "type": "tuple"
202
+ },
203
+ {
204
+ "components": [
205
+ {
206
+ "components": [
207
+ {
208
+ "internalType": "int256",
209
+ "name": "totalPt",
210
+ "type": "int256"
211
+ },
212
+ {
213
+ "internalType": "int256",
214
+ "name": "totalSy",
215
+ "type": "int256"
216
+ },
217
+ {
218
+ "internalType": "int256",
219
+ "name": "totalLp",
220
+ "type": "int256"
221
+ },
222
+ {
223
+ "internalType": "address",
224
+ "name": "treasury",
225
+ "type": "address"
226
+ },
227
+ {
228
+ "internalType": "int256",
229
+ "name": "scalarRoot",
230
+ "type": "int256"
231
+ },
232
+ {
233
+ "internalType": "uint256",
234
+ "name": "expiry",
235
+ "type": "uint256"
236
+ },
237
+ {
238
+ "internalType": "uint256",
239
+ "name": "lnFeeRateRoot",
240
+ "type": "uint256"
241
+ },
242
+ {
243
+ "internalType": "uint256",
244
+ "name": "reserveFeePercent",
245
+ "type": "uint256"
246
+ },
247
+ {
248
+ "internalType": "uint256",
249
+ "name": "lastLnImpliedRate",
250
+ "type": "uint256"
251
+ }
252
+ ],
253
+ "internalType": "struct MarketState",
254
+ "name": "state",
255
+ "type": "tuple"
256
+ },
257
+ {
258
+ "internalType": "PYIndex",
259
+ "name": "index",
260
+ "type": "uint256"
261
+ },
262
+ {
263
+ "internalType": "uint256",
264
+ "name": "blockTime",
265
+ "type": "uint256"
266
+ }
267
+ ],
268
+ "internalType": "struct MarketExtState",
269
+ "name": "marketExtData",
270
+ "type": "tuple"
271
+ },
272
+ {
273
+ "internalType": "enum ActionType",
274
+ "name": "action",
275
+ "type": "uint8"
276
+ },
277
+ {
278
+ "internalType": "uint256",
279
+ "name": "botParam",
280
+ "type": "uint256"
281
+ },
282
+ {
283
+ "components": [
284
+ {
285
+ "internalType": "uint256",
286
+ "name": "guessMin",
287
+ "type": "uint256"
288
+ },
289
+ {
290
+ "internalType": "uint256",
291
+ "name": "guessMax",
292
+ "type": "uint256"
293
+ },
294
+ {
295
+ "internalType": "uint256",
296
+ "name": "guessOffchain",
297
+ "type": "uint256"
298
+ },
299
+ {
300
+ "internalType": "uint256",
301
+ "name": "maxIteration",
302
+ "type": "uint256"
303
+ },
304
+ {
305
+ "internalType": "uint256",
306
+ "name": "eps",
307
+ "type": "uint256"
308
+ }
309
+ ],
310
+ "internalType": "struct ApproxParams",
311
+ "name": "swapApproxParams",
312
+ "type": "tuple"
313
+ }
314
+ ],
315
+ "name": "previewAction",
316
+ "outputs": [
317
+ {
318
+ "internalType": "bool",
319
+ "name": "",
320
+ "type": "bool"
321
+ },
322
+ {
323
+ "components": [
324
+ {
325
+ "internalType": "uint256",
326
+ "name": "lpBalance",
327
+ "type": "uint256"
328
+ },
329
+ {
330
+ "internalType": "uint256",
331
+ "name": "ytBalance",
332
+ "type": "uint256"
333
+ },
334
+ {
335
+ "internalType": "uint256",
336
+ "name": "syBalance",
337
+ "type": "uint256"
338
+ }
339
+ ],
340
+ "internalType": "struct BotState",
341
+ "name": "",
342
+ "type": "tuple"
343
+ },
344
+ {
345
+ "components": [
346
+ {
347
+ "components": [
348
+ {
349
+ "internalType": "int256",
350
+ "name": "totalPt",
351
+ "type": "int256"
352
+ },
353
+ {
354
+ "internalType": "int256",
355
+ "name": "totalSy",
356
+ "type": "int256"
357
+ },
358
+ {
359
+ "internalType": "int256",
360
+ "name": "totalLp",
361
+ "type": "int256"
362
+ },
363
+ {
364
+ "internalType": "address",
365
+ "name": "treasury",
366
+ "type": "address"
367
+ },
368
+ {
369
+ "internalType": "int256",
370
+ "name": "scalarRoot",
371
+ "type": "int256"
372
+ },
373
+ {
374
+ "internalType": "uint256",
375
+ "name": "expiry",
376
+ "type": "uint256"
377
+ },
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "lnFeeRateRoot",
381
+ "type": "uint256"
382
+ },
383
+ {
384
+ "internalType": "uint256",
385
+ "name": "reserveFeePercent",
386
+ "type": "uint256"
387
+ },
388
+ {
389
+ "internalType": "uint256",
390
+ "name": "lastLnImpliedRate",
391
+ "type": "uint256"
392
+ }
393
+ ],
394
+ "internalType": "struct MarketState",
395
+ "name": "state",
396
+ "type": "tuple"
397
+ },
398
+ {
399
+ "internalType": "PYIndex",
400
+ "name": "index",
401
+ "type": "uint256"
402
+ },
403
+ {
404
+ "internalType": "uint256",
405
+ "name": "blockTime",
406
+ "type": "uint256"
407
+ }
408
+ ],
409
+ "internalType": "struct MarketExtState",
410
+ "name": "",
411
+ "type": "tuple"
412
+ }
413
+ ],
414
+ "stateMutability": "pure",
415
+ "type": "function"
416
+ },
417
+ {
418
+ "inputs": [
419
+ {
420
+ "components": [
421
+ {
422
+ "internalType": "uint256",
423
+ "name": "lpBalance",
424
+ "type": "uint256"
425
+ },
426
+ {
427
+ "internalType": "uint256",
428
+ "name": "ytBalance",
429
+ "type": "uint256"
430
+ },
431
+ {
432
+ "internalType": "uint256",
433
+ "name": "syBalance",
434
+ "type": "uint256"
435
+ }
436
+ ],
437
+ "internalType": "struct BotState",
438
+ "name": "bot",
439
+ "type": "tuple"
440
+ },
441
+ {
442
+ "components": [
443
+ {
444
+ "components": [
445
+ {
446
+ "internalType": "int256",
447
+ "name": "totalPt",
448
+ "type": "int256"
449
+ },
450
+ {
451
+ "internalType": "int256",
452
+ "name": "totalSy",
453
+ "type": "int256"
454
+ },
455
+ {
456
+ "internalType": "int256",
457
+ "name": "totalLp",
458
+ "type": "int256"
459
+ },
460
+ {
461
+ "internalType": "address",
462
+ "name": "treasury",
463
+ "type": "address"
464
+ },
465
+ {
466
+ "internalType": "int256",
467
+ "name": "scalarRoot",
468
+ "type": "int256"
469
+ },
470
+ {
471
+ "internalType": "uint256",
472
+ "name": "expiry",
473
+ "type": "uint256"
474
+ },
475
+ {
476
+ "internalType": "uint256",
477
+ "name": "lnFeeRateRoot",
478
+ "type": "uint256"
479
+ },
480
+ {
481
+ "internalType": "uint256",
482
+ "name": "reserveFeePercent",
483
+ "type": "uint256"
484
+ },
485
+ {
486
+ "internalType": "uint256",
487
+ "name": "lastLnImpliedRate",
488
+ "type": "uint256"
489
+ }
490
+ ],
491
+ "internalType": "struct MarketState",
492
+ "name": "state",
493
+ "type": "tuple"
494
+ },
495
+ {
496
+ "internalType": "PYIndex",
497
+ "name": "index",
498
+ "type": "uint256"
499
+ },
500
+ {
501
+ "internalType": "uint256",
502
+ "name": "blockTime",
503
+ "type": "uint256"
504
+ }
505
+ ],
506
+ "internalType": "struct MarketExtState",
507
+ "name": "marketExt",
508
+ "type": "tuple"
509
+ },
510
+ {
511
+ "components": [
512
+ {
513
+ "internalType": "uint256",
514
+ "name": "lowerIyLimit",
515
+ "type": "uint256"
516
+ },
517
+ {
518
+ "internalType": "uint256",
519
+ "name": "upperIyLimit",
520
+ "type": "uint256"
521
+ },
522
+ {
523
+ "internalType": "uint256",
524
+ "name": "floatingSyRatioLimit",
525
+ "type": "uint256"
526
+ },
527
+ {
528
+ "internalType": "uint256",
529
+ "name": "floatingSyRatioTarget",
530
+ "type": "uint256"
531
+ },
532
+ {
533
+ "internalType": "uint256",
534
+ "name": "ytPtRatioLimit",
535
+ "type": "uint256"
536
+ },
537
+ {
538
+ "internalType": "uint256",
539
+ "name": "ytPtRatioTarget",
540
+ "type": "uint256"
541
+ }
542
+ ],
543
+ "internalType": "struct LongTradingSpecs",
544
+ "name": "specs",
545
+ "type": "tuple"
546
+ },
547
+ {
548
+ "internalType": "enum ActionType",
549
+ "name": "action",
550
+ "type": "uint8"
551
+ },
552
+ {
553
+ "components": [
554
+ {
555
+ "internalType": "uint256",
556
+ "name": "guessMin",
557
+ "type": "uint256"
558
+ },
559
+ {
560
+ "internalType": "uint256",
561
+ "name": "guessMax",
562
+ "type": "uint256"
563
+ },
564
+ {
565
+ "internalType": "uint256",
566
+ "name": "guessOffchain",
567
+ "type": "uint256"
568
+ },
569
+ {
570
+ "internalType": "uint256",
571
+ "name": "maxIteration",
572
+ "type": "uint256"
573
+ },
574
+ {
575
+ "internalType": "uint256",
576
+ "name": "eps",
577
+ "type": "uint256"
578
+ }
579
+ ],
580
+ "internalType": "struct ApproxParams",
581
+ "name": "botParams",
582
+ "type": "tuple"
583
+ },
584
+ {
585
+ "components": [
586
+ {
587
+ "internalType": "uint256",
588
+ "name": "guessMin",
589
+ "type": "uint256"
590
+ },
591
+ {
592
+ "internalType": "uint256",
593
+ "name": "guessMax",
594
+ "type": "uint256"
595
+ },
596
+ {
597
+ "internalType": "uint256",
598
+ "name": "guessOffchain",
599
+ "type": "uint256"
600
+ },
601
+ {
602
+ "internalType": "uint256",
603
+ "name": "maxIteration",
604
+ "type": "uint256"
605
+ },
606
+ {
607
+ "internalType": "uint256",
608
+ "name": "eps",
609
+ "type": "uint256"
610
+ }
611
+ ],
612
+ "internalType": "struct ApproxParams",
613
+ "name": "intParams",
614
+ "type": "tuple"
615
+ }
616
+ ],
617
+ "name": "searchForBotParam",
618
+ "outputs": [
619
+ {
620
+ "internalType": "uint256",
621
+ "name": "",
622
+ "type": "uint256"
623
+ },
624
+ {
625
+ "internalType": "enum IBotDecisionHelper.RebalanceResult",
626
+ "name": "",
627
+ "type": "uint8"
628
+ }
629
+ ],
630
+ "stateMutability": "pure",
631
+ "type": "function"
632
+ },
633
+ {
634
+ "inputs": [
635
+ {
636
+ "components": [
637
+ {
638
+ "components": [
639
+ {
640
+ "internalType": "int256",
641
+ "name": "totalPt",
642
+ "type": "int256"
643
+ },
644
+ {
645
+ "internalType": "int256",
646
+ "name": "totalSy",
647
+ "type": "int256"
648
+ },
649
+ {
650
+ "internalType": "int256",
651
+ "name": "totalLp",
652
+ "type": "int256"
653
+ },
654
+ {
655
+ "internalType": "address",
656
+ "name": "treasury",
657
+ "type": "address"
658
+ },
659
+ {
660
+ "internalType": "int256",
661
+ "name": "scalarRoot",
662
+ "type": "int256"
663
+ },
664
+ {
665
+ "internalType": "uint256",
666
+ "name": "expiry",
667
+ "type": "uint256"
668
+ },
669
+ {
670
+ "internalType": "uint256",
671
+ "name": "lnFeeRateRoot",
672
+ "type": "uint256"
673
+ },
674
+ {
675
+ "internalType": "uint256",
676
+ "name": "reserveFeePercent",
677
+ "type": "uint256"
678
+ },
679
+ {
680
+ "internalType": "uint256",
681
+ "name": "lastLnImpliedRate",
682
+ "type": "uint256"
683
+ }
684
+ ],
685
+ "internalType": "struct MarketState",
686
+ "name": "state",
687
+ "type": "tuple"
688
+ },
689
+ {
690
+ "internalType": "PYIndex",
691
+ "name": "index",
692
+ "type": "uint256"
693
+ },
694
+ {
695
+ "internalType": "uint256",
696
+ "name": "blockTime",
697
+ "type": "uint256"
698
+ }
699
+ ],
700
+ "internalType": "struct MarketExtState",
701
+ "name": "marketExt",
702
+ "type": "tuple"
703
+ },
704
+ {
705
+ "internalType": "enum ActionType",
706
+ "name": "action",
707
+ "type": "uint8"
708
+ },
709
+ {
710
+ "internalType": "uint256",
711
+ "name": "botParam",
712
+ "type": "uint256"
713
+ },
714
+ {
715
+ "components": [
716
+ {
717
+ "internalType": "uint256",
718
+ "name": "guessMin",
719
+ "type": "uint256"
720
+ },
721
+ {
722
+ "internalType": "uint256",
723
+ "name": "guessMax",
724
+ "type": "uint256"
725
+ },
726
+ {
727
+ "internalType": "uint256",
728
+ "name": "guessOffchain",
729
+ "type": "uint256"
730
+ },
731
+ {
732
+ "internalType": "uint256",
733
+ "name": "maxIteration",
734
+ "type": "uint256"
735
+ },
736
+ {
737
+ "internalType": "uint256",
738
+ "name": "eps",
739
+ "type": "uint256"
740
+ }
741
+ ],
742
+ "internalType": "struct ApproxParams",
743
+ "name": "intParams",
744
+ "type": "tuple"
745
+ }
746
+ ],
747
+ "name": "searchForIntParam",
748
+ "outputs": [
749
+ {
750
+ "internalType": "uint256",
751
+ "name": "",
752
+ "type": "uint256"
753
+ }
754
+ ],
755
+ "stateMutability": "pure",
756
+ "type": "function"
757
+ },
758
+ {
759
+ "inputs": [
760
+ {
761
+ "components": [
762
+ {
763
+ "internalType": "uint256",
764
+ "name": "lpBalance",
765
+ "type": "uint256"
766
+ },
767
+ {
768
+ "internalType": "uint256",
769
+ "name": "ytBalance",
770
+ "type": "uint256"
771
+ },
772
+ {
773
+ "internalType": "uint256",
774
+ "name": "syBalance",
775
+ "type": "uint256"
776
+ }
777
+ ],
778
+ "internalType": "struct BotState",
779
+ "name": "bot",
780
+ "type": "tuple"
781
+ },
782
+ {
783
+ "components": [
784
+ {
785
+ "components": [
786
+ {
787
+ "internalType": "int256",
788
+ "name": "totalPt",
789
+ "type": "int256"
790
+ },
791
+ {
792
+ "internalType": "int256",
793
+ "name": "totalSy",
794
+ "type": "int256"
795
+ },
796
+ {
797
+ "internalType": "int256",
798
+ "name": "totalLp",
799
+ "type": "int256"
800
+ },
801
+ {
802
+ "internalType": "address",
803
+ "name": "treasury",
804
+ "type": "address"
805
+ },
806
+ {
807
+ "internalType": "int256",
808
+ "name": "scalarRoot",
809
+ "type": "int256"
810
+ },
811
+ {
812
+ "internalType": "uint256",
813
+ "name": "expiry",
814
+ "type": "uint256"
815
+ },
816
+ {
817
+ "internalType": "uint256",
818
+ "name": "lnFeeRateRoot",
819
+ "type": "uint256"
820
+ },
821
+ {
822
+ "internalType": "uint256",
823
+ "name": "reserveFeePercent",
824
+ "type": "uint256"
825
+ },
826
+ {
827
+ "internalType": "uint256",
828
+ "name": "lastLnImpliedRate",
829
+ "type": "uint256"
830
+ }
831
+ ],
832
+ "internalType": "struct MarketState",
833
+ "name": "state",
834
+ "type": "tuple"
835
+ },
836
+ {
837
+ "internalType": "PYIndex",
838
+ "name": "index",
839
+ "type": "uint256"
840
+ },
841
+ {
842
+ "internalType": "uint256",
843
+ "name": "blockTime",
844
+ "type": "uint256"
845
+ }
846
+ ],
847
+ "internalType": "struct MarketExtState",
848
+ "name": "marketExt",
849
+ "type": "tuple"
850
+ },
851
+ {
852
+ "components": [
853
+ {
854
+ "internalType": "uint256",
855
+ "name": "lowerIyLimit",
856
+ "type": "uint256"
857
+ },
858
+ {
859
+ "internalType": "uint256",
860
+ "name": "upperIyLimit",
861
+ "type": "uint256"
862
+ },
863
+ {
864
+ "internalType": "uint256",
865
+ "name": "floatingSyRatioLimit",
866
+ "type": "uint256"
867
+ },
868
+ {
869
+ "internalType": "uint256",
870
+ "name": "floatingSyRatioTarget",
871
+ "type": "uint256"
872
+ },
873
+ {
874
+ "internalType": "uint256",
875
+ "name": "ytPtRatioLimit",
876
+ "type": "uint256"
877
+ },
878
+ {
879
+ "internalType": "uint256",
880
+ "name": "ytPtRatioTarget",
881
+ "type": "uint256"
882
+ }
883
+ ],
884
+ "internalType": "struct LongTradingSpecs",
885
+ "name": "specs",
886
+ "type": "tuple"
887
+ }
888
+ ],
889
+ "name": "strategyState",
890
+ "outputs": [
891
+ {
892
+ "components": [
893
+ {
894
+ "internalType": "enum StrategyFlag",
895
+ "name": "iyFlag",
896
+ "type": "uint8"
897
+ },
898
+ {
899
+ "internalType": "enum StrategyFlag",
900
+ "name": "syRatioFlag",
901
+ "type": "uint8"
902
+ }
903
+ ],
904
+ "internalType": "struct StrategyState",
905
+ "name": "",
906
+ "type": "tuple"
907
+ }
908
+ ],
909
+ "stateMutability": "pure",
910
+ "type": "function"
911
+ }
912
+ ],
913
+ "bytecode": "0x",
914
+ "deployedBytecode": "0x",
915
+ "linkReferences": {},
916
+ "deployedLinkReferences": {}
917
+ }