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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  13. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  15. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
  17. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  19. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  24. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  29. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  30. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  31. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  35. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  37. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  39. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  41. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  44. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  46. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.json +2 -2
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +2 -2
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +2 -2
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +2 -2
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +2 -2
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +1 -1
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAPoolHelper.dbg.json +1 -1
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.dbg.json +1 -1
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +1 -1
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +1 -1
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +1 -1
  78. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +1 -1
  79. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.dbg.json +1 -1
  80. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
  81. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +2 -2
  82. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  83. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  84. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  85. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  86. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
  87. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
  88. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
  89. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  90. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  91. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
  92. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
  93. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
  94. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  95. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  96. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
  97. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
  98. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
  99. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +2 -2
  100. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  101. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  102. package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.dbg.json +4 -0
  103. package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.json +678 -0
  104. package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.dbg.json +4 -0
  105. package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.json +678 -0
  106. package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.dbg.json +4 -0
  107. package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.json +10 -0
  108. package/build/artifacts/contracts/core/TradingBot/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.dbg.json +4 -0
  109. package/build/artifacts/contracts/core/TradingBot/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.json +1190 -0
  110. package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +4 -0
  111. package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.json +1671 -0
  112. package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.dbg.json +4 -0
  113. package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.json +24 -0
  114. package/build/artifacts/contracts/core/TradingBot/SpecSegmentLib.sol/SpecSegmentLib.dbg.json +4 -0
  115. package/build/artifacts/contracts/core/TradingBot/SpecSegmentLib.sol/SpecSegmentLib.json +10 -0
  116. package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.dbg.json +4 -0
  117. package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.json +628 -0
  118. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  119. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  120. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  121. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  122. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  123. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  124. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  125. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +1 -1
  126. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
  127. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
  128. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
  129. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
  130. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
  131. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
  132. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  133. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +151 -2
  134. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.dbg.json +4 -0
  135. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.json +10 -0
  136. package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
  137. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/Balancer/IERC4626LinearPool.sol/IERC4626LinearPool.dbg.json +1 -1
  139. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
  140. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
  141. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
  143. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  144. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  145. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  146. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.json +6 -82
  147. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  148. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +22 -22
  149. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  150. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  151. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +4 -42
  152. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  153. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  154. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  155. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  156. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  157. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  158. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  159. package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
  160. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  161. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +32 -146
  162. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  163. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  164. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  165. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  166. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +4 -0
  167. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.json +878 -0
  168. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +4 -0
  169. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +1084 -0
  170. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +4 -0
  171. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +429 -0
  172. package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  173. package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  174. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  175. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
  176. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  177. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  178. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
  179. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +2 -2
  180. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  181. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  182. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  183. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  184. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  185. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +8 -84
  186. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  187. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +24 -24
  188. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  189. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +6 -44
  190. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  191. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  192. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  193. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  194. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  195. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  196. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  197. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
  198. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +2 -2
  199. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
  200. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.json +2 -2
  201. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +1 -1
  202. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.json +2 -2
  203. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
  204. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.json +2 -2
  205. package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.dbg.json +1 -1
  206. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  207. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  208. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  209. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  210. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  211. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  212. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  213. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  214. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  215. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  216. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
  217. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +2 -2
  218. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
  219. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  220. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  221. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  222. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  223. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  224. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  225. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  226. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
  227. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
  228. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IHashflow.sol/IHashflow.dbg.json +1 -1
  229. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
  230. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberInputScalingHelper.sol/KyberInputScalingHelper.dbg.json +1 -1
  231. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
  232. package/contracts/core/TradingBot/BotActionCallback.sol +1 -1
  233. package/contracts/core/TradingBot/BotActionHelper.sol +1 -3
  234. package/contracts/core/TradingBot/BotSimulationLib.sol +2 -1
  235. package/contracts/core/TradingBot/LongYieldDecisionHelper.sol +413 -0
  236. package/contracts/core/TradingBot/LongYieldTradingBot.sol +63 -91
  237. package/contracts/core/TradingBot/SpecSegmentLib.sol +62 -0
  238. package/contracts/core/TradingBot/TradingBotBase.sol +14 -9
  239. package/contracts/interfaces/TradingBot/IBotDecisionHelper.sol +41 -57
  240. package/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol +24 -34
  241. package/contracts/interfaces/TradingBot/ITradingBotBase.sol +1 -3
  242. package/package.json +1 -1
  243. package/typechain-types/ActionMarketAuxStatic.ts +38 -191
  244. package/typechain-types/ActionMarketCoreStatic.ts +134 -600
  245. package/typechain-types/ActionMintRedeemStatic.ts +26 -92
  246. package/typechain-types/BotActionCallback.ts +76 -22
  247. package/typechain-types/BotActionHelper.ts +76 -22
  248. package/typechain-types/BotDecisionHelper.ts +561 -0
  249. package/typechain-types/IAnkrBNB.ts +150 -0
  250. package/typechain-types/IAnkrLiquidStaking.ts +253 -0
  251. package/typechain-types/IBotDecisionHelper.ts +437 -0
  252. package/typechain-types/ILongYieldTradingBot.ts +567 -298
  253. package/typechain-types/IPActionMarketAuxStatic.ts +38 -191
  254. package/typechain-types/IPActionMarketCoreStatic.ts +134 -600
  255. package/typechain-types/IPActionMintRedeemStatic.ts +26 -92
  256. package/typechain-types/IPRouterStatic.ts +197 -888
  257. package/typechain-types/ISwETH.ts +123 -0
  258. package/typechain-types/ITradingBotBase.ts +90 -22
  259. package/typechain-types/LongYieldDecisionHelper.ts +598 -0
  260. package/typechain-types/LongYieldTradingBot.ts +248 -361
  261. package/typechain-types/PendleAnkrBNBSY.ts +1235 -0
  262. package/typechain-types/PendleAuraWstethAnkreth.ts +1511 -0
  263. package/typechain-types/PendleSwETH.ts +1216 -0
  264. package/typechain-types/PendleThenaSY.ts +153 -0
  265. package/typechain-types/PendleWbEthSY.ts +1229 -0
  266. package/typechain-types/ThenaLpHelper.ts +19 -0
  267. package/typechain-types/ThenaMath.ts +87 -0
  268. package/typechain-types/ThenaPreview.ts +19 -0
  269. package/typechain-types/TradingBotBase.ts +76 -22
  270. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  271. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  272. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +7 -83
  273. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +23 -23
  274. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +5 -43
  275. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  276. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  277. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  278. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  279. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  280. package/typechain-types/factories/BotActionCallback__factory.ts +56 -16
  281. package/typechain-types/factories/BotActionHelper__factory.ts +56 -16
  282. package/typechain-types/factories/BotDecisionHelper__factory.ts +1192 -0
  283. package/typechain-types/factories/Broadcaster__factory.ts +1 -1
  284. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  285. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  286. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  287. package/typechain-types/factories/Errors__factory.ts +150 -1
  288. package/typechain-types/factories/IAnkrBNB__factory.ts +74 -0
  289. package/typechain-types/factories/IAnkrLiquidStaking__factory.ts +123 -0
  290. package/typechain-types/factories/IBotDecisionHelper__factory.ts +893 -0
  291. package/typechain-types/factories/ILongYieldTradingBot__factory.ts +586 -391
  292. package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +6 -82
  293. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +22 -22
  294. package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +4 -42
  295. package/typechain-types/factories/IPRouterStatic__factory.ts +32 -146
  296. package/typechain-types/factories/ISwETH__factory.ts +53 -0
  297. package/typechain-types/factories/ITradingBotBase__factory.ts +54 -15
  298. package/typechain-types/factories/LongYieldDecisionHelper__factory.ts +1247 -0
  299. package/typechain-types/factories/LongYieldTradingBot__factory.ts +363 -575
  300. package/typechain-types/factories/MarketExtLib__factory.ts +1 -1
  301. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  302. package/typechain-types/factories/PendleAnkrBNBSY__factory.ts +1100 -0
  303. package/typechain-types/factories/PendleAuraBbAWethSwethSY__factory.ts +1 -1
  304. package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +1 -1
  305. package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +1 -1
  306. package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +1 -1
  307. package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +1 -1
  308. package/typechain-types/factories/PendleAuraWstethAnkreth__factory.ts +1244 -0
  309. package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +1 -1
  310. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  311. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  312. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  313. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  314. package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
  315. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  316. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  317. package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
  318. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  319. package/typechain-types/factories/PendleLpGlpOracle__factory.ts +1 -1
  320. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  321. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  322. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  323. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  324. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
  325. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  326. package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
  327. package/typechain-types/factories/PendlePtOracle__factory.ts +1 -1
  328. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  329. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  330. package/typechain-types/factories/PendleRouterHelper__factory.ts +1 -1
  331. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  332. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  333. package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
  334. package/typechain-types/factories/PendleStargateLPSY__factory.ts +1 -1
  335. package/typechain-types/factories/PendleSwETH__factory.ts +1022 -0
  336. package/typechain-types/factories/PendleThenaSY__factory.ts +85 -1
  337. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  338. package/typechain-types/factories/PendleWbEthSY__factory.ts +1049 -0
  339. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  340. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
  341. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  342. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
  343. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  344. package/typechain-types/factories/PtAndLpToAsset__factory.ts +1 -1
  345. package/typechain-types/factories/SAPE__factory.ts +1 -1
  346. package/typechain-types/factories/ThenaLpHelper__factory.ts +13 -0
  347. package/typechain-types/factories/ThenaMath__factory.ts +36 -0
  348. package/typechain-types/factories/ThenaPreview__factory.ts +14 -1
  349. package/typechain-types/factories/TradingBotBase__factory.ts +56 -16
  350. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  351. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  352. package/typechain-types/hardhat.d.ts +81 -36
  353. package/typechain-types/index.ts +18 -8
  354. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.dbg.json +0 -4
  355. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.json +0 -976
  356. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBinanceEth.sol/PendleBinanceEth.dbg.json +0 -4
  357. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBinanceEth.sol/PendleBinanceEth.json +0 -979
  358. package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.dbg.json +0 -4
  359. package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.json +0 -42
  360. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.dbg.json +0 -4
  361. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.json +0 -97
  362. package/contracts/core/TradingBot/BotDecisionHelper.sol +0 -306
