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