@pendle/core-v2 2.17.5-tradingbot → 2.17.6-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 (287) 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/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  12. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  14. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
  16. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  18. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  23. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  24. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  29. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  30. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  32. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  36. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  38. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  40. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  43. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  45. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
  49. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.json +2 -2
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +2 -2
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +2 -2
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +2 -2
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +2 -2
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +2 -2
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.dbg.json +4 -0
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.json +976 -0
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBinanceEth.sol/PendleBinanceEth.dbg.json +4 -0
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBinanceEth.sol/PendleBinanceEth.json +979 -0
  77. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
  78. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
  79. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  80. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  81. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
  82. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
  83. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
  84. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +2 -2
  85. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  86. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  87. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  88. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  89. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  90. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  91. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  92. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  93. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
  94. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
  95. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
  96. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
  97. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
  98. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
  99. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  100. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +2 -151
  101. package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.dbg.json +4 -0
  102. package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.json +42 -0
  103. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  104. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.json +82 -6
  107. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +22 -22
  109. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +42 -4
  112. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +146 -32
  121. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  124. package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  125. package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  126. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  127. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
  128. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  129. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  130. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
  131. package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +2 -2
  132. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.dbg.json +4 -0
  133. package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.json +97 -0
  134. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  135. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  136. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  137. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  138. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  139. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +84 -8
  140. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  141. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +24 -24
  142. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  143. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +44 -6
  144. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  145. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  146. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  147. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  148. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  149. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  150. package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  151. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
  152. package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +2 -2
  153. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
  154. package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.json +2 -2
  155. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +1 -1
  156. package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.json +2 -2
  157. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
  158. package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.json +2 -2
  159. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  160. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  161. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  162. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  163. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  164. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  165. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  166. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  167. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  168. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  169. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
  170. package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +2 -2
  171. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
  172. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  173. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  174. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  175. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  176. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  177. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  178. package/contracts/core/TradingBot/BotActionCallback.sol +1 -1
  179. package/contracts/core/TradingBot/BotDecisionHelper.sol +306 -0
  180. package/contracts/core/TradingBot/BotSimulationLib.sol +8 -7
  181. package/contracts/core/TradingBot/LongYieldTradingBot.sol +20 -24
  182. package/contracts/core/TradingBot/MarketExtLib.sol +64 -31
  183. package/contracts/core/TradingBot/README.md +27 -25
  184. package/contracts/core/TradingBot/TradingBotBase.sol +36 -16
  185. package/contracts/interfaces/TradingBot/IBotDecisionHelper.sol +91 -0
  186. package/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol +7 -32
  187. package/contracts/interfaces/TradingBot/ITradingBotBase.sol +6 -4
  188. package/package.json +1 -1
  189. package/typechain-types/ActionMarketAuxStatic.ts +191 -38
  190. package/typechain-types/ActionMarketCoreStatic.ts +600 -134
  191. package/typechain-types/ActionMintRedeemStatic.ts +92 -26
  192. package/typechain-types/IPActionMarketAuxStatic.ts +191 -38
  193. package/typechain-types/IPActionMarketCoreStatic.ts +600 -134
  194. package/typechain-types/IPActionMintRedeemStatic.ts +92 -26
  195. package/typechain-types/IPRouterStatic.ts +888 -197
  196. package/typechain-types/IWBETH.ts +128 -0
  197. package/typechain-types/PendleBinanceEth.ts +1229 -0
  198. package/typechain-types/PtAndLpToAsset.ts +136 -0
  199. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  200. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  201. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +83 -7
  202. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +23 -23
  203. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +43 -5
  204. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  205. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  206. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  207. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  208. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  209. package/typechain-types/factories/Broadcaster__factory.ts +1 -1
  210. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  211. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  212. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  213. package/typechain-types/factories/Errors__factory.ts +1 -150
  214. package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +82 -6
  215. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +22 -22
  216. package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +42 -4
  217. package/typechain-types/factories/IPRouterStatic__factory.ts +146 -32
  218. package/typechain-types/factories/IWBETH__factory.ts +51 -0
  219. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  220. package/typechain-types/factories/PendleAuraBbAWethSwethSY__factory.ts +1 -1
  221. package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +1 -1
  222. package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +1 -1
  223. package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +1 -1
  224. package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +1 -1
  225. package/typechain-types/factories/PendleBinanceEth__factory.ts +1052 -0
  226. package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +1 -1
  227. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  228. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  229. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  230. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  231. package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
  232. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  233. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  234. package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
  235. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  236. package/typechain-types/factories/PendleLpGlpOracle__factory.ts +1 -1
  237. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  238. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  239. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  240. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  241. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
  242. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  243. package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
  244. package/typechain-types/factories/PendlePtOracle__factory.ts +1 -1
  245. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  246. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  247. package/typechain-types/factories/PendleRouterHelper__factory.ts +1 -1
  248. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  249. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  250. package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
  251. package/typechain-types/factories/PendleStargateLPSY__factory.ts +1 -1
  252. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  253. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  254. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
  255. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  256. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
  257. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  258. package/typechain-types/factories/PtAndLpToAsset__factory.ts +150 -0
  259. package/typechain-types/factories/SAPE__factory.ts +1 -1
  260. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  261. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  262. package/typechain-types/hardhat.d.ts +36 -81
  263. package/typechain-types/index.ts +8 -18
  264. package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.dbg.json +0 -4
  265. package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.json +0 -638
  266. package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.dbg.json +0 -4
  267. package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.json +0 -638
  268. package/build/artifacts/contracts/core/TradingBot/BotDecisionLib.sol/BotDecisionLib.dbg.json +0 -4
  269. package/build/artifacts/contracts/core/TradingBot/BotDecisionLib.sol/BotDecisionLib.json +0 -589
  270. package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.dbg.json +0 -4
  271. package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.json +0 -10
  272. package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +0 -4
  273. package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.json +0 -1887
  274. package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.dbg.json +0 -4
  275. package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.json +0 -24
  276. package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.dbg.json +0 -4
  277. package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.json +0 -588
  278. package/build/artifacts/contracts/core/TradingBot/TradingBotOffchain.sol/TradingBotOffchain.dbg.json +0 -4
  279. package/build/artifacts/contracts/core/TradingBot/TradingBotOffchain.sol/TradingBotOffchain.json +0 -1075
  280. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.dbg.json +0 -4
  281. package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.json +0 -10
  282. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +0 -4
  283. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +0 -889
  284. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +0 -4
  285. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +0 -390
  286. package/contracts/core/TradingBot/BotDecisionLib.sol +0 -274
  287. package/contracts/core/TradingBot/TradingBotOffchain.sol +0 -141
