@pendle/core-v2 2.22.1 → 2.22.3

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 (569) 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/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  13. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  15. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  17. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
  19. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  21. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  24. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  26. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  29. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  30. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  31. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  32. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  33. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  36. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  38. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  40. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  42. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  44. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.json +0 -19
  46. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -21
  48. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  50. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
  54. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.json +2 -2
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +2 -2
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +2 -2
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +2 -2
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +2 -2
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +1 -1
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +1 -1
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAPoolHelper.dbg.json +1 -1
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.dbg.json +1 -1
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.dbg.json +1 -1
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +1 -1
  78. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +1 -1
  79. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
  80. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +1 -1
  81. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +1 -1
  82. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  83. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  84. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  85. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  86. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
  87. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.json +2 -2
  88. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +1 -1
  89. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.json +2 -2
  90. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +1 -1
  91. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.dbg.json +1 -1
  92. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.json +2 -2
  93. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
  94. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +2 -2
  95. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  96. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  97. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  98. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  99. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
  100. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.json +2 -2
  101. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
  102. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.json +2 -2
  103. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
  104. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.json +2 -2
  105. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  106. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.dbg.json +1 -1
  107. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  108. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
  109. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
  110. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
  111. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  112. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  113. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
  114. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
  115. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
  116. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +2 -2
  117. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  118. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  119. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldActionHelper.sol/LongYieldActionHelper.dbg.json +4 -0
  120. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldActionHelper.sol/LongYieldActionHelper.json +815 -0
  121. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.dbg.json +4 -0
  122. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.json +1215 -0
  123. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +4 -0
  124. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol/LongYieldTradingBot.json +1564 -0
  125. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol/ShortYieldActionHelper.dbg.json +4 -0
  126. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol/ShortYieldActionHelper.json +765 -0
  127. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol/ShortYieldDecisionHelper.dbg.json +4 -0
  128. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol/ShortYieldDecisionHelper.json +1215 -0
  129. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol/ShortYieldTradingBot.dbg.json +4 -0
  130. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol/ShortYieldTradingBot.json +1368 -0
  131. package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.dbg.json +4 -0
  132. package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.json +815 -0
  133. package/build/artifacts/contracts/core/TradingBot/base/BotDecisionHelperBase.sol/BotDecisionHelperBase.dbg.json +4 -0
  134. package/build/artifacts/contracts/core/TradingBot/base/BotDecisionHelperBase.sol/BotDecisionHelperBase.json +789 -0
  135. package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.dbg.json +4 -0
  136. package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.json +765 -0
  137. package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.dbg.json +4 -0
  138. package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.json +10 -0
  139. package/build/artifacts/contracts/core/TradingBot/libraries/MarketExtLib.sol/MarketExtLib.dbg.json +4 -0
  140. package/build/artifacts/contracts/core/TradingBot/libraries/MarketExtLib.sol/MarketExtLib.json +24 -0
  141. package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.dbg.json +4 -0
  142. package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.json +10 -0
  143. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  144. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  145. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  146. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  147. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  148. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  149. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  150. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +1 -1
  151. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
  152. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
  153. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
  154. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
  155. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
  156. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
  157. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  158. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
  159. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  160. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  161. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  162. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
  163. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  164. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  165. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +151 -2
  166. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  167. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  168. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  169. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.dbg.json +4 -0
  170. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.json +10 -0
  171. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  172. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  173. package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
  174. package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.json +2 -2
  175. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +1 -1
  176. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +1 -1
  177. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
  178. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +1 -1
  179. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +1 -1
  180. package/build/artifacts/contracts/interfaces/Balancer/IERC4626LinearPool.sol/IERC4626LinearPool.dbg.json +1 -1
  181. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +1 -1
  182. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +1 -1
  183. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +1 -1
  184. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +1 -1
  185. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
  186. package/build/artifacts/contracts/interfaces/Camelot/ICamelotFactory.sol/ICamelotFactory.dbg.json +1 -1
  187. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTFactory.sol/ICamelotNFTFactory.dbg.json +1 -1
  188. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTHandler.sol/ICamelotNFTHandler.dbg.json +1 -1
  189. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
  190. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.json +0 -13
  191. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.dbg.json +1 -1
  192. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.json +0 -13
  193. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.dbg.json +1 -1
  194. package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
  195. package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.json +0 -26
  196. package/build/artifacts/contracts/interfaces/Camelot/ICamelotRouter.sol/ICamelotRouter.dbg.json +1 -1
  197. package/build/artifacts/contracts/interfaces/Camelot/ICamelotYieldBooster.sol/ICamelotYieldBooster.dbg.json +1 -1
  198. package/build/artifacts/contracts/interfaces/Camelot/IXGrail.sol/IXGrail.dbg.json +1 -1
  199. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
  200. package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +1 -1
  201. package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +1 -1
  202. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  203. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
  204. package/build/artifacts/contracts/interfaces/Curve/ITriCrvPool.sol/ITriCrvPool.dbg.json +1 -1
  205. package/build/artifacts/contracts/interfaces/Frax/IFrxEthMinter.sol/IFrxEthMinter.dbg.json +1 -1
  206. package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +1 -1
  207. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +1 -1
  208. package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +1 -1
  209. package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.dbg.json +1 -1
  210. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  211. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
  212. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  213. package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
  214. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +1 -1
  215. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +1 -1
  216. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  217. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  218. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  219. package/build/artifacts/contracts/interfaces/ILooksFeeSharing.sol/ILooksFeeSharing.dbg.json +1 -1
  220. package/build/artifacts/contracts/interfaces/ILooksStaking.sol/ILooksStaking.dbg.json +1 -1
  221. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  222. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  223. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  224. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.json +6 -82
  225. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  226. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +22 -22
  227. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  228. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  229. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +4 -42
  230. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
  231. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  232. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  233. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  234. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  235. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  236. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  237. package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +1 -1
  238. package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +1 -1
  239. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  240. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  241. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  242. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.json +0 -19
  243. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  244. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  245. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  246. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  247. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  248. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +0 -19
  249. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  250. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  251. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  252. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  253. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  254. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  255. package/build/artifacts/contracts/interfaces/IPPtOracle.sol/IPPtOracle.dbg.json +1 -1
  256. package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
  257. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  258. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +32 -146
  259. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  260. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  261. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  262. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  263. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  264. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  265. package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
  266. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  267. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  268. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  269. package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
  270. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  271. package/build/artifacts/contracts/interfaces/IStargateLP.sol/IStargateLP.dbg.json +1 -1
  272. package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
  273. package/build/artifacts/contracts/interfaces/IStargateStaking.sol/IStargateStaking.dbg.json +1 -1
  274. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  275. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  276. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +4 -0
  277. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.json +652 -0
  278. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol/ILongYieldDecisionHelper.dbg.json +4 -0
  279. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol/ILongYieldDecisionHelper.json +671 -0
  280. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +4 -0
  281. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +977 -0
  282. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol/IShortYieldDecisionHelper.dbg.json +4 -0
  283. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol/IShortYieldDecisionHelper.json +652 -0
  284. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.dbg.json +4 -0
  285. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.json +958 -0
  286. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +4 -0
  287. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +515 -0
  288. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  289. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  290. package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  291. package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  292. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  293. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
  294. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  295. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  296. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  297. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
  298. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +2 -2
  299. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  300. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  301. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  302. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  303. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  304. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  305. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  306. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +8 -84
  307. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  308. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +24 -24
  309. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  310. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +6 -44
  311. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  312. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  313. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  314. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  315. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  316. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  317. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  318. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
  319. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +2 -2
  320. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
  321. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.json +2 -2
  322. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +1 -1
  323. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.json +2 -2
  324. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
  325. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.json +2 -2
  326. package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.dbg.json +1 -1
  327. package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.json +2 -2
  328. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  329. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  330. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  331. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  332. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  333. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  334. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  335. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  336. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  337. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  338. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  339. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
  340. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +2 -2
  341. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
  342. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  343. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  344. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  345. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  346. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  347. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  348. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  349. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  350. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -18
  351. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
  352. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
  353. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IExecutorHelper.sol/IExecutorHelper.json +118 -76
  354. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IHashflow.sol/IHashflow.dbg.json +4 -0
  355. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IHashflow.sol/IHashflow.json +101 -0
  356. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
  357. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberInputScalingHelper.sol/KyberInputScalingHelper.dbg.json +1 -1
  358. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
  359. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.json +2 -2
  360. package/contracts/core/StandardizedYield/implementations/BalancerStable/AuraEthxBbAWethSY.sol +160 -0
  361. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol +23 -23
  362. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethVethSY.sol +147 -0
  363. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol +25 -21
  364. package/package.json +1 -1
  365. package/typechain-types/ActionMarketAuxStatic.ts +38 -191
  366. package/typechain-types/ActionMarketCoreStatic.ts +134 -600
  367. package/typechain-types/ActionMintRedeemStatic.ts +26 -92
  368. package/typechain-types/AuraEthxBbAWethSY.ts +1532 -0
  369. package/typechain-types/BotActionCallback.ts +900 -0
  370. package/typechain-types/BotActionHelper.ts +950 -0
  371. package/typechain-types/BotDecisionHelper.ts +561 -0
  372. package/typechain-types/BotDecisionHelperBase.ts +484 -0
  373. package/typechain-types/BotDecisionLib.ts +335 -0
  374. package/typechain-types/{PendleCamelotV1RouterHelper.ts → CamelotV1LpHelper.ts} +75 -5
  375. package/typechain-types/{CamelotV1PreviewHelper.ts → CamelotV1Preview.ts} +23 -63
  376. package/typechain-types/IBotDecisionHelper.ts +452 -0
  377. package/typechain-types/ICamelotNFTPool.ts +0 -19
  378. package/typechain-types/ICamelotNitroPool.ts +0 -19
  379. package/typechain-types/ICamelotPair.ts +0 -42
  380. package/typechain-types/ICamelotSY.ts +100 -0
  381. package/typechain-types/IExecutorHelper.ts +331 -310
  382. package/typechain-types/ILongYieldDecisionHelper.ts +486 -0
  383. package/typechain-types/ILongYieldTradingBot.ts +878 -0
  384. package/typechain-types/IPActionMarketAuxStatic.ts +38 -191
  385. package/typechain-types/IPActionMarketCoreStatic.ts +134 -600
  386. package/typechain-types/IPActionMintRedeemStatic.ts +26 -92
  387. package/typechain-types/IPExternalRewardDistributor.ts +192 -0
  388. package/typechain-types/IPGauge.ts +3 -23
  389. package/typechain-types/IPMarket.ts +0 -18
  390. package/typechain-types/IPMarketFactoryV2.ts +253 -0
  391. package/typechain-types/IPRouterStatic.ts +197 -888
  392. package/typechain-types/IShortYieldDecisionHelper.ts +452 -0
  393. package/typechain-types/IShortYieldTradingBot.ts +770 -0
  394. package/typechain-types/ITradingBotBase.ts +569 -0
  395. package/typechain-types/LongYieldActionHelper.ts +900 -0
  396. package/typechain-types/LongYieldDecisionHelper.ts +601 -0
  397. package/typechain-types/LongYieldTradingBot.ts +1364 -0
  398. package/typechain-types/MarketExtLib.ts +81 -0
  399. package/typechain-types/PendleAuraWethVethSY.ts +1511 -0
  400. package/typechain-types/PendleBinanceEth.ts +1229 -0
  401. package/typechain-types/PendleCamelotV1SY.ts +245 -0
  402. package/typechain-types/PendleExternalRewardDistributor.ts +546 -0
  403. package/typechain-types/PendleGauge.ts +3 -23
  404. package/typechain-types/PendleGaugeV2.ts +225 -0
  405. package/typechain-types/PendleMarket.ts +0 -18
  406. package/typechain-types/PendleMarketFactoryV2.ts +930 -0
  407. package/typechain-types/PendleMarketV2.ts +1311 -0
  408. package/typechain-types/PendleSwETH.ts +1216 -0
  409. package/typechain-types/ShortYieldActionHelper.ts +856 -0
  410. package/typechain-types/ShortYieldDecisionHelper.ts +601 -0
  411. package/typechain-types/ShortYieldTradingBot.ts +1212 -0
  412. package/typechain-types/TradingBotBase.ts +856 -0
  413. package/typechain-types/TradingBotOffchain.ts +568 -0
  414. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  415. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  416. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +7 -83
  417. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +23 -23
  418. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +5 -43
  419. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  420. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  421. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  422. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  423. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  424. package/typechain-types/factories/AuraEthxBbAWethSY__factory.ts +1240 -0
  425. package/typechain-types/factories/BotActionCallback__factory.ts +830 -0
  426. package/typechain-types/factories/BotActionHelper__factory.ts +947 -0
  427. package/typechain-types/factories/BotDecisionHelperBase__factory.ts +808 -0
  428. package/typechain-types/factories/BotDecisionHelper__factory.ts +1192 -0
  429. package/typechain-types/factories/BotDecisionLib__factory.ts +642 -0
  430. package/typechain-types/factories/Broadcaster__factory.ts +1 -1
  431. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  432. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  433. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  434. package/typechain-types/factories/CamelotRewardHelper__factory.ts +1 -1
  435. package/typechain-types/factories/{PendleCamelotV1RouterHelper__factory.ts → CamelotV1LpHelper__factory.ts} +60 -12
  436. package/typechain-types/factories/CamelotV1Preview__factory.ts +309 -0
  437. package/typechain-types/factories/CamelotV1VolatilePreview__factory.ts +1 -1
  438. package/typechain-types/factories/Errors__factory.ts +150 -1
  439. package/typechain-types/factories/IBotDecisionHelper__factory.ts +667 -0
  440. package/typechain-types/factories/ICamelotNFTPool__factory.ts +0 -13
  441. package/typechain-types/factories/ICamelotNitroPool__factory.ts +0 -13
  442. package/typechain-types/factories/ICamelotPair__factory.ts +0 -26
  443. package/typechain-types/factories/ICamelotSY__factory.ts +49 -0
  444. package/typechain-types/factories/IExecutorHelper__factory.ts +116 -74
  445. package/typechain-types/factories/ILongYieldDecisionHelper__factory.ts +690 -0
  446. package/typechain-types/factories/ILongYieldTradingBot__factory.ts +996 -0
  447. package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +6 -82
  448. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +22 -22
  449. package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +4 -42
  450. package/typechain-types/factories/IPExternalRewardDistributor__factory.ts +128 -0
  451. package/typechain-types/factories/IPGauge__factory.ts +0 -19
  452. package/typechain-types/factories/IPMarketFactoryV2__factory.ts +181 -0
  453. package/typechain-types/factories/IPMarket__factory.ts +0 -19
  454. package/typechain-types/factories/IPRouterStatic__factory.ts +32 -146
  455. package/typechain-types/factories/IShortYieldDecisionHelper__factory.ts +671 -0
  456. package/typechain-types/factories/IShortYieldTradingBot__factory.ts +977 -0
  457. package/typechain-types/factories/ITradingBotBase__factory.ts +530 -0
  458. package/typechain-types/factories/LongYieldActionHelper__factory.ts +834 -0
  459. package/typechain-types/factories/LongYieldDecisionHelper__factory.ts +1272 -0
  460. package/typechain-types/factories/LongYieldTradingBot__factory.ts +1637 -0
  461. package/typechain-types/factories/MarketExtLib__factory.ts +74 -0
  462. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  463. package/typechain-types/factories/PendleAuraBbAWethSwethSY__factory.ts +1 -1
  464. package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +1 -1
  465. package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +1 -1
  466. package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +1 -1
  467. package/typechain-types/factories/PendleAuraWethVethSY__factory.ts +1231 -0
  468. package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +1 -1
  469. package/typechain-types/factories/PendleBinanceEth__factory.ts +1052 -0
  470. package/typechain-types/factories/PendleCamelotV1SY__factory.ts +156 -9
  471. package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +1 -1
  472. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  473. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  474. package/typechain-types/factories/PendleExternalRewardDistributor__factory.ts +414 -0
  475. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  476. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  477. package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
  478. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  479. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  480. package/typechain-types/factories/PendleGaugeV2__factory.ts +140 -0
  481. package/typechain-types/factories/PendleGauge__factory.ts +0 -19
  482. package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
  483. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  484. package/typechain-types/factories/PendleLpGlpOracle__factory.ts +1 -1
  485. package/typechain-types/factories/PendleMarketFactoryV2__factory.ts +770 -0
  486. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  487. package/typechain-types/factories/PendleMarketV2__factory.ts +1290 -0
  488. package/typechain-types/factories/PendleMarket__factory.ts +1 -20
  489. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  490. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  491. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
  492. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  493. package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
  494. package/typechain-types/factories/PendlePtOracle__factory.ts +1 -1
  495. package/typechain-types/factories/PendlePtUsdChainlinkOracle__factory.ts +1 -1
  496. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  497. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  498. package/typechain-types/factories/PendleRouterHelper__factory.ts +1 -1
  499. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  500. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  501. package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
  502. package/typechain-types/factories/PendleStargateLPSY__factory.ts +1 -1
  503. package/typechain-types/factories/PendleSwETH__factory.ts +1022 -0
  504. package/typechain-types/factories/PendleSwap__factory.ts +1 -17
  505. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  506. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  507. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
  508. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  509. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
  510. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  511. package/typechain-types/factories/SAPE__factory.ts +1 -1
  512. package/typechain-types/factories/ShortYieldActionHelper__factory.ts +784 -0
  513. package/typechain-types/factories/ShortYieldDecisionHelper__factory.ts +1272 -0
  514. package/typechain-types/factories/ShortYieldTradingBot__factory.ts +1445 -0
  515. package/typechain-types/factories/TradingBotBase__factory.ts +780 -0
  516. package/typechain-types/factories/TradingBotOffchain__factory.ts +1133 -0
  517. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  518. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  519. package/typechain-types/hardhat.d.ts +162 -0
  520. package/typechain-types/index.ts +36 -0
  521. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ankr/PendleAnkrBNBSY.sol/PendleAnkrBNBSY.dbg.json +0 -4
  522. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ankr/PendleAnkrBNBSY.sol/PendleAnkrBNBSY.json +0 -1027
  523. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWstethAnkreth.sol/PendleAuraWstethAnkreth.dbg.json +0 -4
  524. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWstethAnkreth.sol/PendleAuraWstethAnkreth.json +0 -1171
  525. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.dbg.json +0 -4
  526. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.json +0 -976
  527. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol/PendleWbEthSY.dbg.json +0 -4
  528. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol/PendleWbEthSY.json +0 -979
  529. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol/SwETHSY.dbg.json +0 -4
  530. package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol/SwETHSY.json +0 -961
  531. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/PendleThenaSY.sol/PendleThenaSY.dbg.json +0 -4
  532. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/PendleThenaSY.sol/PendleThenaSY.json +0 -1266
  533. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaLpHelper.sol/ThenaLpHelper.dbg.json +0 -4
  534. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaLpHelper.sol/ThenaLpHelper.json +0 -128
  535. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaMath.sol/ThenaMath.dbg.json +0 -4
  536. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaMath.sol/ThenaMath.json +0 -24
  537. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/IThenaSY.dbg.json +0 -4
  538. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/IThenaSY.json +0 -24
  539. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/ThenaPreview.dbg.json +0 -4
  540. package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/ThenaPreview.json +0 -267
  541. package/build/artifacts/contracts/interfaces/Ankr/IAnkrBNB.sol/IAnkrBNB.dbg.json +0 -4
  542. package/build/artifacts/contracts/interfaces/Ankr/IAnkrBNB.sol/IAnkrBNB.json +0 -62
  543. package/build/artifacts/contracts/interfaces/Ankr/IAnkrLiquidStaking.sol/IAnkrLiquidStaking.dbg.json +0 -4
  544. package/build/artifacts/contracts/interfaces/Ankr/IAnkrLiquidStaking.sol/IAnkrLiquidStaking.json +0 -108
  545. package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.dbg.json +0 -4
  546. package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.json +0 -42
  547. package/build/artifacts/contracts/interfaces/IPendlePreviewHelper.sol/IPendlePreviewHelper.dbg.json +0 -4
  548. package/build/artifacts/contracts/interfaces/IPendlePreviewHelper.sol/IPendlePreviewHelper.json +0 -59
  549. package/build/artifacts/contracts/interfaces/ISwETH.sol/ISwETH.dbg.json +0 -4
  550. package/build/artifacts/contracts/interfaces/ISwETH.sol/ISwETH.json +0 -44
  551. package/build/artifacts/contracts/interfaces/Thena/IThenaFactory.sol/IThenaFactory.dbg.json +0 -4
  552. package/build/artifacts/contracts/interfaces/Thena/IThenaFactory.sol/IThenaFactory.json +0 -152
  553. package/build/artifacts/contracts/interfaces/Thena/IThenaGaugeV2.sol/IThenaGaugeV2.dbg.json +0 -4
  554. package/build/artifacts/contracts/interfaces/Thena/IThenaGaugeV2.sol/IThenaGaugeV2.json +0 -71
  555. package/build/artifacts/contracts/interfaces/Thena/IThenaPair.sol/IThenaPair.dbg.json +0 -4
  556. package/build/artifacts/contracts/interfaces/Thena/IThenaPair.sol/IThenaPair.json +0 -409
  557. package/build/artifacts/contracts/interfaces/Thena/IThenaRouter.sol/IThenaRouter.dbg.json +0 -4
  558. package/build/artifacts/contracts/interfaces/Thena/IThenaRouter.sol/IThenaRouter.json +0 -188
  559. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.dbg.json +0 -4
  560. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.json +0 -97
  561. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +0 -4
  562. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.json +0 -160
  563. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +0 -4
  564. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.json +0 -10
  565. package/typechain-types/IPVotingEscrowSidechain.ts +0 -155
  566. package/typechain-types/PendleCamelotRewardHelper.ts +0 -347
  567. package/typechain-types/factories/CamelotV1PreviewHelper__factory.ts +0 -400
  568. package/typechain-types/factories/IPVotingEscrowSidechain__factory.ts +0 -112
  569. package/typechain-types/factories/PendleCamelotRewardHelper__factory.ts +0 -317
