@pendle/core-v2 2.17.6-tradingbot → 2.17.7-tradingbot

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  12. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  14. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
  16. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  18. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  23. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  24. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  29. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  30. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  32. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  36. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  38. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  40. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  43. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  45. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
  49. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.json +2 -2
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +2 -2
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +2 -2
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +2 -2
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +2 -2
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +2 -2
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  77. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
  78. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
  79. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
  80. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +2 -2
  81. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  82. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  83. package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.dbg.json +4 -0
  84. package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.json +663 -0
  85. package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.dbg.json +4 -0
  86. package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.json +663 -0
  87. package/build/artifacts/contracts/core/TradingBot/BotDecisionHelper.sol/BotDecisionHelper.dbg.json +4 -0
  88. package/build/artifacts/contracts/core/TradingBot/BotDecisionHelper.sol/BotDecisionHelper.json +1070 -0
  89. package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.dbg.json +4 -0
  90. package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.json +10 -0
  91. package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +4 -0
  92. package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.json +1767 -0
  93. package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.dbg.json +4 -0
  94. package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.json +24 -0
  95. package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.dbg.json +4 -0
  96. package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.json +613 -0
  97. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  98. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  99. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  100. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  101. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  102. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  103. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
  104. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
  105. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
  106. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
  107. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
  108. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
  109. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  110. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +151 -2
  111. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.dbg.json +4 -0
  112. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.json +10 -0
  113. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.json +6 -82
  117. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +22 -22
  119. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +4 -42
  122. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +32 -146
  131. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +4 -0
  135. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.json +917 -0
  136. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +4 -0
  137. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +1153 -0
  138. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +4 -0
  139. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +440 -0
  140. package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  141. package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  142. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  143. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
  144. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  145. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  146. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
  147. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +2 -2
  148. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  149. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  150. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  151. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  152. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  153. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +8 -84
  154. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  155. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +24 -24
  156. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  157. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +6 -44
  158. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  159. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  160. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  161. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  162. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  163. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  164. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  165. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
  166. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +2 -2
  167. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
  168. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.json +2 -2
  169. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +1 -1
  170. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.json +2 -2
  171. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
  172. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.json +2 -2
  173. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  174. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  175. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  176. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  177. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  178. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  179. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  180. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  181. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  182. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  183. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
  184. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +2 -2
  185. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
  186. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  187. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  188. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  189. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  190. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  191. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  192. package/package.json +1 -1
  193. package/typechain-types/ActionMarketAuxStatic.ts +38 -191
  194. package/typechain-types/ActionMarketCoreStatic.ts +134 -600
  195. package/typechain-types/ActionMintRedeemStatic.ts +26 -92
  196. package/typechain-types/BotActionCallback.ts +36 -0
  197. package/typechain-types/BotActionHelper.ts +36 -0
  198. package/typechain-types/BotDecisionHelper.ts +527 -0
  199. package/typechain-types/IBotDecisionHelper.ts +507 -0
  200. package/typechain-types/ILongYieldTradingBot.ts +481 -129
  201. package/typechain-types/IPActionMarketAuxStatic.ts +38 -191
  202. package/typechain-types/IPActionMarketCoreStatic.ts +134 -600
  203. package/typechain-types/IPActionMintRedeemStatic.ts +26 -92
  204. package/typechain-types/IPRouterStatic.ts +197 -888
  205. package/typechain-types/ITradingBotBase.ts +76 -0
  206. package/typechain-types/LongYieldTradingBot.ts +85 -141
  207. package/typechain-types/TradingBotBase.ts +36 -0
  208. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  209. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  210. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +7 -83
  211. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +23 -23
  212. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +5 -43
  213. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  214. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  215. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  216. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  217. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  218. package/typechain-types/factories/BotActionCallback__factory.ts +25 -0
  219. package/typechain-types/factories/BotActionHelper__factory.ts +25 -0
  220. package/typechain-types/factories/BotDecisionHelper__factory.ts +1123 -0
  221. package/typechain-types/factories/Broadcaster__factory.ts +1 -1
  222. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  223. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  224. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  225. package/typechain-types/factories/Errors__factory.ts +150 -1
  226. package/typechain-types/factories/IBotDecisionHelper__factory.ts +932 -0
  227. package/typechain-types/factories/ILongYieldTradingBot__factory.ts +425 -161
  228. package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +6 -82
  229. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +22 -22
  230. package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +4 -42
  231. package/typechain-types/factories/IPRouterStatic__factory.ts +32 -146
  232. package/typechain-types/factories/ITradingBotBase__factory.ts +50 -0
  233. package/typechain-types/factories/LongYieldTradingBot__factory.ts +63 -183
  234. package/typechain-types/factories/MarketExtLib__factory.ts +1 -1
  235. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  236. package/typechain-types/factories/PendleAuraBbAWethSwethSY__factory.ts +1 -1
  237. package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +1 -1
  238. package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +1 -1
  239. package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +1 -1
  240. package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +1 -1
  241. package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +1 -1
  242. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  243. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  244. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  245. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  246. package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
  247. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  248. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  249. package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
  250. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  251. package/typechain-types/factories/PendleLpGlpOracle__factory.ts +1 -1
  252. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  253. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  254. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  255. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  256. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
  257. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  258. package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
  259. package/typechain-types/factories/PendlePtOracle__factory.ts +1 -1
  260. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  261. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  262. package/typechain-types/factories/PendleRouterHelper__factory.ts +1 -1
  263. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  264. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  265. package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
  266. package/typechain-types/factories/PendleStargateLPSY__factory.ts +1 -1
  267. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  268. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  269. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
  270. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  271. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
  272. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  273. package/typechain-types/factories/SAPE__factory.ts +1 -1
  274. package/typechain-types/factories/TradingBotBase__factory.ts +25 -0
  275. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  276. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  277. package/typechain-types/hardhat.d.ts +81 -0
  278. package/typechain-types/index.ts +18 -0
  279. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.dbg.json +0 -4
  280. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.json +0 -976
  281. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBinanceEth.sol/PendleBinanceEth.dbg.json +0 -4
  282. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBinanceEth.sol/PendleBinanceEth.json +0 -979
  283. package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.dbg.json +0 -4
  284. package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.json +0 -42
  285. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.dbg.json +0 -4
  286. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.json +0 -97