@@ -1,889 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "ILongYieldTradingBot",
4
- "sourceName": "contracts/interfaces/TradingBot/ILongYieldTradingBot.sol",
5
- "abi": [
6
- {
7
- "anonymous": false,
8
- "inputs": [
9
- {
10
- "components": [
11
- {
12
- "internalType": "enum StrategyFlag",
13
- "name": "iyFlag",
14
- "type": "uint8"
15
- },
16
- {
17
- "internalType": "enum StrategyFlag",
18
- "name": "syRatioFlag",
19
- "type": "uint8"
20
- }
21
- ],
22
- "indexed": false,
23
- "internalType": "struct StrategyState",
24
- "name": "state",
25
- "type": "tuple"
26
- },
27
- {
28
- "components": [
29
- {
30
- "internalType": "uint256",
31
- "name": "guessMin",
32
- "type": "uint256"
33
- },
34
- {
35
- "internalType": "uint256",
36
- "name": "guessMax",
37
- "type": "uint256"
38
- },
39
- {
40
- "internalType": "uint256",
41
- "name": "guessOffchain",
42
- "type": "uint256"
43
- },
44
- {
45
- "internalType": "uint256",
46
- "name": "maxIteration",
47
- "type": "uint256"
48
- },
49
- {
50
- "internalType": "uint256",
51
- "name": "eps",
52
- "type": "uint256"
53
- }
54
- ],
55
- "indexed": false,
56
- "internalType": "struct ApproxParams",
57
- "name": "botParams",
58
- "type": "tuple"
59
- },
60
- {
61
- "indexed": false,
62
- "internalType": "uint256",
63
- "name": "maxSyIn",
64
- "type": "uint256"
65
- },
66
- {
67
- "indexed": false,
68
- "internalType": "uint256",
69
- "name": "netSyIn",
70
- "type": "uint256"
71
- },
72
- {
73
- "indexed": false,
74
- "internalType": "uint256",
75
- "name": "netLpOut",
76
- "type": "uint256"
77
- }
78
- ],
79
- "name": "AddLiqFromSy",
80
- "type": "event"
81
- },
82
- {
83
- "anonymous": false,
84
- "inputs": [
85
- {
86
- "components": [
87
- {
88
- "internalType": "enum StrategyFlag",
89
- "name": "iyFlag",
90
- "type": "uint8"
91
- },
92
- {
93
- "internalType": "enum StrategyFlag",
94
- "name": "syRatioFlag",
95
- "type": "uint8"
96
- }
97
- ],
98
- "indexed": false,
99
- "internalType": "struct StrategyState",
100
- "name": "state",
101
- "type": "tuple"
102
- },
103
- {
104
- "components": [
105
- {
106
- "internalType": "uint256",
107
- "name": "guessMin",
108
- "type": "uint256"
109
- },
110
- {
111
- "internalType": "uint256",
112
- "name": "guessMax",
113
- "type": "uint256"
114
- },
115
- {
116
- "internalType": "uint256",
117
- "name": "guessOffchain",
118
- "type": "uint256"
119
- },
120
- {
121
- "internalType": "uint256",
122
- "name": "maxIteration",
123
- "type": "uint256"
124
- },
125
- {
126
- "internalType": "uint256",
127
- "name": "eps",
128
- "type": "uint256"
129
- }
130
- ],
131
- "indexed": false,
132
- "internalType": "struct ApproxParams",
133
- "name": "botParams",
134
- "type": "tuple"
135
- },
136
- {
137
- "indexed": false,
138
- "internalType": "uint256",
139
- "name": "maxYtIn",
140
- "type": "uint256"
141
- },
142
- {
143
- "indexed": false,
144
- "internalType": "uint256",
145
- "name": "netYtIn",
146
- "type": "uint256"
147
- },
148
- {
149
- "indexed": false,
150
- "internalType": "uint256",
151
- "name": "netLpOut",
152
- "type": "uint256"
153
- }
154
- ],
155
- "name": "AddLiqFromYt",
156
- "type": "event"
157
- },
158
- {
159
- "anonymous": false,
160
- "inputs": [
161
- {
162
- "components": [
163
- {
164
- "internalType": "enum StrategyFlag",
165
- "name": "iyFlag",
166
- "type": "uint8"
167
- },
168
- {
169
- "internalType": "enum StrategyFlag",
170
- "name": "syRatioFlag",
171
- "type": "uint8"
172
- }
173
- ],
174
- "indexed": false,
175
- "internalType": "struct StrategyState",
176
- "name": "state",
177
- "type": "tuple"
178
- },
179
- {
180
- "components": [
181
- {
182
- "internalType": "uint256",
183
- "name": "guessMin",
184
- "type": "uint256"
185
- },
186
- {
187
- "internalType": "uint256",
188
- "name": "guessMax",
189
- "type": "uint256"
190
- },
191
- {
192
- "internalType": "uint256",
193
- "name": "guessOffchain",
194
- "type": "uint256"
195
- },
196
- {
197
- "internalType": "uint256",
198
- "name": "maxIteration",
199
- "type": "uint256"
200
- },
201
- {
202
- "internalType": "uint256",
203
- "name": "eps",
204
- "type": "uint256"
205
- }
206
- ],
207
- "indexed": false,
208
- "internalType": "struct ApproxParams",
209
- "name": "botParams",
210
- "type": "tuple"
211
- },
212
- {
213
- "indexed": false,
214
- "internalType": "uint256",
215
- "name": "maxSyIn",
216
- "type": "uint256"
217
- },
218
- {
219
- "indexed": false,
220
- "internalType": "uint256",
221
- "name": "netSyIn",
222
- "type": "uint256"
223
- },
224
- {
225
- "indexed": false,
226
- "internalType": "uint256",
227
- "name": "netLpOut",
228
- "type": "uint256"
229
- },
230
- {
231
- "indexed": false,
232
- "internalType": "uint256",
233
- "name": "netYtOut",
234
- "type": "uint256"
235
- }
236
- ],
237
- "name": "AddLiqKeepYt",
238
- "type": "event"
239
- },
240
- {
241
- "anonymous": false,
242
- "inputs": [
243
- {
244
- "components": [
245
- {
246
- "internalType": "enum StrategyFlag",
247
- "name": "iyFlag",
248
- "type": "uint8"
249
- },
250
- {
251
- "internalType": "enum StrategyFlag",
252
- "name": "syRatioFlag",
253
- "type": "uint8"
254
- }
255
- ],
256
- "indexed": false,
257
- "internalType": "struct StrategyState",
258
- "name": "state",
259
- "type": "tuple"
260
- },
261
- {
262
- "components": [
263
- {
264
- "internalType": "uint256",
265
- "name": "guessMin",
266
- "type": "uint256"
267
- },
268
- {
269
- "internalType": "uint256",
270
- "name": "guessMax",
271
- "type": "uint256"
272
- },
273
- {
274
- "internalType": "uint256",
275
- "name": "guessOffchain",
276
- "type": "uint256"
277
- },
278
- {
279
- "internalType": "uint256",
280
- "name": "maxIteration",
281
- "type": "uint256"
282
- },
283
- {
284
- "internalType": "uint256",
285
- "name": "eps",
286
- "type": "uint256"
287
- }
288
- ],
289
- "indexed": false,
290
- "internalType": "struct ApproxParams",
291
- "name": "botParams",
292
- "type": "tuple"
293
- },
294
- {
295
- "indexed": false,
296
- "internalType": "uint256",
297
- "name": "maxLpRemoved",
298
- "type": "uint256"
299
- },
300
- {
301
- "indexed": false,
302
- "internalType": "uint256",
303
- "name": "netLpIn",
304
- "type": "uint256"
305
- },
306
- {
307
- "indexed": false,
308
- "internalType": "uint256",
309
- "name": "netYtOut",
310
- "type": "uint256"
311
- }
312
- ],
313
- "name": "RemoveLiqToYt",
314
- "type": "event"
315
- },
316
- {
317
- "anonymous": false,
318
- "inputs": [
319
- {
320
- "components": [
321
- {
322
- "internalType": "enum StrategyFlag",
323
- "name": "iyFlag",
324
- "type": "uint8"
325
- },
326
- {
327
- "internalType": "enum StrategyFlag",
328
- "name": "syRatioFlag",
329
- "type": "uint8"
330
- }
331
- ],
332
- "indexed": false,
333
- "internalType": "struct StrategyState",
334
- "name": "state",
335
- "type": "tuple"
336
- },
337
- {
338
- "components": [
339
- {
340
- "internalType": "uint256",
341
- "name": "guessMin",
342
- "type": "uint256"
343
- },
344
- {
345
- "internalType": "uint256",
346
- "name": "guessMax",
347
- "type": "uint256"
348
- },
349
- {
350
- "internalType": "uint256",
351
- "name": "guessOffchain",
352
- "type": "uint256"
353
- },
354
- {
355
- "internalType": "uint256",
356
- "name": "maxIteration",
357
- "type": "uint256"
358
- },
359
- {
360
- "internalType": "uint256",
361
- "name": "eps",
362
- "type": "uint256"
363
- }
364
- ],
365
- "indexed": false,
366
- "internalType": "struct ApproxParams",
367
- "name": "botParams",
368
- "type": "tuple"
369
- },
370
- {
371
- "indexed": false,
372
- "internalType": "uint256",
373
- "name": "maxSyIn",
374
- "type": "uint256"
375
- },
376
- {
377
- "indexed": false,
378
- "internalType": "uint256",
379
- "name": "exactYtOut",
380
- "type": "uint256"
381
- },
382
- {
383
- "indexed": false,
384
- "internalType": "uint256",
385
- "name": "netSyIn",
386
- "type": "uint256"
387
- }
388
- ],
389
- "name": "SwapSyToYt",
390
- "type": "event"
391
- },
392
- {
393
- "inputs": [
394
- {
395
- "components": [
396
- {
397
- "internalType": "enum StrategyFlag",
398
- "name": "iyFlag",
399
- "type": "uint8"
400
- },
401
- {
402
- "internalType": "enum StrategyFlag",
403
- "name": "syRatioFlag",
404
- "type": "uint8"
405
- }
406
- ],
407
- "internalType": "struct StrategyState",
408
- "name": "oldState",
409
- "type": "tuple"
410
- },
411
- {
412
- "components": [
413
- {
414
- "internalType": "uint256",
415
- "name": "guessMin",
416
- "type": "uint256"
417
- },
418
- {
419
- "internalType": "uint256",
420
- "name": "guessMax",
421
- "type": "uint256"
422
- },
423
- {
424
- "internalType": "uint256",
425
- "name": "guessOffchain",
426
- "type": "uint256"
427
- },
428
- {
429
- "internalType": "uint256",
430
- "name": "maxIteration",
431
- "type": "uint256"
432
- },
433
- {
434
- "internalType": "uint256",
435
- "name": "eps",
436
- "type": "uint256"
437
- }
438
- ],
439
- "internalType": "struct ApproxParams",
440
- "name": "botParams",
441
- "type": "tuple"
442
- },
443
- {
444
- "internalType": "uint256",
445
- "name": "minLpOut",
446
- "type": "uint256"
447
- },
448
- {
449
- "internalType": "uint256",
450
- "name": "maxSyIn",
451
- "type": "uint256"
452
- }
453
- ],
454
- "name": "addLiqFromSy",
455
- "outputs": [
456
- {
457
- "internalType": "uint256",
458
- "name": "netPtFromSwap",
459
- "type": "uint256"
460
- },
461
- {
462
- "internalType": "uint256",
463
- "name": "netLpOut",
464
- "type": "uint256"
465
- },
466
- {
467
- "internalType": "uint256",
468
- "name": "netSyIn",
469
- "type": "uint256"
470
- }
471
- ],
472
- "stateMutability": "nonpayable",
473
- "type": "function"
474
- },
475
- {
476
- "inputs": [
477
- {
478
- "components": [
479
- {
480
- "internalType": "enum StrategyFlag",
481
- "name": "iyFlag",
482
- "type": "uint8"
483
- },
484
- {
485
- "internalType": "enum StrategyFlag",
486
- "name": "syRatioFlag",
487
- "type": "uint8"
488
- }
489
- ],
490
- "internalType": "struct StrategyState",
491
- "name": "oldState",
492
- "type": "tuple"
493
- },
494
- {
495
- "components": [
496
- {
497
- "internalType": "uint256",
498
- "name": "guessMin",
499
- "type": "uint256"
500
- },
501
- {
502
- "internalType": "uint256",
503
- "name": "guessMax",
504
- "type": "uint256"
505
- },
506
- {
507
- "internalType": "uint256",
508
- "name": "guessOffchain",
509
- "type": "uint256"
510
- },
511
- {
512
- "internalType": "uint256",
513
- "name": "maxIteration",
514
- "type": "uint256"
515
- },
516
- {
517
- "internalType": "uint256",
518
- "name": "eps",
519
- "type": "uint256"
520
- }
521
- ],
522
- "internalType": "struct ApproxParams",
523
- "name": "botParams",
524
- "type": "tuple"
525
- },
526
- {
527
- "internalType": "uint256",
528
- "name": "minLpOut",
529
- "type": "uint256"
530
- },
531
- {
532
- "internalType": "uint256",
533
- "name": "maxYtIn",
534
- "type": "uint256"
535
- }
536
- ],
537
- "name": "addLiqFromYt",
538
- "outputs": [
539
- {
540
- "internalType": "uint256",
541
- "name": "netPtFromSwap",
542
- "type": "uint256"
543
- },
544
- {
545
- "internalType": "uint256",
546
- "name": "netLpOut",
547
- "type": "uint256"
548
- },
549
- {
550
- "internalType": "uint256",
551
- "name": "netYtIn",
552
- "type": "uint256"
553
- }
554
- ],
555
- "stateMutability": "nonpayable",
556
- "type": "function"
557
- },
558
- {
559
- "inputs": [
560
- {
561
- "internalType": "address",
562
- "name": "router",
563
- "type": "address"
564
- },
565
- {
566
- "components": [
567
- {
568
- "internalType": "enum StrategyFlag",
569
- "name": "iyFlag",
570
- "type": "uint8"
571
- },
572
- {
573
- "internalType": "enum StrategyFlag",
574
- "name": "syRatioFlag",
575
- "type": "uint8"
576
- }
577
- ],
578
- "internalType": "struct StrategyState",
579
- "name": "oldState",
580
- "type": "tuple"
581
- },
582
- {
583
- "components": [
584
- {
585
- "internalType": "uint256",
586
- "name": "guessMin",
587
- "type": "uint256"
588
- },
589
- {
590
- "internalType": "uint256",
591
- "name": "guessMax",
592
- "type": "uint256"
593
- },
594
- {
595
- "internalType": "uint256",
596
- "name": "guessOffchain",
597
- "type": "uint256"
598
- },
599
- {
600
- "internalType": "uint256",
601
- "name": "maxIteration",
602
- "type": "uint256"
603
- },
604
- {
605
- "internalType": "uint256",
606
- "name": "eps",
607
- "type": "uint256"
608
- }
609
- ],
610
- "internalType": "struct ApproxParams",
611
- "name": "botParams",
612
- "type": "tuple"
613
- },
614
- {
615
- "internalType": "uint256",
616
- "name": "maxSyIn",
617
- "type": "uint256"
618
- },
619
- {
620
- "internalType": "uint256",
621
- "name": "minLpOut",
622
- "type": "uint256"
623
- },
624
- {
625
- "internalType": "uint256",
626
- "name": "minYtOut",
627
- "type": "uint256"
628
- }
629
- ],
630
- "name": "addLiqKeepYt",
631
- "outputs": [
632
- {
633
- "internalType": "uint256",
634
- "name": "netSyIn",
635
- "type": "uint256"
636
- },
637
- {
638
- "internalType": "uint256",
639
- "name": "netLpOut",
640
- "type": "uint256"
641
- },
642
- {
643
- "internalType": "uint256",
644
- "name": "netYtOut",
645
- "type": "uint256"
646
- }
647
- ],
648
- "stateMutability": "nonpayable",
649
- "type": "function"
650
- },
651
- {
652
- "inputs": [
653
- {
654
- "components": [
655
- {
656
- "internalType": "enum StrategyFlag",
657
- "name": "iyFlag",
658
- "type": "uint8"
659
- },
660
- {
661
- "internalType": "enum StrategyFlag",
662
- "name": "syRatioFlag",
663
- "type": "uint8"
664
- }
665
- ],
666
- "internalType": "struct StrategyState",
667
- "name": "oldState",
668
- "type": "tuple"
669
- },
670
- {
671
- "components": [
672
- {
673
- "internalType": "uint256",
674
- "name": "guessMin",
675
- "type": "uint256"
676
- },
677
- {
678
- "internalType": "uint256",
679
- "name": "guessMax",
680
- "type": "uint256"
681
- },
682
- {
683
- "internalType": "uint256",
684
- "name": "guessOffchain",
685
- "type": "uint256"
686
- },
687
- {
688
- "internalType": "uint256",
689
- "name": "maxIteration",
690
- "type": "uint256"
691
- },
692
- {
693
- "internalType": "uint256",
694
- "name": "eps",
695
- "type": "uint256"
696
- }
697
- ],
698
- "internalType": "struct ApproxParams",
699
- "name": "botParams",
700
- "type": "tuple"
701
- },
702
- {
703
- "components": [
704
- {
705
- "internalType": "uint256",
706
- "name": "guessMin",
707
- "type": "uint256"
708
- },
709
- {
710
- "internalType": "uint256",
711
- "name": "guessMax",
712
- "type": "uint256"
713
- },
714
- {
715
- "internalType": "uint256",
716
- "name": "guessOffchain",
717
- "type": "uint256"
718
- },
719
- {
720
- "internalType": "uint256",
721
- "name": "maxIteration",
722
- "type": "uint256"
723
- },
724
- {
725
- "internalType": "uint256",
726
- "name": "eps",
727
- "type": "uint256"
728
- }
729
- ],
730
- "internalType": "struct ApproxParams",
731
- "name": "guessTotalPtToSwap",
732
- "type": "tuple"
733
- },
734
- {
735
- "internalType": "uint256",
736
- "name": "maxLpRemoved",
737
- "type": "uint256"
738
- },
739
- {
740
- "internalType": "uint256",
741
- "name": "minYtOut",
742
- "type": "uint256"
743
- }
744
- ],
745
- "name": "removeLiqToYt",
746
- "outputs": [
747
- {
748
- "internalType": "uint256",
749
- "name": "netLpRemoved",
750
- "type": "uint256"
751
- },
752
- {
753
- "internalType": "uint256",
754
- "name": "netYtOut",
755
- "type": "uint256"
756
- },
757
- {
758
- "internalType": "uint256",
759
- "name": "totalPtToSwap",
760
- "type": "uint256"
761
- }
762
- ],
763
- "stateMutability": "nonpayable",
764
- "type": "function"
765
- },
766
- {
767
- "inputs": [
768
- {
769
- "components": [
770
- {
771
- "internalType": "uint256",
772
- "name": "lowerIyLimit",
773
- "type": "uint256"
774
- },
775
- {
776
- "internalType": "uint256",
777
- "name": "upperIyLimit",
778
- "type": "uint256"
779
- },
780
- {
781
- "internalType": "uint256",
782
- "name": "floatingSyRatioLimit",
783
- "type": "uint256"
784
- },
785
- {
786
- "internalType": "uint256",
787
- "name": "ytPtRatioLimit",
788
- "type": "uint256"
789
- }
790
- ],
791
- "internalType": "struct LongTradingSpecs",
792
- "name": "_specs",
793
- "type": "tuple"
794
- }
795
- ],
796
- "name": "setSpecs",
797
- "outputs": [],
798
- "stateMutability": "nonpayable",
799
- "type": "function"
800
- },
801
- {
802
- "inputs": [
803
- {
804
- "internalType": "address",
805
- "name": "router",
806
- "type": "address"
807
- },
808
- {
809
- "components": [
810
- {
811
- "internalType": "enum StrategyFlag",
812
- "name": "iyFlag",
813
- "type": "uint8"
814
- },
815
- {
816
- "internalType": "enum StrategyFlag",
817
- "name": "syRatioFlag",
818
- "type": "uint8"
819
- }
820
- ],
821
- "internalType": "struct StrategyState",
822
- "name": "oldState",
823
- "type": "tuple"
824
- },
825
- {
826
- "components": [
827
- {
828
- "internalType": "uint256",
829
- "name": "guessMin",
830
- "type": "uint256"
831
- },
832
- {
833
- "internalType": "uint256",
834
- "name": "guessMax",
835
- "type": "uint256"
836
- },
837
- {
838
- "internalType": "uint256",
839
- "name": "guessOffchain",
840
- "type": "uint256"
841
- },
842
- {
843
- "internalType": "uint256",
844
- "name": "maxIteration",
845
- "type": "uint256"
846
- },
847
- {
848
- "internalType": "uint256",
849
- "name": "eps",
850
- "type": "uint256"
851
- }
852
- ],
853
- "internalType": "struct ApproxParams",
854
- "name": "botParams",
855
- "type": "tuple"
856
- },
857
- {
858
- "internalType": "uint256",
859
- "name": "minYtOut",
860
- "type": "uint256"
861
- },
862
- {
863
- "internalType": "uint256",
864
- "name": "maxSyIn",
865
- "type": "uint256"
866
- }
867
- ],
868
- "name": "swapSyToYt",
869
- "outputs": [
870
- {
871
- "internalType": "uint256",
872
- "name": "exactYtOut",
873
- "type": "uint256"
874
- },
875
- {
876
- "internalType": "uint256",
877
- "name": "netSyIn",
878
- "type": "uint256"
879
- }
880
- ],
881
- "stateMutability": "nonpayable",
882
- "type": "function"
883
- }
884
- ],
885
- "bytecode": "0x",
886
- "deployedBytecode": "0x",
887
- "linkReferences": {},
888
- "deployedLinkReferences": {}
889
- }