@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
@@ -13,24 +13,6 @@ const _abi = [
13
13
  {
14
14
  anonymous: false,
15
15
  inputs: [
16
- {
17
- components: [
18
- {
19
- internalType: "enum StrategyFlag",
20
- name: "iyFlag",
21
- type: "uint8",
22
- },
23
- {
24
- internalType: "enum StrategyFlag",
25
- name: "syRatioFlag",
26
- type: "uint8",
27
- },
28
- ],
29
- indexed: false,
30
- internalType: "struct StrategyState",
31
- name: "state",
32
- type: "tuple",
33
- },
34
16
  {
35
17
  components: [
36
18
  {
@@ -89,24 +71,6 @@ const _abi = [
89
71
  {
90
72
  anonymous: false,
91
73
  inputs: [
92
- {
93
- components: [
94
- {
95
- internalType: "enum StrategyFlag",
96
- name: "iyFlag",
97
- type: "uint8",
98
- },
99
- {
100
- internalType: "enum StrategyFlag",
101
- name: "syRatioFlag",
102
- type: "uint8",
103
- },
104
- ],
105
- indexed: false,
106
- internalType: "struct StrategyState",
107
- name: "state",
108
- type: "tuple",
109
- },
110
74
  {
111
75
  components: [
112
76
  {
@@ -140,12 +104,6 @@ const _abi = [
140
104
  name: "botParams",
141
105
  type: "tuple",
142
106
  },
143
- {
144
- indexed: false,
145
- internalType: "uint256",
146
- name: "maxYtIn",
147
- type: "uint256",
148
- },
149
107
  {
150
108
  indexed: false,
151
109
  internalType: "uint256",
@@ -166,105 +124,81 @@ const _abi = [
166
124
  anonymous: false,
167
125
  inputs: [
168
126
  {
169
- components: [
170
- {
171
- internalType: "enum StrategyFlag",
172
- name: "iyFlag",
173
- type: "uint8",
174
- },
175
- {
176
- internalType: "enum StrategyFlag",
177
- name: "syRatioFlag",
178
- type: "uint8",
179
- },
180
- ],
181
127
  indexed: false,
182
- internalType: "struct StrategyState",
183
- name: "state",
184
- type: "tuple",
128
+ internalType: "uint256",
129
+ name: "netSyIn",
130
+ type: "uint256",
185
131
  },
186
132
  {
187
- components: [
188
- {
189
- internalType: "uint256",
190
- name: "guessMin",
191
- type: "uint256",
192
- },
193
- {
194
- internalType: "uint256",
195
- name: "guessMax",
196
- type: "uint256",
197
- },
198
- {
199
- internalType: "uint256",
200
- name: "guessOffchain",
201
- type: "uint256",
202
- },
203
- {
204
- internalType: "uint256",
205
- name: "maxIteration",
206
- type: "uint256",
207
- },
208
- {
209
- internalType: "uint256",
210
- name: "eps",
211
- type: "uint256",
212
- },
213
- ],
214
133
  indexed: false,
215
- internalType: "struct ApproxParams",
216
- name: "botParams",
217
- type: "tuple",
134
+ internalType: "uint256",
135
+ name: "netLpOut",
136
+ type: "uint256",
218
137
  },
219
138
  {
220
139
  indexed: false,
221
140
  internalType: "uint256",
222
- name: "maxSyIn",
141
+ name: "netYtOut",
223
142
  type: "uint256",
224
143
  },
144
+ ],
145
+ name: "AddLiqKeepYt",
146
+ type: "event",
147
+ },
148
+ {
149
+ anonymous: false,
150
+ inputs: [
225
151
  {
226
152
  indexed: false,
227
153
  internalType: "uint256",
228
- name: "netSyIn",
154
+ name: "netSyOut",
229
155
  type: "uint256",
230
156
  },
231
157
  {
232
158
  indexed: false,
233
159
  internalType: "uint256",
234
- name: "netLpOut",
160
+ name: "netPendleOut",
235
161
  type: "uint256",
236
162
  },
163
+ ],
164
+ name: "ClaimAndCompound",
165
+ type: "event",
166
+ },
167
+ {
168
+ anonymous: false,
169
+ inputs: [
237
170
  {
238
171
  indexed: false,
239
172
  internalType: "uint256",
240
- name: "netYtOut",
173
+ name: "netSyIn",
241
174
  type: "uint256",
242
175
  },
243
176
  ],
244
- name: "AddLiqKeepYt",
177
+ name: "DepositSy",
245
178
  type: "event",
246
179
  },
247
180
  {
248
181
  anonymous: false,
249
182
  inputs: [
250
183
  {
251
- components: [
252
- {
253
- internalType: "enum StrategyFlag",
254
- name: "iyFlag",
255
- type: "uint8",
256
- },
257
- {
258
- internalType: "enum StrategyFlag",
259
- name: "syRatioFlag",
260
- type: "uint8",
261
- },
262
- ],
184
+ indexed: true,
185
+ internalType: "address",
186
+ name: "token",
187
+ type: "address",
188
+ },
189
+ {
263
190
  indexed: false,
264
- internalType: "struct StrategyState",
265
- name: "state",
266
- type: "tuple",
191
+ internalType: "uint256",
192
+ name: "netTokenIn",
193
+ type: "uint256",
267
194
  },
195
+ ],
196
+ name: "DepositToken",
197
+ type: "event",
198
+ },
199
+ {
200
+ anonymous: false,
201
+ inputs: [
268
202
  {
269
203
  components: [
270
204
  {
@@ -298,12 +232,6 @@ const _abi = [
298
232
  name: "botParams",
299
233
  type: "tuple",
300
234
  },
301
- {
302
- indexed: false,
303
- internalType: "uint256",
304
- name: "maxLpRemoved",
305
- type: "uint256",
306
- },
307
235
  {
308
236
  indexed: false,
309
237
  internalType: "uint256",
@@ -323,24 +251,6 @@ const _abi = [
323
251
  {
324
252
  anonymous: false,
325
253
  inputs: [
326
- {
327
- components: [
328
- {
329
- internalType: "enum StrategyFlag",
330
- name: "iyFlag",
331
- type: "uint8",
332
- },
333
- {
334
- internalType: "enum StrategyFlag",
335
- name: "syRatioFlag",
336
- type: "uint8",
337
- },
338
- ],
339
- indexed: false,
340
- internalType: "struct StrategyState",
341
- name: "state",
342
- type: "tuple",
343
- },
344
254
  {
345
255
  components: [
346
256
  {
@@ -397,68 +307,82 @@ const _abi = [
397
307
  type: "event",
398
308
  },
399
309
  {
310
+ anonymous: false,
400
311
  inputs: [
401
312
  {
402
- components: [
403
- {
404
- internalType: "enum StrategyFlag",
405
- name: "iyFlag",
406
- type: "uint8",
407
- },
408
- {
409
- internalType: "enum StrategyFlag",
410
- name: "syRatioFlag",
411
- type: "uint8",
412
- },
413
- ],
414
- internalType: "struct StrategyState",
415
- name: "oldState",
416
- type: "tuple",
313
+ indexed: true,
314
+ internalType: "address",
315
+ name: "token",
316
+ type: "address",
317
+ },
318
+ {
319
+ indexed: false,
320
+ internalType: "uint256",
321
+ name: "amount",
322
+ type: "uint256",
417
323
  },
324
+ ],
325
+ name: "WithdrawFunds",
326
+ type: "event",
327
+ },
328
+ {
329
+ inputs: [
418
330
  {
419
331
  components: [
420
332
  {
421
- internalType: "uint256",
422
- name: "guessMin",
423
- type: "uint256",
333
+ components: [
334
+ {
335
+ internalType: "uint256",
336
+ name: "guessMin",
337
+ type: "uint256",
338
+ },
339
+ {
340
+ internalType: "uint256",
341
+ name: "guessMax",
342
+ type: "uint256",
343
+ },
344
+ {
345
+ internalType: "uint256",
346
+ name: "guessOffchain",
347
+ type: "uint256",
348
+ },
349
+ {
350
+ internalType: "uint256",
351
+ name: "maxIteration",
352
+ type: "uint256",
353
+ },
354
+ {
355
+ internalType: "uint256",
356
+ name: "eps",
357
+ type: "uint256",
358
+ },
359
+ ],
360
+ internalType: "struct ApproxParams",
361
+ name: "botParams",
362
+ type: "tuple",
424
363
  },
425
364
  {
426
365
  internalType: "uint256",
427
- name: "guessMax",
366
+ name: "minLpOut",
428
367
  type: "uint256",
429
368
  },
430
369
  {
431
370
  internalType: "uint256",
432
- name: "guessOffchain",
371
+ name: "targetIy",
433
372
  type: "uint256",
434
373
  },
435
374
  {
436
- internalType: "uint256",
437
- name: "maxIteration",
438
- type: "uint256",
439
- },
440
- {
441
- internalType: "uint256",
442
- name: "eps",
443
- type: "uint256",
375
+ internalType: "int256",
376
+ name: "currentBin",
377
+ type: "int256",
444
378
  },
445
379
  ],
446
- internalType: "struct ApproxParams",
447
- name: "botParams",
380
+ internalType: "struct ILongYieldTradingBot.AddLiqFromYtInput",
381
+ name: "inputParams",
448
382
  type: "tuple",
449
383
  },
450
- {
451
- internalType: "uint256",
452
- name: "minLpOut",
453
- type: "uint256",
454
- },
455
- {
456
- internalType: "uint256",
457
- name: "maxSyIn",
458
- type: "uint256",
459
- },
460
384
  ],
461
- name: "addLiqFromSy",
385
+ name: "addLiqFromYt",
462
386
  outputs: [
463
387
  {
464
388
  internalType: "uint256",
@@ -472,7 +396,7 @@ const _abi = [
472
396
  },
473
397
  {
474
398
  internalType: "uint256",
475
- name: "netSyIn",
399
+ name: "netYtIn",
476
400
  type: "uint256",
477
401
  },
478
402
  ],
@@ -482,53 +406,9 @@ const _abi = [
482
406
  {
483
407
  inputs: [
484
408
  {
485
- components: [
486
- {
487
- internalType: "enum StrategyFlag",
488
- name: "iyFlag",
489
- type: "uint8",
490
- },
491
- {
492
- internalType: "enum StrategyFlag",
493
- name: "syRatioFlag",
494
- type: "uint8",
495
- },
496
- ],
497
- internalType: "struct StrategyState",
498
- name: "oldState",
499
- type: "tuple",
500
- },
501
- {
502
- components: [
503
- {
504
- internalType: "uint256",
505
- name: "guessMin",
506
- type: "uint256",
507
- },
508
- {
509
- internalType: "uint256",
510
- name: "guessMax",
511
- type: "uint256",
512
- },
513
- {
514
- internalType: "uint256",
515
- name: "guessOffchain",
516
- type: "uint256",
517
- },
518
- {
519
- internalType: "uint256",
520
- name: "maxIteration",
521
- type: "uint256",
522
- },
523
- {
524
- internalType: "uint256",
525
- name: "eps",
526
- type: "uint256",
527
- },
528
- ],
529
- internalType: "struct ApproxParams",
530
- name: "botParams",
531
- type: "tuple",
409
+ internalType: "uint256",
410
+ name: "netSyIn",
411
+ type: "uint256",
532
412
  },
533
413
  {
534
414
  internalType: "uint256",
@@ -537,17 +417,12 @@ const _abi = [
537
417
  },
538
418
  {
539
419
  internalType: "uint256",
540
- name: "maxYtIn",
420
+ name: "minYtOut",
541
421
  type: "uint256",
542
422
  },
543
423
  ],
544
- name: "addLiqFromYt",
424
+ name: "addLiqKeepYt",
545
425
  outputs: [
546
- {
547
- internalType: "uint256",
548
- name: "netPtFromSwap",
549
- type: "uint256",
550
- },
551
426
  {
552
427
  internalType: "uint256",
553
428
  name: "netLpOut",
@@ -555,7 +430,7 @@ const _abi = [
555
430
  },
556
431
  {
557
432
  internalType: "uint256",
558
- name: "netYtIn",
433
+ name: "netYtOut",
559
434
  type: "uint256",
560
435
  },
561
436
  ],
@@ -564,94 +439,147 @@ const _abi = [
564
439
  },
565
440
  {
566
441
  inputs: [
567
- {
568
- internalType: "address",
569
- name: "router",
570
- type: "address",
571
- },
572
442
  {
573
443
  components: [
574
444
  {
575
- internalType: "enum StrategyFlag",
576
- name: "iyFlag",
577
- type: "uint8",
445
+ internalType: "address[]",
446
+ name: "tokens",
447
+ type: "address[]",
578
448
  },
579
449
  {
580
- internalType: "enum StrategyFlag",
581
- name: "syRatioFlag",
582
- type: "uint8",
450
+ internalType: "address",
451
+ name: "spender",
452
+ type: "address",
583
453
  },
584
454
  ],
585
- internalType: "struct StrategyState",
586
- name: "oldState",
587
- type: "tuple",
455
+ internalType: "struct ITradingBotBase.MultiApproval[]",
456
+ name: "arr",
457
+ type: "tuple[]",
588
458
  },
459
+ ],
460
+ name: "approveInf",
461
+ outputs: [],
462
+ stateMutability: "nonpayable",
463
+ type: "function",
464
+ },
465
+ {
466
+ inputs: [
589
467
  {
590
468
  components: [
591
469
  {
592
- internalType: "uint256",
593
- name: "guessMin",
594
- type: "uint256",
595
- },
596
- {
597
- internalType: "uint256",
598
- name: "guessMax",
599
- type: "uint256",
600
- },
601
- {
602
- internalType: "uint256",
603
- name: "guessOffchain",
604
- type: "uint256",
470
+ internalType: "address",
471
+ name: "tokenIn",
472
+ type: "address",
605
473
  },
606
474
  {
607
475
  internalType: "uint256",
608
- name: "maxIteration",
476
+ name: "netTokenIn",
609
477
  type: "uint256",
610
478
  },
611
479
  {
612
- internalType: "uint256",
613
- name: "eps",
614
- type: "uint256",
480
+ internalType: "address",
481
+ name: "tokenMintSy",
482
+ type: "address",
483
+ },
484
+ {
485
+ internalType: "address",
486
+ name: "bulk",
487
+ type: "address",
488
+ },
489
+ {
490
+ internalType: "address",
491
+ name: "pendleSwap",
492
+ type: "address",
493
+ },
494
+ {
495
+ components: [
496
+ {
497
+ internalType: "enum SwapType",
498
+ name: "swapType",
499
+ type: "uint8",
500
+ },
501
+ {
502
+ internalType: "address",
503
+ name: "extRouter",
504
+ type: "address",
505
+ },
506
+ {
507
+ internalType: "bytes",
508
+ name: "extCalldata",
509
+ type: "bytes",
510
+ },
511
+ {
512
+ internalType: "bool",
513
+ name: "needScale",
514
+ type: "bool",
515
+ },
516
+ ],
517
+ internalType: "struct SwapData",
518
+ name: "swapData",
519
+ type: "tuple",
615
520
  },
616
521
  ],
617
- internalType: "struct ApproxParams",
618
- name: "botParams",
619
- type: "tuple",
522
+ internalType: "struct TokenInput[]",
523
+ name: "inps",
524
+ type: "tuple[]",
620
525
  },
621
526
  {
622
527
  internalType: "uint256",
623
- name: "maxSyIn",
528
+ name: "minSyOut",
624
529
  type: "uint256",
625
530
  },
531
+ ],
532
+ name: "claimAndCompound",
533
+ outputs: [
626
534
  {
627
535
  internalType: "uint256",
628
- name: "minLpOut",
536
+ name: "netSyOut",
629
537
  type: "uint256",
630
538
  },
631
539
  {
632
540
  internalType: "uint256",
633
- name: "minYtOut",
541
+ name: "netPendleOut",
634
542
  type: "uint256",
635
543
  },
636
544
  ],
637
- name: "addLiqKeepYt",
545
+ stateMutability: "nonpayable",
546
+ type: "function",
547
+ },
548
+ {
549
+ inputs: [],
550
+ name: "claimWithoutCompound",
638
551
  outputs: [
639
552
  {
640
- internalType: "uint256",
641
- name: "netSyIn",
642
- type: "uint256",
643
- },
644
- {
645
- internalType: "uint256",
646
- name: "netLpOut",
647
- type: "uint256",
553
+ components: [
554
+ {
555
+ internalType: "address",
556
+ name: "token",
557
+ type: "address",
558
+ },
559
+ {
560
+ internalType: "uint256",
561
+ name: "amount",
562
+ type: "uint256",
563
+ },
564
+ ],
565
+ internalType: "struct TokenAmount[]",
566
+ name: "rewards",
567
+ type: "tuple[]",
648
568
  },
569
+ ],
570
+ stateMutability: "nonpayable",
571
+ type: "function",
572
+ },
573
+ {
574
+ inputs: [
649
575
  {
650
576
  internalType: "uint256",
651
- name: "netYtOut",
577
+ name: "netSyIn",
652
578
  type: "uint256",
653
579
  },
654
580
  ],
581
+ name: "depositSy",
582
+ outputs: [],
655
583
  stateMutability: "nonpayable",
656
584
  type: "function",
657
585
  },
@@ -660,94 +588,421 @@ const _abi = [
660
588
  {
661
589
  components: [
662
590
  {
663
- internalType: "enum StrategyFlag",
664
- name: "iyFlag",
665
- type: "uint8",
591
+ internalType: "address",
592
+ name: "tokenIn",
593
+ type: "address",
666
594
  },
667
595
  {
668
- internalType: "enum StrategyFlag",
669
- name: "syRatioFlag",
670
- type: "uint8",
596
+ internalType: "uint256",
597
+ name: "netTokenIn",
598
+ type: "uint256",
599
+ },
600
+ {
601
+ internalType: "address",
602
+ name: "tokenMintSy",
603
+ type: "address",
604
+ },
605
+ {
606
+ internalType: "address",
607
+ name: "bulk",
608
+ type: "address",
609
+ },
610
+ {
611
+ internalType: "address",
612
+ name: "pendleSwap",
613
+ type: "address",
614
+ },
615
+ {
616
+ components: [
617
+ {
618
+ internalType: "enum SwapType",
619
+ name: "swapType",
620
+ type: "uint8",
621
+ },
622
+ {
623
+ internalType: "address",
624
+ name: "extRouter",
625
+ type: "address",
626
+ },
627
+ {
628
+ internalType: "bytes",
629
+ name: "extCalldata",
630
+ type: "bytes",
631
+ },
632
+ {
633
+ internalType: "bool",
634
+ name: "needScale",
635
+ type: "bool",
636
+ },
637
+ ],
638
+ internalType: "struct SwapData",
639
+ name: "swapData",
640
+ type: "tuple",
671
641
  },
672
642
  ],
673
- internalType: "struct StrategyState",
674
- name: "oldState",
643
+ internalType: "struct TokenInput",
644
+ name: "inp",
675
645
  type: "tuple",
676
646
  },
647
+ {
648
+ internalType: "uint256",
649
+ name: "minSyOut",
650
+ type: "uint256",
651
+ },
652
+ ],
653
+ name: "depositToken",
654
+ outputs: [],
655
+ stateMutability: "payable",
656
+ type: "function",
657
+ },
658
+ {
659
+ inputs: [],
660
+ name: "readBotState",
661
+ outputs: [
677
662
  {
678
663
  components: [
679
664
  {
680
665
  internalType: "uint256",
681
- name: "guessMin",
666
+ name: "lpBalance",
682
667
  type: "uint256",
683
668
  },
684
669
  {
685
670
  internalType: "uint256",
686
- name: "guessMax",
671
+ name: "ytBalance",
687
672
  type: "uint256",
688
673
  },
689
674
  {
690
675
  internalType: "uint256",
691
- name: "guessOffchain",
676
+ name: "syBalance",
692
677
  type: "uint256",
693
678
  },
694
679
  {
695
680
  internalType: "uint256",
696
- name: "maxIteration",
681
+ name: "buyBins",
682
+ type: "uint256",
683
+ },
684
+ ],
685
+ internalType: "struct BotState",
686
+ name: "botState",
687
+ type: "tuple",
688
+ },
689
+ ],
690
+ stateMutability: "view",
691
+ type: "function",
692
+ },
693
+ {
694
+ inputs: [],
695
+ name: "readMarketExtState",
696
+ outputs: [
697
+ {
698
+ components: [
699
+ {
700
+ components: [
701
+ {
702
+ internalType: "int256",
703
+ name: "totalPt",
704
+ type: "int256",
705
+ },
706
+ {
707
+ internalType: "int256",
708
+ name: "totalSy",
709
+ type: "int256",
710
+ },
711
+ {
712
+ internalType: "int256",
713
+ name: "totalLp",
714
+ type: "int256",
715
+ },
716
+ {
717
+ internalType: "address",
718
+ name: "treasury",
719
+ type: "address",
720
+ },
721
+ {
722
+ internalType: "int256",
723
+ name: "scalarRoot",
724
+ type: "int256",
725
+ },
726
+ {
727
+ internalType: "uint256",
728
+ name: "expiry",
729
+ type: "uint256",
730
+ },
731
+ {
732
+ internalType: "uint256",
733
+ name: "lnFeeRateRoot",
734
+ type: "uint256",
735
+ },
736
+ {
737
+ internalType: "uint256",
738
+ name: "reserveFeePercent",
739
+ type: "uint256",
740
+ },
741
+ {
742
+ internalType: "uint256",
743
+ name: "lastLnImpliedRate",
744
+ type: "uint256",
745
+ },
746
+ ],
747
+ internalType: "struct MarketState",
748
+ name: "state",
749
+ type: "tuple",
750
+ },
751
+ {
752
+ internalType: "PYIndex",
753
+ name: "index",
697
754
  type: "uint256",
698
755
  },
699
756
  {
700
757
  internalType: "uint256",
701
- name: "eps",
758
+ name: "blockTime",
702
759
  type: "uint256",
703
760
  },
704
761
  ],
705
- internalType: "struct ApproxParams",
706
- name: "botParams",
762
+ internalType: "struct MarketExtState",
763
+ name: "marketExt",
707
764
  type: "tuple",
708
765
  },
766
+ ],
767
+ stateMutability: "nonpayable",
768
+ type: "function",
769
+ },
770
+ {
771
+ inputs: [],
772
+ name: "readStrategyData",
773
+ outputs: [
709
774
  {
710
775
  components: [
711
776
  {
712
- internalType: "uint256",
713
- name: "guessMin",
714
- type: "uint256",
777
+ components: [
778
+ {
779
+ internalType: "uint256",
780
+ name: "lpBalance",
781
+ type: "uint256",
782
+ },
783
+ {
784
+ internalType: "uint256",
785
+ name: "ytBalance",
786
+ type: "uint256",
787
+ },
788
+ {
789
+ internalType: "uint256",
790
+ name: "syBalance",
791
+ type: "uint256",
792
+ },
793
+ {
794
+ internalType: "uint256",
795
+ name: "buyBins",
796
+ type: "uint256",
797
+ },
798
+ ],
799
+ internalType: "struct BotState",
800
+ name: "botState",
801
+ type: "tuple",
802
+ },
803
+ {
804
+ components: [
805
+ {
806
+ components: [
807
+ {
808
+ internalType: "int256",
809
+ name: "totalPt",
810
+ type: "int256",
811
+ },
812
+ {
813
+ internalType: "int256",
814
+ name: "totalSy",
815
+ type: "int256",
816
+ },
817
+ {
818
+ internalType: "int256",
819
+ name: "totalLp",
820
+ type: "int256",
821
+ },
822
+ {
823
+ internalType: "address",
824
+ name: "treasury",
825
+ type: "address",
826
+ },
827
+ {
828
+ internalType: "int256",
829
+ name: "scalarRoot",
830
+ type: "int256",
831
+ },
832
+ {
833
+ internalType: "uint256",
834
+ name: "expiry",
835
+ type: "uint256",
836
+ },
837
+ {
838
+ internalType: "uint256",
839
+ name: "lnFeeRateRoot",
840
+ type: "uint256",
841
+ },
842
+ {
843
+ internalType: "uint256",
844
+ name: "reserveFeePercent",
845
+ type: "uint256",
846
+ },
847
+ {
848
+ internalType: "uint256",
849
+ name: "lastLnImpliedRate",
850
+ type: "uint256",
851
+ },
852
+ ],
853
+ internalType: "struct MarketState",
854
+ name: "state",
855
+ type: "tuple",
856
+ },
857
+ {
858
+ internalType: "PYIndex",
859
+ name: "index",
860
+ type: "uint256",
861
+ },
862
+ {
863
+ internalType: "uint256",
864
+ name: "blockTime",
865
+ type: "uint256",
866
+ },
867
+ ],
868
+ internalType: "struct MarketExtState",
869
+ name: "marketExt",
870
+ type: "tuple",
871
+ },
872
+ {
873
+ components: [
874
+ {
875
+ internalType: "uint256",
876
+ name: "buyYtIy",
877
+ type: "uint256",
878
+ },
879
+ {
880
+ internalType: "uint256",
881
+ name: "sellYtIy",
882
+ type: "uint256",
883
+ },
884
+ {
885
+ internalType: "uint256",
886
+ name: "targetSyRatio",
887
+ type: "uint256",
888
+ },
889
+ {
890
+ internalType: "uint256",
891
+ name: "maxSyRatio",
892
+ type: "uint256",
893
+ },
894
+ {
895
+ internalType: "uint256",
896
+ name: "minYtPtRatio",
897
+ type: "uint256",
898
+ },
899
+ {
900
+ internalType: "uint256",
901
+ name: "numOfBins",
902
+ type: "uint256",
903
+ },
904
+ ],
905
+ internalType: "struct LongTradingSpecs",
906
+ name: "specs",
907
+ type: "tuple",
715
908
  },
909
+ ],
910
+ internalType: "struct StrategyData",
911
+ name: "strategyData",
912
+ type: "tuple",
913
+ },
914
+ ],
915
+ stateMutability: "nonpayable",
916
+ type: "function",
917
+ },
918
+ {
919
+ inputs: [
920
+ {
921
+ components: [
716
922
  {
717
- internalType: "uint256",
718
- name: "guessMax",
719
- type: "uint256",
923
+ components: [
924
+ {
925
+ internalType: "uint256",
926
+ name: "guessMin",
927
+ type: "uint256",
928
+ },
929
+ {
930
+ internalType: "uint256",
931
+ name: "guessMax",
932
+ type: "uint256",
933
+ },
934
+ {
935
+ internalType: "uint256",
936
+ name: "guessOffchain",
937
+ type: "uint256",
938
+ },
939
+ {
940
+ internalType: "uint256",
941
+ name: "maxIteration",
942
+ type: "uint256",
943
+ },
944
+ {
945
+ internalType: "uint256",
946
+ name: "eps",
947
+ type: "uint256",
948
+ },
949
+ ],
950
+ internalType: "struct ApproxParams",
951
+ name: "botParams",
952
+ type: "tuple",
953
+ },
954
+ {
955
+ components: [
956
+ {
957
+ internalType: "uint256",
958
+ name: "guessMin",
959
+ type: "uint256",
960
+ },
961
+ {
962
+ internalType: "uint256",
963
+ name: "guessMax",
964
+ type: "uint256",
965
+ },
966
+ {
967
+ internalType: "uint256",
968
+ name: "guessOffchain",
969
+ type: "uint256",
970
+ },
971
+ {
972
+ internalType: "uint256",
973
+ name: "maxIteration",
974
+ type: "uint256",
975
+ },
976
+ {
977
+ internalType: "uint256",
978
+ name: "eps",
979
+ type: "uint256",
980
+ },
981
+ ],
982
+ internalType: "struct ApproxParams",
983
+ name: "guessTotalPtToSwap",
984
+ type: "tuple",
720
985
  },
721
986
  {
722
987
  internalType: "uint256",
723
- name: "guessOffchain",
988
+ name: "minYtOut",
724
989
  type: "uint256",
725
990
  },
726
991
  {
727
992
  internalType: "uint256",
728
- name: "maxIteration",
993
+ name: "targetIy",
729
994
  type: "uint256",
730
995
  },
731
996
  {
732
- internalType: "uint256",
733
- name: "eps",
734
- type: "uint256",
997
+ internalType: "int256",
998
+ name: "currentBin",
999
+ type: "int256",
735
1000
  },
736
1001
  ],
737
- internalType: "struct ApproxParams",
738
- name: "guessTotalPtToSwap",
1002
+ internalType: "struct ILongYieldTradingBot.RemoveLiqToYtInput",
1003
+ name: "inputParams",
739
1004
  type: "tuple",
740
1005
  },
741
- {
742
- internalType: "uint256",
743
- name: "maxLpRemoved",
744
- type: "uint256",
745
- },
746
- {
747
- internalType: "uint256",
748
- name: "minYtOut",
749
- type: "uint256",
750
- },
751
1006
  ],
752
1007
  name: "removeLiqToYt",
753
1008
  outputs: [
@@ -761,11 +1016,6 @@ const _abi = [
761
1016
  name: "netYtOut",
762
1017
  type: "uint256",
763
1018
  },
764
- {
765
- internalType: "uint256",
766
- name: "totalPtToSwap",
767
- type: "uint256",
768
- },
769
1019
  ],
770
1020
  stateMutability: "nonpayable",
771
1021
  type: "function",
@@ -776,22 +1026,32 @@ const _abi = [
776
1026
  components: [
777
1027
  {
778
1028
  internalType: "uint256",
779
- name: "lowerIyLimit",
1029
+ name: "buyYtIy",
780
1030
  type: "uint256",
781
1031
  },
782
1032
  {
783
1033
  internalType: "uint256",
784
- name: "upperIyLimit",
1034
+ name: "sellYtIy",
785
1035
  type: "uint256",
786
1036
  },
787
1037
  {
788
1038
  internalType: "uint256",
789
- name: "floatingSyRatioLimit",
1039
+ name: "targetSyRatio",
790
1040
  type: "uint256",
791
1041
  },
792
1042
  {
793
1043
  internalType: "uint256",
794
- name: "ytPtRatioLimit",
1044
+ name: "maxSyRatio",
1045
+ type: "uint256",
1046
+ },
1047
+ {
1048
+ internalType: "uint256",
1049
+ name: "minYtPtRatio",
1050
+ type: "uint256",
1051
+ },
1052
+ {
1053
+ internalType: "uint256",
1054
+ name: "numOfBins",
795
1055
  type: "uint256",
796
1056
  },
797
1057
  ],
@@ -809,82 +1069,17 @@ const _abi = [
809
1069
  inputs: [
810
1070
  {
811
1071
  internalType: "address",
812
- name: "router",
1072
+ name: "token",
813
1073
  type: "address",
814
1074
  },
815
- {
816
- components: [
817
- {
818
- internalType: "enum StrategyFlag",
819
- name: "iyFlag",
820
- type: "uint8",
821
- },
822
- {
823
- internalType: "enum StrategyFlag",
824
- name: "syRatioFlag",
825
- type: "uint8",
826
- },
827
- ],
828
- internalType: "struct StrategyState",
829
- name: "oldState",
830
- type: "tuple",
831
- },
832
- {
833
- components: [
834
- {
835
- internalType: "uint256",
836
- name: "guessMin",
837
- type: "uint256",
838
- },
839
- {
840
- internalType: "uint256",
841
- name: "guessMax",
842
- type: "uint256",
843
- },
844
- {
845
- internalType: "uint256",
846
- name: "guessOffchain",
847
- type: "uint256",
848
- },
849
- {
850
- internalType: "uint256",
851
- name: "maxIteration",
852
- type: "uint256",
853
- },
854
- {
855
- internalType: "uint256",
856
- name: "eps",
857
- type: "uint256",
858
- },
859
- ],
860
- internalType: "struct ApproxParams",
861
- name: "botParams",
862
- type: "tuple",
863
- },
864
1075
  {
865
1076
  internalType: "uint256",
866
- name: "minYtOut",
867
- type: "uint256",
868
- },
869
- {
870
- internalType: "uint256",
871
- name: "maxSyIn",
872
- type: "uint256",
873
- },
874
- ],
875
- name: "swapSyToYt",
876
- outputs: [
877
- {
878
- internalType: "uint256",
879
- name: "exactYtOut",
880
- type: "uint256",
881
- },
882
- {
883
- internalType: "uint256",
884
- name: "netSyIn",
1077
+ name: "amount",
885
1078
  type: "uint256",
886
1079
  },
887
1080
  ],
1081
+ name: "withdrawFunds",
1082
+ outputs: [],
888
1083
  stateMutability: "nonpayable",
889
1084
  type: "function",
890
1085
  },