@pendle/core-v2 2.20.1 → 2.21.0-tradingbot

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (662) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  12. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  14. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  16. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
  18. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  20. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  23. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  24. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  25. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  29. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  30. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  31. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  32. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  35. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  37. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  39. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  41. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  43. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  46. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  48. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
  52. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.json +2 -2
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +2 -2
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +2 -2
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +2 -2
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +2 -2
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +1 -1
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAPoolHelper.dbg.json +1 -1
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.dbg.json +1 -1
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.dbg.json +1 -1
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.dbg.json +1 -1
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +1 -1
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
  78. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +1 -1
  79. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +1 -1
  80. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  81. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  82. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  83. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  84. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
  85. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +1 -1
  86. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +1 -1
  87. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.dbg.json +1 -1
  88. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
  89. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +2 -2
  90. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  91. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  92. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  93. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  94. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
  95. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
  96. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
  97. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  98. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.dbg.json +1 -1
  99. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  100. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
  101. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
  102. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
  103. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  104. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  105. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
  106. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
  107. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
  108. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +2 -2
  109. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  110. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  111. package/build/artifacts/contracts/core/TradingBot/DecisionHelper/BotDecisionHelperBase.sol/BotDecisionHelperBase.dbg.json +4 -0
  112. package/build/artifacts/contracts/core/TradingBot/DecisionHelper/BotDecisionHelperBase.sol/BotDecisionHelperBase.json +816 -0
  113. package/build/artifacts/contracts/core/TradingBot/DecisionHelper/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.dbg.json +4 -0
  114. package/build/artifacts/contracts/core/TradingBot/DecisionHelper/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.json +1411 -0
  115. package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +4 -0
  116. package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.json +2240 -0
  117. package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.dbg.json +4 -0
  118. package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.json +1641 -0
  119. package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.dbg.json +4 -0
  120. package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.json +10 -0
  121. package/build/artifacts/contracts/core/TradingBot/libraries/LongYieldActionLib.sol/LongYieldActionLib.dbg.json +4 -0
  122. package/build/artifacts/contracts/core/TradingBot/libraries/LongYieldActionLib.sol/LongYieldActionLib.json +154 -0
  123. package/build/artifacts/contracts/core/TradingBot/libraries/MarketExtLib.sol/MarketExtLib.dbg.json +4 -0
  124. package/build/artifacts/contracts/core/TradingBot/libraries/MarketExtLib.sol/MarketExtLib.json +24 -0
  125. package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.dbg.json +4 -0
  126. package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.json +10 -0
  127. package/build/artifacts/contracts/core/TradingBot/libraries/TvlLib.sol/TvlLib.dbg.json +4 -0
  128. package/build/artifacts/contracts/core/TradingBot/libraries/TvlLib.sol/TvlLib.json +262 -0
  129. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  130. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  131. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  132. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  133. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  134. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  135. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  136. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +1 -1
  137. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
  138. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
  139. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
  140. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
  141. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
  142. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
  143. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  144. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
  145. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  146. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  147. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  148. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
  149. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  150. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  151. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +151 -2
  152. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  153. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  154. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  155. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.dbg.json +4 -0
  156. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.json +10 -0
  157. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  158. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  159. package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
  160. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +1 -1
  161. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +1 -1
  162. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
  163. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +1 -1
  164. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +1 -1
  165. package/build/artifacts/contracts/interfaces/Balancer/IERC4626LinearPool.sol/IERC4626LinearPool.dbg.json +1 -1
  166. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +1 -1
  167. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +1 -1
  168. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +1 -1
  169. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +1 -1
  170. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
  171. package/build/artifacts/contracts/interfaces/Camelot/ICamelotFactory.sol/ICamelotFactory.dbg.json +1 -1
  172. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTFactory.sol/ICamelotNFTFactory.dbg.json +1 -1
  173. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTHandler.sol/ICamelotNFTHandler.dbg.json +1 -1
  174. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
  175. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.dbg.json +1 -1
  176. package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.dbg.json +1 -1
  177. package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
  178. package/build/artifacts/contracts/interfaces/Camelot/ICamelotRouter.sol/ICamelotRouter.dbg.json +1 -1
  179. package/build/artifacts/contracts/interfaces/Camelot/ICamelotYieldBooster.sol/ICamelotYieldBooster.dbg.json +1 -1
  180. package/build/artifacts/contracts/interfaces/Camelot/IXGrail.sol/IXGrail.dbg.json +1 -1
  181. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
  182. package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +1 -1
  183. package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +1 -1
  184. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  185. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
  186. package/build/artifacts/contracts/interfaces/Curve/ITriCrvPool.sol/ITriCrvPool.dbg.json +1 -1
  187. package/build/artifacts/contracts/interfaces/Frax/IFrxEthMinter.sol/IFrxEthMinter.dbg.json +1 -1
  188. package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +1 -1
  189. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +1 -1
  190. package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +1 -1
  191. package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.dbg.json +1 -1
  192. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  193. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
  194. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  195. package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
  196. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +1 -1
  197. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +1 -1
  198. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  199. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  200. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  201. package/build/artifacts/contracts/interfaces/ILooksFeeSharing.sol/ILooksFeeSharing.dbg.json +1 -1
  202. package/build/artifacts/contracts/interfaces/ILooksStaking.sol/ILooksStaking.dbg.json +1 -1
  203. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  204. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  205. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  206. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.json +6 -82
  207. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  208. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +22 -22
  209. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  210. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  211. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +4 -42
  212. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
  213. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  214. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  215. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  216. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  217. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  218. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  219. package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +1 -1
  220. package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +1 -1
  221. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  222. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  223. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  224. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  225. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  226. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  227. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  228. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  229. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  230. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  231. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  232. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  233. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  234. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  235. package/build/artifacts/contracts/interfaces/IPPtOracle.sol/IPPtOracle.dbg.json +1 -1
  236. package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
  237. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  238. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +32 -146
  239. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  240. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  241. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  242. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  243. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  244. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  245. package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
  246. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  247. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  248. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  249. package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
  250. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  251. package/build/artifacts/contracts/interfaces/IStargateLP.sol/IStargateLP.dbg.json +1 -1
  252. package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
  253. package/build/artifacts/contracts/interfaces/IStargateStaking.sol/IStargateStaking.dbg.json +1 -1
  254. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  255. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  256. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +4 -0
  257. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.json +679 -0
  258. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol/ILongYieldDecisionHelper.dbg.json +4 -0
  259. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol/ILongYieldDecisionHelper.json +698 -0
  260. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +4 -0
  261. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +745 -0
  262. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol/IShortYieldDecisionHelper.dbg.json +4 -0
  263. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol/IShortYieldDecisionHelper.json +679 -0
  264. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.dbg.json +4 -0
  265. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.json +794 -0
  266. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +4 -0
  267. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +351 -0
  268. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  269. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  270. package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  271. package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  272. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  273. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
  274. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  275. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  276. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  277. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
  278. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +2 -2
  279. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  280. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  281. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  282. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  283. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  284. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  285. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  286. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +8 -84
  287. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  288. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +24 -24
  289. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  290. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +6 -44
  291. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  292. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  293. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  294. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  295. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  296. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  297. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  298. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
  299. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +2 -2
  300. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
  301. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.json +2 -2
  302. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +1 -1
  303. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.json +2 -2
  304. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
  305. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.json +2 -2
  306. package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.dbg.json +1 -1
  307. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  308. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  309. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  310. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  311. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  312. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  313. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  314. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  315. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  316. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  317. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  318. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
  319. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +2 -2
  320. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
  321. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  322. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  323. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  324. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  325. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  326. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  327. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  328. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  329. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
  330. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
  331. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IHashflow.sol/IHashflow.dbg.json +1 -1
  332. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
  333. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberInputScalingHelper.sol/KyberInputScalingHelper.dbg.json +1 -1
  334. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
  335. package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +0 -4
  336. package/contracts/core/Market/PendleGauge.sol +2 -3
  337. package/contracts/core/StandardizedYield/PYIndex.sol +14 -0
  338. package/contracts/core/TradingBot/DecisionHelper/BotDecisionHelperBase.sol +265 -0
  339. package/contracts/core/TradingBot/DecisionHelper/LongYieldDecisionHelper.sol +333 -0
  340. package/contracts/core/TradingBot/LongYieldTradingBot.sol +144 -0
  341. package/contracts/core/TradingBot/TradingBotBase.sol +253 -0
  342. package/contracts/core/TradingBot/libraries/BotSimulationLib.sol +99 -0
  343. package/contracts/core/TradingBot/libraries/LongYieldActionLib.sol +308 -0
  344. package/contracts/core/TradingBot/libraries/MarketExtLib.sol +272 -0
  345. package/contracts/core/TradingBot/libraries/SpecSegmentLib.sol +78 -0
  346. package/contracts/core/TradingBot/libraries/TvlLib.sol +69 -0
  347. package/contracts/core/libraries/Errors.sol +12 -0
  348. package/contracts/core/libraries/TokenAmountLib.sol +47 -0
  349. package/contracts/interfaces/IPActionInfoStatic.sol +7 -8
  350. package/contracts/interfaces/IPActionMarketAuxStatic.sol +14 -21
  351. package/contracts/interfaces/IPActionMarketCoreStatic.sol +67 -70
  352. package/contracts/interfaces/IPActionMintRedeemStatic.sol +11 -23
  353. package/contracts/interfaces/IPGauge.sol +0 -3
  354. package/contracts/interfaces/IPRouterStatic.sol +1 -5
  355. package/contracts/interfaces/IStandardizedYield.sol +10 -15
  356. package/contracts/interfaces/TradingBot/IBotDecisionHelper.sol +76 -0
  357. package/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol +8 -0
  358. package/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol +74 -0
  359. package/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol +7 -0
  360. package/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol +27 -0
  361. package/contracts/interfaces/TradingBot/ITradingBotBase.sol +54 -0
  362. package/contracts/offchain-helpers/BulkSellerOffchain.sol +8 -11
  363. package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +11 -14
  364. package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +37 -96
  365. package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +80 -88
  366. package/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol +14 -43
  367. package/contracts/oracles/PendleLpOracleLib.sol +1 -1
  368. package/deployments/core.ts +29 -0
  369. package/deployments/index.ts +4 -0
  370. package/deployments/markets/ape-june-29-2023.ts +3 -0
  371. package/deployments/markets/balancer-reth-dec-28-2023.ts +3 -0
  372. package/deployments/markets/balancer-wsteth-jun-27-2024.ts +3 -0
  373. package/deployments/markets/curve-fraxusdc-march-30-2023.ts +3 -0
  374. package/deployments/markets/index.ts +17 -0
  375. package/deployments/markets/looks-march-30-2023.ts +3 -0
  376. package/deployments/markets/steth-june-29-2023.ts +3 -0
  377. package/deployments/markets/steth-march-30-2023.ts +3 -0
  378. package/deployments/markets/types.ts +9 -0
  379. package/deployments/misc.ts +23 -0
  380. package/package.json +1 -1
  381. package/typechain-types/ActionMarketAuxStatic.ts +38 -191
  382. package/typechain-types/ActionMarketCoreStatic.ts +134 -600
  383. package/typechain-types/ActionMintRedeemStatic.ts +26 -92
  384. package/typechain-types/AuraEthxBbAWethSY.ts +1532 -0
  385. package/typechain-types/AuraSwEthBbAWethSYV2.ts +1532 -0
  386. package/typechain-types/AutomateReady.ts +102 -0
  387. package/typechain-types/AutomationBase.ts +57 -0
  388. package/typechain-types/AutomationCompatible.ts +140 -0
  389. package/typechain-types/AutomationCompatibleInterface.ts +141 -0
  390. package/typechain-types/BotDecisionHelperBase.ts +508 -0
  391. package/typechain-types/ChainlinkRelayerAutomation.ts +305 -0
  392. package/typechain-types/ChainlinkRelayerGelato.ts +311 -0
  393. package/typechain-types/ComposableStablePreviewProxy.ts +352 -0
  394. package/typechain-types/ComposableStablePreviewV4.ts +217 -0
  395. package/typechain-types/ComposableStablePreviewV5.ts +217 -0
  396. package/typechain-types/HLPPricingHelper.ts +397 -0
  397. package/typechain-types/IAnkrBNB.ts +150 -0
  398. package/typechain-types/IAnkrLiquidStaking.ts +253 -0
  399. package/typechain-types/IAutomate.ts +203 -0
  400. package/typechain-types/IBotDecisionHelper.ts +476 -0
  401. package/typechain-types/IEUSD.ts +194 -0
  402. package/typechain-types/IFluxErc20.ts +298 -0
  403. package/typechain-types/IFluxInterestRateModel.ts +113 -0
  404. package/typechain-types/IHLPStaking.ts +154 -0
  405. package/typechain-types/IHMXCalculator.ts +96 -0
  406. package/typechain-types/IHMXCompounder.ts +122 -0
  407. package/typechain-types/IHMXStaking.ts +165 -0
  408. package/typechain-types/IHMXVester.ts +163 -0
  409. package/typechain-types/IInterestUSTP.ts +156 -0
  410. package/typechain-types/IKyberElasticFactory.ts +734 -0
  411. package/typechain-types/IKyberElasticPool.ts +514 -0
  412. package/typechain-types/IKyberElasticRouter.ts +315 -0
  413. package/typechain-types/IKyberLiquidityMining.ts +968 -0
  414. package/typechain-types/IKyberMathHelper.ts +231 -0
  415. package/typechain-types/IKyberPositionManager.ts +773 -0
  416. package/typechain-types/ILongYieldDecisionHelper.ts +512 -0
  417. package/typechain-types/ILongYieldTradingBot.ts +703 -0
  418. package/typechain-types/IOpsProxyFactory.ts +93 -0
  419. package/typechain-types/IPActionMarketAuxStatic.ts +38 -191
  420. package/typechain-types/IPActionMarketCoreStatic.ts +134 -600
  421. package/typechain-types/IPActionMintRedeemStatic.ts +26 -92
  422. package/typechain-types/IPComposableStablePreview.ts +217 -0
  423. package/typechain-types/IPExternalRewardDistributor.ts +198 -0
  424. package/typechain-types/IPMarketFactoryV2.ts +253 -0
  425. package/typechain-types/IPOracleForSy.ts +87 -0
  426. package/typechain-types/IPRouterStatic.ts +197 -888
  427. package/typechain-types/IPendlePreviewHelper.ts +147 -0
  428. package/typechain-types/IRebasingUSTP.ts +133 -0
  429. package/typechain-types/IShortYieldDecisionHelper.ts +476 -0
  430. package/typechain-types/IShortYieldTradingBot.ts +574 -0
  431. package/typechain-types/IStaderStakeManager.ts +700 -0
  432. package/typechain-types/{IExecutorHelper2.ts → ISwETH.ts} +40 -32
  433. package/typechain-types/ITaskTreasuryUpgradable.ts +160 -0
  434. package/typechain-types/IThenaFactory.ts +245 -0
  435. package/typechain-types/IThenaGaugeV2.ts +206 -0
  436. package/typechain-types/IThenaPair.ts +579 -0
  437. package/typechain-types/IThenaRouter.ts +313 -0
  438. package/typechain-types/IThenaSY.ts +81 -0
  439. package/typechain-types/ITradingBotBase.ts +373 -0
  440. package/typechain-types/IUSTP.ts +127 -0
  441. package/typechain-types/IVersion.ts +81 -0
  442. package/typechain-types/{PendleSwapEthereum.ts → IWBETH.ts} +50 -48
  443. package/typechain-types/KyberMathHelper.ts +583 -0
  444. package/typechain-types/KyberNftManagerBase.ts +364 -0
  445. package/typechain-types/LegacyNFTHelper.ts +87 -0
  446. package/typechain-types/LongYieldActionLib.ts +57 -0
  447. package/typechain-types/LongYieldDecisionHelper.ts +663 -0
  448. package/typechain-types/LongYieldTradingBot.ts +2405 -0
  449. package/typechain-types/MarketExtLib.ts +81 -0
  450. package/typechain-types/PendleAnkrBNBSY.ts +1235 -0
  451. package/typechain-types/PendleAuraWethVethSY.ts +1511 -0
  452. package/typechain-types/PendleAuraWstethAnkreth.ts +1511 -0
  453. package/typechain-types/PendleBridgedLSDSY.ts +1222 -0
  454. package/typechain-types/PendleChainlinkReceiver.ts +239 -0
  455. package/typechain-types/PendleChainlinkRelayer.ts +158 -0
  456. package/typechain-types/PendleERC4626SY.ts +1216 -0
  457. package/typechain-types/PendleETHXSY.ts +1231 -0
  458. package/typechain-types/PendleEUSDSY.ts +1216 -0
  459. package/typechain-types/PendleExternalRewardDistributor.ts +596 -0
  460. package/typechain-types/PendleFluxLendingSY.ts +1232 -0
  461. package/typechain-types/PendleGaugeV2.ts +225 -0
  462. package/typechain-types/PendleHlpSY.ts +1517 -0
  463. package/typechain-types/PendleIUSTPSY.ts +1255 -0
  464. package/typechain-types/PendleKyberElasticSY.ts +1830 -0
  465. package/typechain-types/PendleMantleStakedEthSY.ts +1222 -0
  466. package/typechain-types/PendleMarketFactoryV2.ts +932 -0
  467. package/typechain-types/PendleMarketV2.ts +1311 -0
  468. package/typechain-types/PendleMulticallV2.ts +241 -0
  469. package/typechain-types/PendleOracleForSyProxy.ts +275 -0
  470. package/typechain-types/{PendleCamelotV1SY.ts → PendleThenaSY.ts} +214 -332
  471. package/typechain-types/PendleWbEthSY.ts +1229 -0
  472. package/typechain-types/SDKErrorsDirectory.ts +57 -0
  473. package/typechain-types/StarNFTV1.ts +880 -0
  474. package/typechain-types/SwETHSY.ts +1216 -0
  475. package/typechain-types/{PendleCamelotV1RouterHelper.ts → ThenaLpHelper.ts} +63 -5
  476. package/typechain-types/ThenaMath.ts +87 -0
  477. package/typechain-types/{CamelotV1PreviewHelper.ts → ThenaPreview.ts} +42 -63
  478. package/typechain-types/TradingBotBase.ts +1837 -0
  479. package/typechain-types/TvlLib.ts +215 -0
  480. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  481. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  482. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +7 -83
  483. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +23 -23
  484. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +5 -43
  485. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  486. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  487. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  488. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  489. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  490. package/typechain-types/factories/AuraEthxBbAWethSY__factory.ts +1240 -0
  491. package/typechain-types/factories/AuraSwEthBbAWethSYV2__factory.ts +1244 -0
  492. package/typechain-types/factories/AutomateReady__factory.ts +49 -0
  493. package/typechain-types/factories/AutomationBase__factory.ts +69 -0
  494. package/typechain-types/factories/AutomationCompatibleInterface__factory.ts +67 -0
  495. package/typechain-types/factories/AutomationCompatible__factory.ts +72 -0
  496. package/typechain-types/factories/BotDecisionHelperBase__factory.ts +835 -0
  497. package/typechain-types/factories/Broadcaster__factory.ts +1 -1
  498. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  499. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  500. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  501. package/typechain-types/factories/ChainlinkRelayerAutomation__factory.ts +238 -0
  502. package/typechain-types/factories/ChainlinkRelayerGelato__factory.ts +263 -0
  503. package/typechain-types/factories/ComposableStablePreviewProxy__factory.ts +288 -0
  504. package/typechain-types/factories/ComposableStablePreviewV4__factory.ts +190 -0
  505. package/typechain-types/factories/ComposableStablePreviewV5__factory.ts +190 -0
  506. package/typechain-types/factories/Errors__factory.ts +150 -1
  507. package/typechain-types/factories/HLPPricingHelper__factory.ts +311 -0
  508. package/typechain-types/factories/IAnkrBNB__factory.ts +74 -0
  509. package/typechain-types/factories/IAnkrLiquidStaking__factory.ts +123 -0
  510. package/typechain-types/factories/IAutomate__factory.ts +126 -0
  511. package/typechain-types/factories/IBotDecisionHelper__factory.ts +694 -0
  512. package/typechain-types/factories/IEUSD__factory.ts +101 -0
  513. package/typechain-types/factories/IFluxErc20__factory.ts +178 -0
  514. package/typechain-types/factories/{IExecutorHelper2__factory.ts → IFluxInterestRateModel__factory.ts} +19 -15
  515. package/typechain-types/factories/IHLPStaking__factory.ts +67 -0
  516. package/typechain-types/factories/IHMXCalculator__factory.ts +45 -0
  517. package/typechain-types/factories/IHMXCompounder__factory.ts +59 -0
  518. package/typechain-types/factories/IHMXStaking__factory.ts +78 -0
  519. package/typechain-types/factories/IHMXVester__factory.ts +85 -0
  520. package/typechain-types/factories/IInterestUSTP__factory.ts +75 -0
  521. package/typechain-types/factories/IKyberElasticFactory__factory.ts +455 -0
  522. package/typechain-types/factories/IKyberElasticPool__factory.ts +315 -0
  523. package/typechain-types/factories/IKyberElasticRouter__factory.ts +240 -0
  524. package/typechain-types/factories/IKyberLiquidityMining__factory.ts +913 -0
  525. package/typechain-types/factories/IKyberMathHelper__factory.ts +143 -0
  526. package/typechain-types/factories/IKyberPositionManager__factory.ts +633 -0
  527. package/typechain-types/factories/ILongYieldDecisionHelper__factory.ts +717 -0
  528. package/typechain-types/factories/ILongYieldTradingBot__factory.ts +764 -0
  529. package/typechain-types/factories/IOpsProxyFactory__factory.ts +50 -0
  530. package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +6 -82
  531. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +22 -22
  532. package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +4 -42
  533. package/typechain-types/factories/IPComposableStablePreview__factory.ts +152 -0
  534. package/typechain-types/factories/{IPVotingEscrowSidechain__factory.ts → IPExternalRewardDistributor__factory.ts} +60 -44
  535. package/typechain-types/factories/IPMarketFactoryV2__factory.ts +181 -0
  536. package/typechain-types/factories/IPOracleForSy__factory.ts +36 -0
  537. package/typechain-types/factories/IPRouterStatic__factory.ts +32 -146
  538. package/typechain-types/factories/IPendlePreviewHelper__factory.ts +78 -0
  539. package/typechain-types/factories/IRebasingUSTP__factory.ts +49 -0
  540. package/typechain-types/factories/IShortYieldDecisionHelper__factory.ts +698 -0
  541. package/typechain-types/factories/IShortYieldTradingBot__factory.ts +813 -0
  542. package/typechain-types/factories/IStaderStakeManager__factory.ts +435 -0
  543. package/typechain-types/factories/ISwETH__factory.ts +53 -0
  544. package/typechain-types/factories/ITaskTreasuryUpgradable__factory.ts +76 -0
  545. package/typechain-types/factories/IThenaFactory__factory.ts +164 -0
  546. package/typechain-types/factories/IThenaGaugeV2__factory.ts +83 -0
  547. package/typechain-types/factories/IThenaPair__factory.ts +421 -0
  548. package/typechain-types/factories/IThenaRouter__factory.ts +200 -0
  549. package/typechain-types/factories/IThenaSY__factory.ts +36 -0
  550. package/typechain-types/factories/ITradingBotBase__factory.ts +366 -0
  551. package/typechain-types/factories/IUSTP__factory.ts +46 -0
  552. package/typechain-types/factories/IVersion__factory.ts +36 -0
  553. package/typechain-types/factories/IWBETH__factory.ts +51 -0
  554. package/typechain-types/factories/KyberMathHelper__factory.ts +417 -0
  555. package/typechain-types/factories/KyberNftManagerBase__factory.ts +279 -0
  556. package/typechain-types/factories/LegacyNFTHelper__factory.ts +83 -0
  557. package/typechain-types/factories/LongYieldActionLib__factory.ts +207 -0
  558. package/typechain-types/factories/LongYieldDecisionHelper__factory.ts +1468 -0
  559. package/typechain-types/factories/LongYieldTradingBot__factory.ts +2241 -0
  560. package/typechain-types/factories/MarketExtLib__factory.ts +74 -0
  561. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  562. package/typechain-types/factories/PendleAnkrBNBSY__factory.ts +1100 -0
  563. package/typechain-types/factories/PendleArbitrumStakedEthSY__factory.ts +1 -1
  564. package/typechain-types/factories/PendleAuraBbAWethSwethSY__factory.ts +1 -1
  565. package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +1 -1
  566. package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +1 -1
  567. package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +1 -1
  568. package/typechain-types/factories/PendleAuraWethVethSY__factory.ts +1231 -0
  569. package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +1 -1
  570. package/typechain-types/factories/PendleAuraWstethAnkreth__factory.ts +1244 -0
  571. package/typechain-types/factories/PendleBridgedLSDSY__factory.ts +1064 -0
  572. package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +1 -1
  573. package/typechain-types/factories/PendleChainlinkReceiver__factory.ts +216 -0
  574. package/typechain-types/factories/PendleChainlinkRelayer__factory.ts +180 -0
  575. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  576. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  577. package/typechain-types/factories/PendleERC4626SY__factory.ts +1030 -0
  578. package/typechain-types/factories/PendleETHXSY__factory.ts +1059 -0
  579. package/typechain-types/factories/PendleEUSDSY__factory.ts +1022 -0
  580. package/typechain-types/factories/PendleExternalRewardDistributor__factory.ts +437 -0
  581. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  582. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  583. package/typechain-types/factories/PendleFluxLendingSY__factory.ts +1049 -0
  584. package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
  585. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  586. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  587. package/typechain-types/factories/PendleGaugeV2__factory.ts +140 -0
  588. package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
  589. package/typechain-types/factories/PendleHlpSY__factory.ts +1283 -0
  590. package/typechain-types/factories/PendleIUSTPSY__factory.ts +1061 -0
  591. package/typechain-types/factories/PendleKyberElasticSY__factory.ts +1512 -0
  592. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  593. package/typechain-types/factories/PendleLpGlpOracle__factory.ts +1 -1
  594. package/typechain-types/factories/PendleMantleStakedEthSY__factory.ts +1068 -0
  595. package/typechain-types/factories/PendleMarketFactoryV2__factory.ts +770 -0
  596. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  597. package/typechain-types/factories/PendleMarketV2__factory.ts +1299 -0
  598. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  599. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  600. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  601. package/typechain-types/factories/PendleMulticallV2__factory.ts +212 -0
  602. package/typechain-types/factories/PendleOracleForSyProxy__factory.ts +211 -0
  603. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
  604. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  605. package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
  606. package/typechain-types/factories/PendlePtOracle__factory.ts +1 -1
  607. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  608. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  609. package/typechain-types/factories/PendleRouterHelper__factory.ts +1 -1
  610. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  611. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  612. package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
  613. package/typechain-types/factories/PendleStargateLPSY__factory.ts +1 -1
  614. package/typechain-types/factories/PendleThenaSY__factory.ts +1352 -0
  615. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  616. package/typechain-types/factories/PendleWbEthSY__factory.ts +1049 -0
  617. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  618. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
  619. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  620. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
  621. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  622. package/typechain-types/factories/PtAndLpToAsset__factory.ts +1 -1
  623. package/typechain-types/factories/SAPE__factory.ts +1 -1
  624. package/typechain-types/factories/SDKErrorsDirectory__factory.ts +1596 -0
  625. package/typechain-types/factories/StarNFTV1__factory.ts +584 -0
  626. package/typechain-types/factories/SwETHSY__factory.ts +1022 -0
  627. package/typechain-types/factories/{PendleCamelotV1RouterHelper__factory.ts → ThenaLpHelper__factory.ts} +58 -13
  628. package/typechain-types/factories/ThenaMath__factory.ts +36 -0
  629. package/typechain-types/factories/ThenaPreview__factory.ts +319 -0
  630. package/typechain-types/factories/TradingBotBase__factory.ts +1656 -0
  631. package/typechain-types/factories/TvlLib__factory.ts +309 -0
  632. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  633. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  634. package/typechain-types/hardhat.d.ts +153 -126
  635. package/typechain-types/index.ts +34 -18
  636. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.dbg.json +0 -4
  637. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.json +0 -976
  638. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.dbg.json +0 -4
  639. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.json +0 -97
  640. package/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol +0 -120
  641. package/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol +0 -108
  642. package/contracts/interfaces/BinanceEth/IWBETH.sol +0 -9
  643. package/contracts/offchain-helpers/PtAndLpToAsset.sol +0 -62
  644. package/deployments/42161-markets/RETH-ARBITRUM-JUNE2025.json +0 -10
  645. package/deployments/42161-markets/WSTETH-ARBITRUM-JUNE2024.json +0 -10
  646. package/deployments/42161-markets/WSTETH-ARBITRUM-JUNE2025.json +0 -10
  647. package/deployments/56-core.json +0 -28
  648. package/deployments/56-markets/THENA-FRXETH-ETH-JUNE2024.json +0 -10
  649. package/deployments/56-markets/WBETH-DEC2024.json +0 -10
  650. package/deployments/56-offchain-helper.json +0 -4
  651. package/typechain-types/IExecutorHelper1.ts +0 -643
  652. package/typechain-types/IExecutorHelperEthereum1.ts +0 -643
  653. package/typechain-types/IPVotingEscrowSidechain.ts +0 -155
  654. package/typechain-types/PendleCamelotRewardHelper.ts +0 -347
  655. package/typechain-types/PendleSwapArbitrum.ts +0 -126
  656. package/typechain-types/factories/CamelotV1PreviewHelper__factory.ts +0 -400
  657. package/typechain-types/factories/IExecutorHelper1__factory.ts +0 -403
  658. package/typechain-types/factories/IExecutorHelperEthereum1__factory.ts +0 -407
  659. package/typechain-types/factories/PendleCamelotRewardHelper__factory.ts +0 -317
  660. package/typechain-types/factories/PendleCamelotV1SY__factory.ts +0 -1448
  661. package/typechain-types/factories/PendleSwapArbitrum__factory.ts +0 -129
  662. package/typechain-types/factories/PendleSwapEthereum__factory.ts +0 -129
