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