@pendle/core-v2 2.18.1 → 2.19.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 (497) 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/PYIndex.sol/PYIndexLib.json +2 -2
  50. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +4 -0
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.json +1189 -0
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +2 -2
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +2 -2
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +2 -2
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +2 -2
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +4 -0
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.json +10 -0
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +4 -0
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.json +322 -0
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAPoolHelper.dbg.json +4 -0
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/{Thena/ThenaPreview.sol/IThenaSY.json → BalancerStable/base/Linear/BbAPoolHelper.sol/BbAPoolHelper.json} +4 -4
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.dbg.json +4 -0
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/{CamelotV1Volatile/CamelotV1Preview.sol/ICamelotSY.json → BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.json} +4 -17
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.dbg.json +4 -0
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.json +10 -0
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.dbg.json +4 -0
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.json +234 -0
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.json +2 -2
  78. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
  79. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +1 -1
  80. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  81. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  82. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  83. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  84. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
  85. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.json +2 -28
  86. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +4 -0
  87. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.json +10 -0
  88. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +4 -0
  89. package/build/artifacts/contracts/core/StandardizedYield/implementations/{Thena/ThenaLpHelper.sol/ThenaLpHelper.json → CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.json} +2 -54
  90. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.dbg.json +4 -0
  91. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.json +338 -0
  92. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +4 -0
  93. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +1433 -0
  94. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  95. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  96. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  97. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  98. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
  99. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.json +2 -2
  100. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
  101. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.json +2 -2
  102. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
  103. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.json +2 -2
  104. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  105. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  106. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
  107. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
  108. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
  109. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  110. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  111. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
  112. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
  113. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
  114. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +2 -2
  115. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  116. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  117. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.dbg.json +4 -0
  118. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.json +1215 -0
  119. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +4 -0
  120. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol/LongYieldTradingBot.json +1681 -0
  121. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol/ShortYieldDecisionHelper.dbg.json +4 -0
  122. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol/ShortYieldDecisionHelper.json +1215 -0
  123. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol/ShortYieldTradingBot.dbg.json +4 -0
  124. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol/ShortYieldTradingBot.json +1535 -0
  125. package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.dbg.json +4 -0
  126. package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.json +932 -0
  127. package/build/artifacts/contracts/core/TradingBot/base/BotActionHelper.sol/BotActionHelper.dbg.json +4 -0
  128. package/build/artifacts/contracts/core/TradingBot/base/BotActionHelper.sol/BotActionHelper.json +932 -0
  129. package/build/artifacts/contracts/core/TradingBot/base/BotDecisionHelperBase.sol/BotDecisionHelperBase.dbg.json +4 -0
  130. package/build/artifacts/contracts/core/TradingBot/base/BotDecisionHelperBase.sol/BotDecisionHelperBase.json +789 -0
  131. package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.dbg.json +4 -0
  132. package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.json +882 -0
  133. package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.dbg.json +4 -0
  134. package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.json +10 -0
  135. package/build/artifacts/contracts/core/TradingBot/libraries/MarketExtLib.sol/MarketExtLib.dbg.json +4 -0
  136. package/build/artifacts/contracts/core/TradingBot/libraries/MarketExtLib.sol/MarketExtLib.json +24 -0
  137. package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.dbg.json +4 -0
  138. package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.json +10 -0
  139. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  140. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  141. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  142. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  143. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  144. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  145. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  146. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +1 -1
  147. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
  148. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
  149. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
  150. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
  151. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
  152. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
  153. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  154. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  155. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +151 -2
  156. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.dbg.json +4 -0
  157. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.json +10 -0
  158. package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
  159. package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.json +2 -2
  160. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
  161. package/build/artifacts/contracts/interfaces/Balancer/IERC4626LinearPool.sol/IERC4626LinearPool.dbg.json +4 -0
  162. package/build/artifacts/contracts/interfaces/Balancer/IERC4626LinearPool.sol/IERC4626LinearPool.json +1172 -0
  163. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
  164. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
  165. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.json +0 -13
  166. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.dbg.json +1 -1
  167. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.json +0 -13
  168. package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
  169. package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.json +0 -26
  170. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  171. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  172. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  173. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  174. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  175. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  176. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  177. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  178. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  179. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  180. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  181. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  182. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  183. package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
  184. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  185. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  186. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  187. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  188. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  189. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +4 -0
  190. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.json +652 -0
  191. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol/ILongYieldDecisionHelper.dbg.json +4 -0
  192. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol/ILongYieldDecisionHelper.json +671 -0
  193. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +4 -0
  194. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +1094 -0
  195. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol/IShortYieldDecisionHelper.dbg.json +4 -0
  196. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol/IShortYieldDecisionHelper.json +652 -0
  197. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.dbg.json +4 -0
  198. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.json +1075 -0
  199. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +4 -0
  200. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +632 -0
  201. package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +4 -0
  202. package/build/artifacts/contracts/{core/StandardizedYield/implementations/Thena/ThenaMath.sol/ThenaMath.json → offchain-helpers/BoringLpSeller.sol/BoringLpSeller.json} +2 -2
  203. package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  204. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  205. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
  206. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  207. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  208. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +4 -0
  209. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +10 -0
  210. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  211. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  212. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  213. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  214. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  215. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  216. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  217. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  218. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  219. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  220. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  221. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  222. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  223. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  224. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  225. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +4 -0
  226. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +10 -0
  227. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
  228. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +2 -2
  229. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
  230. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.json +2 -2
  231. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +4 -0
  232. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.json +166 -0
  233. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
  234. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.json +2 -2
  235. package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.dbg.json +1 -1
  236. package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.json +2 -2
  237. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  238. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  239. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  240. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  241. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  242. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  243. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  244. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  245. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  246. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  247. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
  248. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +2 -2
  249. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
  250. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  251. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  252. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  253. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  254. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  255. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  256. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +4 -0
  257. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +60 -0
  258. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
  259. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{ethereum/IAggregationExecutor.sol → IAggregationExecutor.sol}/IAggregationExecutor.json +1 -1
  260. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IExecutorHelper.sol/IExecutorHelper.dbg.json +4 -0
  261. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{arbitrum/IExecutorHelper1.sol/IExecutorHelper1.json → IExecutorHelper.sol/IExecutorHelper.json} +147 -2
  262. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IHashflow.sol/IHashflow.dbg.json +4 -0
  263. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{ethereum/IHashflow.sol → IHashflow.sol}/IHashflow.json +1 -1
  264. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
  265. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{arbitrum/IMetaAggregationRouterV2.sol → IMetaAggregationRouterV2.sol}/IMetaAggregationRouterV2.json +1 -1
  266. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberInputScalingHelper.sol/KyberInputScalingHelper.dbg.json +4 -0
  267. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{arbitrum/KyberHelperArbitrum.sol/KyberHelperArbitrum.json → KyberInputScalingHelper.sol/KyberInputScalingHelper.json} +2 -2
  268. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.dbg.json +4 -0
  269. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.json +10 -0
  270. package/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol +216 -0
  271. package/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol +97 -0
  272. package/contracts/core/TradingBot/README.md +153 -0
  273. package/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol +198 -0
  274. package/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol +101 -0
  275. package/contracts/core/TradingBot/base/BotActionCallback.sol +112 -0
  276. package/contracts/core/TradingBot/base/BotActionHelper.sol +178 -0
  277. package/contracts/core/TradingBot/base/BotDecisionHelperBase.sol +235 -0
  278. package/contracts/core/TradingBot/base/TradingBotBase.sol +184 -0
  279. package/contracts/core/TradingBot/libraries/BotSimulationLib.sol +155 -0
  280. package/contracts/core/TradingBot/libraries/MarketExtLib.sol +310 -0
  281. package/contracts/core/TradingBot/libraries/SpecSegmentLib.sol +62 -0
  282. package/contracts/core/libraries/Errors.sol +12 -0
  283. package/contracts/core/libraries/TokenAmountLib.sol +47 -0
  284. package/contracts/interfaces/IStandardizedYield.sol +10 -15
  285. package/contracts/interfaces/TradingBot/IBotDecisionHelper.sol +57 -0
  286. package/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol +8 -0
  287. package/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol +51 -0
  288. package/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol +7 -0
  289. package/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol +27 -0
  290. package/contracts/interfaces/TradingBot/ITradingBotBase.sol +67 -0
  291. package/contracts/offchain-helpers/BoringLpSeller.sol +47 -0
  292. package/contracts/oracles/samples/PendleLpGlpOracle.sol +49 -0
  293. package/package.json +1 -1
  294. package/typechain-types/BotActionCallback.ts +950 -0
  295. package/typechain-types/BotActionHelper.ts +950 -0
  296. package/typechain-types/BotDecisionHelper.ts +561 -0
  297. package/typechain-types/BotDecisionHelperBase.ts +484 -0
  298. package/typechain-types/BotDecisionLib.ts +335 -0
  299. package/typechain-types/CamelotRewardHelper.ts +0 -60
  300. package/typechain-types/IAnkrBNB.ts +150 -0
  301. package/typechain-types/IAnkrLiquidStaking.ts +253 -0
  302. package/typechain-types/IBotDecisionHelper.ts +452 -0
  303. package/typechain-types/ICamelotNFTPool.ts +0 -19
  304. package/typechain-types/ICamelotNitroPool.ts +0 -19
  305. package/typechain-types/ICamelotPair.ts +0 -42
  306. package/typechain-types/ILongYieldDecisionHelper.ts +486 -0
  307. package/typechain-types/ILongYieldTradingBot.ts +928 -0
  308. package/typechain-types/IPExternalRewardDistributor.ts +192 -0
  309. package/typechain-types/IPMarketFactoryV2.ts +253 -0
  310. package/typechain-types/IShortYieldDecisionHelper.ts +452 -0
  311. package/typechain-types/IShortYieldTradingBot.ts +820 -0
  312. package/typechain-types/ISwETH.ts +123 -0
  313. package/typechain-types/ITradingBotBase.ts +619 -0
  314. package/typechain-types/IWBETH.ts +128 -0
  315. package/typechain-types/LongYieldDecisionHelper.ts +601 -0
  316. package/typechain-types/LongYieldTradingBot.ts +1414 -0
  317. package/typechain-types/MarketExtLib.ts +81 -0
  318. package/typechain-types/PendleAnkrBNBSY.ts +1235 -0
  319. package/typechain-types/PendleAuraWstethAnkreth.ts +1511 -0
  320. package/typechain-types/PendleBinanceEth.ts +1229 -0
  321. package/typechain-types/PendleExternalRewardDistributor.ts +546 -0
  322. package/typechain-types/PendleGaugeV2.ts +225 -0
  323. package/typechain-types/PendleLpGlpOracle.ts +145 -0
  324. package/typechain-types/PendleMarketFactoryV2.ts +930 -0
  325. package/typechain-types/PendleMarketV2.ts +1311 -0
  326. package/typechain-types/PendleSwETH.ts +1216 -0
  327. package/typechain-types/PendleThenaSY.ts +153 -0
  328. package/typechain-types/PendleWbEthSY.ts +1229 -0
  329. package/typechain-types/PtAndLpToAsset.ts +136 -0
  330. package/typechain-types/ShortYieldDecisionHelper.ts +601 -0
  331. package/typechain-types/ShortYieldTradingBot.ts +1306 -0
  332. package/typechain-types/ThenaLpHelper.ts +19 -0
  333. package/typechain-types/ThenaMath.ts +87 -0
  334. package/typechain-types/ThenaPreview.ts +19 -0
  335. package/typechain-types/TradingBotBase.ts +906 -0
  336. package/typechain-types/TradingBotOffchain.ts +568 -0
  337. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  338. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  339. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  340. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  341. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  342. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  343. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  344. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  345. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  346. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  347. package/typechain-types/factories/BotActionCallback__factory.ts +947 -0
  348. package/typechain-types/factories/BotActionHelper__factory.ts +947 -0
  349. package/typechain-types/factories/BotDecisionHelperBase__factory.ts +808 -0
  350. package/typechain-types/factories/BotDecisionHelper__factory.ts +1192 -0
  351. package/typechain-types/factories/BotDecisionLib__factory.ts +642 -0
  352. package/typechain-types/factories/Broadcaster__factory.ts +1 -1
  353. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  354. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  355. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  356. package/typechain-types/factories/CamelotRewardHelper__factory.ts +1 -27
  357. package/typechain-types/factories/Errors__factory.ts +150 -1
  358. package/typechain-types/factories/IAnkrBNB__factory.ts +74 -0
  359. package/typechain-types/factories/IAnkrLiquidStaking__factory.ts +123 -0
  360. package/typechain-types/factories/IBotDecisionHelper__factory.ts +667 -0
  361. package/typechain-types/factories/ICamelotNFTPool__factory.ts +0 -13
  362. package/typechain-types/factories/ICamelotNitroPool__factory.ts +0 -13
  363. package/typechain-types/factories/ICamelotPair__factory.ts +0 -26
  364. package/typechain-types/factories/ILongYieldDecisionHelper__factory.ts +690 -0
  365. package/typechain-types/factories/ILongYieldTradingBot__factory.ts +1113 -0
  366. package/typechain-types/factories/IPExternalRewardDistributor__factory.ts +128 -0
  367. package/typechain-types/factories/IPMarketFactoryV2__factory.ts +181 -0
  368. package/typechain-types/factories/IShortYieldDecisionHelper__factory.ts +671 -0
  369. package/typechain-types/factories/IShortYieldTradingBot__factory.ts +1094 -0
  370. package/typechain-types/factories/ISwETH__factory.ts +53 -0
  371. package/typechain-types/factories/ITradingBotBase__factory.ts +647 -0
  372. package/typechain-types/factories/IWBETH__factory.ts +51 -0
  373. package/typechain-types/factories/LongYieldDecisionHelper__factory.ts +1272 -0
  374. package/typechain-types/factories/LongYieldTradingBot__factory.ts +1754 -0
  375. package/typechain-types/factories/MarketExtLib__factory.ts +74 -0
  376. package/typechain-types/factories/MetaStablePreview__factory.ts +1 -1
  377. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  378. package/typechain-types/factories/PendleAnkrBNBSY__factory.ts +1100 -0
  379. package/typechain-types/factories/PendleArbitrumStakedEthSY__factory.ts +27 -2
  380. package/typechain-types/factories/PendleAuraBbAWethSwethSY__factory.ts +1 -1
  381. package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +1 -1
  382. package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +1 -1
  383. package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +1 -1
  384. package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +1 -1
  385. package/typechain-types/factories/PendleAuraWstethAnkreth__factory.ts +1244 -0
  386. package/typechain-types/factories/PendleBinanceEth__factory.ts +1052 -0
  387. package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +1 -1
  388. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  389. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  390. package/typechain-types/factories/PendleExternalRewardDistributor__factory.ts +414 -0
  391. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  392. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  393. package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
  394. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  395. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  396. package/typechain-types/factories/PendleGaugeV2__factory.ts +140 -0
  397. package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
  398. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  399. package/typechain-types/factories/PendleLpGlpOracle__factory.ts +246 -0
  400. package/typechain-types/factories/PendleMarketFactoryV2__factory.ts +770 -0
  401. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  402. package/typechain-types/factories/PendleMarketV2__factory.ts +1290 -0
  403. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  404. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  405. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  406. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
  407. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  408. package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
  409. package/typechain-types/factories/PendlePtOracle__factory.ts +1 -1
  410. package/typechain-types/factories/PendlePtUsdChainlinkOracle__factory.ts +1 -1
  411. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  412. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  413. package/typechain-types/factories/PendleRouterHelper__factory.ts +1 -1
  414. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  415. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  416. package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
  417. package/typechain-types/factories/PendleStargateLPSY__factory.ts +1 -1
  418. package/typechain-types/factories/PendleSwETH__factory.ts +1022 -0
  419. package/typechain-types/factories/PendleThenaSY__factory.ts +85 -1
  420. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  421. package/typechain-types/factories/PendleWbEthSY__factory.ts +1049 -0
  422. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  423. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
  424. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  425. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
  426. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  427. package/typechain-types/factories/PtAndLpToAsset__factory.ts +150 -0
  428. package/typechain-types/factories/SAPE__factory.ts +1 -1
  429. package/typechain-types/factories/ShortYieldDecisionHelper__factory.ts +1272 -0
  430. package/typechain-types/factories/ShortYieldTradingBot__factory.ts +1612 -0
  431. package/typechain-types/factories/ThenaLpHelper__factory.ts +13 -0
  432. package/typechain-types/factories/ThenaMath__factory.ts +36 -0
  433. package/typechain-types/factories/ThenaPreview__factory.ts +14 -1
  434. package/typechain-types/factories/TradingBotBase__factory.ts +897 -0
  435. package/typechain-types/factories/TradingBotOffchain__factory.ts +1133 -0
  436. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  437. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  438. package/typechain-types/hardhat.d.ts +112 -202
  439. package/typechain-types/index.ts +34 -42
  440. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1LpHelper.sol/CamelotV1LpHelper.dbg.json +0 -4
  441. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1LpHelper.sol/CamelotV1LpHelper.json +0 -128
  442. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1Math.sol/CamelotV1Math.dbg.json +0 -4
  443. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1Math.sol/CamelotV1Math.json +0 -10
  444. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1Preview.sol/CamelotV1Preview.dbg.json +0 -4
  445. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1Preview.sol/CamelotV1Preview.json +0 -254
  446. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1Preview.sol/ICamelotSY.dbg.json +0 -4
  447. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1SY.sol/PendleCamelotV1SY.dbg.json +0 -4
  448. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1SY.sol/PendleCamelotV1SY.json +0 -1495
  449. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/PendleThenaSY.sol/PendleThenaSY.dbg.json +0 -4
  450. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/PendleThenaSY.sol/PendleThenaSY.json +0 -1182
  451. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaLpHelper.sol/ThenaLpHelper.dbg.json +0 -4
  452. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaMath.sol/ThenaMath.dbg.json +0 -4
  453. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/IThenaSY.dbg.json +0 -4
  454. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/ThenaPreview.dbg.json +0 -4
  455. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/ThenaPreview.json +0 -254
  456. package/build/artifacts/contracts/interfaces/IPendlePreviewHelper.sol/IPendlePreviewHelper.dbg.json +0 -4
  457. package/build/artifacts/contracts/interfaces/IPendlePreviewHelper.sol/IPendlePreviewHelper.json +0 -59
  458. package/build/artifacts/contracts/interfaces/Thena/IThenaFactory.sol/IThenaFactory.dbg.json +0 -4
  459. package/build/artifacts/contracts/interfaces/Thena/IThenaFactory.sol/IThenaFactory.json +0 -152
  460. package/build/artifacts/contracts/interfaces/Thena/IThenaGaugeV2.sol/IThenaGaugeV2.dbg.json +0 -4
  461. package/build/artifacts/contracts/interfaces/Thena/IThenaGaugeV2.sol/IThenaGaugeV2.json +0 -71
  462. package/build/artifacts/contracts/interfaces/Thena/IThenaPair.sol/IThenaPair.dbg.json +0 -4
  463. package/build/artifacts/contracts/interfaces/Thena/IThenaPair.sol/IThenaPair.json +0 -409
  464. package/build/artifacts/contracts/interfaces/Thena/IThenaRouter.sol/IThenaRouter.dbg.json +0 -4
  465. package/build/artifacts/contracts/interfaces/Thena/IThenaRouter.sol/IThenaRouter.json +0 -188
  466. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +0 -4
  467. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.json +0 -160
  468. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +0 -4
  469. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.json +0 -10
  470. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.dbg.json +0 -4
  471. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.json +0 -76
  472. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.dbg.json +0 -4
  473. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.json +0 -76
  474. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +0 -4
  475. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IAggregationExecutor.sol/IAggregationExecutor.json +0 -65
  476. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol/IExecutorHelper1.dbg.json +0 -4
  477. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol/IExecutorHelper2.dbg.json +0 -4
  478. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol/IExecutorHelper2.json +0 -40
  479. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IHashflow.sol/IHashflow.dbg.json +0 -4
  480. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IHashflow.sol/IHashflow.json +0 -101
  481. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +0 -4
  482. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/KyberHelperArbitrum.sol/KyberHelperArbitrum.dbg.json +0 -4
  483. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol/ScaleDataHelperArbitrum.dbg.json +0 -4
  484. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol/ScaleDataHelperArbitrum.json +0 -10
  485. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +0 -4
  486. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +0 -4
  487. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.json +0 -388
  488. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol/IHashflow.dbg.json +0 -4
  489. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +0 -4
  490. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +0 -215
  491. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol/KyberHelperEthereum.dbg.json +0 -4
  492. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol/KyberHelperEthereum.json +0 -10
  493. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol/ScaleDataHelperEthereum.dbg.json +0 -4
  494. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol/ScaleDataHelperEthereum.json +0 -10
  495. package/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol +0 -120
  496. package/deployments/42161-markets/RETH-ARBITRUM-JUNE2024.json +0 -10
  497. package/deployments/42161-markets/WSTETH-ARBITRUM-JUNE2024.json +0 -10