@@ -0,0 +1,1468 @@
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
+ LongYieldDecisionHelper,
8
+ LongYieldDecisionHelperInterface,
9
+ } from "../LongYieldDecisionHelper";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [],
14
+ name: "ApproxFail",
15
+ type: "error",
16
+ },
17
+ {
18
+ inputs: [
19
+ {
20
+ internalType: "uint256",
21
+ name: "guessMin",
22
+ type: "uint256",
23
+ },
24
+ {
25
+ internalType: "uint256",
26
+ name: "guessMax",
27
+ type: "uint256",
28
+ },
29
+ {
30
+ internalType: "uint256",
31
+ name: "eps",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "ApproxParamsInvalid",
36
+ type: "error",
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: "BotBinarySearchFail",
41
+ type: "error",
42
+ },
43
+ {
44
+ inputs: [
45
+ {
46
+ internalType: "uint256",
47
+ name: "action",
48
+ type: "uint256",
49
+ },
50
+ {
51
+ internalType: "uint256",
52
+ name: "guessMin",
53
+ type: "uint256",
54
+ },
55
+ {
56
+ internalType: "uint256",
57
+ name: "guessMax",
58
+ type: "uint256",
59
+ },
60
+ ],
61
+ name: "BotBinarySearchInvalidRange",
62
+ type: "error",
63
+ },
64
+ {
65
+ inputs: [
66
+ {
67
+ internalType: "int256",
68
+ name: "exchangeRate",
69
+ type: "int256",
70
+ },
71
+ ],
72
+ name: "MarketExchangeRateBelowOne",
73
+ type: "error",
74
+ },
75
+ {
76
+ inputs: [],
77
+ name: "MarketExpired",
78
+ type: "error",
79
+ },
80
+ {
81
+ inputs: [
82
+ {
83
+ internalType: "int256",
84
+ name: "currentAmount",
85
+ type: "int256",
86
+ },
87
+ {
88
+ internalType: "int256",
89
+ name: "requiredAmount",
90
+ type: "int256",
91
+ },
92
+ ],
93
+ name: "MarketInsufficientPtForTrade",
94
+ type: "error",
95
+ },
96
+ {
97
+ inputs: [],
98
+ name: "MarketProportionMustNotEqualOne",
99
+ type: "error",
100
+ },
101
+ {
102
+ inputs: [
103
+ {
104
+ internalType: "int256",
105
+ name: "proportion",
106
+ type: "int256",
107
+ },
108
+ {
109
+ internalType: "int256",
110
+ name: "maxProportion",
111
+ type: "int256",
112
+ },
113
+ ],
114
+ name: "MarketProportionTooHigh",
115
+ type: "error",
116
+ },
117
+ {
118
+ inputs: [
119
+ {
120
+ internalType: "int256",
121
+ name: "rateScalar",
122
+ type: "int256",
123
+ },
124
+ ],
125
+ name: "MarketRateScalarBelowZero",
126
+ type: "error",
127
+ },
128
+ {
129
+ inputs: [],
130
+ name: "MarketZeroAmountsInput",
131
+ type: "error",
132
+ },
133
+ {
134
+ inputs: [],
135
+ name: "MarketZeroAmountsOutput",
136
+ type: "error",
137
+ },
138
+ {
139
+ inputs: [],
140
+ name: "MarketZeroLnImpliedRate",
141
+ type: "error",
142
+ },
143
+ {
144
+ inputs: [
145
+ {
146
+ internalType: "int256",
147
+ name: "totalPt",
148
+ type: "int256",
149
+ },
150
+ {
151
+ internalType: "int256",
152
+ name: "totalAsset",
153
+ type: "int256",
154
+ },
155
+ ],
156
+ name: "MarketZeroTotalPtOrTotalAsset",
157
+ type: "error",
158
+ },
159
+ {
160
+ inputs: [],
161
+ name: "INF",
162
+ outputs: [
163
+ {
164
+ internalType: "uint256",
165
+ name: "",
166
+ type: "uint256",
167
+ },
168
+ ],
169
+ stateMutability: "view",
170
+ type: "function",
171
+ },
172
+ {
173
+ inputs: [],
174
+ name: "MINIMAL_EPS",
175
+ outputs: [
176
+ {
177
+ internalType: "uint256",
178
+ name: "",
179
+ type: "uint256",
180
+ },
181
+ ],
182
+ stateMutability: "view",
183
+ type: "function",
184
+ },
185
+ {
186
+ inputs: [
187
+ {
188
+ components: [
189
+ {
190
+ components: [
191
+ {
192
+ internalType: "int256",
193
+ name: "totalPt",
194
+ type: "int256",
195
+ },
196
+ {
197
+ internalType: "int256",
198
+ name: "totalSy",
199
+ type: "int256",
200
+ },
201
+ {
202
+ internalType: "int256",
203
+ name: "totalLp",
204
+ type: "int256",
205
+ },
206
+ {
207
+ internalType: "address",
208
+ name: "treasury",
209
+ type: "address",
210
+ },
211
+ {
212
+ internalType: "int256",
213
+ name: "scalarRoot",
214
+ type: "int256",
215
+ },
216
+ {
217
+ internalType: "uint256",
218
+ name: "expiry",
219
+ type: "uint256",
220
+ },
221
+ {
222
+ internalType: "uint256",
223
+ name: "lnFeeRateRoot",
224
+ type: "uint256",
225
+ },
226
+ {
227
+ internalType: "uint256",
228
+ name: "reserveFeePercent",
229
+ type: "uint256",
230
+ },
231
+ {
232
+ internalType: "uint256",
233
+ name: "lastLnImpliedRate",
234
+ type: "uint256",
235
+ },
236
+ ],
237
+ internalType: "struct MarketState",
238
+ name: "state",
239
+ type: "tuple",
240
+ },
241
+ {
242
+ internalType: "PYIndex",
243
+ name: "index",
244
+ type: "uint256",
245
+ },
246
+ {
247
+ internalType: "uint256",
248
+ name: "blockTime",
249
+ type: "uint256",
250
+ },
251
+ ],
252
+ internalType: "struct MarketExtState",
253
+ name: "marketExt",
254
+ type: "tuple",
255
+ },
256
+ {
257
+ internalType: "enum TradeActionType",
258
+ name: "action",
259
+ type: "uint8",
260
+ },
261
+ {
262
+ internalType: "uint256",
263
+ name: "botParam",
264
+ type: "uint256",
265
+ },
266
+ ],
267
+ name: "_calcTradeActionAmountOutAndIntParams",
268
+ outputs: [
269
+ {
270
+ internalType: "uint256",
271
+ name: "amountOut",
272
+ type: "uint256",
273
+ },
274
+ {
275
+ internalType: "uint256",
276
+ name: "intParams",
277
+ type: "uint256",
278
+ },
279
+ ],
280
+ stateMutability: "pure",
281
+ type: "function",
282
+ },
283
+ {
284
+ inputs: [
285
+ {
286
+ internalType: "address",
287
+ name: "botAddress",
288
+ type: "address",
289
+ },
290
+ ],
291
+ name: "getBotPosition",
292
+ outputs: [
293
+ {
294
+ components: [
295
+ {
296
+ components: [
297
+ {
298
+ internalType: "uint256",
299
+ name: "lpBalance",
300
+ type: "uint256",
301
+ },
302
+ {
303
+ internalType: "uint256",
304
+ name: "ytBalance",
305
+ type: "uint256",
306
+ },
307
+ {
308
+ internalType: "uint256",
309
+ name: "ptBalance",
310
+ type: "uint256",
311
+ },
312
+ {
313
+ internalType: "uint256",
314
+ name: "syBalance",
315
+ type: "uint256",
316
+ },
317
+ {
318
+ internalType: "uint256",
319
+ name: "buyBins",
320
+ type: "uint256",
321
+ },
322
+ ],
323
+ internalType: "struct BotState",
324
+ name: "botState",
325
+ type: "tuple",
326
+ },
327
+ {
328
+ components: [
329
+ {
330
+ components: [
331
+ {
332
+ internalType: "int256",
333
+ name: "totalPt",
334
+ type: "int256",
335
+ },
336
+ {
337
+ internalType: "int256",
338
+ name: "totalSy",
339
+ type: "int256",
340
+ },
341
+ {
342
+ internalType: "int256",
343
+ name: "totalLp",
344
+ type: "int256",
345
+ },
346
+ {
347
+ internalType: "address",
348
+ name: "treasury",
349
+ type: "address",
350
+ },
351
+ {
352
+ internalType: "int256",
353
+ name: "scalarRoot",
354
+ type: "int256",
355
+ },
356
+ {
357
+ internalType: "uint256",
358
+ name: "expiry",
359
+ type: "uint256",
360
+ },
361
+ {
362
+ internalType: "uint256",
363
+ name: "lnFeeRateRoot",
364
+ type: "uint256",
365
+ },
366
+ {
367
+ internalType: "uint256",
368
+ name: "reserveFeePercent",
369
+ type: "uint256",
370
+ },
371
+ {
372
+ internalType: "uint256",
373
+ name: "lastLnImpliedRate",
374
+ type: "uint256",
375
+ },
376
+ ],
377
+ internalType: "struct MarketState",
378
+ name: "state",
379
+ type: "tuple",
380
+ },
381
+ {
382
+ internalType: "PYIndex",
383
+ name: "index",
384
+ type: "uint256",
385
+ },
386
+ {
387
+ internalType: "uint256",
388
+ name: "blockTime",
389
+ type: "uint256",
390
+ },
391
+ ],
392
+ internalType: "struct MarketExtState",
393
+ name: "marketExt",
394
+ type: "tuple",
395
+ },
396
+ {
397
+ components: [
398
+ {
399
+ internalType: "uint256",
400
+ name: "buyYtIy",
401
+ type: "uint256",
402
+ },
403
+ {
404
+ internalType: "uint256",
405
+ name: "sellYtIy",
406
+ type: "uint256",
407
+ },
408
+ {
409
+ internalType: "uint256",
410
+ name: "targetSyRatio",
411
+ type: "uint256",
412
+ },
413
+ {
414
+ internalType: "uint256",
415
+ name: "bufferSyRatio",
416
+ type: "uint256",
417
+ },
418
+ {
419
+ internalType: "uint256",
420
+ name: "minYtPtRatio",
421
+ type: "uint256",
422
+ },
423
+ {
424
+ internalType: "uint256",
425
+ name: "numOfBins",
426
+ type: "uint256",
427
+ },
428
+ ],
429
+ internalType: "struct TradingSpecs",
430
+ name: "specs",
431
+ type: "tuple",
432
+ },
433
+ ],
434
+ internalType: "struct StrategyData",
435
+ name: "strategyData",
436
+ type: "tuple",
437
+ },
438
+ {
439
+ internalType: "uint256",
440
+ name: "tvlInSy",
441
+ type: "uint256",
442
+ },
443
+ {
444
+ internalType: "uint256",
445
+ name: "iy",
446
+ type: "uint256",
447
+ },
448
+ {
449
+ internalType: "uint256",
450
+ name: "floatingSyRatio",
451
+ type: "uint256",
452
+ },
453
+ {
454
+ internalType: "uint256",
455
+ name: "currentYtPtRatio",
456
+ type: "uint256",
457
+ },
458
+ ],
459
+ stateMutability: "view",
460
+ type: "function",
461
+ },
462
+ {
463
+ inputs: [
464
+ {
465
+ components: [
466
+ {
467
+ components: [
468
+ {
469
+ internalType: "uint256",
470
+ name: "lpBalance",
471
+ type: "uint256",
472
+ },
473
+ {
474
+ internalType: "uint256",
475
+ name: "ytBalance",
476
+ type: "uint256",
477
+ },
478
+ {
479
+ internalType: "uint256",
480
+ name: "ptBalance",
481
+ type: "uint256",
482
+ },
483
+ {
484
+ internalType: "uint256",
485
+ name: "syBalance",
486
+ type: "uint256",
487
+ },
488
+ {
489
+ internalType: "uint256",
490
+ name: "buyBins",
491
+ type: "uint256",
492
+ },
493
+ ],
494
+ internalType: "struct BotState",
495
+ name: "botState",
496
+ type: "tuple",
497
+ },
498
+ {
499
+ components: [
500
+ {
501
+ components: [
502
+ {
503
+ internalType: "int256",
504
+ name: "totalPt",
505
+ type: "int256",
506
+ },
507
+ {
508
+ internalType: "int256",
509
+ name: "totalSy",
510
+ type: "int256",
511
+ },
512
+ {
513
+ internalType: "int256",
514
+ name: "totalLp",
515
+ type: "int256",
516
+ },
517
+ {
518
+ internalType: "address",
519
+ name: "treasury",
520
+ type: "address",
521
+ },
522
+ {
523
+ internalType: "int256",
524
+ name: "scalarRoot",
525
+ type: "int256",
526
+ },
527
+ {
528
+ internalType: "uint256",
529
+ name: "expiry",
530
+ type: "uint256",
531
+ },
532
+ {
533
+ internalType: "uint256",
534
+ name: "lnFeeRateRoot",
535
+ type: "uint256",
536
+ },
537
+ {
538
+ internalType: "uint256",
539
+ name: "reserveFeePercent",
540
+ type: "uint256",
541
+ },
542
+ {
543
+ internalType: "uint256",
544
+ name: "lastLnImpliedRate",
545
+ type: "uint256",
546
+ },
547
+ ],
548
+ internalType: "struct MarketState",
549
+ name: "state",
550
+ type: "tuple",
551
+ },
552
+ {
553
+ internalType: "PYIndex",
554
+ name: "index",
555
+ type: "uint256",
556
+ },
557
+ {
558
+ internalType: "uint256",
559
+ name: "blockTime",
560
+ type: "uint256",
561
+ },
562
+ ],
563
+ internalType: "struct MarketExtState",
564
+ name: "marketExt",
565
+ type: "tuple",
566
+ },
567
+ {
568
+ components: [
569
+ {
570
+ internalType: "uint256",
571
+ name: "buyYtIy",
572
+ type: "uint256",
573
+ },
574
+ {
575
+ internalType: "uint256",
576
+ name: "sellYtIy",
577
+ type: "uint256",
578
+ },
579
+ {
580
+ internalType: "uint256",
581
+ name: "targetSyRatio",
582
+ type: "uint256",
583
+ },
584
+ {
585
+ internalType: "uint256",
586
+ name: "bufferSyRatio",
587
+ type: "uint256",
588
+ },
589
+ {
590
+ internalType: "uint256",
591
+ name: "minYtPtRatio",
592
+ type: "uint256",
593
+ },
594
+ {
595
+ internalType: "uint256",
596
+ name: "numOfBins",
597
+ type: "uint256",
598
+ },
599
+ ],
600
+ internalType: "struct TradingSpecs",
601
+ name: "specs",
602
+ type: "tuple",
603
+ },
604
+ ],
605
+ internalType: "struct StrategyData",
606
+ name: "strategyData",
607
+ type: "tuple",
608
+ },
609
+ ],
610
+ name: "getCurrentBin",
611
+ outputs: [
612
+ {
613
+ internalType: "int256",
614
+ name: "",
615
+ type: "int256",
616
+ },
617
+ ],
618
+ stateMutability: "pure",
619
+ type: "function",
620
+ },
621
+ {
622
+ inputs: [
623
+ {
624
+ internalType: "address",
625
+ name: "botAddress",
626
+ type: "address",
627
+ },
628
+ ],
629
+ name: "getRebalanceAction",
630
+ outputs: [
631
+ {
632
+ components: [
633
+ {
634
+ internalType: "enum RebalanceType",
635
+ name: "rebalanceType",
636
+ type: "uint8",
637
+ },
638
+ {
639
+ internalType: "uint256",
640
+ name: "amountIn",
641
+ type: "uint256",
642
+ },
643
+ {
644
+ internalType: "uint256",
645
+ name: "amountOut",
646
+ type: "uint256",
647
+ },
648
+ {
649
+ internalType: "uint256",
650
+ name: "amountOut2",
651
+ type: "uint256",
652
+ },
653
+ ],
654
+ internalType: "struct IBotDecisionHelper.RebalanceOutput",
655
+ name: "output",
656
+ type: "tuple",
657
+ },
658
+ ],
659
+ stateMutability: "view",
660
+ type: "function",
661
+ },
662
+ {
663
+ inputs: [
664
+ {
665
+ internalType: "address",
666
+ name: "botAddress",
667
+ type: "address",
668
+ },
669
+ ],
670
+ name: "getTradeAction",
671
+ outputs: [
672
+ {
673
+ components: [
674
+ {
675
+ internalType: "enum TradeActionType",
676
+ name: "action",
677
+ type: "uint8",
678
+ },
679
+ {
680
+ internalType: "int256",
681
+ name: "currentBin",
682
+ type: "int256",
683
+ },
684
+ {
685
+ internalType: "uint256",
686
+ name: "targetIy",
687
+ type: "uint256",
688
+ },
689
+ {
690
+ internalType: "uint256",
691
+ name: "guessBotParams",
692
+ type: "uint256",
693
+ },
694
+ {
695
+ internalType: "uint256",
696
+ name: "guessIntParams",
697
+ type: "uint256",
698
+ },
699
+ {
700
+ internalType: "uint256",
701
+ name: "amountOut",
702
+ type: "uint256",
703
+ },
704
+ ],
705
+ internalType: "struct IBotDecisionHelper.TradeResult",
706
+ name: "res",
707
+ type: "tuple",
708
+ },
709
+ ],
710
+ stateMutability: "view",
711
+ type: "function",
712
+ },
713
+ {
714
+ inputs: [
715
+ {
716
+ components: [
717
+ {
718
+ components: [
719
+ {
720
+ internalType: "uint256",
721
+ name: "lpBalance",
722
+ type: "uint256",
723
+ },
724
+ {
725
+ internalType: "uint256",
726
+ name: "ytBalance",
727
+ type: "uint256",
728
+ },
729
+ {
730
+ internalType: "uint256",
731
+ name: "ptBalance",
732
+ type: "uint256",
733
+ },
734
+ {
735
+ internalType: "uint256",
736
+ name: "syBalance",
737
+ type: "uint256",
738
+ },
739
+ {
740
+ internalType: "uint256",
741
+ name: "buyBins",
742
+ type: "uint256",
743
+ },
744
+ ],
745
+ internalType: "struct BotState",
746
+ name: "botState",
747
+ type: "tuple",
748
+ },
749
+ {
750
+ components: [
751
+ {
752
+ components: [
753
+ {
754
+ internalType: "int256",
755
+ name: "totalPt",
756
+ type: "int256",
757
+ },
758
+ {
759
+ internalType: "int256",
760
+ name: "totalSy",
761
+ type: "int256",
762
+ },
763
+ {
764
+ internalType: "int256",
765
+ name: "totalLp",
766
+ type: "int256",
767
+ },
768
+ {
769
+ internalType: "address",
770
+ name: "treasury",
771
+ type: "address",
772
+ },
773
+ {
774
+ internalType: "int256",
775
+ name: "scalarRoot",
776
+ type: "int256",
777
+ },
778
+ {
779
+ internalType: "uint256",
780
+ name: "expiry",
781
+ type: "uint256",
782
+ },
783
+ {
784
+ internalType: "uint256",
785
+ name: "lnFeeRateRoot",
786
+ type: "uint256",
787
+ },
788
+ {
789
+ internalType: "uint256",
790
+ name: "reserveFeePercent",
791
+ type: "uint256",
792
+ },
793
+ {
794
+ internalType: "uint256",
795
+ name: "lastLnImpliedRate",
796
+ type: "uint256",
797
+ },
798
+ ],
799
+ internalType: "struct MarketState",
800
+ name: "state",
801
+ type: "tuple",
802
+ },
803
+ {
804
+ internalType: "PYIndex",
805
+ name: "index",
806
+ type: "uint256",
807
+ },
808
+ {
809
+ internalType: "uint256",
810
+ name: "blockTime",
811
+ type: "uint256",
812
+ },
813
+ ],
814
+ internalType: "struct MarketExtState",
815
+ name: "marketExt",
816
+ type: "tuple",
817
+ },
818
+ {
819
+ components: [
820
+ {
821
+ internalType: "uint256",
822
+ name: "buyYtIy",
823
+ type: "uint256",
824
+ },
825
+ {
826
+ internalType: "uint256",
827
+ name: "sellYtIy",
828
+ type: "uint256",
829
+ },
830
+ {
831
+ internalType: "uint256",
832
+ name: "targetSyRatio",
833
+ type: "uint256",
834
+ },
835
+ {
836
+ internalType: "uint256",
837
+ name: "bufferSyRatio",
838
+ type: "uint256",
839
+ },
840
+ {
841
+ internalType: "uint256",
842
+ name: "minYtPtRatio",
843
+ type: "uint256",
844
+ },
845
+ {
846
+ internalType: "uint256",
847
+ name: "numOfBins",
848
+ type: "uint256",
849
+ },
850
+ ],
851
+ internalType: "struct TradingSpecs",
852
+ name: "specs",
853
+ type: "tuple",
854
+ },
855
+ ],
856
+ internalType: "struct StrategyData",
857
+ name: "strategyData",
858
+ type: "tuple",
859
+ },
860
+ {
861
+ internalType: "enum TradeActionType",
862
+ name: "action",
863
+ type: "uint8",
864
+ },
865
+ {
866
+ internalType: "uint256",
867
+ name: "botParam",
868
+ type: "uint256",
869
+ },
870
+ {
871
+ components: [
872
+ {
873
+ internalType: "uint256",
874
+ name: "guessMin",
875
+ type: "uint256",
876
+ },
877
+ {
878
+ internalType: "uint256",
879
+ name: "guessMax",
880
+ type: "uint256",
881
+ },
882
+ {
883
+ internalType: "uint256",
884
+ name: "guessOffchain",
885
+ type: "uint256",
886
+ },
887
+ {
888
+ internalType: "uint256",
889
+ name: "maxIteration",
890
+ type: "uint256",
891
+ },
892
+ {
893
+ internalType: "uint256",
894
+ name: "eps",
895
+ type: "uint256",
896
+ },
897
+ ],
898
+ internalType: "struct ApproxParams",
899
+ name: "intParams",
900
+ type: "tuple",
901
+ },
902
+ ],
903
+ name: "previewAction",
904
+ outputs: [
905
+ {
906
+ internalType: "bool",
907
+ name: "success",
908
+ type: "bool",
909
+ },
910
+ {
911
+ components: [
912
+ {
913
+ internalType: "uint256",
914
+ name: "lpBalance",
915
+ type: "uint256",
916
+ },
917
+ {
918
+ internalType: "uint256",
919
+ name: "ytBalance",
920
+ type: "uint256",
921
+ },
922
+ {
923
+ internalType: "uint256",
924
+ name: "ptBalance",
925
+ type: "uint256",
926
+ },
927
+ {
928
+ internalType: "uint256",
929
+ name: "syBalance",
930
+ type: "uint256",
931
+ },
932
+ {
933
+ internalType: "uint256",
934
+ name: "buyBins",
935
+ type: "uint256",
936
+ },
937
+ ],
938
+ internalType: "struct BotState",
939
+ name: "bot",
940
+ type: "tuple",
941
+ },
942
+ {
943
+ components: [
944
+ {
945
+ components: [
946
+ {
947
+ internalType: "int256",
948
+ name: "totalPt",
949
+ type: "int256",
950
+ },
951
+ {
952
+ internalType: "int256",
953
+ name: "totalSy",
954
+ type: "int256",
955
+ },
956
+ {
957
+ internalType: "int256",
958
+ name: "totalLp",
959
+ type: "int256",
960
+ },
961
+ {
962
+ internalType: "address",
963
+ name: "treasury",
964
+ type: "address",
965
+ },
966
+ {
967
+ internalType: "int256",
968
+ name: "scalarRoot",
969
+ type: "int256",
970
+ },
971
+ {
972
+ internalType: "uint256",
973
+ name: "expiry",
974
+ type: "uint256",
975
+ },
976
+ {
977
+ internalType: "uint256",
978
+ name: "lnFeeRateRoot",
979
+ type: "uint256",
980
+ },
981
+ {
982
+ internalType: "uint256",
983
+ name: "reserveFeePercent",
984
+ type: "uint256",
985
+ },
986
+ {
987
+ internalType: "uint256",
988
+ name: "lastLnImpliedRate",
989
+ type: "uint256",
990
+ },
991
+ ],
992
+ internalType: "struct MarketState",
993
+ name: "state",
994
+ type: "tuple",
995
+ },
996
+ {
997
+ internalType: "PYIndex",
998
+ name: "index",
999
+ type: "uint256",
1000
+ },
1001
+ {
1002
+ internalType: "uint256",
1003
+ name: "blockTime",
1004
+ type: "uint256",
1005
+ },
1006
+ ],
1007
+ internalType: "struct MarketExtState",
1008
+ name: "marketExt",
1009
+ type: "tuple",
1010
+ },
1011
+ ],
1012
+ stateMutability: "pure",
1013
+ type: "function",
1014
+ },
1015
+ {
1016
+ inputs: [
1017
+ {
1018
+ components: [
1019
+ {
1020
+ components: [
1021
+ {
1022
+ internalType: "uint256",
1023
+ name: "lpBalance",
1024
+ type: "uint256",
1025
+ },
1026
+ {
1027
+ internalType: "uint256",
1028
+ name: "ytBalance",
1029
+ type: "uint256",
1030
+ },
1031
+ {
1032
+ internalType: "uint256",
1033
+ name: "ptBalance",
1034
+ type: "uint256",
1035
+ },
1036
+ {
1037
+ internalType: "uint256",
1038
+ name: "syBalance",
1039
+ type: "uint256",
1040
+ },
1041
+ {
1042
+ internalType: "uint256",
1043
+ name: "buyBins",
1044
+ type: "uint256",
1045
+ },
1046
+ ],
1047
+ internalType: "struct BotState",
1048
+ name: "botState",
1049
+ type: "tuple",
1050
+ },
1051
+ {
1052
+ components: [
1053
+ {
1054
+ components: [
1055
+ {
1056
+ internalType: "int256",
1057
+ name: "totalPt",
1058
+ type: "int256",
1059
+ },
1060
+ {
1061
+ internalType: "int256",
1062
+ name: "totalSy",
1063
+ type: "int256",
1064
+ },
1065
+ {
1066
+ internalType: "int256",
1067
+ name: "totalLp",
1068
+ type: "int256",
1069
+ },
1070
+ {
1071
+ internalType: "address",
1072
+ name: "treasury",
1073
+ type: "address",
1074
+ },
1075
+ {
1076
+ internalType: "int256",
1077
+ name: "scalarRoot",
1078
+ type: "int256",
1079
+ },
1080
+ {
1081
+ internalType: "uint256",
1082
+ name: "expiry",
1083
+ type: "uint256",
1084
+ },
1085
+ {
1086
+ internalType: "uint256",
1087
+ name: "lnFeeRateRoot",
1088
+ type: "uint256",
1089
+ },
1090
+ {
1091
+ internalType: "uint256",
1092
+ name: "reserveFeePercent",
1093
+ type: "uint256",
1094
+ },
1095
+ {
1096
+ internalType: "uint256",
1097
+ name: "lastLnImpliedRate",
1098
+ type: "uint256",
1099
+ },
1100
+ ],
1101
+ internalType: "struct MarketState",
1102
+ name: "state",
1103
+ type: "tuple",
1104
+ },
1105
+ {
1106
+ internalType: "PYIndex",
1107
+ name: "index",
1108
+ type: "uint256",
1109
+ },
1110
+ {
1111
+ internalType: "uint256",
1112
+ name: "blockTime",
1113
+ type: "uint256",
1114
+ },
1115
+ ],
1116
+ internalType: "struct MarketExtState",
1117
+ name: "marketExt",
1118
+ type: "tuple",
1119
+ },
1120
+ {
1121
+ components: [
1122
+ {
1123
+ internalType: "uint256",
1124
+ name: "buyYtIy",
1125
+ type: "uint256",
1126
+ },
1127
+ {
1128
+ internalType: "uint256",
1129
+ name: "sellYtIy",
1130
+ type: "uint256",
1131
+ },
1132
+ {
1133
+ internalType: "uint256",
1134
+ name: "targetSyRatio",
1135
+ type: "uint256",
1136
+ },
1137
+ {
1138
+ internalType: "uint256",
1139
+ name: "bufferSyRatio",
1140
+ type: "uint256",
1141
+ },
1142
+ {
1143
+ internalType: "uint256",
1144
+ name: "minYtPtRatio",
1145
+ type: "uint256",
1146
+ },
1147
+ {
1148
+ internalType: "uint256",
1149
+ name: "numOfBins",
1150
+ type: "uint256",
1151
+ },
1152
+ ],
1153
+ internalType: "struct TradingSpecs",
1154
+ name: "specs",
1155
+ type: "tuple",
1156
+ },
1157
+ ],
1158
+ internalType: "struct StrategyData",
1159
+ name: "strategyData",
1160
+ type: "tuple",
1161
+ },
1162
+ {
1163
+ internalType: "enum TradeActionType",
1164
+ name: "action",
1165
+ type: "uint8",
1166
+ },
1167
+ {
1168
+ internalType: "uint256",
1169
+ name: "targetIy",
1170
+ type: "uint256",
1171
+ },
1172
+ {
1173
+ internalType: "uint256",
1174
+ name: "rebalanceAdditionalCheck",
1175
+ type: "uint256",
1176
+ },
1177
+ {
1178
+ components: [
1179
+ {
1180
+ internalType: "uint256",
1181
+ name: "guessMin",
1182
+ type: "uint256",
1183
+ },
1184
+ {
1185
+ internalType: "uint256",
1186
+ name: "guessMax",
1187
+ type: "uint256",
1188
+ },
1189
+ {
1190
+ internalType: "uint256",
1191
+ name: "guessOffchain",
1192
+ type: "uint256",
1193
+ },
1194
+ {
1195
+ internalType: "uint256",
1196
+ name: "maxIteration",
1197
+ type: "uint256",
1198
+ },
1199
+ {
1200
+ internalType: "uint256",
1201
+ name: "eps",
1202
+ type: "uint256",
1203
+ },
1204
+ ],
1205
+ internalType: "struct ApproxParams",
1206
+ name: "botParams",
1207
+ type: "tuple",
1208
+ },
1209
+ {
1210
+ components: [
1211
+ {
1212
+ internalType: "uint256",
1213
+ name: "guessMin",
1214
+ type: "uint256",
1215
+ },
1216
+ {
1217
+ internalType: "uint256",
1218
+ name: "guessMax",
1219
+ type: "uint256",
1220
+ },
1221
+ {
1222
+ internalType: "uint256",
1223
+ name: "guessOffchain",
1224
+ type: "uint256",
1225
+ },
1226
+ {
1227
+ internalType: "uint256",
1228
+ name: "maxIteration",
1229
+ type: "uint256",
1230
+ },
1231
+ {
1232
+ internalType: "uint256",
1233
+ name: "eps",
1234
+ type: "uint256",
1235
+ },
1236
+ ],
1237
+ internalType: "struct ApproxParams",
1238
+ name: "intParams",
1239
+ type: "tuple",
1240
+ },
1241
+ ],
1242
+ name: "searchForBotParam",
1243
+ outputs: [
1244
+ {
1245
+ internalType: "uint256",
1246
+ name: "",
1247
+ type: "uint256",
1248
+ },
1249
+ ],
1250
+ stateMutability: "pure",
1251
+ type: "function",
1252
+ },
1253
+ {
1254
+ inputs: [
1255
+ {
1256
+ components: [
1257
+ {
1258
+ components: [
1259
+ {
1260
+ internalType: "uint256",
1261
+ name: "lpBalance",
1262
+ type: "uint256",
1263
+ },
1264
+ {
1265
+ internalType: "uint256",
1266
+ name: "ytBalance",
1267
+ type: "uint256",
1268
+ },
1269
+ {
1270
+ internalType: "uint256",
1271
+ name: "ptBalance",
1272
+ type: "uint256",
1273
+ },
1274
+ {
1275
+ internalType: "uint256",
1276
+ name: "syBalance",
1277
+ type: "uint256",
1278
+ },
1279
+ {
1280
+ internalType: "uint256",
1281
+ name: "buyBins",
1282
+ type: "uint256",
1283
+ },
1284
+ ],
1285
+ internalType: "struct BotState",
1286
+ name: "botState",
1287
+ type: "tuple",
1288
+ },
1289
+ {
1290
+ components: [
1291
+ {
1292
+ components: [
1293
+ {
1294
+ internalType: "int256",
1295
+ name: "totalPt",
1296
+ type: "int256",
1297
+ },
1298
+ {
1299
+ internalType: "int256",
1300
+ name: "totalSy",
1301
+ type: "int256",
1302
+ },
1303
+ {
1304
+ internalType: "int256",
1305
+ name: "totalLp",
1306
+ type: "int256",
1307
+ },
1308
+ {
1309
+ internalType: "address",
1310
+ name: "treasury",
1311
+ type: "address",
1312
+ },
1313
+ {
1314
+ internalType: "int256",
1315
+ name: "scalarRoot",
1316
+ type: "int256",
1317
+ },
1318
+ {
1319
+ internalType: "uint256",
1320
+ name: "expiry",
1321
+ type: "uint256",
1322
+ },
1323
+ {
1324
+ internalType: "uint256",
1325
+ name: "lnFeeRateRoot",
1326
+ type: "uint256",
1327
+ },
1328
+ {
1329
+ internalType: "uint256",
1330
+ name: "reserveFeePercent",
1331
+ type: "uint256",
1332
+ },
1333
+ {
1334
+ internalType: "uint256",
1335
+ name: "lastLnImpliedRate",
1336
+ type: "uint256",
1337
+ },
1338
+ ],
1339
+ internalType: "struct MarketState",
1340
+ name: "state",
1341
+ type: "tuple",
1342
+ },
1343
+ {
1344
+ internalType: "PYIndex",
1345
+ name: "index",
1346
+ type: "uint256",
1347
+ },
1348
+ {
1349
+ internalType: "uint256",
1350
+ name: "blockTime",
1351
+ type: "uint256",
1352
+ },
1353
+ ],
1354
+ internalType: "struct MarketExtState",
1355
+ name: "marketExt",
1356
+ type: "tuple",
1357
+ },
1358
+ {
1359
+ components: [
1360
+ {
1361
+ internalType: "uint256",
1362
+ name: "buyYtIy",
1363
+ type: "uint256",
1364
+ },
1365
+ {
1366
+ internalType: "uint256",
1367
+ name: "sellYtIy",
1368
+ type: "uint256",
1369
+ },
1370
+ {
1371
+ internalType: "uint256",
1372
+ name: "targetSyRatio",
1373
+ type: "uint256",
1374
+ },
1375
+ {
1376
+ internalType: "uint256",
1377
+ name: "bufferSyRatio",
1378
+ type: "uint256",
1379
+ },
1380
+ {
1381
+ internalType: "uint256",
1382
+ name: "minYtPtRatio",
1383
+ type: "uint256",
1384
+ },
1385
+ {
1386
+ internalType: "uint256",
1387
+ name: "numOfBins",
1388
+ type: "uint256",
1389
+ },
1390
+ ],
1391
+ internalType: "struct TradingSpecs",
1392
+ name: "specs",
1393
+ type: "tuple",
1394
+ },
1395
+ ],
1396
+ internalType: "struct StrategyData",
1397
+ name: "strategyData",
1398
+ type: "tuple",
1399
+ },
1400
+ ],
1401
+ name: "searchMaxYtToAddLiq",
1402
+ outputs: [
1403
+ {
1404
+ internalType: "uint256",
1405
+ name: "maxYtToAddLiq",
1406
+ type: "uint256",
1407
+ },
1408
+ ],
1409
+ stateMutability: "pure",
1410
+ type: "function",
1411
+ },
1412
+ ];
1413
+
1414
+ const _bytecode =
1415
+ "0x608060405234801561001057600080fd5b50613dd5806100206000396000f3fe608060405234801561001057600080fd5b506004361061008e5760003560e01c806303270af41461009357806306e8bac9146100b95780630c3fad99146100dd5780631cca5369146100fd5780632313dd6e14610110578063916ec547146101305780639d2a679f14610151578063a76541e51461015a578063ac4c7e841461016d578063cf209b601461017a575b600080fd5b6100a66100a13660046136f4565b61019c565b6040519081526020015b60405180910390f35b6100cc6100c7366004613763565b6103a8565b6040516100b095949392919061382b565b6100f06100eb366004613763565b61043e565b6040516100b091906138cf565b6100a661010b366004613922565b610626565b61012361011e366004613763565b610762565b6040516100b0919061393f565b61014361013e36600461397e565b610902565b6040516100b09291906139be565b6100a660001981565b6100a6610168366004613922565b610963565b6100a6655af3107a400081565b61018d6101883660046139cc565b61098a565b6040516100b093929190613a1f565b60008060405180606001604052808981526020018860028111156101c2576101c26138b9565b81526020018790526040850151909150156102105760016101ee82866040015188886080015188610a17565b60028111156101ff576101ff6138b9565b03610210575050604082015161039e565b600061022589600001518a602001518a610b39565b9050808560200151111561023b57602085018190525b6020850151855111156102865787600281111561025a5761025a6138b9565b8551602087015160405163f25ccea360e01b815261027d93929190600401613a43565b60405180910390fd5b50600261029e82866020015188886080015188610a17565b60028111156102af576102af6138b9565b146102c0575050602082015161039e565b60005b84606001518110156103745760006002866000015187602001516102e79190613a6f565b6102f19190613a98565b86516102fd9190613aac565b9050600061031284838a8a608001518a610a17565b90506001816002811115610328576103286138b9565b036103385750925061039e915050565b600081600281111561034c5761034c6138b9565b0361035957818752610361565b602087018290525b50508061036d90613abf565b90506102c3565b50835115610385575050815161039e565b60405163fef33c9d60e01b815260040160405180910390fd5b9695505050505050565b6103b061334a565b600080600080856001600160a01b031663eb983ce56040518163ffffffff1660e01b81526004016102c060405180830381865afa1580156103f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104199190613b3b565b945061042d85600001518660200151610b6f565b979992985090969095509350915050565b6104786040805160c08101909152806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000826001600160a01b031663eb983ce56040518163ffffffff1660e01b81526004016102c060405180830381865afa1580156104b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104dd9190613b3b565b905060006104ee8260200151610c0f565b90506105038260000151836040015183610c5c565b6020840181905260000361051c57505060008152919050565b610533826000015183604001518560200151610c71565b604084015260208301516000199060009081131561058f5760028552835180516020870151608090920151604087015160a00151610572939190610cc5565b91508160000361058a57505060008352509092915050565b6105db565b60018552600061059e85610626565b90506105c0818760200151876000015160800151886040015160a00151610cc5565b9150816000036105d95750506000845250919392505050565b505b6105fb8486600001518760400151846105f387610d65565b6100a1610da1565b606086018190526020850151865161061292610902565b608087015260a08601525092949350505050565b60008061063b83600001518460200151610b6f565b93505050508260400151608001518110156106595750600092915050565b6000610677610672856000015186602001516001610b39565b610d65565b90506000610683610da1565b90505b8151610693906001613aac565b8260200151111561075a5760006002836000015184602001516106b69190613a6f565b6106c09190613a98565b83516106cc9190613aac565b905060008060006106e0896001868861098a565b92509250925082610705576106f6600185613a6f565b60208701525061068692505050565b61070f8282610b6f565b60408d015160800151909a508a109250610746915050578386526020808301518a519091015161073f9190613a6f565b9750610751565b6106f6600185613a6f565b50505050610686565b505050919050565b61078e604080516080810190915280600081526020016000815260200160008152602001600081525090565b6000826001600160a01b031663eb983ce56040518163ffffffff1660e01b81526004016102c060405180830381865afa1580156107cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f39190613b3b565b905060008061080a83600001518460200151610b6f565b509250509150600061083f846040015160600151670de0b6b3a76400006108319190613a6f565b604080870151015190610de1565b90506000610870856040015160600151670de0b6b3a76400006108629190613aac565b604080880151015190610de1565b9050808311156108ae57600186818152505061089a85602001518585886040015160400151610e04565b6060890152604088015260208701526108f8565b818310156108f8576108c08585610e38565b6040890181905260208901829052888360048111156108e1576108e16138b9565b60048111156108f2576108f26138b9565b90525050505b5050505050919050565b6000806002846002811115610919576109196138b9565b036109445761093a8361092a610da1565b61093388610f67565b9190610fa5565b909250905061095b565b6109578361095187610f67565b90611042565b5091505b935093915050565b60006109848260000151836040015161097f8560200151610c0f565b610c5c565b92915050565b60006109946133ad565b61099c6133dc565b86516109a790611146565b91506109b68760200151610f67565b905060018660028111156109cc576109cc6138b9565b036109e3576109dc828287611190565b9250610a0d565b60028660028111156109f7576109f76138b9565b03610a08576109dc828287876111ee565b600092505b9450945094915050565b600080600080610a3189600001518a602001518a8861098a565b92509250925082610a485760029350505050610b30565b6000610a5382610c0f565b905060018a602001516002811115610a6d57610a6d6138b9565b03610aed576020808401518b515190910151600091610a8b91613a6f565b905088811115610aa357600295505050505050610b30565b610ab2828c604001518a611245565b15610ac557600195505050505050610b30565b8a60400151821015610adf57600295505050505050610b30565b600095505050505050610b30565b610afc818b6040015189611278565b15610b0e576001945050505050610b30565b8960400151811115610b27576002945050505050610b30565b60009450505050505b95945050505050565b60006001826002811115610b4f57610b4f6138b9565b03610b6457610b5d836112a6565b9050610b68565b5082515b9392505050565b6000808080610b7e86866112cc565b9350610b8985610c0f565b6060870151909350610b9b90856113ba565b91506000610bb68760000151610bb088610f67565b906113e0565b9150506000876040015182610bcb9190613aac565b90508015610be9576020880151610be290826113ba565b9250610c04565b8760200151600003610bfe5760009250610c04565b60001992505b505092959194509250565b6000670de0b6b3a7640000610c52610c438460400151856000015160a00151610c389190613a6f565b6301e13380906113ba565b610c4c85611497565b906114e4565b6109849190613a6f565b6000610c6983858461168d565b949350505050565b600081600003610c8357610c83613c74565b6000610c8f85846116a2565b90506000831215610cb757610caf610ca8826001613aac565b85906116e9565b915050610b68565b610caf610ca8600183613a6f565b600083600003610cd757610cd7613c74565b6000808512610cfb5783610cec846002613c8a565b610cf69190613a6f565b610cfd565b835b9050600081670de0b6b3a7640000610d1488611763565b610d1e9190613c8a565b610d289190613a98565b90506000670de0b6b3a7640000610d4383610c4c8184613aac565b610d4d9190613a6f565b9050610d598882610de1565b98975050505050505050565b610d6d6133ad565b506040805160a0810182526001815260208101929092526000908201526101006060820152655af3107a4000608082015290565b610da96133ad565b6040518060a00160405280600181526020016000198152602001600081526020016101008152602001655af3107a4000815250905090565b600080610dee8385613c8a565b9050670de0b6b3a7640000815b04949350505050565b60008080610e1c610e158587613a6f565b8790610de1565b9250610e28878461177e565b9398909750929550919350505050565b600080600080856000015160600151610e6287604001516040015187610de190919063ffffffff16565b610e6c9190613a6f565b86515190915015610f04578551602001516000908103610e9f5786515160049550610e9890889061180a565b9050610eaf565b60029450610eac8761185d565b90505b610eb981836118c5565b8751519093508190610ecc908590613c8a565b610ed69190613a98565b93506004856004811115610eec57610eec6138b9565b03610efe57610efb878561180a565b92505b50610f5f565b6000610f25876000015160200151610f1f8960200151610f67565b906118db565b875160200151600396509091508190610f3e9084613c8a565b610f489190613a98565b9350610f5b84610f1f8960200151610f67565b9250505b509250925092565b610f6f6133dc565b6040518060600160405280610f878460000151611936565b81526020018360200151815260200183604001518152509050919050565b600080600080610fb587876113e0565b915091506000610fd28389602001516119b390919063ffffffff16565b90506000610fe08284613aac565b905060006110068a60200151838c60400151610ffb8c611146565b8e51939291906119bf565b5060208c015160408d01518d51929950929350611024928990611adb565b50505080836110339190613aac565b96505050505050935093915050565b600080600061106a85602001518587604001518860000151611b2c909392919063ffffffff16565b5050602086015190915060006110808284613c8a565b611092670de0b6b3a764000088613c8a565b61109c9190613a6f565b8751519091506000906110ae90611b55565b836110c08a6000015160200151611b55565b6110ca9190613c8a565b6110d49190613a98565b6110e690670de0b6b3a7640000613aac565b905060006110f48284613a98565b90506111008189613a6f565b9550600061111b878b60200151611b6490919063ffffffff16565b905060006111298783613a6f565b90506111368b8285611b70565b9850505050505050509250929050565b61114e6133ad565b6040518060a001604052808360000151815260200183602001518152602001836040015181526020018360600151815260200183608001518152509050919050565b6000808061119e8585611042565b9150915085602001518111156111b957600092505050610b68565b80866020018181516111cb9190613a6f565b9052508551829087906111df908390613aac565b90525060019695505050505050565b835160009083111561120257506000610c69565b60006112198461121185611146565b879190610fa5565b509050838660000181815161122e9190613a6f565b9052506020860180518291906111df908390613aac565b6000828410158015610c69575061126d8361126884670de0b6b3a7640000613aac565b610de1565b909311159392505050565b6000828411158015610c69575061129b8361126884670de0b6b3a7640000613a6f565b909310159392505050565b602081015160408201518251600092610984926112c4929190611d46565b835151611e40565b6000806112d883610f67565b90506000806112f48660000151846113e090919063ffffffff16565b91509150600082876060015161130a9190613aac565b9050600087604001518361131e9190613aac565b90508760200151811161136c576113358582611edf565b61133f9083613aac565b915061135b8189602001516113549190613a6f565b86906118db565b6113659083613aac565b91506113af565b602088015161137c908690611edf565b6113869083613aac565b91506113a288602001518261139b9190613a6f565b8690611ef1565b6113ac9083613aac565b91505b509695505050505050565b6000806113cf670de0b6b3a764000085613c8a565b9050828181610dfb57610dfb613a82565b60008060006113ee84611f15565b8551604081015160209091015191925060009161140b9084613ca1565b6114159190613cd1565b86516040810151905191925060009161142e9085613ca1565b6114389190613cd1565b87516040015190915061144b9084611f2b565b87516040015286515161145e9082611f2b565b8751528651602001516114719083611f2b565b87516020015261148082611b55565b61148982611b55565b945094505050509250929050565b60208101516040820151825160009283926114b3929190611d46565b905060006114d98460000151600001518360200151846000015185604001516000611f72565b9050610c6981611b55565b6000816000036114fd5750670de0b6b3a7640000610984565b8260000361150d57506000610984565b600160ff1b83106115525760405162461bcd60e51b815260206004820152600f60248201526e78206f7574206f6620626f756e647360881b604482015260640161027d565b82770bce5086492111aea88f4bb1ca6bcf584181ea8059f7653283106115ac5760405162461bcd60e51b815260206004820152600f60248201526e79206f7574206f6620626f756e647360881b604482015260640161027d565b826000670c7d713b49da0000831380156115cd5750670f43fc2c04ee000083125b156116045760006115dd84612023565b9050670de0b6b3a764000080820784020583670de0b6b3a764000083050201915050611612565b8161160e84612142565b0290505b670de0b6b3a76400009005680238fd42c5cf03ffff198112801590611640575068070c1cc73b00c800008113155b6116845760405162461bcd60e51b815260206004820152601560248201527470726f64756374206f7574206f6620626f756e647360581b604482015260640161027d565b61039e816124e5565b6000610c698361169d86856128fa565b612966565b6000816000036116b4576116b4613c74565b600182126116ca57816116c681613cff565b9250505b610b686116da8460800151611f15565b6116e49084613d17565b611b55565b60008115801590611714575060a0830151611705906002613c8a565b611710906001613aac565b8214155b61172057611720613c74565b600061172b8461299d565b9050611738600282613a98565b611743600185613a6f565b61174d9083613c8a565b85516117599190613aac565b610c699190613aac565b600080821361177a5761177582613d3f565b610984565b5090565b60008060006117a2611797866000015160200151611b55565b6020870151906119b3565b8551516117ae90611b55565b6117b89190613aac565b8551516117c490611b55565b6117ce9086613c8a565b6117d89190613a98565b60208601519091506117ea90826119b3565b9150611800856117fa8387613a6f565b84611b70565b9250509250929050565b60008061181a8460200151610f67565b905060008061183361182b86611f15565b8451906129cb565b9150915061184a61184382611b55565b8490611ef1565b61185383611b55565b61039e9190613aac565b60008061186d8360200151610f67565b905060008061188661182b866000015160000151611f15565b915091506118b26118a78660000151602001516118a284611b55565b6118c5565b602085015190612a97565b6118bb83611b55565b610b309190613aac565b60008183106118d45781610b68565b5090919050565b60208201516040830151835160009283926118f99291908690611b2c565b505090506000611916828660200151612aa390919063ffffffff16565b905060006119248286613a6f565b602087015190915061039e9082611b64565b61193e613403565b60405180610120016040528083600001518152602001836020015181526020018360400151815260200183606001516001600160a01b03168152602001836080015181526020018360a0015181526020018360c0015181526020018360e0015181526020018361010001518152509050919050565b6000610b688383612ab0565b60008080806119cf898988611d46565b90508460400151600003611a0c5784516119e99088612acf565b855260208501516119fe906118a28b84612ade565b6020860152611a0c85612b62565b60005b8560600151811015611ab6576000611a278783612bb0565b9050600080611a388d868e86612c15565b5090925090506000611a4a8d846119b3565b90506000611a588286613a6f565b90508c8111611a8f57611a70818e8d60800151611278565b15611a8757509750919550909350611ad092505050565b848b52611aa0565b611a9a600186613a6f565b60208c01525b505050505080611aaf90613abf565b9050611a0f565b50604051637d388ed960e11b815260040160405180910390fd5b955095509592505050565b600080600080600080611af88a8a611af28b612c46565b8a612c5d565b925092509250611b0783611b55565b9550611b1282611b55565b9450611b1d81611b55565b93505050509450945094915050565b600080600080600080611b438a8a611af28b611f15565b925092509250611b076116e484612cf0565b60008082121561177a57600080fd5b6000610b688383612cfe565b825160a00151604084015160009111611bca5760405162461bcd60e51b815260206004820152601c60248201527b13585c9ad95d115e1d131a588e88195e1c1a5c9959081b585c9ad95d60221b604482015260640161027d565b835160400151600012611c165760405162461bcd60e51b815260206004820152601460248201527304d61726b65744578744c69623a204c50203c20360641b604482015260640161027d565b6000611c2184611f15565b90506000611c2e84611f15565b90506000806000808960000151600001518a600001516040015186611c539190613ca1565b611c5d9190613cd1565b8a516020810151604090910151919250600091611c7a9089613ca1565b611c849190613cd1565b905080821215611cbf578a5160408101516020909101519295508694508592611cae908490613ca1565b611cb89190613cd1565b9250611ce8565b8a51604081015190519195508793508591611cdb908390613ca1565b611ce59190613cd1565b93505b828b60000151602001818151611cfe9190613d17565b9052508a518051859190611d13908390613d17565b9052508a516040018051869190611d2b908390613d17565b905250611d3785611b55565b9b9a5050505050505050505050565b611d716040518060800160405280600081526020016000815260200160008152602001600081525090565b60a08401518210611d955760405163b2094b5960e01b815260040160405180910390fd5b6000828560a00151611da79190613a6f565b9050611db38582612d13565b82526020850151611dc5908590612d74565b602083015284511580611dda57506020820151155b15611e01578451602083015160405163b1c4aefb60e01b815261027d9291906004016139be565b611e1f85600001518661010001518460200151856000015185612dab565b604083015260c0850151611e339082612e2c565b6060830152509392505050565b600080611e6d611e68856000015186604001518760600151611e629190613d5b565b90612e60565b6124e5565b90506000611e8d611e86670de0b6b3a764000084613d17565b8390612e83565b90506000611eab866020015186611ea49190613d17565b8390612e60565b90506000611eb98287613d5b565b90506103e8611eca826103e7613c8a565b611ed49190613a98565b979650505050505050565b6020820151600090610b689083611b64565b602082015160408301518351600092611f0b928590611adb565b5090949350505050565b60006001600160ff1b0382111561177a57600080fd5b600081831215611f685760405162461bcd60e51b81526020600482015260086024820152676e6567617469766560c01b604482015260640161027d565b610b688284613d5b565b600080611f7f8784611f2b565b90506000611f90611e86888a613d17565b9050670d529ae9e8600000811315611fc75780670d529ae9e8600000604051637e34684f60e11b815260040161027d9291906139be565b6000611fd282612ea9565b905085611fdf8289612e83565b611fe99190613d17565b9350670de0b6b3a76400008412156120175760405163329e322960e21b81526004810185905260240161027d565b50505095945050505050565b670de0b6b3a7640000026000806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff198501028161206457612064613a82565b05905060006a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b6000670de0b6b3a76400008212156121835761217a826a0c097ce7bc90715b34b9f160241b8161217457612174613a82565b05612142565b60000392915050565b6000775803bcc5cb9634ba4cfb2213f784019318ed4dcb6017880f60361b83126121ce5772195e54c5dd42177f53a27172fa9ec63026282760241b830592506806f05b59d3b2000000015b6f8bcc0026baae9e45e470190267a230cf60191b8312612205576b1425982cf597cd205cef7380830592506803782dace9d9000000015b606492830292026e01855144814a7ff805980ff0084000831261224d576e01855144814a7ff805980ff008400068056bc75e2d63100000840205925068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a7008312612288576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000084020592506856bc75e2d631000000015b693f1fce3da636ea5cf85083126122bf57693f1fce3da636ea5cf85068056bc75e2d631000008402059250682b5e3af16b18800000015b690127fa27722cc06cc5e283126122f657690127fa27722cc06cc5e268056bc75e2d6310000084020592506815af1d78b58c400000015b68280e60114edb805d03831261232b5768280e60114edb805d0368056bc75e2d631000008402059250680ad78ebc5ac6200000015b680ebc5fb41746121110831261235657680ebc5fb4174612111068056bc75e2d631000009384020592015b6808f00f760a4b2db55d831261238b576808f00f760a4b2db55d68056bc75e2d6310000084020592506802b5e3af16b1880000015b6806f5f177578893793783126123c0576806f5f177578893793768056bc75e2d63100000840205925068015af1d78b58c40000015b6806248f33704b28660383126123f4576806248f33704b28660368056bc75e2d63100000840205925067ad78ebc5ac620000015b6805c548670b9510e7ac8312612428576805c548670b9510e7ac68056bc75e2d6310000084020592506756bc75e2d6310000015b600068056bc75e2d63100000840168056bc75e2d63100000808603028161245157612451613a82565b059050600068056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b820501600202606485820105979650505050505050565b6000680238fd42c5cf03ffff19821215801561250a575068070c1cc73b00c800008213155b6125495760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b604482015260640161027d565b60008212156125815761255e826000036124e5565b6a0c097ce7bc90715b34b9f160241b8161257a5761257a613a82565b0592915050565b60006806f05b59d3b200000083126125bf57506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b6125f5565b6803782dace9d900000083126125f157506803782dace9d8ffffff19909101906b1425982cf597cd205cef73806125f5565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac6200000084126126455768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412612681576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b1880000084126126bb57682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c40000084126126f5576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac6200000841261272e57680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126127675768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b188000084126127a0576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126127d95768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b815160009082101561290e57506000610984565b826020015182111561293c5760a083015161292a906002613c8a565b612935906001613aac565b9050610984565b6129458361299d565b83516129519084613a6f565b61295b9190613a98565b610b68906001613aac565b6000806129768460800151611f15565b61297f84611f15565b6129899190613d5b565b905060018112610b685780610b3081613d82565b60008160a0015160026129b09190613c8a565b825160208401516129c19190613a6f565b6109849190613a98565b600080826000036129ef576040516325daaec360e01b815260040160405180910390fd5b60408401516020850151612a039085613ca1565b612a0d9190613cd1565b6040850151855191935090612a229085613ca1565b612a2c9190613cd1565b905081158015612a3a575080155b15612a5857604051631997ea8d60e31b815260040160405180910390fd5b6040840151612a679084611f2b565b60408501528351612a789082611f2b565b84526020840151612a899083611f2b565b602090940193909352929050565b6000610b688383612efc565b600082610c698184612f28565b6000670de0b6b3a7640000612ac58484613c8a565b610b689190613a98565b60008183116118d45781610b68565b60008060009050600060018460200151612af89190613a6f565b90505b808214612b5a5760006002612b108385613aac565b612b1b906001613aac565b612b259190613a98565b90506000612b3886886000015184612f40565b1215612b5057612b49600182613a6f565b9150612b54565b8092505b50612afb565b509392505050565b602081015181511180612b805750670de0b6b3a76400008160800151115b15612bad57805160208201516080830151604051632cc06bc160e21b815261027d93929190600401613a43565b50565b600081158015612bc35750604083015115155b15612bd357506040820151610984565b6020830151835111612bfc5760208301518351600291612bf291613aac565b6129359190613a98565b604051637d388ed960e11b815260040160405180910390fd5b60008080808080612c338989612c2a8a613d3f565b8d929190613032565b919c909b50909950975050505050505050565b6000612c5182611f15565b61098490600019613ca1565b6000806000612c708760a0015185101590565b15612c8e5760405163b2094b5960e01b815260040160405180910390fd5b86518512612cb4578651604051632185509b60e21b815261027d919087906004016139be565b6000612cc1888887611d46565b9050612ccf88828989613032565b91955093509150612ce58882898988878b613186565b509450945094915050565b600061098482600019613ca1565b600082612ac5670de0b6b3a764000084613c8a565b6000612d1e82611f15565b612d35612d306201518061016d613c8a565b611f15565b8460800151612d449190613ca1565b612d4e9190613cd1565b90506000811361098457604051630e520c3b60e11b81526004810182905260240161027d565b60008060008312612d86576001612d8a565b6000195b9050612da1612d3085612d9c86611763565b612ab0565b610c699082613ca1565b600080612db88684612e2c565b9050670de0b6b3a7640000811215612de65760405163329e322960e21b81526004810182905260240161027d565b6000612dfc612df5878a613d17565b8990612e83565b90506000612e0982612ea9565b9050612e158187612e83565b612e1f9084613d5b565b9998505050505050505050565b600080612e3e6201518061016d613c8a565b612e488486613c8a565b612e529190613a98565b9050610c69611e6882611f15565b600080612e6d8385613ca1565b9050670de0b6b3a7640000815b05949350505050565b600080612e98670de0b6b3a764000085613ca1565b9050828181612e7a57612e7a613a82565b6000670de0b6b3a76400008203612ed35760405163a9c8b14d60e01b815260040160405180910390fd5b6000612ef1612eea84670de0b6b3a7640000613d5b565b8490612e83565b9050610b6881613218565b600082600181612f14670de0b6b3a764000086613c8a565b612f1e9190613aac565b612ac59190613a6f565b6000670de0b6b3a7640000600181612f148686613c8a565b600080828560200151612f539190613d5b565b90506000612f618585613d17565b9050600082138015612f735750600081135b612fb45760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a59081c1d151bd3585c9ad95d60721b604482015260640161027d565b6000612fe2612fc38484613ca1565b6020890151612fd29089613d17565b612fdc9088613ca1565b90612e83565b90506000612ff8612ff38486612e83565b613218565b885190915060009061301390670de0b6b3a764000090612e83565b905061302381611e628486613d5b565b8960400151612e1f9190613d5b565b6000806000806130558860000151886020015189600001518a6040015189611f72565b9050600061306b6130668784612e83565b612cf0565b606089015190915060008713156130da5760006130888483612e83565b9050670de0b6b3a76400008112156130b65760405163329e322960e21b81526004810182905260240161027d565b6130d26130cb83670de0b6b3a7640000613d5b565b8490612e60565b915050613107565b613104816130f081670de0b6b3a7640000613d5b565b6130fa9085613ca1565b6130669190613cd1565b90505b600060646131188c60e00151611f15565b6131229084613ca1565b61312c9190613cd1565b9050600061313a8385613d5b565b9050600081126131535761314e8a826132a9565b61315d565b61315d8a826132d6565b97506131698a846132a9565b96506131758a836132a9565b955050505050509450945094915050565b6000818860a001516131989190613a6f565b88519091506131a79086611f2b565b88526131c16131b68486613d17565b60208a015190611f2b565b6020890181905288516131e6916131d9908990612d74565b895160408b015185613303565b610100890181905260000361320e57604051635534d70f60e11b815260040160405180910390fd5b5050505050505050565b60008082136132595760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b604482015260640161027d565b670c7d713b49da0000821380156132775750670f43fc2c04ee000082125b1561329b57670de0b6b3a764000061328e83612023565b8161257a5761257a613a82565b61098482612142565b919050565b600080600083126132bb5760016132bf565b6000195b9050612da1612d30856132d186611763565b612cfe565b600080600083126132e85760016132ec565b6000195b9050612da1612d30856132fe86611763565b612efc565b600080613314878787876000611f72565b905060006133246116e483613218565b9050836133366201518061016d613c8a565b6133409083613c8a565b610d599190613a98565b604051806060016040528061335d6133ad565b815260200161336a6133dc565b81526020016133a86040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b905290565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b60405180606001604052806133ef613403565b815260200160008152602001600081525090565b60405180610120016040528060008152602001600081526020016000815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081525090565b60405160a081016001600160401b038111828210171561348857634e487b7160e01b600052604160045260246000fd5b60405290565b604051606081016001600160401b038111828210171561348857634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b038111828210171561348857634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b038111828210171561348857634e487b7160e01b600052604160045260246000fd5b600060a0828403121561353157600080fd5b613539613458565b9050813581526020820135602082015260408201356040820152606082013560608201526080820135608082015292915050565b6001600160a01b0381168114612bad57600080fd5b80356132a48161356d565b60008183036101608112156135a157600080fd5b6135a961348e565b9150610120808212156135bb57600080fd5b6135c36134be565b91508335825260208401356020830152604084013560408301526135e960608501613582565b60608301526080840135608083015260a084013560a083015260c084013560c083015260e084013560e08301526101008085013581840152508183528084013560208401525050610140820135604082015292915050565b60008183036102c081121561365557600080fd5b61365d61348e565b9150613669848461351f565b82526136788460a0850161358d565b602083015260c06101ff198201121561369057600080fd5b506136996134ef565b610200830135815261022083013560208201526102408301356040820152610260830135606082015261028083013560808201526102a083013560a08201528060408301525092915050565b8035600381106132a457600080fd5b600080600080600080610460878903121561370e57600080fd5b6137188888613641565b95506137276102c088016136e5565b94506102e08701359350610300870135925061374788610320890161351f565b9150613757886103c0890161351f565b90509295509295509295565b60006020828403121561377557600080fd5b8135610b688161356d565b80518252602081015160208301526040810151604083015260608101516060830152608081015160808301525050565b805180518352602081015160208401526040810151604084015260018060a01b0360608201511660608401526080810151608084015260a081015160a084015260c081015160c084015260e081015160e084015261010080820151818501525050602081015161012083015260408101516101408301525050565b60006103408201905061383f828851613780565b602087015161385160a08401826137b0565b5060409687015180516102008401526020810151610220840152968701516102408301526060870151610260830152608087015161028083015260a0909601516102a08201526102c08101949094526102e08401929092526103008301526103209091015290565b634e487b7160e01b600052602160045260246000fd5b815160c0820190600381106138e6576138e66138b9565b808352506020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b60006102c0828403121561393557600080fd5b610b688383613641565b8151608082019060058110613956576139566138b9565b8083525060208301516020830152604083015160408301526060830151606083015292915050565b60008060006101a0848603121561399457600080fd5b61399e858561358d565b92506139ad61016085016136e5565b915061018084013590509250925092565b918252602082015260400190565b6000806000806103a085870312156139e357600080fd5b6139ed8686613641565b93506139fc6102c086016136e5565b92506102e08501359150613a1486610300870161351f565b905092959194509250565b83151581526102208101613a366020830185613780565b610c6960c08301846137b0565b9283526020830191909152604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561098457610984613a59565b634e487b7160e01b600052601260045260246000fd5b600082613aa757613aa7613a82565b500490565b8082018082111561098457610984613a59565b600060018201613ad157613ad1613a59565b5060010190565b80516132a48161356d565b600060c08284031215613af557600080fd5b613afd6134ef565b9050815181526020820151602082015260408201516040820152606082015160608201526080820151608082015260a082015160a082015292915050565b60008183036102c0811215613b4f57600080fd5b613b5761348e565b60a0821215613b6557600080fd5b613b6d613458565b845181526020850151602082015260408501516040820152606085015160608201526080850151608082015280825250609f198201915061016080831215613bb457600080fd5b613bbc61348e565b61012080851215613bcc57600080fd5b613bd46134be565b945060a0870151855260c0870151602086015260e08701516040860152610100613bff818901613ad8565b606087015281880151608087015261014088015160a08701528388015160c087015261018088015160e08701526101a08801518187015250508381526101c086015160208201526101e086015160408201528060208401525050613c67856102008601613ae3565b6040820152949350505050565b634e487b7160e01b600052600160045260246000fd5b808202811582820484141761098457610984613a59565b80820260008212600160ff1b84141615613cbd57613cbd613a59565b818105831482151761098457610984613a59565b600082613ce057613ce0613a82565b600160ff1b821460001984141615613cfa57613cfa613a59565b500590565b60006001600160ff1b018201613ad157613ad1613a59565b8082018281126000831280158216821582161715613d3757613d37613a59565b505092915050565b6000600160ff1b8201613d5457613d54613a59565b5060000390565b8181036000831280158383131683831282161715613d7b57613d7b613a59565b5092915050565b6000600160ff1b8201613d9757613d97613a59565b50600019019056fea26469706673582212201b8e3d712b472990dea6d85db33165693becb52ca3585c5afa191c65fde4aa9364736f6c63430008110033";
1416
+
1417
+ type LongYieldDecisionHelperConstructorParams =
1418
+ | [signer?: Signer]
1419
+ | ConstructorParameters<typeof ContractFactory>;
1420
+
1421
+ const isSuperArgs = (
1422
+ xs: LongYieldDecisionHelperConstructorParams
1423
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
1424
+
1425
+ export class LongYieldDecisionHelper__factory extends ContractFactory {
1426
+ constructor(...args: LongYieldDecisionHelperConstructorParams) {
1427
+ if (isSuperArgs(args)) {
1428
+ super(...args);
1429
+ } else {
1430
+ super(_abi, _bytecode, args[0]);
1431
+ }
1432
+ this.contractName = "LongYieldDecisionHelper";
1433
+ }
1434
+
1435
+ deploy(
1436
+ overrides?: Overrides & { from?: string | Promise<string> }
1437
+ ): Promise<LongYieldDecisionHelper> {
1438
+ return super.deploy(overrides || {}) as Promise<LongYieldDecisionHelper>;
1439
+ }
1440
+ getDeployTransaction(
1441
+ overrides?: Overrides & { from?: string | Promise<string> }
1442
+ ): TransactionRequest {
1443
+ return super.getDeployTransaction(overrides || {});
1444
+ }
1445
+ attach(address: string): LongYieldDecisionHelper {
1446
+ return super.attach(address) as LongYieldDecisionHelper;
1447
+ }
1448
+ connect(signer: Signer): LongYieldDecisionHelper__factory {
1449
+ return super.connect(signer) as LongYieldDecisionHelper__factory;
1450
+ }
1451
+ static readonly contractName: "LongYieldDecisionHelper";
1452
+ public readonly contractName: "LongYieldDecisionHelper";
1453
+ static readonly bytecode = _bytecode;
1454
+ static readonly abi = _abi;
1455
+ static createInterface(): LongYieldDecisionHelperInterface {
1456
+ return new utils.Interface(_abi) as LongYieldDecisionHelperInterface;
1457
+ }
1458
+ static connect(
1459
+ address: string,
1460
+ signerOrProvider: Signer | Provider
1461
+ ): LongYieldDecisionHelper {
1462
+ return new Contract(
1463
+ address,
1464
+ _abi,
1465
+ signerOrProvider
1466
+ ) as LongYieldDecisionHelper;
1467
+ }
1468
+ }