@@ -0,0 +1,808 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ BotDecisionHelperBase,
9
+ BotDecisionHelperBaseInterface,
10
+ } from "../BotDecisionHelperBase";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "BotBinarySearchFail",
16
+ type: "error",
17
+ },
18
+ {
19
+ inputs: [
20
+ {
21
+ internalType: "uint256",
22
+ name: "action",
23
+ type: "uint256",
24
+ },
25
+ {
26
+ internalType: "uint256",
27
+ name: "guessMin",
28
+ type: "uint256",
29
+ },
30
+ {
31
+ internalType: "uint256",
32
+ name: "guessMax",
33
+ type: "uint256",
34
+ },
35
+ ],
36
+ name: "BotBinarySearchInvalidRange",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [
41
+ {
42
+ internalType: "int256",
43
+ name: "exchangeRate",
44
+ type: "int256",
45
+ },
46
+ ],
47
+ name: "MarketExchangeRateBelowOne",
48
+ type: "error",
49
+ },
50
+ {
51
+ inputs: [],
52
+ name: "MarketExpired",
53
+ type: "error",
54
+ },
55
+ {
56
+ inputs: [
57
+ {
58
+ internalType: "int256",
59
+ name: "currentAmount",
60
+ type: "int256",
61
+ },
62
+ {
63
+ internalType: "int256",
64
+ name: "requiredAmount",
65
+ type: "int256",
66
+ },
67
+ ],
68
+ name: "MarketInsufficientPtForTrade",
69
+ type: "error",
70
+ },
71
+ {
72
+ inputs: [],
73
+ name: "MarketProportionMustNotEqualOne",
74
+ type: "error",
75
+ },
76
+ {
77
+ inputs: [
78
+ {
79
+ internalType: "int256",
80
+ name: "proportion",
81
+ type: "int256",
82
+ },
83
+ {
84
+ internalType: "int256",
85
+ name: "maxProportion",
86
+ type: "int256",
87
+ },
88
+ ],
89
+ name: "MarketProportionTooHigh",
90
+ type: "error",
91
+ },
92
+ {
93
+ inputs: [
94
+ {
95
+ internalType: "int256",
96
+ name: "rateScalar",
97
+ type: "int256",
98
+ },
99
+ ],
100
+ name: "MarketRateScalarBelowZero",
101
+ type: "error",
102
+ },
103
+ {
104
+ inputs: [],
105
+ name: "MarketZeroLnImpliedRate",
106
+ type: "error",
107
+ },
108
+ {
109
+ inputs: [
110
+ {
111
+ internalType: "int256",
112
+ name: "totalPt",
113
+ type: "int256",
114
+ },
115
+ {
116
+ internalType: "int256",
117
+ name: "totalAsset",
118
+ type: "int256",
119
+ },
120
+ ],
121
+ name: "MarketZeroTotalPtOrTotalAsset",
122
+ type: "error",
123
+ },
124
+ {
125
+ inputs: [],
126
+ name: "INF",
127
+ outputs: [
128
+ {
129
+ internalType: "uint256",
130
+ name: "",
131
+ type: "uint256",
132
+ },
133
+ ],
134
+ stateMutability: "view",
135
+ type: "function",
136
+ },
137
+ {
138
+ inputs: [],
139
+ name: "MINIMAL_EPS",
140
+ outputs: [
141
+ {
142
+ internalType: "uint256",
143
+ name: "",
144
+ type: "uint256",
145
+ },
146
+ ],
147
+ stateMutability: "view",
148
+ type: "function",
149
+ },
150
+ {
151
+ inputs: [
152
+ {
153
+ components: [
154
+ {
155
+ components: [
156
+ {
157
+ internalType: "uint256",
158
+ name: "lpBalance",
159
+ type: "uint256",
160
+ },
161
+ {
162
+ internalType: "uint256",
163
+ name: "ytBalance",
164
+ type: "uint256",
165
+ },
166
+ {
167
+ internalType: "uint256",
168
+ name: "ptBalance",
169
+ type: "uint256",
170
+ },
171
+ {
172
+ internalType: "uint256",
173
+ name: "syBalance",
174
+ type: "uint256",
175
+ },
176
+ {
177
+ internalType: "uint256",
178
+ name: "buyBins",
179
+ type: "uint256",
180
+ },
181
+ ],
182
+ internalType: "struct BotState",
183
+ name: "botState",
184
+ type: "tuple",
185
+ },
186
+ {
187
+ components: [
188
+ {
189
+ components: [
190
+ {
191
+ internalType: "int256",
192
+ name: "totalPt",
193
+ type: "int256",
194
+ },
195
+ {
196
+ internalType: "int256",
197
+ name: "totalSy",
198
+ type: "int256",
199
+ },
200
+ {
201
+ internalType: "int256",
202
+ name: "totalLp",
203
+ type: "int256",
204
+ },
205
+ {
206
+ internalType: "address",
207
+ name: "treasury",
208
+ type: "address",
209
+ },
210
+ {
211
+ internalType: "int256",
212
+ name: "scalarRoot",
213
+ type: "int256",
214
+ },
215
+ {
216
+ internalType: "uint256",
217
+ name: "expiry",
218
+ type: "uint256",
219
+ },
220
+ {
221
+ internalType: "uint256",
222
+ name: "lnFeeRateRoot",
223
+ type: "uint256",
224
+ },
225
+ {
226
+ internalType: "uint256",
227
+ name: "reserveFeePercent",
228
+ type: "uint256",
229
+ },
230
+ {
231
+ internalType: "uint256",
232
+ name: "lastLnImpliedRate",
233
+ type: "uint256",
234
+ },
235
+ ],
236
+ internalType: "struct MarketState",
237
+ name: "state",
238
+ type: "tuple",
239
+ },
240
+ {
241
+ internalType: "PYIndex",
242
+ name: "index",
243
+ type: "uint256",
244
+ },
245
+ {
246
+ internalType: "uint256",
247
+ name: "blockTime",
248
+ type: "uint256",
249
+ },
250
+ ],
251
+ internalType: "struct MarketExtState",
252
+ name: "marketExt",
253
+ type: "tuple",
254
+ },
255
+ {
256
+ components: [
257
+ {
258
+ internalType: "uint256",
259
+ name: "buyYtIy",
260
+ type: "uint256",
261
+ },
262
+ {
263
+ internalType: "uint256",
264
+ name: "sellYtIy",
265
+ type: "uint256",
266
+ },
267
+ {
268
+ internalType: "uint256",
269
+ name: "targetSyRatio",
270
+ type: "uint256",
271
+ },
272
+ {
273
+ internalType: "uint256",
274
+ name: "maxSyRatio",
275
+ type: "uint256",
276
+ },
277
+ {
278
+ internalType: "uint256",
279
+ name: "targetYtPtRatio",
280
+ type: "uint256",
281
+ },
282
+ {
283
+ internalType: "uint256",
284
+ name: "numOfBins",
285
+ type: "uint256",
286
+ },
287
+ ],
288
+ internalType: "struct TradingSpecs",
289
+ name: "specs",
290
+ type: "tuple",
291
+ },
292
+ ],
293
+ internalType: "struct StrategyData",
294
+ name: "strategyData",
295
+ type: "tuple",
296
+ },
297
+ ],
298
+ name: "botExtStats",
299
+ outputs: [
300
+ {
301
+ internalType: "uint256",
302
+ name: "tvlInSy",
303
+ type: "uint256",
304
+ },
305
+ {
306
+ internalType: "uint256",
307
+ name: "iy",
308
+ type: "uint256",
309
+ },
310
+ {
311
+ internalType: "uint256",
312
+ name: "currentSyRatio",
313
+ type: "uint256",
314
+ },
315
+ {
316
+ internalType: "uint256",
317
+ name: "currentYtPtRatio",
318
+ type: "uint256",
319
+ },
320
+ ],
321
+ stateMutability: "pure",
322
+ type: "function",
323
+ },
324
+ {
325
+ inputs: [
326
+ {
327
+ internalType: "address",
328
+ name: "botAddress",
329
+ type: "address",
330
+ },
331
+ ],
332
+ name: "getActionDetails",
333
+ outputs: [
334
+ {
335
+ components: [
336
+ {
337
+ internalType: "enum ActionType",
338
+ name: "action",
339
+ type: "uint8",
340
+ },
341
+ {
342
+ internalType: "int256",
343
+ name: "currentBin",
344
+ type: "int256",
345
+ },
346
+ {
347
+ internalType: "uint256",
348
+ name: "targetIy",
349
+ type: "uint256",
350
+ },
351
+ {
352
+ internalType: "uint256",
353
+ name: "guessBotParams",
354
+ type: "uint256",
355
+ },
356
+ {
357
+ internalType: "uint256",
358
+ name: "guessIntParams",
359
+ type: "uint256",
360
+ },
361
+ {
362
+ internalType: "uint256",
363
+ name: "amountOut",
364
+ type: "uint256",
365
+ },
366
+ ],
367
+ internalType: "struct IBotDecisionHelper.ActionToTakeResult",
368
+ name: "res",
369
+ type: "tuple",
370
+ },
371
+ ],
372
+ stateMutability: "nonpayable",
373
+ type: "function",
374
+ },
375
+ {
376
+ inputs: [
377
+ {
378
+ components: [
379
+ {
380
+ components: [
381
+ {
382
+ internalType: "uint256",
383
+ name: "lpBalance",
384
+ type: "uint256",
385
+ },
386
+ {
387
+ internalType: "uint256",
388
+ name: "ytBalance",
389
+ type: "uint256",
390
+ },
391
+ {
392
+ internalType: "uint256",
393
+ name: "ptBalance",
394
+ type: "uint256",
395
+ },
396
+ {
397
+ internalType: "uint256",
398
+ name: "syBalance",
399
+ type: "uint256",
400
+ },
401
+ {
402
+ internalType: "uint256",
403
+ name: "buyBins",
404
+ type: "uint256",
405
+ },
406
+ ],
407
+ internalType: "struct BotState",
408
+ name: "botState",
409
+ type: "tuple",
410
+ },
411
+ {
412
+ components: [
413
+ {
414
+ components: [
415
+ {
416
+ internalType: "int256",
417
+ name: "totalPt",
418
+ type: "int256",
419
+ },
420
+ {
421
+ internalType: "int256",
422
+ name: "totalSy",
423
+ type: "int256",
424
+ },
425
+ {
426
+ internalType: "int256",
427
+ name: "totalLp",
428
+ type: "int256",
429
+ },
430
+ {
431
+ internalType: "address",
432
+ name: "treasury",
433
+ type: "address",
434
+ },
435
+ {
436
+ internalType: "int256",
437
+ name: "scalarRoot",
438
+ type: "int256",
439
+ },
440
+ {
441
+ internalType: "uint256",
442
+ name: "expiry",
443
+ type: "uint256",
444
+ },
445
+ {
446
+ internalType: "uint256",
447
+ name: "lnFeeRateRoot",
448
+ type: "uint256",
449
+ },
450
+ {
451
+ internalType: "uint256",
452
+ name: "reserveFeePercent",
453
+ type: "uint256",
454
+ },
455
+ {
456
+ internalType: "uint256",
457
+ name: "lastLnImpliedRate",
458
+ type: "uint256",
459
+ },
460
+ ],
461
+ internalType: "struct MarketState",
462
+ name: "state",
463
+ type: "tuple",
464
+ },
465
+ {
466
+ internalType: "PYIndex",
467
+ name: "index",
468
+ type: "uint256",
469
+ },
470
+ {
471
+ internalType: "uint256",
472
+ name: "blockTime",
473
+ type: "uint256",
474
+ },
475
+ ],
476
+ internalType: "struct MarketExtState",
477
+ name: "marketExt",
478
+ type: "tuple",
479
+ },
480
+ {
481
+ components: [
482
+ {
483
+ internalType: "uint256",
484
+ name: "buyYtIy",
485
+ type: "uint256",
486
+ },
487
+ {
488
+ internalType: "uint256",
489
+ name: "sellYtIy",
490
+ type: "uint256",
491
+ },
492
+ {
493
+ internalType: "uint256",
494
+ name: "targetSyRatio",
495
+ type: "uint256",
496
+ },
497
+ {
498
+ internalType: "uint256",
499
+ name: "maxSyRatio",
500
+ type: "uint256",
501
+ },
502
+ {
503
+ internalType: "uint256",
504
+ name: "targetYtPtRatio",
505
+ type: "uint256",
506
+ },
507
+ {
508
+ internalType: "uint256",
509
+ name: "numOfBins",
510
+ type: "uint256",
511
+ },
512
+ ],
513
+ internalType: "struct TradingSpecs",
514
+ name: "specs",
515
+ type: "tuple",
516
+ },
517
+ ],
518
+ internalType: "struct StrategyData",
519
+ name: "strategyData",
520
+ type: "tuple",
521
+ },
522
+ ],
523
+ name: "getCurrentBin",
524
+ outputs: [
525
+ {
526
+ internalType: "int256",
527
+ name: "",
528
+ type: "int256",
529
+ },
530
+ ],
531
+ stateMutability: "pure",
532
+ type: "function",
533
+ },
534
+ {
535
+ inputs: [
536
+ {
537
+ internalType: "address",
538
+ name: "botAddress",
539
+ type: "address",
540
+ },
541
+ ],
542
+ name: "getFloatingSyAmount",
543
+ outputs: [
544
+ {
545
+ internalType: "uint256",
546
+ name: "floatingSyAmount",
547
+ type: "uint256",
548
+ },
549
+ ],
550
+ stateMutability: "nonpayable",
551
+ type: "function",
552
+ },
553
+ {
554
+ inputs: [
555
+ {
556
+ components: [
557
+ {
558
+ components: [
559
+ {
560
+ internalType: "uint256",
561
+ name: "lpBalance",
562
+ type: "uint256",
563
+ },
564
+ {
565
+ internalType: "uint256",
566
+ name: "ytBalance",
567
+ type: "uint256",
568
+ },
569
+ {
570
+ internalType: "uint256",
571
+ name: "ptBalance",
572
+ type: "uint256",
573
+ },
574
+ {
575
+ internalType: "uint256",
576
+ name: "syBalance",
577
+ type: "uint256",
578
+ },
579
+ {
580
+ internalType: "uint256",
581
+ name: "buyBins",
582
+ type: "uint256",
583
+ },
584
+ ],
585
+ internalType: "struct BotState",
586
+ name: "botState",
587
+ type: "tuple",
588
+ },
589
+ {
590
+ components: [
591
+ {
592
+ components: [
593
+ {
594
+ internalType: "int256",
595
+ name: "totalPt",
596
+ type: "int256",
597
+ },
598
+ {
599
+ internalType: "int256",
600
+ name: "totalSy",
601
+ type: "int256",
602
+ },
603
+ {
604
+ internalType: "int256",
605
+ name: "totalLp",
606
+ type: "int256",
607
+ },
608
+ {
609
+ internalType: "address",
610
+ name: "treasury",
611
+ type: "address",
612
+ },
613
+ {
614
+ internalType: "int256",
615
+ name: "scalarRoot",
616
+ type: "int256",
617
+ },
618
+ {
619
+ internalType: "uint256",
620
+ name: "expiry",
621
+ type: "uint256",
622
+ },
623
+ {
624
+ internalType: "uint256",
625
+ name: "lnFeeRateRoot",
626
+ type: "uint256",
627
+ },
628
+ {
629
+ internalType: "uint256",
630
+ name: "reserveFeePercent",
631
+ type: "uint256",
632
+ },
633
+ {
634
+ internalType: "uint256",
635
+ name: "lastLnImpliedRate",
636
+ type: "uint256",
637
+ },
638
+ ],
639
+ internalType: "struct MarketState",
640
+ name: "state",
641
+ type: "tuple",
642
+ },
643
+ {
644
+ internalType: "PYIndex",
645
+ name: "index",
646
+ type: "uint256",
647
+ },
648
+ {
649
+ internalType: "uint256",
650
+ name: "blockTime",
651
+ type: "uint256",
652
+ },
653
+ ],
654
+ internalType: "struct MarketExtState",
655
+ name: "marketExt",
656
+ type: "tuple",
657
+ },
658
+ {
659
+ components: [
660
+ {
661
+ internalType: "uint256",
662
+ name: "buyYtIy",
663
+ type: "uint256",
664
+ },
665
+ {
666
+ internalType: "uint256",
667
+ name: "sellYtIy",
668
+ type: "uint256",
669
+ },
670
+ {
671
+ internalType: "uint256",
672
+ name: "targetSyRatio",
673
+ type: "uint256",
674
+ },
675
+ {
676
+ internalType: "uint256",
677
+ name: "maxSyRatio",
678
+ type: "uint256",
679
+ },
680
+ {
681
+ internalType: "uint256",
682
+ name: "targetYtPtRatio",
683
+ type: "uint256",
684
+ },
685
+ {
686
+ internalType: "uint256",
687
+ name: "numOfBins",
688
+ type: "uint256",
689
+ },
690
+ ],
691
+ internalType: "struct TradingSpecs",
692
+ name: "specs",
693
+ type: "tuple",
694
+ },
695
+ ],
696
+ internalType: "struct StrategyData",
697
+ name: "strategyData",
698
+ type: "tuple",
699
+ },
700
+ {
701
+ internalType: "enum ActionType",
702
+ name: "action",
703
+ type: "uint8",
704
+ },
705
+ {
706
+ internalType: "uint256",
707
+ name: "targetIy",
708
+ type: "uint256",
709
+ },
710
+ {
711
+ internalType: "uint256",
712
+ name: "rebalanceAdditionalCheck",
713
+ type: "uint256",
714
+ },
715
+ {
716
+ components: [
717
+ {
718
+ internalType: "uint256",
719
+ name: "guessMin",
720
+ type: "uint256",
721
+ },
722
+ {
723
+ internalType: "uint256",
724
+ name: "guessMax",
725
+ type: "uint256",
726
+ },
727
+ {
728
+ internalType: "uint256",
729
+ name: "guessOffchain",
730
+ type: "uint256",
731
+ },
732
+ {
733
+ internalType: "uint256",
734
+ name: "maxIteration",
735
+ type: "uint256",
736
+ },
737
+ {
738
+ internalType: "uint256",
739
+ name: "eps",
740
+ type: "uint256",
741
+ },
742
+ ],
743
+ internalType: "struct ApproxParams",
744
+ name: "botParams",
745
+ type: "tuple",
746
+ },
747
+ {
748
+ components: [
749
+ {
750
+ internalType: "uint256",
751
+ name: "guessMin",
752
+ type: "uint256",
753
+ },
754
+ {
755
+ internalType: "uint256",
756
+ name: "guessMax",
757
+ type: "uint256",
758
+ },
759
+ {
760
+ internalType: "uint256",
761
+ name: "guessOffchain",
762
+ type: "uint256",
763
+ },
764
+ {
765
+ internalType: "uint256",
766
+ name: "maxIteration",
767
+ type: "uint256",
768
+ },
769
+ {
770
+ internalType: "uint256",
771
+ name: "eps",
772
+ type: "uint256",
773
+ },
774
+ ],
775
+ internalType: "struct ApproxParams",
776
+ name: "intParams",
777
+ type: "tuple",
778
+ },
779
+ ],
780
+ name: "searchForBotParam",
781
+ outputs: [
782
+ {
783
+ internalType: "uint256",
784
+ name: "",
785
+ type: "uint256",
786
+ },
787
+ ],
788
+ stateMutability: "pure",
789
+ type: "function",
790
+ },
791
+ ];
792
+
793
+ export class BotDecisionHelperBase__factory {
794
+ static readonly abi = _abi;
795
+ static createInterface(): BotDecisionHelperBaseInterface {
796
+ return new utils.Interface(_abi) as BotDecisionHelperBaseInterface;
797
+ }
798
+ static connect(
799
+ address: string,
800
+ signerOrProvider: Signer | Provider
801
+ ): BotDecisionHelperBase {
802
+ return new Contract(
803
+ address,
804
+ _abi,
805
+ signerOrProvider
806
+ ) as BotDecisionHelperBase;
807
+ }
808
+ }