@@ -0,0 +1,1075 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IShortYieldTradingBot",
4
+ "sourceName": "contracts/interfaces/TradingBot/IShortYieldTradingBot.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": false,
11
+ "internalType": "uint256",
12
+ "name": "netSyOut",
13
+ "type": "uint256"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "internalType": "uint256",
18
+ "name": "netPendleOut",
19
+ "type": "uint256"
20
+ }
21
+ ],
22
+ "name": "ClaimAndCompound",
23
+ "type": "event"
24
+ },
25
+ {
26
+ "anonymous": false,
27
+ "inputs": [
28
+ {
29
+ "indexed": false,
30
+ "internalType": "uint256",
31
+ "name": "netSyIn",
32
+ "type": "uint256"
33
+ }
34
+ ],
35
+ "name": "DepositSy",
36
+ "type": "event"
37
+ },
38
+ {
39
+ "anonymous": false,
40
+ "inputs": [
41
+ {
42
+ "indexed": true,
43
+ "internalType": "address",
44
+ "name": "token",
45
+ "type": "address"
46
+ },
47
+ {
48
+ "indexed": false,
49
+ "internalType": "uint256",
50
+ "name": "netTokenIn",
51
+ "type": "uint256"
52
+ }
53
+ ],
54
+ "name": "DepositToken",
55
+ "type": "event"
56
+ },
57
+ {
58
+ "anonymous": false,
59
+ "inputs": [
60
+ {
61
+ "indexed": false,
62
+ "internalType": "uint256",
63
+ "name": "netSyIn",
64
+ "type": "uint256"
65
+ },
66
+ {
67
+ "indexed": false,
68
+ "internalType": "uint256",
69
+ "name": "netPyOut",
70
+ "type": "uint256"
71
+ }
72
+ ],
73
+ "name": "MintPy",
74
+ "type": "event"
75
+ },
76
+ {
77
+ "anonymous": false,
78
+ "inputs": [
79
+ {
80
+ "components": [
81
+ {
82
+ "components": [
83
+ {
84
+ "internalType": "uint256",
85
+ "name": "guessMin",
86
+ "type": "uint256"
87
+ },
88
+ {
89
+ "internalType": "uint256",
90
+ "name": "guessMax",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "internalType": "uint256",
95
+ "name": "guessOffchain",
96
+ "type": "uint256"
97
+ },
98
+ {
99
+ "internalType": "uint256",
100
+ "name": "maxIteration",
101
+ "type": "uint256"
102
+ },
103
+ {
104
+ "internalType": "uint256",
105
+ "name": "eps",
106
+ "type": "uint256"
107
+ }
108
+ ],
109
+ "internalType": "struct ApproxParams",
110
+ "name": "botParams",
111
+ "type": "tuple"
112
+ },
113
+ {
114
+ "components": [
115
+ {
116
+ "internalType": "uint256",
117
+ "name": "guessMin",
118
+ "type": "uint256"
119
+ },
120
+ {
121
+ "internalType": "uint256",
122
+ "name": "guessMax",
123
+ "type": "uint256"
124
+ },
125
+ {
126
+ "internalType": "uint256",
127
+ "name": "guessOffchain",
128
+ "type": "uint256"
129
+ },
130
+ {
131
+ "internalType": "uint256",
132
+ "name": "maxIteration",
133
+ "type": "uint256"
134
+ },
135
+ {
136
+ "internalType": "uint256",
137
+ "name": "eps",
138
+ "type": "uint256"
139
+ }
140
+ ],
141
+ "internalType": "struct ApproxParams",
142
+ "name": "guessTotalPtToSwap",
143
+ "type": "tuple"
144
+ },
145
+ {
146
+ "internalType": "uint256",
147
+ "name": "minYtOut",
148
+ "type": "uint256"
149
+ },
150
+ {
151
+ "internalType": "uint256",
152
+ "name": "targetIy",
153
+ "type": "uint256"
154
+ },
155
+ {
156
+ "internalType": "int256",
157
+ "name": "currentBin",
158
+ "type": "int256"
159
+ }
160
+ ],
161
+ "indexed": false,
162
+ "internalType": "struct IShortYieldTradingBot.SwapInput",
163
+ "name": "inputParams",
164
+ "type": "tuple"
165
+ },
166
+ {
167
+ "indexed": false,
168
+ "internalType": "uint256",
169
+ "name": "netYtOut",
170
+ "type": "uint256"
171
+ }
172
+ ],
173
+ "name": "SwapPtForYt",
174
+ "type": "event"
175
+ },
176
+ {
177
+ "anonymous": false,
178
+ "inputs": [
179
+ {
180
+ "components": [
181
+ {
182
+ "components": [
183
+ {
184
+ "internalType": "uint256",
185
+ "name": "guessMin",
186
+ "type": "uint256"
187
+ },
188
+ {
189
+ "internalType": "uint256",
190
+ "name": "guessMax",
191
+ "type": "uint256"
192
+ },
193
+ {
194
+ "internalType": "uint256",
195
+ "name": "guessOffchain",
196
+ "type": "uint256"
197
+ },
198
+ {
199
+ "internalType": "uint256",
200
+ "name": "maxIteration",
201
+ "type": "uint256"
202
+ },
203
+ {
204
+ "internalType": "uint256",
205
+ "name": "eps",
206
+ "type": "uint256"
207
+ }
208
+ ],
209
+ "internalType": "struct ApproxParams",
210
+ "name": "botParams",
211
+ "type": "tuple"
212
+ },
213
+ {
214
+ "components": [
215
+ {
216
+ "internalType": "uint256",
217
+ "name": "guessMin",
218
+ "type": "uint256"
219
+ },
220
+ {
221
+ "internalType": "uint256",
222
+ "name": "guessMax",
223
+ "type": "uint256"
224
+ },
225
+ {
226
+ "internalType": "uint256",
227
+ "name": "guessOffchain",
228
+ "type": "uint256"
229
+ },
230
+ {
231
+ "internalType": "uint256",
232
+ "name": "maxIteration",
233
+ "type": "uint256"
234
+ },
235
+ {
236
+ "internalType": "uint256",
237
+ "name": "eps",
238
+ "type": "uint256"
239
+ }
240
+ ],
241
+ "internalType": "struct ApproxParams",
242
+ "name": "guessTotalPtToSwap",
243
+ "type": "tuple"
244
+ },
245
+ {
246
+ "internalType": "uint256",
247
+ "name": "minYtOut",
248
+ "type": "uint256"
249
+ },
250
+ {
251
+ "internalType": "uint256",
252
+ "name": "targetIy",
253
+ "type": "uint256"
254
+ },
255
+ {
256
+ "internalType": "int256",
257
+ "name": "currentBin",
258
+ "type": "int256"
259
+ }
260
+ ],
261
+ "indexed": false,
262
+ "internalType": "struct IShortYieldTradingBot.SwapInput",
263
+ "name": "inputParams",
264
+ "type": "tuple"
265
+ },
266
+ {
267
+ "indexed": false,
268
+ "internalType": "uint256",
269
+ "name": "netPtOut",
270
+ "type": "uint256"
271
+ }
272
+ ],
273
+ "name": "SwapYtForPt",
274
+ "type": "event"
275
+ },
276
+ {
277
+ "anonymous": false,
278
+ "inputs": [
279
+ {
280
+ "indexed": true,
281
+ "internalType": "address",
282
+ "name": "token",
283
+ "type": "address"
284
+ },
285
+ {
286
+ "indexed": false,
287
+ "internalType": "uint256",
288
+ "name": "amount",
289
+ "type": "uint256"
290
+ }
291
+ ],
292
+ "name": "WithdrawFunds",
293
+ "type": "event"
294
+ },
295
+ {
296
+ "inputs": [
297
+ {
298
+ "components": [
299
+ {
300
+ "internalType": "address[]",
301
+ "name": "tokens",
302
+ "type": "address[]"
303
+ },
304
+ {
305
+ "internalType": "address",
306
+ "name": "spender",
307
+ "type": "address"
308
+ }
309
+ ],
310
+ "internalType": "struct ITradingBotBase.MultiApproval[]",
311
+ "name": "arr",
312
+ "type": "tuple[]"
313
+ }
314
+ ],
315
+ "name": "approveInf",
316
+ "outputs": [],
317
+ "stateMutability": "nonpayable",
318
+ "type": "function"
319
+ },
320
+ {
321
+ "inputs": [
322
+ {
323
+ "components": [
324
+ {
325
+ "internalType": "address",
326
+ "name": "tokenIn",
327
+ "type": "address"
328
+ },
329
+ {
330
+ "internalType": "uint256",
331
+ "name": "netTokenIn",
332
+ "type": "uint256"
333
+ },
334
+ {
335
+ "internalType": "address",
336
+ "name": "tokenMintSy",
337
+ "type": "address"
338
+ },
339
+ {
340
+ "internalType": "address",
341
+ "name": "bulk",
342
+ "type": "address"
343
+ },
344
+ {
345
+ "internalType": "address",
346
+ "name": "pendleSwap",
347
+ "type": "address"
348
+ },
349
+ {
350
+ "components": [
351
+ {
352
+ "internalType": "enum SwapType",
353
+ "name": "swapType",
354
+ "type": "uint8"
355
+ },
356
+ {
357
+ "internalType": "address",
358
+ "name": "extRouter",
359
+ "type": "address"
360
+ },
361
+ {
362
+ "internalType": "bytes",
363
+ "name": "extCalldata",
364
+ "type": "bytes"
365
+ },
366
+ {
367
+ "internalType": "bool",
368
+ "name": "needScale",
369
+ "type": "bool"
370
+ }
371
+ ],
372
+ "internalType": "struct SwapData",
373
+ "name": "swapData",
374
+ "type": "tuple"
375
+ }
376
+ ],
377
+ "internalType": "struct TokenInput[]",
378
+ "name": "inps",
379
+ "type": "tuple[]"
380
+ },
381
+ {
382
+ "internalType": "uint256",
383
+ "name": "minSyOut",
384
+ "type": "uint256"
385
+ }
386
+ ],
387
+ "name": "claimAndCompound",
388
+ "outputs": [
389
+ {
390
+ "internalType": "uint256",
391
+ "name": "netSyOut",
392
+ "type": "uint256"
393
+ },
394
+ {
395
+ "internalType": "uint256",
396
+ "name": "netPendleOut",
397
+ "type": "uint256"
398
+ }
399
+ ],
400
+ "stateMutability": "nonpayable",
401
+ "type": "function"
402
+ },
403
+ {
404
+ "inputs": [],
405
+ "name": "claimWithoutCompound",
406
+ "outputs": [
407
+ {
408
+ "components": [
409
+ {
410
+ "internalType": "address",
411
+ "name": "token",
412
+ "type": "address"
413
+ },
414
+ {
415
+ "internalType": "uint256",
416
+ "name": "amount",
417
+ "type": "uint256"
418
+ }
419
+ ],
420
+ "internalType": "struct TokenAmount[]",
421
+ "name": "rewards",
422
+ "type": "tuple[]"
423
+ }
424
+ ],
425
+ "stateMutability": "nonpayable",
426
+ "type": "function"
427
+ },
428
+ {
429
+ "inputs": [
430
+ {
431
+ "internalType": "uint256",
432
+ "name": "netSyIn",
433
+ "type": "uint256"
434
+ }
435
+ ],
436
+ "name": "depositSy",
437
+ "outputs": [],
438
+ "stateMutability": "nonpayable",
439
+ "type": "function"
440
+ },
441
+ {
442
+ "inputs": [
443
+ {
444
+ "components": [
445
+ {
446
+ "internalType": "address",
447
+ "name": "tokenIn",
448
+ "type": "address"
449
+ },
450
+ {
451
+ "internalType": "uint256",
452
+ "name": "netTokenIn",
453
+ "type": "uint256"
454
+ },
455
+ {
456
+ "internalType": "address",
457
+ "name": "tokenMintSy",
458
+ "type": "address"
459
+ },
460
+ {
461
+ "internalType": "address",
462
+ "name": "bulk",
463
+ "type": "address"
464
+ },
465
+ {
466
+ "internalType": "address",
467
+ "name": "pendleSwap",
468
+ "type": "address"
469
+ },
470
+ {
471
+ "components": [
472
+ {
473
+ "internalType": "enum SwapType",
474
+ "name": "swapType",
475
+ "type": "uint8"
476
+ },
477
+ {
478
+ "internalType": "address",
479
+ "name": "extRouter",
480
+ "type": "address"
481
+ },
482
+ {
483
+ "internalType": "bytes",
484
+ "name": "extCalldata",
485
+ "type": "bytes"
486
+ },
487
+ {
488
+ "internalType": "bool",
489
+ "name": "needScale",
490
+ "type": "bool"
491
+ }
492
+ ],
493
+ "internalType": "struct SwapData",
494
+ "name": "swapData",
495
+ "type": "tuple"
496
+ }
497
+ ],
498
+ "internalType": "struct TokenInput",
499
+ "name": "inp",
500
+ "type": "tuple"
501
+ },
502
+ {
503
+ "internalType": "uint256",
504
+ "name": "minSyOut",
505
+ "type": "uint256"
506
+ }
507
+ ],
508
+ "name": "depositToken",
509
+ "outputs": [],
510
+ "stateMutability": "payable",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [
515
+ {
516
+ "internalType": "uint256",
517
+ "name": "netSyIn",
518
+ "type": "uint256"
519
+ },
520
+ {
521
+ "internalType": "uint256",
522
+ "name": "minPyOut",
523
+ "type": "uint256"
524
+ }
525
+ ],
526
+ "name": "mintPY",
527
+ "outputs": [
528
+ {
529
+ "internalType": "uint256",
530
+ "name": "netPyOut",
531
+ "type": "uint256"
532
+ }
533
+ ],
534
+ "stateMutability": "nonpayable",
535
+ "type": "function"
536
+ },
537
+ {
538
+ "inputs": [],
539
+ "name": "readBotState",
540
+ "outputs": [
541
+ {
542
+ "components": [
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "lpBalance",
546
+ "type": "uint256"
547
+ },
548
+ {
549
+ "internalType": "uint256",
550
+ "name": "ytBalance",
551
+ "type": "uint256"
552
+ },
553
+ {
554
+ "internalType": "uint256",
555
+ "name": "ptBalance",
556
+ "type": "uint256"
557
+ },
558
+ {
559
+ "internalType": "uint256",
560
+ "name": "syBalance",
561
+ "type": "uint256"
562
+ },
563
+ {
564
+ "internalType": "uint256",
565
+ "name": "buyBins",
566
+ "type": "uint256"
567
+ }
568
+ ],
569
+ "internalType": "struct BotState",
570
+ "name": "botState",
571
+ "type": "tuple"
572
+ }
573
+ ],
574
+ "stateMutability": "view",
575
+ "type": "function"
576
+ },
577
+ {
578
+ "inputs": [],
579
+ "name": "readMarketExtState",
580
+ "outputs": [
581
+ {
582
+ "components": [
583
+ {
584
+ "components": [
585
+ {
586
+ "internalType": "int256",
587
+ "name": "totalPt",
588
+ "type": "int256"
589
+ },
590
+ {
591
+ "internalType": "int256",
592
+ "name": "totalSy",
593
+ "type": "int256"
594
+ },
595
+ {
596
+ "internalType": "int256",
597
+ "name": "totalLp",
598
+ "type": "int256"
599
+ },
600
+ {
601
+ "internalType": "address",
602
+ "name": "treasury",
603
+ "type": "address"
604
+ },
605
+ {
606
+ "internalType": "int256",
607
+ "name": "scalarRoot",
608
+ "type": "int256"
609
+ },
610
+ {
611
+ "internalType": "uint256",
612
+ "name": "expiry",
613
+ "type": "uint256"
614
+ },
615
+ {
616
+ "internalType": "uint256",
617
+ "name": "lnFeeRateRoot",
618
+ "type": "uint256"
619
+ },
620
+ {
621
+ "internalType": "uint256",
622
+ "name": "reserveFeePercent",
623
+ "type": "uint256"
624
+ },
625
+ {
626
+ "internalType": "uint256",
627
+ "name": "lastLnImpliedRate",
628
+ "type": "uint256"
629
+ }
630
+ ],
631
+ "internalType": "struct MarketState",
632
+ "name": "state",
633
+ "type": "tuple"
634
+ },
635
+ {
636
+ "internalType": "PYIndex",
637
+ "name": "index",
638
+ "type": "uint256"
639
+ },
640
+ {
641
+ "internalType": "uint256",
642
+ "name": "blockTime",
643
+ "type": "uint256"
644
+ }
645
+ ],
646
+ "internalType": "struct MarketExtState",
647
+ "name": "marketExt",
648
+ "type": "tuple"
649
+ }
650
+ ],
651
+ "stateMutability": "nonpayable",
652
+ "type": "function"
653
+ },
654
+ {
655
+ "inputs": [],
656
+ "name": "readStrategyData",
657
+ "outputs": [
658
+ {
659
+ "components": [
660
+ {
661
+ "components": [
662
+ {
663
+ "internalType": "uint256",
664
+ "name": "lpBalance",
665
+ "type": "uint256"
666
+ },
667
+ {
668
+ "internalType": "uint256",
669
+ "name": "ytBalance",
670
+ "type": "uint256"
671
+ },
672
+ {
673
+ "internalType": "uint256",
674
+ "name": "ptBalance",
675
+ "type": "uint256"
676
+ },
677
+ {
678
+ "internalType": "uint256",
679
+ "name": "syBalance",
680
+ "type": "uint256"
681
+ },
682
+ {
683
+ "internalType": "uint256",
684
+ "name": "buyBins",
685
+ "type": "uint256"
686
+ }
687
+ ],
688
+ "internalType": "struct BotState",
689
+ "name": "botState",
690
+ "type": "tuple"
691
+ },
692
+ {
693
+ "components": [
694
+ {
695
+ "components": [
696
+ {
697
+ "internalType": "int256",
698
+ "name": "totalPt",
699
+ "type": "int256"
700
+ },
701
+ {
702
+ "internalType": "int256",
703
+ "name": "totalSy",
704
+ "type": "int256"
705
+ },
706
+ {
707
+ "internalType": "int256",
708
+ "name": "totalLp",
709
+ "type": "int256"
710
+ },
711
+ {
712
+ "internalType": "address",
713
+ "name": "treasury",
714
+ "type": "address"
715
+ },
716
+ {
717
+ "internalType": "int256",
718
+ "name": "scalarRoot",
719
+ "type": "int256"
720
+ },
721
+ {
722
+ "internalType": "uint256",
723
+ "name": "expiry",
724
+ "type": "uint256"
725
+ },
726
+ {
727
+ "internalType": "uint256",
728
+ "name": "lnFeeRateRoot",
729
+ "type": "uint256"
730
+ },
731
+ {
732
+ "internalType": "uint256",
733
+ "name": "reserveFeePercent",
734
+ "type": "uint256"
735
+ },
736
+ {
737
+ "internalType": "uint256",
738
+ "name": "lastLnImpliedRate",
739
+ "type": "uint256"
740
+ }
741
+ ],
742
+ "internalType": "struct MarketState",
743
+ "name": "state",
744
+ "type": "tuple"
745
+ },
746
+ {
747
+ "internalType": "PYIndex",
748
+ "name": "index",
749
+ "type": "uint256"
750
+ },
751
+ {
752
+ "internalType": "uint256",
753
+ "name": "blockTime",
754
+ "type": "uint256"
755
+ }
756
+ ],
757
+ "internalType": "struct MarketExtState",
758
+ "name": "marketExt",
759
+ "type": "tuple"
760
+ },
761
+ {
762
+ "components": [
763
+ {
764
+ "internalType": "uint256",
765
+ "name": "buyYtIy",
766
+ "type": "uint256"
767
+ },
768
+ {
769
+ "internalType": "uint256",
770
+ "name": "sellYtIy",
771
+ "type": "uint256"
772
+ },
773
+ {
774
+ "internalType": "uint256",
775
+ "name": "targetSyRatio",
776
+ "type": "uint256"
777
+ },
778
+ {
779
+ "internalType": "uint256",
780
+ "name": "maxSyRatio",
781
+ "type": "uint256"
782
+ },
783
+ {
784
+ "internalType": "uint256",
785
+ "name": "targetYtPtRatio",
786
+ "type": "uint256"
787
+ },
788
+ {
789
+ "internalType": "uint256",
790
+ "name": "numOfBins",
791
+ "type": "uint256"
792
+ }
793
+ ],
794
+ "internalType": "struct TradingSpecs",
795
+ "name": "specs",
796
+ "type": "tuple"
797
+ }
798
+ ],
799
+ "internalType": "struct StrategyData",
800
+ "name": "strategyData",
801
+ "type": "tuple"
802
+ }
803
+ ],
804
+ "stateMutability": "nonpayable",
805
+ "type": "function"
806
+ },
807
+ {
808
+ "inputs": [
809
+ {
810
+ "components": [
811
+ {
812
+ "internalType": "uint256",
813
+ "name": "buyYtIy",
814
+ "type": "uint256"
815
+ },
816
+ {
817
+ "internalType": "uint256",
818
+ "name": "sellYtIy",
819
+ "type": "uint256"
820
+ },
821
+ {
822
+ "internalType": "uint256",
823
+ "name": "targetSyRatio",
824
+ "type": "uint256"
825
+ },
826
+ {
827
+ "internalType": "uint256",
828
+ "name": "maxSyRatio",
829
+ "type": "uint256"
830
+ },
831
+ {
832
+ "internalType": "uint256",
833
+ "name": "targetYtPtRatio",
834
+ "type": "uint256"
835
+ },
836
+ {
837
+ "internalType": "uint256",
838
+ "name": "numOfBins",
839
+ "type": "uint256"
840
+ }
841
+ ],
842
+ "internalType": "struct TradingSpecs",
843
+ "name": "_specs",
844
+ "type": "tuple"
845
+ }
846
+ ],
847
+ "name": "setSpecs",
848
+ "outputs": [],
849
+ "stateMutability": "nonpayable",
850
+ "type": "function"
851
+ },
852
+ {
853
+ "inputs": [
854
+ {
855
+ "components": [
856
+ {
857
+ "components": [
858
+ {
859
+ "internalType": "uint256",
860
+ "name": "guessMin",
861
+ "type": "uint256"
862
+ },
863
+ {
864
+ "internalType": "uint256",
865
+ "name": "guessMax",
866
+ "type": "uint256"
867
+ },
868
+ {
869
+ "internalType": "uint256",
870
+ "name": "guessOffchain",
871
+ "type": "uint256"
872
+ },
873
+ {
874
+ "internalType": "uint256",
875
+ "name": "maxIteration",
876
+ "type": "uint256"
877
+ },
878
+ {
879
+ "internalType": "uint256",
880
+ "name": "eps",
881
+ "type": "uint256"
882
+ }
883
+ ],
884
+ "internalType": "struct ApproxParams",
885
+ "name": "botParams",
886
+ "type": "tuple"
887
+ },
888
+ {
889
+ "components": [
890
+ {
891
+ "internalType": "uint256",
892
+ "name": "guessMin",
893
+ "type": "uint256"
894
+ },
895
+ {
896
+ "internalType": "uint256",
897
+ "name": "guessMax",
898
+ "type": "uint256"
899
+ },
900
+ {
901
+ "internalType": "uint256",
902
+ "name": "guessOffchain",
903
+ "type": "uint256"
904
+ },
905
+ {
906
+ "internalType": "uint256",
907
+ "name": "maxIteration",
908
+ "type": "uint256"
909
+ },
910
+ {
911
+ "internalType": "uint256",
912
+ "name": "eps",
913
+ "type": "uint256"
914
+ }
915
+ ],
916
+ "internalType": "struct ApproxParams",
917
+ "name": "guessTotalPtToSwap",
918
+ "type": "tuple"
919
+ },
920
+ {
921
+ "internalType": "uint256",
922
+ "name": "minYtOut",
923
+ "type": "uint256"
924
+ },
925
+ {
926
+ "internalType": "uint256",
927
+ "name": "targetIy",
928
+ "type": "uint256"
929
+ },
930
+ {
931
+ "internalType": "int256",
932
+ "name": "currentBin",
933
+ "type": "int256"
934
+ }
935
+ ],
936
+ "internalType": "struct IShortYieldTradingBot.SwapInput",
937
+ "name": "inputParams",
938
+ "type": "tuple"
939
+ }
940
+ ],
941
+ "name": "swapPtForYt",
942
+ "outputs": [
943
+ {
944
+ "internalType": "uint256",
945
+ "name": "netYtOut",
946
+ "type": "uint256"
947
+ }
948
+ ],
949
+ "stateMutability": "nonpayable",
950
+ "type": "function"
951
+ },
952
+ {
953
+ "inputs": [
954
+ {
955
+ "components": [
956
+ {
957
+ "components": [
958
+ {
959
+ "internalType": "uint256",
960
+ "name": "guessMin",
961
+ "type": "uint256"
962
+ },
963
+ {
964
+ "internalType": "uint256",
965
+ "name": "guessMax",
966
+ "type": "uint256"
967
+ },
968
+ {
969
+ "internalType": "uint256",
970
+ "name": "guessOffchain",
971
+ "type": "uint256"
972
+ },
973
+ {
974
+ "internalType": "uint256",
975
+ "name": "maxIteration",
976
+ "type": "uint256"
977
+ },
978
+ {
979
+ "internalType": "uint256",
980
+ "name": "eps",
981
+ "type": "uint256"
982
+ }
983
+ ],
984
+ "internalType": "struct ApproxParams",
985
+ "name": "botParams",
986
+ "type": "tuple"
987
+ },
988
+ {
989
+ "components": [
990
+ {
991
+ "internalType": "uint256",
992
+ "name": "guessMin",
993
+ "type": "uint256"
994
+ },
995
+ {
996
+ "internalType": "uint256",
997
+ "name": "guessMax",
998
+ "type": "uint256"
999
+ },
1000
+ {
1001
+ "internalType": "uint256",
1002
+ "name": "guessOffchain",
1003
+ "type": "uint256"
1004
+ },
1005
+ {
1006
+ "internalType": "uint256",
1007
+ "name": "maxIteration",
1008
+ "type": "uint256"
1009
+ },
1010
+ {
1011
+ "internalType": "uint256",
1012
+ "name": "eps",
1013
+ "type": "uint256"
1014
+ }
1015
+ ],
1016
+ "internalType": "struct ApproxParams",
1017
+ "name": "guessTotalPtToSwap",
1018
+ "type": "tuple"
1019
+ },
1020
+ {
1021
+ "internalType": "uint256",
1022
+ "name": "minYtOut",
1023
+ "type": "uint256"
1024
+ },
1025
+ {
1026
+ "internalType": "uint256",
1027
+ "name": "targetIy",
1028
+ "type": "uint256"
1029
+ },
1030
+ {
1031
+ "internalType": "int256",
1032
+ "name": "currentBin",
1033
+ "type": "int256"
1034
+ }
1035
+ ],
1036
+ "internalType": "struct IShortYieldTradingBot.SwapInput",
1037
+ "name": "inputParams",
1038
+ "type": "tuple"
1039
+ }
1040
+ ],
1041
+ "name": "swapYtForPt",
1042
+ "outputs": [
1043
+ {
1044
+ "internalType": "uint256",
1045
+ "name": "netPtOut",
1046
+ "type": "uint256"
1047
+ }
1048
+ ],
1049
+ "stateMutability": "nonpayable",
1050
+ "type": "function"
1051
+ },
1052
+ {
1053
+ "inputs": [
1054
+ {
1055
+ "internalType": "address",
1056
+ "name": "token",
1057
+ "type": "address"
1058
+ },
1059
+ {
1060
+ "internalType": "uint256",
1061
+ "name": "amount",
1062
+ "type": "uint256"
1063
+ }
1064
+ ],
1065
+ "name": "withdrawFunds",
1066
+ "outputs": [],
1067
+ "stateMutability": "nonpayable",
1068
+ "type": "function"
1069
+ }
1070
+ ],
1071
+ "bytecode": "0x",
1072
+ "deployedBytecode": "0x",
1073
+ "linkReferences": {},
1074
+ "deployedLinkReferences": {}
1075
+ }