@@ -0,0 +1,1153 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ILongYieldTradingBot",
4
+ "sourceName": "contracts/interfaces/TradingBot/ILongYieldTradingBot.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "components": [
11
+ {
12
+ "internalType": "uint256",
13
+ "name": "guessMin",
14
+ "type": "uint256"
15
+ },
16
+ {
17
+ "internalType": "uint256",
18
+ "name": "guessMax",
19
+ "type": "uint256"
20
+ },
21
+ {
22
+ "internalType": "uint256",
23
+ "name": "guessOffchain",
24
+ "type": "uint256"
25
+ },
26
+ {
27
+ "internalType": "uint256",
28
+ "name": "maxIteration",
29
+ "type": "uint256"
30
+ },
31
+ {
32
+ "internalType": "uint256",
33
+ "name": "eps",
34
+ "type": "uint256"
35
+ }
36
+ ],
37
+ "indexed": false,
38
+ "internalType": "struct ApproxParams",
39
+ "name": "botParams",
40
+ "type": "tuple"
41
+ },
42
+ {
43
+ "indexed": false,
44
+ "internalType": "uint256",
45
+ "name": "maxSyIn",
46
+ "type": "uint256"
47
+ },
48
+ {
49
+ "indexed": false,
50
+ "internalType": "uint256",
51
+ "name": "netSyIn",
52
+ "type": "uint256"
53
+ },
54
+ {
55
+ "indexed": false,
56
+ "internalType": "uint256",
57
+ "name": "netLpOut",
58
+ "type": "uint256"
59
+ }
60
+ ],
61
+ "name": "AddLiqFromSy",
62
+ "type": "event"
63
+ },
64
+ {
65
+ "anonymous": false,
66
+ "inputs": [
67
+ {
68
+ "components": [
69
+ {
70
+ "internalType": "uint256",
71
+ "name": "guessMin",
72
+ "type": "uint256"
73
+ },
74
+ {
75
+ "internalType": "uint256",
76
+ "name": "guessMax",
77
+ "type": "uint256"
78
+ },
79
+ {
80
+ "internalType": "uint256",
81
+ "name": "guessOffchain",
82
+ "type": "uint256"
83
+ },
84
+ {
85
+ "internalType": "uint256",
86
+ "name": "maxIteration",
87
+ "type": "uint256"
88
+ },
89
+ {
90
+ "internalType": "uint256",
91
+ "name": "eps",
92
+ "type": "uint256"
93
+ }
94
+ ],
95
+ "indexed": false,
96
+ "internalType": "struct ApproxParams",
97
+ "name": "botParams",
98
+ "type": "tuple"
99
+ },
100
+ {
101
+ "indexed": false,
102
+ "internalType": "uint256",
103
+ "name": "maxYtIn",
104
+ "type": "uint256"
105
+ },
106
+ {
107
+ "indexed": false,
108
+ "internalType": "uint256",
109
+ "name": "netYtIn",
110
+ "type": "uint256"
111
+ },
112
+ {
113
+ "indexed": false,
114
+ "internalType": "uint256",
115
+ "name": "netLpOut",
116
+ "type": "uint256"
117
+ }
118
+ ],
119
+ "name": "AddLiqFromYt",
120
+ "type": "event"
121
+ },
122
+ {
123
+ "anonymous": false,
124
+ "inputs": [
125
+ {
126
+ "components": [
127
+ {
128
+ "internalType": "uint256",
129
+ "name": "guessMin",
130
+ "type": "uint256"
131
+ },
132
+ {
133
+ "internalType": "uint256",
134
+ "name": "guessMax",
135
+ "type": "uint256"
136
+ },
137
+ {
138
+ "internalType": "uint256",
139
+ "name": "guessOffchain",
140
+ "type": "uint256"
141
+ },
142
+ {
143
+ "internalType": "uint256",
144
+ "name": "maxIteration",
145
+ "type": "uint256"
146
+ },
147
+ {
148
+ "internalType": "uint256",
149
+ "name": "eps",
150
+ "type": "uint256"
151
+ }
152
+ ],
153
+ "indexed": false,
154
+ "internalType": "struct ApproxParams",
155
+ "name": "botParams",
156
+ "type": "tuple"
157
+ },
158
+ {
159
+ "indexed": false,
160
+ "internalType": "uint256",
161
+ "name": "maxSyIn",
162
+ "type": "uint256"
163
+ },
164
+ {
165
+ "indexed": false,
166
+ "internalType": "uint256",
167
+ "name": "netSyIn",
168
+ "type": "uint256"
169
+ },
170
+ {
171
+ "indexed": false,
172
+ "internalType": "uint256",
173
+ "name": "netLpOut",
174
+ "type": "uint256"
175
+ },
176
+ {
177
+ "indexed": false,
178
+ "internalType": "uint256",
179
+ "name": "netYtOut",
180
+ "type": "uint256"
181
+ }
182
+ ],
183
+ "name": "AddLiqKeepYt",
184
+ "type": "event"
185
+ },
186
+ {
187
+ "anonymous": false,
188
+ "inputs": [
189
+ {
190
+ "indexed": false,
191
+ "internalType": "uint256",
192
+ "name": "netSyOut",
193
+ "type": "uint256"
194
+ },
195
+ {
196
+ "indexed": false,
197
+ "internalType": "uint256",
198
+ "name": "netPendleOut",
199
+ "type": "uint256"
200
+ }
201
+ ],
202
+ "name": "ClaimAndCompound",
203
+ "type": "event"
204
+ },
205
+ {
206
+ "anonymous": false,
207
+ "inputs": [
208
+ {
209
+ "indexed": false,
210
+ "internalType": "uint256",
211
+ "name": "netSyIn",
212
+ "type": "uint256"
213
+ }
214
+ ],
215
+ "name": "DepositSy",
216
+ "type": "event"
217
+ },
218
+ {
219
+ "anonymous": false,
220
+ "inputs": [
221
+ {
222
+ "indexed": true,
223
+ "internalType": "address",
224
+ "name": "token",
225
+ "type": "address"
226
+ },
227
+ {
228
+ "indexed": false,
229
+ "internalType": "uint256",
230
+ "name": "netTokenIn",
231
+ "type": "uint256"
232
+ }
233
+ ],
234
+ "name": "DepositToken",
235
+ "type": "event"
236
+ },
237
+ {
238
+ "anonymous": false,
239
+ "inputs": [
240
+ {
241
+ "components": [
242
+ {
243
+ "internalType": "uint256",
244
+ "name": "guessMin",
245
+ "type": "uint256"
246
+ },
247
+ {
248
+ "internalType": "uint256",
249
+ "name": "guessMax",
250
+ "type": "uint256"
251
+ },
252
+ {
253
+ "internalType": "uint256",
254
+ "name": "guessOffchain",
255
+ "type": "uint256"
256
+ },
257
+ {
258
+ "internalType": "uint256",
259
+ "name": "maxIteration",
260
+ "type": "uint256"
261
+ },
262
+ {
263
+ "internalType": "uint256",
264
+ "name": "eps",
265
+ "type": "uint256"
266
+ }
267
+ ],
268
+ "indexed": false,
269
+ "internalType": "struct ApproxParams",
270
+ "name": "botParams",
271
+ "type": "tuple"
272
+ },
273
+ {
274
+ "indexed": false,
275
+ "internalType": "uint256",
276
+ "name": "maxLpRemoved",
277
+ "type": "uint256"
278
+ },
279
+ {
280
+ "indexed": false,
281
+ "internalType": "uint256",
282
+ "name": "netLpIn",
283
+ "type": "uint256"
284
+ },
285
+ {
286
+ "indexed": false,
287
+ "internalType": "uint256",
288
+ "name": "netYtOut",
289
+ "type": "uint256"
290
+ }
291
+ ],
292
+ "name": "RemoveLiqToYt",
293
+ "type": "event"
294
+ },
295
+ {
296
+ "anonymous": false,
297
+ "inputs": [
298
+ {
299
+ "components": [
300
+ {
301
+ "internalType": "uint256",
302
+ "name": "guessMin",
303
+ "type": "uint256"
304
+ },
305
+ {
306
+ "internalType": "uint256",
307
+ "name": "guessMax",
308
+ "type": "uint256"
309
+ },
310
+ {
311
+ "internalType": "uint256",
312
+ "name": "guessOffchain",
313
+ "type": "uint256"
314
+ },
315
+ {
316
+ "internalType": "uint256",
317
+ "name": "maxIteration",
318
+ "type": "uint256"
319
+ },
320
+ {
321
+ "internalType": "uint256",
322
+ "name": "eps",
323
+ "type": "uint256"
324
+ }
325
+ ],
326
+ "indexed": false,
327
+ "internalType": "struct ApproxParams",
328
+ "name": "botParams",
329
+ "type": "tuple"
330
+ },
331
+ {
332
+ "indexed": false,
333
+ "internalType": "uint256",
334
+ "name": "maxSyIn",
335
+ "type": "uint256"
336
+ },
337
+ {
338
+ "indexed": false,
339
+ "internalType": "uint256",
340
+ "name": "exactYtOut",
341
+ "type": "uint256"
342
+ },
343
+ {
344
+ "indexed": false,
345
+ "internalType": "uint256",
346
+ "name": "netSyIn",
347
+ "type": "uint256"
348
+ }
349
+ ],
350
+ "name": "SwapSyToYt",
351
+ "type": "event"
352
+ },
353
+ {
354
+ "anonymous": false,
355
+ "inputs": [
356
+ {
357
+ "indexed": true,
358
+ "internalType": "address",
359
+ "name": "token",
360
+ "type": "address"
361
+ },
362
+ {
363
+ "indexed": false,
364
+ "internalType": "uint256",
365
+ "name": "amount",
366
+ "type": "uint256"
367
+ }
368
+ ],
369
+ "name": "WithdrawFunds",
370
+ "type": "event"
371
+ },
372
+ {
373
+ "inputs": [
374
+ {
375
+ "components": [
376
+ {
377
+ "internalType": "uint256",
378
+ "name": "guessMin",
379
+ "type": "uint256"
380
+ },
381
+ {
382
+ "internalType": "uint256",
383
+ "name": "guessMax",
384
+ "type": "uint256"
385
+ },
386
+ {
387
+ "internalType": "uint256",
388
+ "name": "guessOffchain",
389
+ "type": "uint256"
390
+ },
391
+ {
392
+ "internalType": "uint256",
393
+ "name": "maxIteration",
394
+ "type": "uint256"
395
+ },
396
+ {
397
+ "internalType": "uint256",
398
+ "name": "eps",
399
+ "type": "uint256"
400
+ }
401
+ ],
402
+ "internalType": "struct ApproxParams",
403
+ "name": "botParams",
404
+ "type": "tuple"
405
+ },
406
+ {
407
+ "internalType": "uint256",
408
+ "name": "minLpOut",
409
+ "type": "uint256"
410
+ },
411
+ {
412
+ "internalType": "uint256",
413
+ "name": "maxSyIn",
414
+ "type": "uint256"
415
+ }
416
+ ],
417
+ "name": "addLiqFromSy",
418
+ "outputs": [
419
+ {
420
+ "internalType": "uint256",
421
+ "name": "netPtFromSwap",
422
+ "type": "uint256"
423
+ },
424
+ {
425
+ "internalType": "uint256",
426
+ "name": "netLpOut",
427
+ "type": "uint256"
428
+ },
429
+ {
430
+ "internalType": "uint256",
431
+ "name": "netSyIn",
432
+ "type": "uint256"
433
+ }
434
+ ],
435
+ "stateMutability": "nonpayable",
436
+ "type": "function"
437
+ },
438
+ {
439
+ "inputs": [
440
+ {
441
+ "components": [
442
+ {
443
+ "internalType": "uint256",
444
+ "name": "guessMin",
445
+ "type": "uint256"
446
+ },
447
+ {
448
+ "internalType": "uint256",
449
+ "name": "guessMax",
450
+ "type": "uint256"
451
+ },
452
+ {
453
+ "internalType": "uint256",
454
+ "name": "guessOffchain",
455
+ "type": "uint256"
456
+ },
457
+ {
458
+ "internalType": "uint256",
459
+ "name": "maxIteration",
460
+ "type": "uint256"
461
+ },
462
+ {
463
+ "internalType": "uint256",
464
+ "name": "eps",
465
+ "type": "uint256"
466
+ }
467
+ ],
468
+ "internalType": "struct ApproxParams",
469
+ "name": "botParams",
470
+ "type": "tuple"
471
+ },
472
+ {
473
+ "internalType": "uint256",
474
+ "name": "minLpOut",
475
+ "type": "uint256"
476
+ },
477
+ {
478
+ "internalType": "uint256",
479
+ "name": "maxYtIn",
480
+ "type": "uint256"
481
+ }
482
+ ],
483
+ "name": "addLiqFromYt",
484
+ "outputs": [
485
+ {
486
+ "internalType": "uint256",
487
+ "name": "netPtFromSwap",
488
+ "type": "uint256"
489
+ },
490
+ {
491
+ "internalType": "uint256",
492
+ "name": "netLpOut",
493
+ "type": "uint256"
494
+ },
495
+ {
496
+ "internalType": "uint256",
497
+ "name": "netYtIn",
498
+ "type": "uint256"
499
+ }
500
+ ],
501
+ "stateMutability": "nonpayable",
502
+ "type": "function"
503
+ },
504
+ {
505
+ "inputs": [
506
+ {
507
+ "internalType": "address",
508
+ "name": "router",
509
+ "type": "address"
510
+ },
511
+ {
512
+ "components": [
513
+ {
514
+ "internalType": "uint256",
515
+ "name": "guessMin",
516
+ "type": "uint256"
517
+ },
518
+ {
519
+ "internalType": "uint256",
520
+ "name": "guessMax",
521
+ "type": "uint256"
522
+ },
523
+ {
524
+ "internalType": "uint256",
525
+ "name": "guessOffchain",
526
+ "type": "uint256"
527
+ },
528
+ {
529
+ "internalType": "uint256",
530
+ "name": "maxIteration",
531
+ "type": "uint256"
532
+ },
533
+ {
534
+ "internalType": "uint256",
535
+ "name": "eps",
536
+ "type": "uint256"
537
+ }
538
+ ],
539
+ "internalType": "struct ApproxParams",
540
+ "name": "botParams",
541
+ "type": "tuple"
542
+ },
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "maxSyIn",
546
+ "type": "uint256"
547
+ },
548
+ {
549
+ "internalType": "uint256",
550
+ "name": "minLpOut",
551
+ "type": "uint256"
552
+ },
553
+ {
554
+ "internalType": "uint256",
555
+ "name": "minYtOut",
556
+ "type": "uint256"
557
+ }
558
+ ],
559
+ "name": "addLiqKeepYt",
560
+ "outputs": [
561
+ {
562
+ "internalType": "uint256",
563
+ "name": "netSyIn",
564
+ "type": "uint256"
565
+ },
566
+ {
567
+ "internalType": "uint256",
568
+ "name": "netLpOut",
569
+ "type": "uint256"
570
+ },
571
+ {
572
+ "internalType": "uint256",
573
+ "name": "netYtOut",
574
+ "type": "uint256"
575
+ }
576
+ ],
577
+ "stateMutability": "nonpayable",
578
+ "type": "function"
579
+ },
580
+ {
581
+ "inputs": [
582
+ {
583
+ "components": [
584
+ {
585
+ "internalType": "address[]",
586
+ "name": "tokens",
587
+ "type": "address[]"
588
+ },
589
+ {
590
+ "internalType": "address",
591
+ "name": "spender",
592
+ "type": "address"
593
+ }
594
+ ],
595
+ "internalType": "struct ITradingBotBase.MultiApproval[]",
596
+ "name": "arr",
597
+ "type": "tuple[]"
598
+ }
599
+ ],
600
+ "name": "approveInf",
601
+ "outputs": [],
602
+ "stateMutability": "nonpayable",
603
+ "type": "function"
604
+ },
605
+ {
606
+ "inputs": [
607
+ {
608
+ "internalType": "address",
609
+ "name": "router",
610
+ "type": "address"
611
+ },
612
+ {
613
+ "components": [
614
+ {
615
+ "internalType": "address",
616
+ "name": "tokenIn",
617
+ "type": "address"
618
+ },
619
+ {
620
+ "internalType": "uint256",
621
+ "name": "netTokenIn",
622
+ "type": "uint256"
623
+ },
624
+ {
625
+ "internalType": "address",
626
+ "name": "tokenMintSy",
627
+ "type": "address"
628
+ },
629
+ {
630
+ "internalType": "address",
631
+ "name": "bulk",
632
+ "type": "address"
633
+ },
634
+ {
635
+ "internalType": "address",
636
+ "name": "pendleSwap",
637
+ "type": "address"
638
+ },
639
+ {
640
+ "components": [
641
+ {
642
+ "internalType": "enum SwapType",
643
+ "name": "swapType",
644
+ "type": "uint8"
645
+ },
646
+ {
647
+ "internalType": "address",
648
+ "name": "extRouter",
649
+ "type": "address"
650
+ },
651
+ {
652
+ "internalType": "bytes",
653
+ "name": "extCalldata",
654
+ "type": "bytes"
655
+ },
656
+ {
657
+ "internalType": "bool",
658
+ "name": "needScale",
659
+ "type": "bool"
660
+ }
661
+ ],
662
+ "internalType": "struct SwapData",
663
+ "name": "swapData",
664
+ "type": "tuple"
665
+ }
666
+ ],
667
+ "internalType": "struct TokenInput[]",
668
+ "name": "inps",
669
+ "type": "tuple[]"
670
+ },
671
+ {
672
+ "internalType": "uint256",
673
+ "name": "minSyOut",
674
+ "type": "uint256"
675
+ }
676
+ ],
677
+ "name": "claimAndCompound",
678
+ "outputs": [
679
+ {
680
+ "internalType": "uint256",
681
+ "name": "netSyOut",
682
+ "type": "uint256"
683
+ },
684
+ {
685
+ "internalType": "uint256",
686
+ "name": "netPendleOut",
687
+ "type": "uint256"
688
+ }
689
+ ],
690
+ "stateMutability": "nonpayable",
691
+ "type": "function"
692
+ },
693
+ {
694
+ "inputs": [],
695
+ "name": "claimWithoutCompound",
696
+ "outputs": [
697
+ {
698
+ "components": [
699
+ {
700
+ "internalType": "address",
701
+ "name": "token",
702
+ "type": "address"
703
+ },
704
+ {
705
+ "internalType": "uint256",
706
+ "name": "amount",
707
+ "type": "uint256"
708
+ }
709
+ ],
710
+ "internalType": "struct TokenAmount[]",
711
+ "name": "rewards",
712
+ "type": "tuple[]"
713
+ }
714
+ ],
715
+ "stateMutability": "nonpayable",
716
+ "type": "function"
717
+ },
718
+ {
719
+ "inputs": [
720
+ {
721
+ "internalType": "uint256",
722
+ "name": "netSyIn",
723
+ "type": "uint256"
724
+ }
725
+ ],
726
+ "name": "depositSy",
727
+ "outputs": [],
728
+ "stateMutability": "nonpayable",
729
+ "type": "function"
730
+ },
731
+ {
732
+ "inputs": [
733
+ {
734
+ "internalType": "address",
735
+ "name": "router",
736
+ "type": "address"
737
+ },
738
+ {
739
+ "components": [
740
+ {
741
+ "internalType": "address",
742
+ "name": "tokenIn",
743
+ "type": "address"
744
+ },
745
+ {
746
+ "internalType": "uint256",
747
+ "name": "netTokenIn",
748
+ "type": "uint256"
749
+ },
750
+ {
751
+ "internalType": "address",
752
+ "name": "tokenMintSy",
753
+ "type": "address"
754
+ },
755
+ {
756
+ "internalType": "address",
757
+ "name": "bulk",
758
+ "type": "address"
759
+ },
760
+ {
761
+ "internalType": "address",
762
+ "name": "pendleSwap",
763
+ "type": "address"
764
+ },
765
+ {
766
+ "components": [
767
+ {
768
+ "internalType": "enum SwapType",
769
+ "name": "swapType",
770
+ "type": "uint8"
771
+ },
772
+ {
773
+ "internalType": "address",
774
+ "name": "extRouter",
775
+ "type": "address"
776
+ },
777
+ {
778
+ "internalType": "bytes",
779
+ "name": "extCalldata",
780
+ "type": "bytes"
781
+ },
782
+ {
783
+ "internalType": "bool",
784
+ "name": "needScale",
785
+ "type": "bool"
786
+ }
787
+ ],
788
+ "internalType": "struct SwapData",
789
+ "name": "swapData",
790
+ "type": "tuple"
791
+ }
792
+ ],
793
+ "internalType": "struct TokenInput",
794
+ "name": "inp",
795
+ "type": "tuple"
796
+ },
797
+ {
798
+ "internalType": "uint256",
799
+ "name": "minSyOut",
800
+ "type": "uint256"
801
+ }
802
+ ],
803
+ "name": "depositToken",
804
+ "outputs": [],
805
+ "stateMutability": "payable",
806
+ "type": "function"
807
+ },
808
+ {
809
+ "inputs": [],
810
+ "name": "readBotState",
811
+ "outputs": [
812
+ {
813
+ "components": [
814
+ {
815
+ "internalType": "uint256",
816
+ "name": "lpBalance",
817
+ "type": "uint256"
818
+ },
819
+ {
820
+ "internalType": "uint256",
821
+ "name": "ytBalance",
822
+ "type": "uint256"
823
+ },
824
+ {
825
+ "internalType": "uint256",
826
+ "name": "syBalance",
827
+ "type": "uint256"
828
+ }
829
+ ],
830
+ "internalType": "struct BotState",
831
+ "name": "botState",
832
+ "type": "tuple"
833
+ }
834
+ ],
835
+ "stateMutability": "view",
836
+ "type": "function"
837
+ },
838
+ {
839
+ "inputs": [
840
+ {
841
+ "internalType": "address",
842
+ "name": "router",
843
+ "type": "address"
844
+ }
845
+ ],
846
+ "name": "readMarketExtState",
847
+ "outputs": [
848
+ {
849
+ "components": [
850
+ {
851
+ "components": [
852
+ {
853
+ "internalType": "int256",
854
+ "name": "totalPt",
855
+ "type": "int256"
856
+ },
857
+ {
858
+ "internalType": "int256",
859
+ "name": "totalSy",
860
+ "type": "int256"
861
+ },
862
+ {
863
+ "internalType": "int256",
864
+ "name": "totalLp",
865
+ "type": "int256"
866
+ },
867
+ {
868
+ "internalType": "address",
869
+ "name": "treasury",
870
+ "type": "address"
871
+ },
872
+ {
873
+ "internalType": "int256",
874
+ "name": "scalarRoot",
875
+ "type": "int256"
876
+ },
877
+ {
878
+ "internalType": "uint256",
879
+ "name": "expiry",
880
+ "type": "uint256"
881
+ },
882
+ {
883
+ "internalType": "uint256",
884
+ "name": "lnFeeRateRoot",
885
+ "type": "uint256"
886
+ },
887
+ {
888
+ "internalType": "uint256",
889
+ "name": "reserveFeePercent",
890
+ "type": "uint256"
891
+ },
892
+ {
893
+ "internalType": "uint256",
894
+ "name": "lastLnImpliedRate",
895
+ "type": "uint256"
896
+ }
897
+ ],
898
+ "internalType": "struct MarketState",
899
+ "name": "state",
900
+ "type": "tuple"
901
+ },
902
+ {
903
+ "internalType": "PYIndex",
904
+ "name": "index",
905
+ "type": "uint256"
906
+ },
907
+ {
908
+ "internalType": "uint256",
909
+ "name": "blockTime",
910
+ "type": "uint256"
911
+ }
912
+ ],
913
+ "internalType": "struct MarketExtState",
914
+ "name": "marketExt",
915
+ "type": "tuple"
916
+ }
917
+ ],
918
+ "stateMutability": "nonpayable",
919
+ "type": "function"
920
+ },
921
+ {
922
+ "inputs": [
923
+ {
924
+ "components": [
925
+ {
926
+ "internalType": "uint256",
927
+ "name": "guessMin",
928
+ "type": "uint256"
929
+ },
930
+ {
931
+ "internalType": "uint256",
932
+ "name": "guessMax",
933
+ "type": "uint256"
934
+ },
935
+ {
936
+ "internalType": "uint256",
937
+ "name": "guessOffchain",
938
+ "type": "uint256"
939
+ },
940
+ {
941
+ "internalType": "uint256",
942
+ "name": "maxIteration",
943
+ "type": "uint256"
944
+ },
945
+ {
946
+ "internalType": "uint256",
947
+ "name": "eps",
948
+ "type": "uint256"
949
+ }
950
+ ],
951
+ "internalType": "struct ApproxParams",
952
+ "name": "botParams",
953
+ "type": "tuple"
954
+ },
955
+ {
956
+ "components": [
957
+ {
958
+ "internalType": "uint256",
959
+ "name": "guessMin",
960
+ "type": "uint256"
961
+ },
962
+ {
963
+ "internalType": "uint256",
964
+ "name": "guessMax",
965
+ "type": "uint256"
966
+ },
967
+ {
968
+ "internalType": "uint256",
969
+ "name": "guessOffchain",
970
+ "type": "uint256"
971
+ },
972
+ {
973
+ "internalType": "uint256",
974
+ "name": "maxIteration",
975
+ "type": "uint256"
976
+ },
977
+ {
978
+ "internalType": "uint256",
979
+ "name": "eps",
980
+ "type": "uint256"
981
+ }
982
+ ],
983
+ "internalType": "struct ApproxParams",
984
+ "name": "guessTotalPtToSwap",
985
+ "type": "tuple"
986
+ },
987
+ {
988
+ "internalType": "uint256",
989
+ "name": "maxLpRemoved",
990
+ "type": "uint256"
991
+ },
992
+ {
993
+ "internalType": "uint256",
994
+ "name": "minYtOut",
995
+ "type": "uint256"
996
+ }
997
+ ],
998
+ "name": "removeLiqToYt",
999
+ "outputs": [
1000
+ {
1001
+ "internalType": "uint256",
1002
+ "name": "netLpRemoved",
1003
+ "type": "uint256"
1004
+ },
1005
+ {
1006
+ "internalType": "uint256",
1007
+ "name": "netYtOut",
1008
+ "type": "uint256"
1009
+ },
1010
+ {
1011
+ "internalType": "uint256",
1012
+ "name": "totalPtToSwap",
1013
+ "type": "uint256"
1014
+ }
1015
+ ],
1016
+ "stateMutability": "nonpayable",
1017
+ "type": "function"
1018
+ },
1019
+ {
1020
+ "inputs": [
1021
+ {
1022
+ "components": [
1023
+ {
1024
+ "internalType": "uint256",
1025
+ "name": "lowerIyLimit",
1026
+ "type": "uint256"
1027
+ },
1028
+ {
1029
+ "internalType": "uint256",
1030
+ "name": "upperIyLimit",
1031
+ "type": "uint256"
1032
+ },
1033
+ {
1034
+ "internalType": "uint256",
1035
+ "name": "floatingSyRatioLimit",
1036
+ "type": "uint256"
1037
+ },
1038
+ {
1039
+ "internalType": "uint256",
1040
+ "name": "floatingSyRatioTarget",
1041
+ "type": "uint256"
1042
+ },
1043
+ {
1044
+ "internalType": "uint256",
1045
+ "name": "ytPtRatioLimit",
1046
+ "type": "uint256"
1047
+ },
1048
+ {
1049
+ "internalType": "uint256",
1050
+ "name": "ytPtRatioTarget",
1051
+ "type": "uint256"
1052
+ }
1053
+ ],
1054
+ "internalType": "struct LongTradingSpecs",
1055
+ "name": "_specs",
1056
+ "type": "tuple"
1057
+ }
1058
+ ],
1059
+ "name": "setSpecs",
1060
+ "outputs": [],
1061
+ "stateMutability": "nonpayable",
1062
+ "type": "function"
1063
+ },
1064
+ {
1065
+ "inputs": [
1066
+ {
1067
+ "internalType": "address",
1068
+ "name": "router",
1069
+ "type": "address"
1070
+ },
1071
+ {
1072
+ "components": [
1073
+ {
1074
+ "internalType": "uint256",
1075
+ "name": "guessMin",
1076
+ "type": "uint256"
1077
+ },
1078
+ {
1079
+ "internalType": "uint256",
1080
+ "name": "guessMax",
1081
+ "type": "uint256"
1082
+ },
1083
+ {
1084
+ "internalType": "uint256",
1085
+ "name": "guessOffchain",
1086
+ "type": "uint256"
1087
+ },
1088
+ {
1089
+ "internalType": "uint256",
1090
+ "name": "maxIteration",
1091
+ "type": "uint256"
1092
+ },
1093
+ {
1094
+ "internalType": "uint256",
1095
+ "name": "eps",
1096
+ "type": "uint256"
1097
+ }
1098
+ ],
1099
+ "internalType": "struct ApproxParams",
1100
+ "name": "botParams",
1101
+ "type": "tuple"
1102
+ },
1103
+ {
1104
+ "internalType": "uint256",
1105
+ "name": "minYtOut",
1106
+ "type": "uint256"
1107
+ },
1108
+ {
1109
+ "internalType": "uint256",
1110
+ "name": "maxSyIn",
1111
+ "type": "uint256"
1112
+ }
1113
+ ],
1114
+ "name": "swapSyToYt",
1115
+ "outputs": [
1116
+ {
1117
+ "internalType": "uint256",
1118
+ "name": "exactYtOut",
1119
+ "type": "uint256"
1120
+ },
1121
+ {
1122
+ "internalType": "uint256",
1123
+ "name": "netSyIn",
1124
+ "type": "uint256"
1125
+ }
1126
+ ],
1127
+ "stateMutability": "nonpayable",
1128
+ "type": "function"
1129
+ },
1130
+ {
1131
+ "inputs": [
1132
+ {
1133
+ "internalType": "address",
1134
+ "name": "token",
1135
+ "type": "address"
1136
+ },
1137
+ {
1138
+ "internalType": "uint256",
1139
+ "name": "amount",
1140
+ "type": "uint256"
1141
+ }
1142
+ ],
1143
+ "name": "withdrawFunds",
1144
+ "outputs": [],
1145
+ "stateMutability": "nonpayable",
1146
+ "type": "function"
1147
+ }
1148
+ ],
1149
+ "bytecode": "0x",
1150
+ "deployedBytecode": "0x",
1151
+ "linkReferences": {},
1152
+ "deployedLinkReferences": {}
1153
+ }