@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,1133 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type {
7
+ TradingBotOffchain,
8
+ TradingBotOffchainInterface,
9
+ } from "../TradingBotOffchain";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "_decisionLib",
17
+ type: "address",
18
+ },
19
+ ],
20
+ stateMutability: "nonpayable",
21
+ type: "constructor",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "ApproxFail",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ internalType: "uint256",
32
+ name: "guessMin",
33
+ type: "uint256",
34
+ },
35
+ {
36
+ internalType: "uint256",
37
+ name: "guessMax",
38
+ type: "uint256",
39
+ },
40
+ {
41
+ internalType: "uint256",
42
+ name: "eps",
43
+ type: "uint256",
44
+ },
45
+ ],
46
+ name: "ApproxParamsInvalid",
47
+ type: "error",
48
+ },
49
+ {
50
+ inputs: [
51
+ {
52
+ internalType: "int256",
53
+ name: "exchangeRate",
54
+ type: "int256",
55
+ },
56
+ ],
57
+ name: "MarketExchangeRateBelowOne",
58
+ type: "error",
59
+ },
60
+ {
61
+ inputs: [],
62
+ name: "MarketExpired",
63
+ type: "error",
64
+ },
65
+ {
66
+ inputs: [
67
+ {
68
+ internalType: "int256",
69
+ name: "currentAmount",
70
+ type: "int256",
71
+ },
72
+ {
73
+ internalType: "int256",
74
+ name: "requiredAmount",
75
+ type: "int256",
76
+ },
77
+ ],
78
+ name: "MarketInsufficientPtForTrade",
79
+ type: "error",
80
+ },
81
+ {
82
+ inputs: [],
83
+ name: "MarketProportionMustNotEqualOne",
84
+ type: "error",
85
+ },
86
+ {
87
+ inputs: [
88
+ {
89
+ internalType: "int256",
90
+ name: "proportion",
91
+ type: "int256",
92
+ },
93
+ {
94
+ internalType: "int256",
95
+ name: "maxProportion",
96
+ type: "int256",
97
+ },
98
+ ],
99
+ name: "MarketProportionTooHigh",
100
+ type: "error",
101
+ },
102
+ {
103
+ inputs: [
104
+ {
105
+ internalType: "int256",
106
+ name: "rateScalar",
107
+ type: "int256",
108
+ },
109
+ ],
110
+ name: "MarketRateScalarBelowZero",
111
+ type: "error",
112
+ },
113
+ {
114
+ inputs: [],
115
+ name: "MarketZeroAmountsInput",
116
+ type: "error",
117
+ },
118
+ {
119
+ inputs: [],
120
+ name: "MarketZeroAmountsOutput",
121
+ type: "error",
122
+ },
123
+ {
124
+ inputs: [],
125
+ name: "MarketZeroLnImpliedRate",
126
+ type: "error",
127
+ },
128
+ {
129
+ inputs: [
130
+ {
131
+ internalType: "int256",
132
+ name: "totalPt",
133
+ type: "int256",
134
+ },
135
+ {
136
+ internalType: "int256",
137
+ name: "totalAsset",
138
+ type: "int256",
139
+ },
140
+ ],
141
+ name: "MarketZeroTotalPtOrTotalAsset",
142
+ type: "error",
143
+ },
144
+ {
145
+ inputs: [
146
+ {
147
+ components: [
148
+ {
149
+ internalType: "uint256",
150
+ name: "lpBalance",
151
+ type: "uint256",
152
+ },
153
+ {
154
+ internalType: "uint256",
155
+ name: "ytBalance",
156
+ type: "uint256",
157
+ },
158
+ {
159
+ internalType: "uint256",
160
+ name: "syBalance",
161
+ type: "uint256",
162
+ },
163
+ ],
164
+ internalType: "struct BotState",
165
+ name: "botState",
166
+ type: "tuple",
167
+ },
168
+ {
169
+ components: [
170
+ {
171
+ internalType: "enum StrategyFlag",
172
+ name: "iyFlag",
173
+ type: "uint8",
174
+ },
175
+ {
176
+ internalType: "enum StrategyFlag",
177
+ name: "syRatioFlag",
178
+ type: "uint8",
179
+ },
180
+ ],
181
+ internalType: "struct StrategyState",
182
+ name: "currentState",
183
+ type: "tuple",
184
+ },
185
+ ],
186
+ name: "actionToTake",
187
+ outputs: [
188
+ {
189
+ internalType: "enum ActionType",
190
+ name: "",
191
+ type: "uint8",
192
+ },
193
+ ],
194
+ stateMutability: "view",
195
+ type: "function",
196
+ },
197
+ {
198
+ inputs: [
199
+ {
200
+ internalType: "address",
201
+ name: "bot",
202
+ type: "address",
203
+ },
204
+ {
205
+ internalType: "address",
206
+ name: "market",
207
+ type: "address",
208
+ },
209
+ ],
210
+ name: "claimForBot",
211
+ outputs: [
212
+ {
213
+ components: [
214
+ {
215
+ internalType: "address",
216
+ name: "token",
217
+ type: "address",
218
+ },
219
+ {
220
+ internalType: "uint256",
221
+ name: "amount",
222
+ type: "uint256",
223
+ },
224
+ ],
225
+ internalType: "struct TokenAmount[]",
226
+ name: "rewards",
227
+ type: "tuple[]",
228
+ },
229
+ ],
230
+ stateMutability: "nonpayable",
231
+ type: "function",
232
+ },
233
+ {
234
+ inputs: [],
235
+ name: "decisionLib",
236
+ outputs: [
237
+ {
238
+ internalType: "address",
239
+ name: "",
240
+ type: "address",
241
+ },
242
+ ],
243
+ stateMutability: "view",
244
+ type: "function",
245
+ },
246
+ {
247
+ inputs: [
248
+ {
249
+ components: [
250
+ {
251
+ internalType: "uint256",
252
+ name: "lpBalance",
253
+ type: "uint256",
254
+ },
255
+ {
256
+ internalType: "uint256",
257
+ name: "ytBalance",
258
+ type: "uint256",
259
+ },
260
+ {
261
+ internalType: "uint256",
262
+ name: "syBalance",
263
+ type: "uint256",
264
+ },
265
+ ],
266
+ internalType: "struct BotState",
267
+ name: "bot",
268
+ type: "tuple",
269
+ },
270
+ {
271
+ components: [
272
+ {
273
+ components: [
274
+ {
275
+ internalType: "int256",
276
+ name: "totalPt",
277
+ type: "int256",
278
+ },
279
+ {
280
+ internalType: "int256",
281
+ name: "totalSy",
282
+ type: "int256",
283
+ },
284
+ {
285
+ internalType: "int256",
286
+ name: "totalLp",
287
+ type: "int256",
288
+ },
289
+ {
290
+ internalType: "address",
291
+ name: "treasury",
292
+ type: "address",
293
+ },
294
+ {
295
+ internalType: "int256",
296
+ name: "scalarRoot",
297
+ type: "int256",
298
+ },
299
+ {
300
+ internalType: "uint256",
301
+ name: "expiry",
302
+ type: "uint256",
303
+ },
304
+ {
305
+ internalType: "uint256",
306
+ name: "lnFeeRateRoot",
307
+ type: "uint256",
308
+ },
309
+ {
310
+ internalType: "uint256",
311
+ name: "reserveFeePercent",
312
+ type: "uint256",
313
+ },
314
+ {
315
+ internalType: "uint256",
316
+ name: "lastLnImpliedRate",
317
+ type: "uint256",
318
+ },
319
+ ],
320
+ internalType: "struct MarketState",
321
+ name: "state",
322
+ type: "tuple",
323
+ },
324
+ {
325
+ internalType: "PYIndex",
326
+ name: "index",
327
+ type: "uint256",
328
+ },
329
+ {
330
+ internalType: "uint256",
331
+ name: "blockTime",
332
+ type: "uint256",
333
+ },
334
+ ],
335
+ internalType: "struct MarketExtState",
336
+ name: "marketExt",
337
+ type: "tuple",
338
+ },
339
+ {
340
+ components: [
341
+ {
342
+ internalType: "uint256",
343
+ name: "lowerIyLimit",
344
+ type: "uint256",
345
+ },
346
+ {
347
+ internalType: "uint256",
348
+ name: "upperIyLimit",
349
+ type: "uint256",
350
+ },
351
+ {
352
+ internalType: "uint256",
353
+ name: "floatingSyRatioLimit",
354
+ type: "uint256",
355
+ },
356
+ {
357
+ internalType: "uint256",
358
+ name: "ytPtRatioLimit",
359
+ type: "uint256",
360
+ },
361
+ ],
362
+ internalType: "struct LongTradingSpecs",
363
+ name: "specs",
364
+ type: "tuple",
365
+ },
366
+ {
367
+ internalType: "enum ActionType",
368
+ name: "action",
369
+ type: "uint8",
370
+ },
371
+ {
372
+ components: [
373
+ {
374
+ internalType: "enum StrategyFlag",
375
+ name: "iyFlag",
376
+ type: "uint8",
377
+ },
378
+ {
379
+ internalType: "enum StrategyFlag",
380
+ name: "syRatioFlag",
381
+ type: "uint8",
382
+ },
383
+ ],
384
+ internalType: "struct StrategyState",
385
+ name: "initialState",
386
+ type: "tuple",
387
+ },
388
+ {
389
+ components: [
390
+ {
391
+ internalType: "uint256",
392
+ name: "guessMin",
393
+ type: "uint256",
394
+ },
395
+ {
396
+ internalType: "uint256",
397
+ name: "guessMax",
398
+ type: "uint256",
399
+ },
400
+ {
401
+ internalType: "uint256",
402
+ name: "guessOffchain",
403
+ type: "uint256",
404
+ },
405
+ {
406
+ internalType: "uint256",
407
+ name: "maxIteration",
408
+ type: "uint256",
409
+ },
410
+ {
411
+ internalType: "uint256",
412
+ name: "eps",
413
+ type: "uint256",
414
+ },
415
+ ],
416
+ internalType: "struct ApproxParams",
417
+ name: "botParams",
418
+ type: "tuple",
419
+ },
420
+ {
421
+ components: [
422
+ {
423
+ internalType: "uint256",
424
+ name: "guessMin",
425
+ type: "uint256",
426
+ },
427
+ {
428
+ internalType: "uint256",
429
+ name: "guessMax",
430
+ type: "uint256",
431
+ },
432
+ {
433
+ internalType: "uint256",
434
+ name: "guessOffchain",
435
+ type: "uint256",
436
+ },
437
+ {
438
+ internalType: "uint256",
439
+ name: "maxIteration",
440
+ type: "uint256",
441
+ },
442
+ {
443
+ internalType: "uint256",
444
+ name: "eps",
445
+ type: "uint256",
446
+ },
447
+ ],
448
+ internalType: "struct ApproxParams",
449
+ name: "intParams",
450
+ type: "tuple",
451
+ },
452
+ ],
453
+ name: "searchForBotParam",
454
+ outputs: [
455
+ {
456
+ internalType: "uint256",
457
+ name: "",
458
+ type: "uint256",
459
+ },
460
+ ],
461
+ stateMutability: "view",
462
+ type: "function",
463
+ },
464
+ {
465
+ inputs: [
466
+ {
467
+ components: [
468
+ {
469
+ components: [
470
+ {
471
+ internalType: "int256",
472
+ name: "totalPt",
473
+ type: "int256",
474
+ },
475
+ {
476
+ internalType: "int256",
477
+ name: "totalSy",
478
+ type: "int256",
479
+ },
480
+ {
481
+ internalType: "int256",
482
+ name: "totalLp",
483
+ type: "int256",
484
+ },
485
+ {
486
+ internalType: "address",
487
+ name: "treasury",
488
+ type: "address",
489
+ },
490
+ {
491
+ internalType: "int256",
492
+ name: "scalarRoot",
493
+ type: "int256",
494
+ },
495
+ {
496
+ internalType: "uint256",
497
+ name: "expiry",
498
+ type: "uint256",
499
+ },
500
+ {
501
+ internalType: "uint256",
502
+ name: "lnFeeRateRoot",
503
+ type: "uint256",
504
+ },
505
+ {
506
+ internalType: "uint256",
507
+ name: "reserveFeePercent",
508
+ type: "uint256",
509
+ },
510
+ {
511
+ internalType: "uint256",
512
+ name: "lastLnImpliedRate",
513
+ type: "uint256",
514
+ },
515
+ ],
516
+ internalType: "struct MarketState",
517
+ name: "state",
518
+ type: "tuple",
519
+ },
520
+ {
521
+ internalType: "PYIndex",
522
+ name: "index",
523
+ type: "uint256",
524
+ },
525
+ {
526
+ internalType: "uint256",
527
+ name: "blockTime",
528
+ type: "uint256",
529
+ },
530
+ ],
531
+ internalType: "struct MarketExtState",
532
+ name: "marketExt",
533
+ type: "tuple",
534
+ },
535
+ {
536
+ internalType: "enum ActionType",
537
+ name: "action",
538
+ type: "uint8",
539
+ },
540
+ {
541
+ internalType: "uint256",
542
+ name: "botParam",
543
+ type: "uint256",
544
+ },
545
+ {
546
+ components: [
547
+ {
548
+ internalType: "uint256",
549
+ name: "guessMin",
550
+ type: "uint256",
551
+ },
552
+ {
553
+ internalType: "uint256",
554
+ name: "guessMax",
555
+ type: "uint256",
556
+ },
557
+ {
558
+ internalType: "uint256",
559
+ name: "guessOffchain",
560
+ type: "uint256",
561
+ },
562
+ {
563
+ internalType: "uint256",
564
+ name: "maxIteration",
565
+ type: "uint256",
566
+ },
567
+ {
568
+ internalType: "uint256",
569
+ name: "eps",
570
+ type: "uint256",
571
+ },
572
+ ],
573
+ internalType: "struct ApproxParams",
574
+ name: "intParams",
575
+ type: "tuple",
576
+ },
577
+ ],
578
+ name: "searchForIntParam",
579
+ outputs: [
580
+ {
581
+ internalType: "uint256",
582
+ name: "",
583
+ type: "uint256",
584
+ },
585
+ ],
586
+ stateMutability: "view",
587
+ type: "function",
588
+ },
589
+ {
590
+ inputs: [
591
+ {
592
+ components: [
593
+ {
594
+ internalType: "uint256",
595
+ name: "lpBalance",
596
+ type: "uint256",
597
+ },
598
+ {
599
+ internalType: "uint256",
600
+ name: "ytBalance",
601
+ type: "uint256",
602
+ },
603
+ {
604
+ internalType: "uint256",
605
+ name: "syBalance",
606
+ type: "uint256",
607
+ },
608
+ ],
609
+ internalType: "struct BotState",
610
+ name: "botCalldata",
611
+ type: "tuple",
612
+ },
613
+ {
614
+ components: [
615
+ {
616
+ components: [
617
+ {
618
+ internalType: "int256",
619
+ name: "totalPt",
620
+ type: "int256",
621
+ },
622
+ {
623
+ internalType: "int256",
624
+ name: "totalSy",
625
+ type: "int256",
626
+ },
627
+ {
628
+ internalType: "int256",
629
+ name: "totalLp",
630
+ type: "int256",
631
+ },
632
+ {
633
+ internalType: "address",
634
+ name: "treasury",
635
+ type: "address",
636
+ },
637
+ {
638
+ internalType: "int256",
639
+ name: "scalarRoot",
640
+ type: "int256",
641
+ },
642
+ {
643
+ internalType: "uint256",
644
+ name: "expiry",
645
+ type: "uint256",
646
+ },
647
+ {
648
+ internalType: "uint256",
649
+ name: "lnFeeRateRoot",
650
+ type: "uint256",
651
+ },
652
+ {
653
+ internalType: "uint256",
654
+ name: "reserveFeePercent",
655
+ type: "uint256",
656
+ },
657
+ {
658
+ internalType: "uint256",
659
+ name: "lastLnImpliedRate",
660
+ type: "uint256",
661
+ },
662
+ ],
663
+ internalType: "struct MarketState",
664
+ name: "state",
665
+ type: "tuple",
666
+ },
667
+ {
668
+ internalType: "PYIndex",
669
+ name: "index",
670
+ type: "uint256",
671
+ },
672
+ {
673
+ internalType: "uint256",
674
+ name: "blockTime",
675
+ type: "uint256",
676
+ },
677
+ ],
678
+ internalType: "struct MarketExtState",
679
+ name: "marketExtCalldata",
680
+ type: "tuple",
681
+ },
682
+ {
683
+ internalType: "enum ActionType",
684
+ name: "action",
685
+ type: "uint8",
686
+ },
687
+ {
688
+ internalType: "uint256",
689
+ name: "botParam",
690
+ type: "uint256",
691
+ },
692
+ {
693
+ components: [
694
+ {
695
+ internalType: "uint256",
696
+ name: "guessMin",
697
+ type: "uint256",
698
+ },
699
+ {
700
+ internalType: "uint256",
701
+ name: "guessMax",
702
+ type: "uint256",
703
+ },
704
+ {
705
+ internalType: "uint256",
706
+ name: "guessOffchain",
707
+ type: "uint256",
708
+ },
709
+ {
710
+ internalType: "uint256",
711
+ name: "maxIteration",
712
+ type: "uint256",
713
+ },
714
+ {
715
+ internalType: "uint256",
716
+ name: "eps",
717
+ type: "uint256",
718
+ },
719
+ ],
720
+ internalType: "struct ApproxParams",
721
+ name: "swapApproxParams",
722
+ type: "tuple",
723
+ },
724
+ ],
725
+ name: "simulateAction",
726
+ outputs: [
727
+ {
728
+ internalType: "bool",
729
+ name: "success",
730
+ type: "bool",
731
+ },
732
+ {
733
+ components: [
734
+ {
735
+ internalType: "uint256",
736
+ name: "lpBalance",
737
+ type: "uint256",
738
+ },
739
+ {
740
+ internalType: "uint256",
741
+ name: "ytBalance",
742
+ type: "uint256",
743
+ },
744
+ {
745
+ internalType: "uint256",
746
+ name: "syBalance",
747
+ type: "uint256",
748
+ },
749
+ ],
750
+ internalType: "struct BotState",
751
+ name: "bot",
752
+ type: "tuple",
753
+ },
754
+ {
755
+ components: [
756
+ {
757
+ components: [
758
+ {
759
+ internalType: "int256",
760
+ name: "totalPt",
761
+ type: "int256",
762
+ },
763
+ {
764
+ internalType: "int256",
765
+ name: "totalSy",
766
+ type: "int256",
767
+ },
768
+ {
769
+ internalType: "int256",
770
+ name: "totalLp",
771
+ type: "int256",
772
+ },
773
+ {
774
+ internalType: "address",
775
+ name: "treasury",
776
+ type: "address",
777
+ },
778
+ {
779
+ internalType: "int256",
780
+ name: "scalarRoot",
781
+ type: "int256",
782
+ },
783
+ {
784
+ internalType: "uint256",
785
+ name: "expiry",
786
+ type: "uint256",
787
+ },
788
+ {
789
+ internalType: "uint256",
790
+ name: "lnFeeRateRoot",
791
+ type: "uint256",
792
+ },
793
+ {
794
+ internalType: "uint256",
795
+ name: "reserveFeePercent",
796
+ type: "uint256",
797
+ },
798
+ {
799
+ internalType: "uint256",
800
+ name: "lastLnImpliedRate",
801
+ type: "uint256",
802
+ },
803
+ ],
804
+ internalType: "struct MarketState",
805
+ name: "state",
806
+ type: "tuple",
807
+ },
808
+ {
809
+ internalType: "PYIndex",
810
+ name: "index",
811
+ type: "uint256",
812
+ },
813
+ {
814
+ internalType: "uint256",
815
+ name: "blockTime",
816
+ type: "uint256",
817
+ },
818
+ ],
819
+ internalType: "struct MarketExtState",
820
+ name: "marketExt",
821
+ type: "tuple",
822
+ },
823
+ ],
824
+ stateMutability: "view",
825
+ type: "function",
826
+ },
827
+ {
828
+ inputs: [
829
+ {
830
+ components: [
831
+ {
832
+ internalType: "uint256",
833
+ name: "lpBalance",
834
+ type: "uint256",
835
+ },
836
+ {
837
+ internalType: "uint256",
838
+ name: "ytBalance",
839
+ type: "uint256",
840
+ },
841
+ {
842
+ internalType: "uint256",
843
+ name: "syBalance",
844
+ type: "uint256",
845
+ },
846
+ ],
847
+ internalType: "struct BotState",
848
+ name: "bot",
849
+ type: "tuple",
850
+ },
851
+ {
852
+ components: [
853
+ {
854
+ components: [
855
+ {
856
+ internalType: "int256",
857
+ name: "totalPt",
858
+ type: "int256",
859
+ },
860
+ {
861
+ internalType: "int256",
862
+ name: "totalSy",
863
+ type: "int256",
864
+ },
865
+ {
866
+ internalType: "int256",
867
+ name: "totalLp",
868
+ type: "int256",
869
+ },
870
+ {
871
+ internalType: "address",
872
+ name: "treasury",
873
+ type: "address",
874
+ },
875
+ {
876
+ internalType: "int256",
877
+ name: "scalarRoot",
878
+ type: "int256",
879
+ },
880
+ {
881
+ internalType: "uint256",
882
+ name: "expiry",
883
+ type: "uint256",
884
+ },
885
+ {
886
+ internalType: "uint256",
887
+ name: "lnFeeRateRoot",
888
+ type: "uint256",
889
+ },
890
+ {
891
+ internalType: "uint256",
892
+ name: "reserveFeePercent",
893
+ type: "uint256",
894
+ },
895
+ {
896
+ internalType: "uint256",
897
+ name: "lastLnImpliedRate",
898
+ type: "uint256",
899
+ },
900
+ ],
901
+ internalType: "struct MarketState",
902
+ name: "state",
903
+ type: "tuple",
904
+ },
905
+ {
906
+ internalType: "PYIndex",
907
+ name: "index",
908
+ type: "uint256",
909
+ },
910
+ {
911
+ internalType: "uint256",
912
+ name: "blockTime",
913
+ type: "uint256",
914
+ },
915
+ ],
916
+ internalType: "struct MarketExtState",
917
+ name: "marketExt",
918
+ type: "tuple",
919
+ },
920
+ {
921
+ components: [
922
+ {
923
+ internalType: "uint256",
924
+ name: "lowerIyLimit",
925
+ type: "uint256",
926
+ },
927
+ {
928
+ internalType: "uint256",
929
+ name: "upperIyLimit",
930
+ type: "uint256",
931
+ },
932
+ {
933
+ internalType: "uint256",
934
+ name: "floatingSyRatioLimit",
935
+ type: "uint256",
936
+ },
937
+ {
938
+ internalType: "uint256",
939
+ name: "ytPtRatioLimit",
940
+ type: "uint256",
941
+ },
942
+ ],
943
+ internalType: "struct LongTradingSpecs",
944
+ name: "specs",
945
+ type: "tuple",
946
+ },
947
+ ],
948
+ name: "strategyState",
949
+ outputs: [
950
+ {
951
+ components: [
952
+ {
953
+ internalType: "enum StrategyFlag",
954
+ name: "iyFlag",
955
+ type: "uint8",
956
+ },
957
+ {
958
+ internalType: "enum StrategyFlag",
959
+ name: "syRatioFlag",
960
+ type: "uint8",
961
+ },
962
+ ],
963
+ internalType: "struct StrategyState",
964
+ name: "",
965
+ type: "tuple",
966
+ },
967
+ ],
968
+ stateMutability: "view",
969
+ type: "function",
970
+ },
971
+ {
972
+ inputs: [
973
+ {
974
+ components: [
975
+ {
976
+ internalType: "uint256",
977
+ name: "lpBalance",
978
+ type: "uint256",
979
+ },
980
+ {
981
+ internalType: "uint256",
982
+ name: "ytBalance",
983
+ type: "uint256",
984
+ },
985
+ {
986
+ internalType: "uint256",
987
+ name: "syBalance",
988
+ type: "uint256",
989
+ },
990
+ ],
991
+ internalType: "struct BotState",
992
+ name: "bot",
993
+ type: "tuple",
994
+ },
995
+ {
996
+ components: [
997
+ {
998
+ components: [
999
+ {
1000
+ internalType: "int256",
1001
+ name: "totalPt",
1002
+ type: "int256",
1003
+ },
1004
+ {
1005
+ internalType: "int256",
1006
+ name: "totalSy",
1007
+ type: "int256",
1008
+ },
1009
+ {
1010
+ internalType: "int256",
1011
+ name: "totalLp",
1012
+ type: "int256",
1013
+ },
1014
+ {
1015
+ internalType: "address",
1016
+ name: "treasury",
1017
+ type: "address",
1018
+ },
1019
+ {
1020
+ internalType: "int256",
1021
+ name: "scalarRoot",
1022
+ type: "int256",
1023
+ },
1024
+ {
1025
+ internalType: "uint256",
1026
+ name: "expiry",
1027
+ type: "uint256",
1028
+ },
1029
+ {
1030
+ internalType: "uint256",
1031
+ name: "lnFeeRateRoot",
1032
+ type: "uint256",
1033
+ },
1034
+ {
1035
+ internalType: "uint256",
1036
+ name: "reserveFeePercent",
1037
+ type: "uint256",
1038
+ },
1039
+ {
1040
+ internalType: "uint256",
1041
+ name: "lastLnImpliedRate",
1042
+ type: "uint256",
1043
+ },
1044
+ ],
1045
+ internalType: "struct MarketState",
1046
+ name: "state",
1047
+ type: "tuple",
1048
+ },
1049
+ {
1050
+ internalType: "PYIndex",
1051
+ name: "index",
1052
+ type: "uint256",
1053
+ },
1054
+ {
1055
+ internalType: "uint256",
1056
+ name: "blockTime",
1057
+ type: "uint256",
1058
+ },
1059
+ ],
1060
+ internalType: "struct MarketExtState",
1061
+ name: "marketExt",
1062
+ type: "tuple",
1063
+ },
1064
+ ],
1065
+ name: "tvlInSy",
1066
+ outputs: [
1067
+ {
1068
+ internalType: "uint256",
1069
+ name: "",
1070
+ type: "uint256",
1071
+ },
1072
+ ],
1073
+ stateMutability: "view",
1074
+ type: "function",
1075
+ },
1076
+ ];
1077
+
1078
+ const _bytecode =
1079
+ "0x60a06040523480156200001157600080fd5b5060405162003a9638038062003a96833981016040819052620000349162000046565b6001600160a01b031660805262000078565b6000602082840312156200005957600080fd5b81516001600160a01b03811681146200007157600080fd5b9392505050565b6080516139ee620000a86000396000818160ee015281816102b9015281816103d101526107d201526139ee6000f3fe608060405234801561001057600080fd5b50600436106100785760003560e01c80631c9119cd1461007d57806333cace2a146100a857806335b70146146100c85780635a15345a146100e9578063675ea12b1461011d578063b2ba84da14610130578063db71ba3a14610143578063f829d9e414610163575b600080fd5b61009061008b366004612e64565b610183565b60405161009f93929190612ee4565b60405180910390f35b6100bb6100b6366004612fca565b61029f565b60405161009f919061307a565b6100db6100d6366004613088565b61033a565b60405190815260200161009f565b6101107f000000000000000000000000000000000000000000000000000000000000000081565b60405161009f91906130b5565b6100db61012b3660046130db565b610362565b6100db61013e366004613142565b6103b7565b610156610151366004613202565b61045f565b60405161009f919061323b565b610176610171366004613293565b6107b1565b60405161009f919061330d565b60006101a960405180606001604052806000815260200160008152602001600081525090565b6101b1612cb6565b6101c03689900389018961331b565b91506101d136889003880188613337565b905060008660058111156101e7576101e7613050565b036101fe576101f782828761085d565b9250610294565b600186600581111561021257610212613050565b03610222576101f78282876108b9565b600286600581111561023657610236613050565b03610246576101f782828761092c565b600386600581111561025a5761025a613050565b0361026a576101f782828761097b565b600486600581111561027e5761027e613050565b0361028f576101f7828287876109b6565b600092505b955095509592505050565b6040516319e5671560e11b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906333cace2a906102f090869086906004016133e7565b602060405180830381865afa15801561030d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103319190613402565b90505b92915050565b600061033161034e3685900385018561331b565b61035d36859003850185613337565b6109eb565b6000600484600581111561037857610378613050565b036103ab576103a461038f36879003870187613337565b8461039f3686900386018661341f565b610ac7565b90506103af565b5060005b949350505050565b60405163a546c1d160e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a546c1d190610412908b908b908b908b908b908b908b90600401613528565b602060405180830381865afa15801561042f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045391906135b3565b98975050505050505050565b6060600080836001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156104a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c691906135cc565b92505091506000816001600160a01b031663c4f59f9b6040518163ffffffff1660e01b8152600401600060405180830381865afa15801561050b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610533919081019061363c565b604051637d24da4d60e01b81526001600160a01b0388811660048301526001602483018190526044830152919250600091841690637d24da4d906064016000604051808303816000875af115801561058f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105b79190810190613740565b91506105c69050858383610b30565b94506000846001600160a01b031663c4f59f9b6040518163ffffffff1660e01b8152600401600060405180830381865afa158015610608573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610630919081019061363c565b90506000856001600160a01b031663ef5cfb8c8a6040518263ffffffff1660e01b815260040161066091906130b5565b6000604051808303816000875af115801561067f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106a79190810190613787565b90506106b4878383610b30565b96506000886001600160a01b031663c4f59f9b6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156106f6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261071e919081019061363c565b90506000896001600160a01b0316639262187b8c6040518263ffffffff1660e01b815260040161074e91906130b5565b6000604051808303816000875af115801561076d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107959190810190613787565b90506107a2898383610b30565b9b9a5050505050505050505050565b604080518082018252600080825260208201529051633e0a767960e21b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f829d9e490610813908790879087906004016137bb565b6040805180830381865afa15801561082f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085391906137e5565b90505b9392505050565b60008061086a8484610bed565b90508460400151811115610882576000915050610856565b80856040018181516108949190613859565b9052506020850180518491906108ab90839061386c565b905250600195945050505050565b600083604001518211156108cf57506000610856565b6000806108dc8585610c34565b9150915083866040018181516108f29190613859565b90525085518290879061090690839061386c565b90525060208601805182919061091d90839061386c565b90525060019695505050505050565b6000808061093a8585610cce565b91509150856040015181111561095557600092505050610856565b80866040018181516109679190613859565b90525085518290879061091d90839061386c565b600080806109898585610d62565b9150915085602001518111156109a457600092505050610856565b80866020018181516109679190613859565b83516000908311156109ca575060006103af565b60006109d7858585610e76565b905083866000018181516109069190613859565b6000806000610a07856000015185610f1790919063ffffffff16565b915091506000828660400151610a1d919061386c565b905085602001518211610a7357610a348583610f8a565b610a3e908261386c565b9050610a62828760200151610a539190613859565b610a5c87610f9c565b90610fda565b610a6c908261386c565b9050610abe565b6020860151610a83908690610f8a565b610a8d908261386c565b9050610ab1866020015183610aa29190613859565b610aab87610f9c565b9061103f565b610abb908261386c565b90505b95945050505050565b825160009081908190610ada9086611063565b915091506000610af783886020015161109390919063ffffffff16565b90506000610b05828461386c565b602089015160408a01518a51929350610b2292919084908a61109f565b509998505050505050505050565b80518251849114610b885760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e416d6f756e744c69623a206c656e677468206d69736d617463680060448201526064015b60405180910390fd5b60005b8351811015610be557610bd182858381518110610baa57610baa61387f565b6020026020010151858481518110610bc457610bc461387f565b60200260200101516111b5565b915080610bdd81613895565b915050610b8b565b509392505050565b6020820151604083015183516000928392610c0b9291908690611377565b505090506000610c288486602001516113c890919063ffffffff16565b9050610abe81836113d4565b6000806000610c58610c4d8660000151602001516113eb565b602087015190611093565b855151610c64906113eb565b610c6e919061386c565b855151610c7a906113eb565b610c8490866138ae565b610c8e91906138db565b6020860151909150610ca09082611093565b9150610cbf610caf8286613859565b60408701518751919085906113fe565b50909793965092945050505050565b6000806000610cf685602001518587604001518860000151611469909392919063ffffffff16565b5050855151909150600090610d0a906113eb565b865160200151610d19906113eb565b610d2390876138ae565b610d2d91906138db565b60408701518751919250610d459190839088906113fe565b50909550610d5791508290508361386c565b925050509250929050565b6000806000610d8a85602001518587604001518860000151611469909392919063ffffffff16565b505060208601519091506000610da082846138ae565b610db2670de0b6b3a7640000886138ae565b610dbc9190613859565b875151909150600090610dce906113eb565b83610de08a60000151602001516113eb565b610dea91906138ae565b610df491906138db565b610e0690670de0b6b3a764000061386c565b90506000610e1482846138db565b9050610e208189613859565b95506000610e3b878b6020015161149790919063ffffffff16565b90506000610e498783613859565b60408c01518c51919250610e619190839086906113fe565b50909d999c50989a5050505050505050505050565b825160009081908190610e899086611063565b915091506000610ea683886020015161109390919063ffffffff16565b90506000610eb4828461386c565b9050600080610edb8a60200151848c60400151610ed08c6114a3565b8e519392919061109f565b5060208c015160408d01518d51939550919350610efa92918490611377565b5050508184610f09919061386c565b9a9950505050505050505050565b600080610f2b8460000151604001516113eb565b845160200151610f3a906113eb565b610f4490856138ae565b610f4e91906138db565b9150610f618460000151604001516113eb565b845151610f6d906113eb565b610f7790856138ae565b610f8191906138db565b90509250929050565b60208201516000906103319083611497565b610fa4612cb6565b6040518060600160405280610fbc8460000151611517565b81526020018360200151815260200183604001518152509050919050565b6020820151604083015183516000928392610ff89291908690611469565b50509050600061101582866020015161159490919063ffffffff16565b905060006110238286613859565b60208701519091506110359082611497565b9695505050505050565b602082015160408301518351600092611059928590611377565b5090949350505050565b60008060008061107b86611076876115a1565b6115b7565b91509150611088826113eb565b9350610d57816113eb565b60006103318383611683565b60008080806110af8989886116a2565b905084604001516000036110f15784516110c990886117a3565b855260208501516110e3906110de8b846117b9565b611835565b60208601526110f185611844565b60005b856060015181101561119b57600061110c87836118a0565b905060008061111d8d868e8661190c565b509092509050600061112f8d84611093565b9050600061113d8286613859565b90508c811161117457611155818e8d6080015161193d565b1561116c5750975091955090935061029492505050565b848b52611185565b61117f600186613859565b60208c01525b50505050508061119490613895565b90506110f4565b50604051637d388ed960e11b815260040160405180910390fd5b6060816000036111c6575082610856565b835160005b855181101561122457846001600160a01b03168682815181106111f0576111f061387f565b6020026020010151600001516001600160a01b03160361121257809150611224565b8061121c81613895565b9150506111cb565b5084518114611234576000611237565b60015b60ff168551611246919061386c565b6001600160401b0381111561125d5761125d612d64565b6040519080825280602002602001820160405280156112a257816020015b604080518082019091526000808252602082015281526020019060019003908161127b5790505b50915060005b85518110156112fb578581815181106112c3576112c361387f565b60200260200101518382815181106112dd576112dd61387f565b602002602001018190525080806112f390613895565b9150506112a8565b506040518060400160405280856001600160a01b031681526020018487518414611342578784815181106113315761133161387f565b602002602001015160200151611345565b60005b61134f919061386c565b8152508282815181106113645761136461387f565b6020026020010181905250509392505050565b6000806000806000806113948a8a61138e8b611970565b8a611987565b9250925092506113a3836113eb565b95506113ae826113eb565b94506113b9816113eb565b93505050509450945094915050565b60006103318383611a22565b6000818310156113e5576000610331565b50900390565b6000808212156113fa57600080fd5b5090565b6000806000806000806000806114268c6114178d6115a1565b6114208d6115a1565b8c611a4e565b9350935093509350611437846113eb565b9750611442836113eb565b965061144d826113eb565b9550611458816113eb565b945050505050945094509450949050565b6000806000806000806114808a8a61138e8b6115a1565b9250925092506113a361149284611c01565b6113eb565b60006103318383611c0f565b6114d56040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6040518060a001604052808360000151815260200183602001518152602001836040015181526020018360600151815260200183608001518152509050919050565b61151f612cdd565b60405180610120016040528083600001518152602001836020015181526020018360400151815260200183606001516001600160a01b03168152602001836080015181526020018360a0015181526020018360c0015181526020018360e0015181526020018361010001518152509050919050565b6000826103af8184611c24565b60006001600160ff1b038211156113fa57600080fd5b600080826000036115db576040516325daaec360e01b815260040160405180910390fd5b604084015160208501516115ef90856138ef565b6115f9919061391f565b604085015185519193509061160e90856138ef565b611618919061391f565b905081158015611626575080155b1561164457604051631997ea8d60e31b815260040160405180910390fd5b60408401516116539084611c3c565b604085015283516116649082611c3c565b845260208401516116759083611c3c565b602090940193909352929050565b6000670de0b6b3a764000061169884846138ae565b61033191906138db565b6116cd6040518060800160405280600081526020016000815260200160008152602001600081525090565b60a084015182106116f15760405163b2094b5960e01b815260040160405180910390fd5b6000828560a001516117039190613859565b905061170f8582611c83565b82526020850151611721908590611cdf565b60208301528451158061173657506020820151155b15611764578451602083015160405163b1c4aefb60e01b815260048101929092526024820152604401610b7f565b61178285600001518661010001518460200151856000015185611d16565b604083015260c08501516117969082611d97565b6060830152509392505050565b60008183116117b25781610331565b5090919050565b600080600090506000600184602001516117d39190613859565b90505b808214610be557600060026117eb838561386c565b6117f690600161386c565b61180091906138db565b9050600061181386886000015184611dd0565b121561182b57611824600182613859565b915061182f565b8092505b506117d6565b60008183106117b25781610331565b6020810151815111806118625750670de0b6b3a76400008160800151115b1561189d57805160208201516080830151604051632cc06bc160e21b8152600481019390935260248301919091526044820152606401610b7f565b50565b6000811580156118b35750604083015115155b156118c357506040820151610334565b60208301518351116118f357602083015183516002916118e29161386c565b6118ec91906138db565b9050610334565b604051637d388ed960e11b815260040160405180910390fd5b6000808080808061192a89896119218a61394d565b8d929190611ec8565b919c909b50909950975050505050505050565b600082841115801561085357506119658361196084670de0b6b3a7640000613859565b61201c565b909310159392505050565b600061197b826115a1565b610334906000196138ef565b600080600061199a8760a0015185101590565b156119b85760405163b2094b5960e01b815260040160405180910390fd5b865185126119e6578651604051632185509b60e21b8152600481019190915260248101869052604401610b7f565b60006119f38888876116a2565b9050611a0188828989611ec8565b91955093509150611a178882898988878b61203c565b509450945094915050565b600082600181611a3a670de0b6b3a7640000866138ae565b611a44919061386c565b6116989190613859565b6000808080861580611a5e575085155b15611a7c576040516325daaec360e01b815260040160405180910390fd5b60a08801518510611aa05760405163b2094b5960e01b815260040160405180910390fd5b8760400151600003611ae8576103e8611acc611ac7611ac26114928a8c6138ef565b6120ce565b6115a1565b611ad69190613969565b92506103e89350869150859050611b8b565b8751604089015160009190611afd90896138ef565b611b07919061391f565b9050600089602001518a604001518a611b2091906138ef565b611b2a919061391f565b905080821215611b60578194508792508960400151858b60200151611b4f91906138ef565b611b59919061391f565b9350611b88565b8094508893508960400151858b60000151611b7b91906138ef565b611b85919061391f565b92505b50505b60008313611bac57604051631997ea8d60e31b815260040160405180910390fd5b8188602001818151611bbe9190613990565b905250875181908990611bd2908390613990565b905250611bdf8484613990565b88604001818151611bf09190613990565b905250929791965094509092509050565b6000610334826000196138ef565b600082611698670de0b6b3a7640000846138ae565b6000670de0b6b3a7640000600181611a3a86866138ae565b600081831215611c795760405162461bcd60e51b81526020600482015260086024820152676e6567617469766560c01b6044820152606401610b7f565b6103318284613969565b6000611c8e826115a1565b611ca0611ac76201518061016d6138ae565b8460800151611caf91906138ef565b611cb9919061391f565b90506000811361033457604051630e520c3b60e11b815260048101829052602401610b7f565b60008060008312611cf1576001611cf5565b6000195b9050611d0c611ac785611d078661213e565b611683565b6103af90826138ef565b600080611d238684611d97565b9050670de0b6b3a7640000811215611d515760405163329e322960e21b815260048101829052602401610b7f565b6000611d67611d60878a613990565b8990612155565b90506000611d7482612184565b9050611d808187612155565b611d8a9084613969565b9998505050505050505050565b600080611da96201518061016d6138ae565b611db384866138ae565b611dbd91906138db565b90506103af611dcb826115a1565b6121d7565b600080828560200151611de39190613969565b90506000611df18585613990565b9050600082138015611e035750600081135b611e445760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a59081c1d151bd3585c9ad95d60721b6044820152606401610b7f565b6000611e72611e5384846138ef565b6020890151611e629089613990565b611e6c90886138ef565b90612155565b90506000611e88611e838486612155565b6125ec565b8851909150600090611ea390670de0b6b3a764000090612155565b9050611eb981611eb38486613969565b90612678565b8960400151611d8a9190613969565b600080600080611eeb8860000151886020015189600001518a6040015189612696565b90506000611f01611efc8784612155565b611c01565b60608901519091506000871315611f70576000611f1e8483612155565b9050670de0b6b3a7640000811215611f4c5760405163329e322960e21b815260048101829052602401610b7f565b611f68611f6183670de0b6b3a7640000613969565b8490612678565b915050611f9d565b611f9a81611f8681670de0b6b3a7640000613969565b611f9090856138ef565b611efc919061391f565b90505b60006064611fae8c60e001516115a1565b611fb890846138ef565b611fc2919061391f565b90506000611fd08385613969565b905060008112611fe957611fe48a82612753565b611ff3565b611ff38a82612780565b9750611fff8a84612753565b965061200b8a83612753565b955050505050509450945094915050565b60008061202983856138ae565b670de0b6b3a76400009004949350505050565b6000818860a0015161204e9190613859565b885190915061205d9086611c3c565b885261207761206c8486613990565b60208a015190611c3c565b60208901819052885161209c9161208f908990611cdf565b895160408b0151856127ad565b61010089018190526000036120c457604051635534d70f60e11b815260040160405180910390fd5b5050505050505050565b6000600382111561212f57508060006120e86002836138db565b6120f390600161386c565b90505b818110156121295790508060028161210e81866138db565b612118919061386c565b61212291906138db565b90506120f6565b50919050565b8115612139575060015b919050565b60008082136113fa576121508261394d565b610334565b60008061216a670de0b6b3a7640000856138ef565b905082818161217b5761217b6138c5565b05949350505050565b6000670de0b6b3a764000082036121ae5760405163a9c8b14d60e01b815260040160405180910390fd5b60006121cc6121c584670de0b6b3a7640000613969565b8490612155565b9050610856816125ec565b6000680238fd42c5cf03ffff1982121580156121fc575068070c1cc73b00c800008213155b61223b5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b6044820152606401610b7f565b600082121561227357612250826000036121d7565b6a0c097ce7bc90715b34b9f160241b8161226c5761226c6138c5565b0592915050565b60006806f05b59d3b200000083126122b157506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b6122e7565b6803782dace9d900000083126122e357506803782dace9d8ffffff19909101906b1425982cf597cd205cef73806122e7565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac6200000084126123375768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412612373576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b1880000084126123ad57682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c40000084126123e7576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac6200000841261242057680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126124595768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b18800008412612492576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126124cb5768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b600080821361262d5760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b6044820152606401610b7f565b670c7d713b49da00008213801561264b5750670f43fc2c04ee000082125b1561266f57670de0b6b3a7640000612662836127f4565b8161226c5761226c6138c5565b61033482612913565b60008061268583856138ef565b9050670de0b6b3a76400008161217b565b6000806126a38784611c3c565b905060006126bb6126b4888a613990565b8390612155565b9050670d529ae9e86000008113156126f757604051637e34684f60e11b815260048101829052670d529ae9e86000006024820152604401610b7f565b600061270282612184565b90508561270f8289612155565b6127199190613990565b9350670de0b6b3a76400008412156127475760405163329e322960e21b815260048101859052602401610b7f565b50505095945050505050565b60008060008312612765576001612769565b6000195b9050611d0c611ac78561277b8661213e565b611c0f565b60008060008312612792576001612796565b6000195b9050611d0c611ac7856127a88661213e565b611a22565b6000806127be878787876000612696565b905060006127ce611492836125ec565b9050836127e06201518061016d6138ae565b6127ea90836138ae565b61045391906138db565b670de0b6b3a7640000026000806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff1985010281612835576128356138c5565b05905060006a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b6000670de0b6b3a76400008212156129545761294b826a0c097ce7bc90715b34b9f160241b81612945576129456138c5565b05612913565b60000392915050565b6000775803bcc5cb9634ba4cfb2213f784019318ed4dcb6017880f60361b831261299f5772195e54c5dd42177f53a27172fa9ec63026282760241b830592506806f05b59d3b2000000015b6f8bcc0026baae9e45e470190267a230cf60191b83126129d6576b1425982cf597cd205cef7380830592506803782dace9d9000000015b606492830292026e01855144814a7ff805980ff00840008312612a1e576e01855144814a7ff805980ff008400068056bc75e2d63100000840205925068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a7008312612a59576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000084020592506856bc75e2d631000000015b693f1fce3da636ea5cf8508312612a9057693f1fce3da636ea5cf85068056bc75e2d631000008402059250682b5e3af16b18800000015b690127fa27722cc06cc5e28312612ac757690127fa27722cc06cc5e268056bc75e2d6310000084020592506815af1d78b58c400000015b68280e60114edb805d038312612afc5768280e60114edb805d0368056bc75e2d631000008402059250680ad78ebc5ac6200000015b680ebc5fb417461211108312612b2757680ebc5fb4174612111068056bc75e2d631000009384020592015b6808f00f760a4b2db55d8312612b5c576808f00f760a4b2db55d68056bc75e2d6310000084020592506802b5e3af16b1880000015b6806f5f17757889379378312612b91576806f5f177578893793768056bc75e2d63100000840205925068015af1d78b58c40000015b6806248f33704b2866038312612bc5576806248f33704b28660368056bc75e2d63100000840205925067ad78ebc5ac620000015b6805c548670b9510e7ac8312612bf9576805c548670b9510e7ac68056bc75e2d6310000084020592506756bc75e2d6310000015b600068056bc75e2d63100000840168056bc75e2d631000008086030281612c2257612c226138c5565b059050600068056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b820501600202606485820105979650505050505050565b6040518060600160405280612cc9612cdd565b815260200160008152602001600081525090565b60405180610120016040528060008152602001600081526020016000815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081525090565b60006060828403121561212957600080fd5b6000610160828403121561212957600080fd5b6006811061189d57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b0381118282101715612d9c57612d9c612d64565b60405290565b60405161012081016001600160401b0381118282101715612d9c57612d9c612d64565b604051601f8201601f191681016001600160401b0381118282101715612ded57612ded612d64565b604052919050565b600060a08284031215612e0757600080fd5b60405160a081016001600160401b0381118282101715612e2957612e29612d64565b806040525080915082358152602083013560208201526040830135604082015260608301356060820152608083013560808201525092915050565b60008060008060006102a08688031215612e7d57600080fd5b612e878787612d32565b9450612e968760608801612d44565b93506101c0860135612ea781612d57565b92506101e08601359150612ebf876102008801612df5565b90509295509295909350565b8051825260208082015190830152604090810151910152565b83151581526101e08101612efb6020830185612ecb565b825180516080840152602081015160a0840152604081015160c084015260018060a01b0360608201511660e08401526080810151610100818186015260a083015161012086015260c083015161014086015260e08301516101608601528083015161018086015250505060208301516101a083015260408301516101c0830152949350505050565b600060608284031215612f9557600080fd5b612f9d612d7a565b905081358152602082013560208201526040820135604082015292915050565b6003811061189d57600080fd5b60008082840360a0811215612fde57600080fd5b612fe88585612f83565b92506040605f1982011215612ffc57600080fd5b50604080519081016001600160401b038111828210171561301f5761301f612d64565b604052606084013561303081612fbd565b8152608084013561304081612fbd565b6020820152919491935090915050565b634e487b7160e01b600052602160045260246000fd5b6006811061307657613076613050565b9052565b602081016103348284613066565b6000806101c0838503121561309c57600080fd5b6130a68484612d32565b9150610f818460608501612d44565b6001600160a01b0391909116815260200190565b600060a0828403121561212957600080fd5b60008060008061024085870312156130f257600080fd5b6130fc8686612d44565b935061016085013561310d81612d57565b92506101808501359150613125866101a087016130c9565b905092959194509250565b60006080828403121561212957600080fd5b60008060008060008060008789036103e081121561315f57600080fd5b6131698a8a612d32565b97506131788a60608b01612d44565b96506131888a6101c08b01613130565b955061024089013561319981612d57565b9450604061025f19820112156131ae57600080fd5b50610260880192506131c4896102a08a016130c9565b91506131d4896103408a016130c9565b905092959891949750929550565b6001600160a01b038116811461189d57600080fd5b8035612139816131e2565b6000806040838503121561321557600080fd5b8235613220816131e2565b91506020830135613230816131e2565b809150509250929050565b602080825282518282018190526000919060409081850190868401855b8281101561328657815180516001600160a01b03168552860151868501529284019290850190600101613258565b5091979650505050505050565b600080600061024084860312156132a957600080fd5b6132b38585612d32565b92506132c28560608601612d44565b91506132d2856101c08601613130565b90509250925092565b6003811061307657613076613050565b6132f68282516132db565b602081015161330860208401826132db565b505050565b6040810161033482846132eb565b60006060828403121561332d57600080fd5b6103318383612f83565b600081830361016081121561334b57600080fd5b613353612d7a565b6101208083121561336357600080fd5b61336b612da2565b9250843583526020850135602084015260408501356040840152613391606086016131f7565b60608401526080858101359084015260a0808601359084015260c0808601359084015260e08086013590840152610100808601359084015291815290830135602082015261014090920135604083015250919050565b60a081016133f58285612ecb565b61085660608301846132eb565b60006020828403121561341457600080fd5b815161085681612d57565b600060a0828403121561343157600080fd5b6103318383612df5565b8035825260208082013590830152604090810135910152565b803582526020810135602083015260408101356040830152606081013561347a816131e2565b6001600160a01b031660608301526080818101359083015260a0818101359083015260c0808201359083015260e080820135908301526101008082013590830152610120808201359083015261014090810135910152565b803582526020810135602083015260408101356040830152606081013560608301525050565b80358252602081013560208301526040810135604083015260608101356060830152608081013560808301525050565b6103e08101613537828a61343b565b6135446060830189613454565b6135526101c08301886134d2565b613560610240830187613066565b843561356b81612fbd565b6135796102608401826132db565b50602085013561358881612fbd565b6135966102808401826132db565b506135a56102a08301856134f8565b6104536103408301846134f8565b6000602082840312156135c557600080fd5b5051919050565b6000806000606084860312156135e157600080fd5b83516135ec816131e2565b60208501519093506135fd816131e2565b604085015190925061360e816131e2565b809150509250925092565b60006001600160401b0382111561363257613632612d64565b5060051b60200190565b6000602080838503121561364f57600080fd5b82516001600160401b0381111561366557600080fd5b8301601f8101851361367657600080fd5b805161368961368482613619565b612dc5565b81815260059190911b820183019083810190878311156136a857600080fd5b928401925b828410156136cf5783516136c0816131e2565b825292840192908401906136ad565b979650505050505050565b600082601f8301126136eb57600080fd5b815160206136fb61368483613619565b82815260059290921b8401810191818101908684111561371a57600080fd5b8286015b84811015613735578051835291830191830161371e565b509695505050505050565b6000806040838503121561375357600080fd5b825160208401519092506001600160401b0381111561377157600080fd5b61377d858286016136da565b9150509250929050565b60006020828403121561379957600080fd5b81516001600160401b038111156137af57600080fd5b6103af848285016136da565b61024081016137ca828661343b565b6137d76060830185613454565b6103af6101c08301846134d2565b6000604082840312156137f757600080fd5b604080519081016001600160401b038111828210171561381957613819612d64565b604052825161382781612fbd565b8152602083015161383781612fbd565b60208201529392505050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561033457610334613843565b8082018082111561033457610334613843565b634e487b7160e01b600052603260045260246000fd5b6000600182016138a7576138a7613843565b5060010190565b808202811582820484141761033457610334613843565b634e487b7160e01b600052601260045260246000fd5b6000826138ea576138ea6138c5565b500490565b80820260008212600160ff1b8414161561390b5761390b613843565b818105831482151761033457610334613843565b60008261392e5761392e6138c5565b600160ff1b82146000198414161561394857613948613843565b500590565b6000600160ff1b820161396257613962613843565b5060000390565b818103600083128015838313168383128216171561398957613989613843565b5092915050565b80820182811260008312801582168215821617156139b0576139b0613843565b50509291505056fea26469706673582212200aba339e29db5508b2dee6e9ce22f39055296cf2384e1ea944962a17f22bd17264736f6c63430008110033";
1080
+
1081
+ type TradingBotOffchainConstructorParams =
1082
+ | [signer?: Signer]
1083
+ | ConstructorParameters<typeof ContractFactory>;
1084
+
1085
+ const isSuperArgs = (
1086
+ xs: TradingBotOffchainConstructorParams
1087
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
1088
+
1089
+ export class TradingBotOffchain__factory extends ContractFactory {
1090
+ constructor(...args: TradingBotOffchainConstructorParams) {
1091
+ if (isSuperArgs(args)) {
1092
+ super(...args);
1093
+ } else {
1094
+ super(_abi, _bytecode, args[0]);
1095
+ }
1096
+ this.contractName = "TradingBotOffchain";
1097
+ }
1098
+
1099
+ deploy(
1100
+ _decisionLib: string,
1101
+ overrides?: Overrides & { from?: string | Promise<string> }
1102
+ ): Promise<TradingBotOffchain> {
1103
+ return super.deploy(
1104
+ _decisionLib,
1105
+ overrides || {}
1106
+ ) as Promise<TradingBotOffchain>;
1107
+ }
1108
+ getDeployTransaction(
1109
+ _decisionLib: string,
1110
+ overrides?: Overrides & { from?: string | Promise<string> }
1111
+ ): TransactionRequest {
1112
+ return super.getDeployTransaction(_decisionLib, overrides || {});
1113
+ }
1114
+ attach(address: string): TradingBotOffchain {
1115
+ return super.attach(address) as TradingBotOffchain;
1116
+ }
1117
+ connect(signer: Signer): TradingBotOffchain__factory {
1118
+ return super.connect(signer) as TradingBotOffchain__factory;
1119
+ }
1120
+ static readonly contractName: "TradingBotOffchain";
1121
+ public readonly contractName: "TradingBotOffchain";
1122
+ static readonly bytecode = _bytecode;
1123
+ static readonly abi = _abi;
1124
+ static createInterface(): TradingBotOffchainInterface {
1125
+ return new utils.Interface(_abi) as TradingBotOffchainInterface;
1126
+ }
1127
+ static connect(
1128
+ address: string,
1129
+ signerOrProvider: Signer | Provider
1130
+ ): TradingBotOffchain {
1131
+ return new Contract(address, _abi, signerOrProvider) as TradingBotOffchain;
1132
+ }
1133
+ }