@@ -0,0 +1,678 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "BotActionCallback",
4
+ "sourceName": "contracts/core/TradingBot/BotActionCallback.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "caller",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "name": "BotCallbackNotMarket",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "uint256",
21
+ "name": "actualSyOut",
22
+ "type": "uint256"
23
+ },
24
+ {
25
+ "internalType": "uint256",
26
+ "name": "requiredSyOut",
27
+ "type": "uint256"
28
+ }
29
+ ],
30
+ "name": "BotInsufficientSyOut",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "uint256",
37
+ "name": "actualYtOut",
38
+ "type": "uint256"
39
+ },
40
+ {
41
+ "internalType": "uint256",
42
+ "name": "requiredYtOut",
43
+ "type": "uint256"
44
+ }
45
+ ],
46
+ "name": "BotInsufficientYtOut",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "anonymous": false,
51
+ "inputs": [
52
+ {
53
+ "indexed": false,
54
+ "internalType": "uint256",
55
+ "name": "netSyOut",
56
+ "type": "uint256"
57
+ },
58
+ {
59
+ "indexed": false,
60
+ "internalType": "uint256",
61
+ "name": "netPendleOut",
62
+ "type": "uint256"
63
+ }
64
+ ],
65
+ "name": "ClaimAndCompound",
66
+ "type": "event"
67
+ },
68
+ {
69
+ "anonymous": false,
70
+ "inputs": [
71
+ {
72
+ "indexed": false,
73
+ "internalType": "uint256",
74
+ "name": "netSyIn",
75
+ "type": "uint256"
76
+ }
77
+ ],
78
+ "name": "DepositSy",
79
+ "type": "event"
80
+ },
81
+ {
82
+ "anonymous": false,
83
+ "inputs": [
84
+ {
85
+ "indexed": true,
86
+ "internalType": "address",
87
+ "name": "token",
88
+ "type": "address"
89
+ },
90
+ {
91
+ "indexed": false,
92
+ "internalType": "uint256",
93
+ "name": "netTokenIn",
94
+ "type": "uint256"
95
+ }
96
+ ],
97
+ "name": "DepositToken",
98
+ "type": "event"
99
+ },
100
+ {
101
+ "anonymous": false,
102
+ "inputs": [
103
+ {
104
+ "indexed": false,
105
+ "internalType": "uint8",
106
+ "name": "version",
107
+ "type": "uint8"
108
+ }
109
+ ],
110
+ "name": "Initialized",
111
+ "type": "event"
112
+ },
113
+ {
114
+ "anonymous": false,
115
+ "inputs": [
116
+ {
117
+ "indexed": true,
118
+ "internalType": "address",
119
+ "name": "previousOwner",
120
+ "type": "address"
121
+ },
122
+ {
123
+ "indexed": true,
124
+ "internalType": "address",
125
+ "name": "newOwner",
126
+ "type": "address"
127
+ }
128
+ ],
129
+ "name": "OwnershipTransferred",
130
+ "type": "event"
131
+ },
132
+ {
133
+ "anonymous": false,
134
+ "inputs": [
135
+ {
136
+ "indexed": true,
137
+ "internalType": "address",
138
+ "name": "token",
139
+ "type": "address"
140
+ },
141
+ {
142
+ "indexed": false,
143
+ "internalType": "uint256",
144
+ "name": "amount",
145
+ "type": "uint256"
146
+ }
147
+ ],
148
+ "name": "WithdrawFunds",
149
+ "type": "event"
150
+ },
151
+ {
152
+ "inputs": [],
153
+ "name": "PENDLE",
154
+ "outputs": [
155
+ {
156
+ "internalType": "address",
157
+ "name": "",
158
+ "type": "address"
159
+ }
160
+ ],
161
+ "stateMutability": "view",
162
+ "type": "function"
163
+ },
164
+ {
165
+ "inputs": [],
166
+ "name": "PT",
167
+ "outputs": [
168
+ {
169
+ "internalType": "address",
170
+ "name": "",
171
+ "type": "address"
172
+ }
173
+ ],
174
+ "stateMutability": "view",
175
+ "type": "function"
176
+ },
177
+ {
178
+ "inputs": [],
179
+ "name": "SY",
180
+ "outputs": [
181
+ {
182
+ "internalType": "address",
183
+ "name": "",
184
+ "type": "address"
185
+ }
186
+ ],
187
+ "stateMutability": "view",
188
+ "type": "function"
189
+ },
190
+ {
191
+ "inputs": [],
192
+ "name": "YT",
193
+ "outputs": [
194
+ {
195
+ "internalType": "address",
196
+ "name": "",
197
+ "type": "address"
198
+ }
199
+ ],
200
+ "stateMutability": "view",
201
+ "type": "function"
202
+ },
203
+ {
204
+ "inputs": [
205
+ {
206
+ "components": [
207
+ {
208
+ "internalType": "address[]",
209
+ "name": "tokens",
210
+ "type": "address[]"
211
+ },
212
+ {
213
+ "internalType": "address",
214
+ "name": "spender",
215
+ "type": "address"
216
+ }
217
+ ],
218
+ "internalType": "struct ITradingBotBase.MultiApproval[]",
219
+ "name": "arr",
220
+ "type": "tuple[]"
221
+ }
222
+ ],
223
+ "name": "approveInf",
224
+ "outputs": [],
225
+ "stateMutability": "nonpayable",
226
+ "type": "function"
227
+ },
228
+ {
229
+ "inputs": [],
230
+ "name": "buyBins",
231
+ "outputs": [
232
+ {
233
+ "internalType": "uint256",
234
+ "name": "",
235
+ "type": "uint256"
236
+ }
237
+ ],
238
+ "stateMutability": "view",
239
+ "type": "function"
240
+ },
241
+ {
242
+ "inputs": [
243
+ {
244
+ "components": [
245
+ {
246
+ "internalType": "address",
247
+ "name": "tokenIn",
248
+ "type": "address"
249
+ },
250
+ {
251
+ "internalType": "uint256",
252
+ "name": "netTokenIn",
253
+ "type": "uint256"
254
+ },
255
+ {
256
+ "internalType": "address",
257
+ "name": "tokenMintSy",
258
+ "type": "address"
259
+ },
260
+ {
261
+ "internalType": "address",
262
+ "name": "bulk",
263
+ "type": "address"
264
+ },
265
+ {
266
+ "internalType": "address",
267
+ "name": "pendleSwap",
268
+ "type": "address"
269
+ },
270
+ {
271
+ "components": [
272
+ {
273
+ "internalType": "enum SwapType",
274
+ "name": "swapType",
275
+ "type": "uint8"
276
+ },
277
+ {
278
+ "internalType": "address",
279
+ "name": "extRouter",
280
+ "type": "address"
281
+ },
282
+ {
283
+ "internalType": "bytes",
284
+ "name": "extCalldata",
285
+ "type": "bytes"
286
+ },
287
+ {
288
+ "internalType": "bool",
289
+ "name": "needScale",
290
+ "type": "bool"
291
+ }
292
+ ],
293
+ "internalType": "struct SwapData",
294
+ "name": "swapData",
295
+ "type": "tuple"
296
+ }
297
+ ],
298
+ "internalType": "struct TokenInput[]",
299
+ "name": "inps",
300
+ "type": "tuple[]"
301
+ },
302
+ {
303
+ "internalType": "uint256",
304
+ "name": "minSyOut",
305
+ "type": "uint256"
306
+ }
307
+ ],
308
+ "name": "claimAndCompound",
309
+ "outputs": [
310
+ {
311
+ "internalType": "uint256",
312
+ "name": "netSyOut",
313
+ "type": "uint256"
314
+ },
315
+ {
316
+ "internalType": "uint256",
317
+ "name": "netPendleOut",
318
+ "type": "uint256"
319
+ }
320
+ ],
321
+ "stateMutability": "nonpayable",
322
+ "type": "function"
323
+ },
324
+ {
325
+ "inputs": [],
326
+ "name": "claimOwnership",
327
+ "outputs": [],
328
+ "stateMutability": "nonpayable",
329
+ "type": "function"
330
+ },
331
+ {
332
+ "inputs": [],
333
+ "name": "claimWithoutCompound",
334
+ "outputs": [
335
+ {
336
+ "components": [
337
+ {
338
+ "internalType": "address",
339
+ "name": "token",
340
+ "type": "address"
341
+ },
342
+ {
343
+ "internalType": "uint256",
344
+ "name": "amount",
345
+ "type": "uint256"
346
+ }
347
+ ],
348
+ "internalType": "struct TokenAmount[]",
349
+ "name": "rewards",
350
+ "type": "tuple[]"
351
+ }
352
+ ],
353
+ "stateMutability": "nonpayable",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [
358
+ {
359
+ "internalType": "uint256",
360
+ "name": "netSyIn",
361
+ "type": "uint256"
362
+ }
363
+ ],
364
+ "name": "depositSy",
365
+ "outputs": [],
366
+ "stateMutability": "nonpayable",
367
+ "type": "function"
368
+ },
369
+ {
370
+ "inputs": [
371
+ {
372
+ "components": [
373
+ {
374
+ "internalType": "address",
375
+ "name": "tokenIn",
376
+ "type": "address"
377
+ },
378
+ {
379
+ "internalType": "uint256",
380
+ "name": "netTokenIn",
381
+ "type": "uint256"
382
+ },
383
+ {
384
+ "internalType": "address",
385
+ "name": "tokenMintSy",
386
+ "type": "address"
387
+ },
388
+ {
389
+ "internalType": "address",
390
+ "name": "bulk",
391
+ "type": "address"
392
+ },
393
+ {
394
+ "internalType": "address",
395
+ "name": "pendleSwap",
396
+ "type": "address"
397
+ },
398
+ {
399
+ "components": [
400
+ {
401
+ "internalType": "enum SwapType",
402
+ "name": "swapType",
403
+ "type": "uint8"
404
+ },
405
+ {
406
+ "internalType": "address",
407
+ "name": "extRouter",
408
+ "type": "address"
409
+ },
410
+ {
411
+ "internalType": "bytes",
412
+ "name": "extCalldata",
413
+ "type": "bytes"
414
+ },
415
+ {
416
+ "internalType": "bool",
417
+ "name": "needScale",
418
+ "type": "bool"
419
+ }
420
+ ],
421
+ "internalType": "struct SwapData",
422
+ "name": "swapData",
423
+ "type": "tuple"
424
+ }
425
+ ],
426
+ "internalType": "struct TokenInput",
427
+ "name": "inp",
428
+ "type": "tuple"
429
+ },
430
+ {
431
+ "internalType": "uint256",
432
+ "name": "minSyOut",
433
+ "type": "uint256"
434
+ }
435
+ ],
436
+ "name": "depositToken",
437
+ "outputs": [],
438
+ "stateMutability": "payable",
439
+ "type": "function"
440
+ },
441
+ {
442
+ "inputs": [],
443
+ "name": "market",
444
+ "outputs": [
445
+ {
446
+ "internalType": "address",
447
+ "name": "",
448
+ "type": "address"
449
+ }
450
+ ],
451
+ "stateMutability": "view",
452
+ "type": "function"
453
+ },
454
+ {
455
+ "inputs": [],
456
+ "name": "owner",
457
+ "outputs": [
458
+ {
459
+ "internalType": "address",
460
+ "name": "",
461
+ "type": "address"
462
+ }
463
+ ],
464
+ "stateMutability": "view",
465
+ "type": "function"
466
+ },
467
+ {
468
+ "inputs": [],
469
+ "name": "pendingOwner",
470
+ "outputs": [
471
+ {
472
+ "internalType": "address",
473
+ "name": "",
474
+ "type": "address"
475
+ }
476
+ ],
477
+ "stateMutability": "view",
478
+ "type": "function"
479
+ },
480
+ {
481
+ "inputs": [],
482
+ "name": "readBotState",
483
+ "outputs": [
484
+ {
485
+ "components": [
486
+ {
487
+ "internalType": "uint256",
488
+ "name": "lpBalance",
489
+ "type": "uint256"
490
+ },
491
+ {
492
+ "internalType": "uint256",
493
+ "name": "ytBalance",
494
+ "type": "uint256"
495
+ },
496
+ {
497
+ "internalType": "uint256",
498
+ "name": "syBalance",
499
+ "type": "uint256"
500
+ },
501
+ {
502
+ "internalType": "uint256",
503
+ "name": "buyBins",
504
+ "type": "uint256"
505
+ }
506
+ ],
507
+ "internalType": "struct BotState",
508
+ "name": "botState",
509
+ "type": "tuple"
510
+ }
511
+ ],
512
+ "stateMutability": "view",
513
+ "type": "function"
514
+ },
515
+ {
516
+ "inputs": [],
517
+ "name": "readMarketExtState",
518
+ "outputs": [
519
+ {
520
+ "components": [
521
+ {
522
+ "components": [
523
+ {
524
+ "internalType": "int256",
525
+ "name": "totalPt",
526
+ "type": "int256"
527
+ },
528
+ {
529
+ "internalType": "int256",
530
+ "name": "totalSy",
531
+ "type": "int256"
532
+ },
533
+ {
534
+ "internalType": "int256",
535
+ "name": "totalLp",
536
+ "type": "int256"
537
+ },
538
+ {
539
+ "internalType": "address",
540
+ "name": "treasury",
541
+ "type": "address"
542
+ },
543
+ {
544
+ "internalType": "int256",
545
+ "name": "scalarRoot",
546
+ "type": "int256"
547
+ },
548
+ {
549
+ "internalType": "uint256",
550
+ "name": "expiry",
551
+ "type": "uint256"
552
+ },
553
+ {
554
+ "internalType": "uint256",
555
+ "name": "lnFeeRateRoot",
556
+ "type": "uint256"
557
+ },
558
+ {
559
+ "internalType": "uint256",
560
+ "name": "reserveFeePercent",
561
+ "type": "uint256"
562
+ },
563
+ {
564
+ "internalType": "uint256",
565
+ "name": "lastLnImpliedRate",
566
+ "type": "uint256"
567
+ }
568
+ ],
569
+ "internalType": "struct MarketState",
570
+ "name": "state",
571
+ "type": "tuple"
572
+ },
573
+ {
574
+ "internalType": "PYIndex",
575
+ "name": "index",
576
+ "type": "uint256"
577
+ },
578
+ {
579
+ "internalType": "uint256",
580
+ "name": "blockTime",
581
+ "type": "uint256"
582
+ }
583
+ ],
584
+ "internalType": "struct MarketExtState",
585
+ "name": "marketExt",
586
+ "type": "tuple"
587
+ }
588
+ ],
589
+ "stateMutability": "nonpayable",
590
+ "type": "function"
591
+ },
592
+ {
593
+ "inputs": [],
594
+ "name": "router",
595
+ "outputs": [
596
+ {
597
+ "internalType": "address",
598
+ "name": "",
599
+ "type": "address"
600
+ }
601
+ ],
602
+ "stateMutability": "view",
603
+ "type": "function"
604
+ },
605
+ {
606
+ "inputs": [
607
+ {
608
+ "internalType": "int256",
609
+ "name": "ptToAccount",
610
+ "type": "int256"
611
+ },
612
+ {
613
+ "internalType": "int256",
614
+ "name": "syToAccount",
615
+ "type": "int256"
616
+ },
617
+ {
618
+ "internalType": "bytes",
619
+ "name": "data",
620
+ "type": "bytes"
621
+ }
622
+ ],
623
+ "name": "swapCallback",
624
+ "outputs": [],
625
+ "stateMutability": "nonpayable",
626
+ "type": "function"
627
+ },
628
+ {
629
+ "inputs": [
630
+ {
631
+ "internalType": "address",
632
+ "name": "newOwner",
633
+ "type": "address"
634
+ },
635
+ {
636
+ "internalType": "bool",
637
+ "name": "direct",
638
+ "type": "bool"
639
+ },
640
+ {
641
+ "internalType": "bool",
642
+ "name": "renounce",
643
+ "type": "bool"
644
+ }
645
+ ],
646
+ "name": "transferOwnership",
647
+ "outputs": [],
648
+ "stateMutability": "nonpayable",
649
+ "type": "function"
650
+ },
651
+ {
652
+ "inputs": [
653
+ {
654
+ "internalType": "address",
655
+ "name": "token",
656
+ "type": "address"
657
+ },
658
+ {
659
+ "internalType": "uint256",
660
+ "name": "amount",
661
+ "type": "uint256"
662
+ }
663
+ ],
664
+ "name": "withdrawFunds",
665
+ "outputs": [],
666
+ "stateMutability": "nonpayable",
667
+ "type": "function"
668
+ },
669
+ {
670
+ "stateMutability": "payable",
671
+ "type": "receive"
672
+ }
673
+ ],
674
+ "bytecode": "0x",
675
+ "deployedBytecode": "0x",
676
+ "linkReferences": {},
677
+ "deployedLinkReferences": {}
678
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/8869bc4f9680dce55ebabd06a4c54e3e.json"
4
+ }