@pendle/core-v2 2.17.5-tradingbot → 2.17.7-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.
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.json +25 -0
- package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.json +25 -0
- package/build/artifacts/contracts/core/TradingBot/BotDecisionHelper.sol/BotDecisionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/BotDecisionHelper.sol/BotDecisionHelper.json +1070 -0
- package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.json +60 -180
- package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.json +25 -0
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.json +917 -0
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +425 -161
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +50 -0
- package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/contracts/core/TradingBot/BotActionCallback.sol +1 -1
- package/contracts/core/TradingBot/BotDecisionHelper.sol +306 -0
- package/contracts/core/TradingBot/BotSimulationLib.sol +8 -7
- package/contracts/core/TradingBot/LongYieldTradingBot.sol +20 -24
- package/contracts/core/TradingBot/MarketExtLib.sol +64 -31
- package/contracts/core/TradingBot/README.md +27 -25
- package/contracts/core/TradingBot/TradingBotBase.sol +36 -16
- package/contracts/interfaces/TradingBot/IBotDecisionHelper.sol +91 -0
- package/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol +7 -32
- package/contracts/interfaces/TradingBot/ITradingBotBase.sol +6 -4
- package/package.json +1 -1
- package/typechain-types/BotActionCallback.ts +36 -0
- package/typechain-types/BotActionHelper.ts +36 -0
- package/typechain-types/BotDecisionHelper.ts +527 -0
- package/typechain-types/IBotDecisionHelper.ts +507 -0
- package/typechain-types/ILongYieldTradingBot.ts +481 -129
- package/typechain-types/ITradingBotBase.ts +76 -0
- package/typechain-types/IWBETH.ts +128 -0
- package/typechain-types/LongYieldTradingBot.ts +85 -141
- package/typechain-types/PendleBinanceEth.ts +1229 -0
- package/typechain-types/PtAndLpToAsset.ts +136 -0
- package/typechain-types/TradingBotBase.ts +36 -0
- package/typechain-types/factories/BotActionCallback__factory.ts +25 -0
- package/typechain-types/factories/BotActionHelper__factory.ts +25 -0
- package/typechain-types/factories/BotDecisionHelper__factory.ts +1123 -0
- package/typechain-types/factories/IBotDecisionHelper__factory.ts +932 -0
- package/typechain-types/factories/ILongYieldTradingBot__factory.ts +425 -161
- package/typechain-types/factories/ITradingBotBase__factory.ts +50 -0
- package/typechain-types/factories/IWBETH__factory.ts +51 -0
- package/typechain-types/factories/LongYieldTradingBot__factory.ts +63 -183
- package/typechain-types/factories/MarketExtLib__factory.ts +1 -1
- package/typechain-types/factories/PendleBinanceEth__factory.ts +1052 -0
- package/typechain-types/factories/PtAndLpToAsset__factory.ts +150 -0
- package/typechain-types/factories/TradingBotBase__factory.ts +25 -0
- package/typechain-types/hardhat.d.ts +49 -13
- package/typechain-types/index.ts +12 -4
- package/build/artifacts/contracts/core/TradingBot/BotDecisionLib.sol/BotDecisionLib.dbg.json +0 -4
- package/build/artifacts/contracts/core/TradingBot/BotDecisionLib.sol/BotDecisionLib.json +0 -589
- package/build/artifacts/contracts/core/TradingBot/TradingBotOffchain.sol/TradingBotOffchain.dbg.json +0 -4
- package/build/artifacts/contracts/core/TradingBot/TradingBotOffchain.sol/TradingBotOffchain.json +0 -1075
- package/contracts/core/TradingBot/BotDecisionLib.sol +0 -274
- package/contracts/core/TradingBot/TradingBotOffchain.sol +0 -141
|
@@ -13,24 +13,6 @@ const _abi = [
|
|
|
13
13
|
{
|
|
14
14
|
anonymous: false,
|
|
15
15
|
inputs: [
|
|
16
|
-
{
|
|
17
|
-
components: [
|
|
18
|
-
{
|
|
19
|
-
internalType: "enum StrategyFlag",
|
|
20
|
-
name: "iyFlag",
|
|
21
|
-
type: "uint8",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
internalType: "enum StrategyFlag",
|
|
25
|
-
name: "syRatioFlag",
|
|
26
|
-
type: "uint8",
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
indexed: false,
|
|
30
|
-
internalType: "struct StrategyState",
|
|
31
|
-
name: "state",
|
|
32
|
-
type: "tuple",
|
|
33
|
-
},
|
|
34
16
|
{
|
|
35
17
|
components: [
|
|
36
18
|
{
|
|
@@ -89,24 +71,6 @@ const _abi = [
|
|
|
89
71
|
{
|
|
90
72
|
anonymous: false,
|
|
91
73
|
inputs: [
|
|
92
|
-
{
|
|
93
|
-
components: [
|
|
94
|
-
{
|
|
95
|
-
internalType: "enum StrategyFlag",
|
|
96
|
-
name: "iyFlag",
|
|
97
|
-
type: "uint8",
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
internalType: "enum StrategyFlag",
|
|
101
|
-
name: "syRatioFlag",
|
|
102
|
-
type: "uint8",
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
indexed: false,
|
|
106
|
-
internalType: "struct StrategyState",
|
|
107
|
-
name: "state",
|
|
108
|
-
type: "tuple",
|
|
109
|
-
},
|
|
110
74
|
{
|
|
111
75
|
components: [
|
|
112
76
|
{
|
|
@@ -165,24 +129,6 @@ const _abi = [
|
|
|
165
129
|
{
|
|
166
130
|
anonymous: false,
|
|
167
131
|
inputs: [
|
|
168
|
-
{
|
|
169
|
-
components: [
|
|
170
|
-
{
|
|
171
|
-
internalType: "enum StrategyFlag",
|
|
172
|
-
name: "iyFlag",
|
|
173
|
-
type: "uint8",
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
internalType: "enum StrategyFlag",
|
|
177
|
-
name: "syRatioFlag",
|
|
178
|
-
type: "uint8",
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
indexed: false,
|
|
182
|
-
internalType: "struct StrategyState",
|
|
183
|
-
name: "state",
|
|
184
|
-
type: "tuple",
|
|
185
|
-
},
|
|
186
132
|
{
|
|
187
133
|
components: [
|
|
188
134
|
{
|
|
@@ -248,23 +194,56 @@ const _abi = [
|
|
|
248
194
|
anonymous: false,
|
|
249
195
|
inputs: [
|
|
250
196
|
{
|
|
251
|
-
components: [
|
|
252
|
-
{
|
|
253
|
-
internalType: "enum StrategyFlag",
|
|
254
|
-
name: "iyFlag",
|
|
255
|
-
type: "uint8",
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
internalType: "enum StrategyFlag",
|
|
259
|
-
name: "syRatioFlag",
|
|
260
|
-
type: "uint8",
|
|
261
|
-
},
|
|
262
|
-
],
|
|
263
197
|
indexed: false,
|
|
264
|
-
internalType: "
|
|
265
|
-
name: "
|
|
266
|
-
type: "
|
|
198
|
+
internalType: "uint256",
|
|
199
|
+
name: "netSyOut",
|
|
200
|
+
type: "uint256",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
indexed: false,
|
|
204
|
+
internalType: "uint256",
|
|
205
|
+
name: "netPendleOut",
|
|
206
|
+
type: "uint256",
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
name: "ClaimAndCompound",
|
|
210
|
+
type: "event",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
anonymous: false,
|
|
214
|
+
inputs: [
|
|
215
|
+
{
|
|
216
|
+
indexed: false,
|
|
217
|
+
internalType: "uint256",
|
|
218
|
+
name: "netSyIn",
|
|
219
|
+
type: "uint256",
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
name: "DepositSy",
|
|
223
|
+
type: "event",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
anonymous: false,
|
|
227
|
+
inputs: [
|
|
228
|
+
{
|
|
229
|
+
indexed: true,
|
|
230
|
+
internalType: "address",
|
|
231
|
+
name: "token",
|
|
232
|
+
type: "address",
|
|
267
233
|
},
|
|
234
|
+
{
|
|
235
|
+
indexed: false,
|
|
236
|
+
internalType: "uint256",
|
|
237
|
+
name: "netTokenIn",
|
|
238
|
+
type: "uint256",
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
name: "DepositToken",
|
|
242
|
+
type: "event",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
anonymous: false,
|
|
246
|
+
inputs: [
|
|
268
247
|
{
|
|
269
248
|
components: [
|
|
270
249
|
{
|
|
@@ -323,24 +302,6 @@ const _abi = [
|
|
|
323
302
|
{
|
|
324
303
|
anonymous: false,
|
|
325
304
|
inputs: [
|
|
326
|
-
{
|
|
327
|
-
components: [
|
|
328
|
-
{
|
|
329
|
-
internalType: "enum StrategyFlag",
|
|
330
|
-
name: "iyFlag",
|
|
331
|
-
type: "uint8",
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
internalType: "enum StrategyFlag",
|
|
335
|
-
name: "syRatioFlag",
|
|
336
|
-
type: "uint8",
|
|
337
|
-
},
|
|
338
|
-
],
|
|
339
|
-
indexed: false,
|
|
340
|
-
internalType: "struct StrategyState",
|
|
341
|
-
name: "state",
|
|
342
|
-
type: "tuple",
|
|
343
|
-
},
|
|
344
305
|
{
|
|
345
306
|
components: [
|
|
346
307
|
{
|
|
@@ -397,24 +358,26 @@ const _abi = [
|
|
|
397
358
|
type: "event",
|
|
398
359
|
},
|
|
399
360
|
{
|
|
361
|
+
anonymous: false,
|
|
400
362
|
inputs: [
|
|
401
363
|
{
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
type: "uint8",
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
internalType: "enum StrategyFlag",
|
|
410
|
-
name: "syRatioFlag",
|
|
411
|
-
type: "uint8",
|
|
412
|
-
},
|
|
413
|
-
],
|
|
414
|
-
internalType: "struct StrategyState",
|
|
415
|
-
name: "oldState",
|
|
416
|
-
type: "tuple",
|
|
364
|
+
indexed: true,
|
|
365
|
+
internalType: "address",
|
|
366
|
+
name: "token",
|
|
367
|
+
type: "address",
|
|
417
368
|
},
|
|
369
|
+
{
|
|
370
|
+
indexed: false,
|
|
371
|
+
internalType: "uint256",
|
|
372
|
+
name: "amount",
|
|
373
|
+
type: "uint256",
|
|
374
|
+
},
|
|
375
|
+
],
|
|
376
|
+
name: "WithdrawFunds",
|
|
377
|
+
type: "event",
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
inputs: [
|
|
418
381
|
{
|
|
419
382
|
components: [
|
|
420
383
|
{
|
|
@@ -481,23 +444,6 @@ const _abi = [
|
|
|
481
444
|
},
|
|
482
445
|
{
|
|
483
446
|
inputs: [
|
|
484
|
-
{
|
|
485
|
-
components: [
|
|
486
|
-
{
|
|
487
|
-
internalType: "enum StrategyFlag",
|
|
488
|
-
name: "iyFlag",
|
|
489
|
-
type: "uint8",
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
internalType: "enum StrategyFlag",
|
|
493
|
-
name: "syRatioFlag",
|
|
494
|
-
type: "uint8",
|
|
495
|
-
},
|
|
496
|
-
],
|
|
497
|
-
internalType: "struct StrategyState",
|
|
498
|
-
name: "oldState",
|
|
499
|
-
type: "tuple",
|
|
500
|
-
},
|
|
501
447
|
{
|
|
502
448
|
components: [
|
|
503
449
|
{
|
|
@@ -569,23 +515,6 @@ const _abi = [
|
|
|
569
515
|
name: "router",
|
|
570
516
|
type: "address",
|
|
571
517
|
},
|
|
572
|
-
{
|
|
573
|
-
components: [
|
|
574
|
-
{
|
|
575
|
-
internalType: "enum StrategyFlag",
|
|
576
|
-
name: "iyFlag",
|
|
577
|
-
type: "uint8",
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
internalType: "enum StrategyFlag",
|
|
581
|
-
name: "syRatioFlag",
|
|
582
|
-
type: "uint8",
|
|
583
|
-
},
|
|
584
|
-
],
|
|
585
|
-
internalType: "struct StrategyState",
|
|
586
|
-
name: "oldState",
|
|
587
|
-
type: "tuple",
|
|
588
|
-
},
|
|
589
518
|
{
|
|
590
519
|
components: [
|
|
591
520
|
{
|
|
@@ -660,20 +589,344 @@ const _abi = [
|
|
|
660
589
|
{
|
|
661
590
|
components: [
|
|
662
591
|
{
|
|
663
|
-
internalType: "
|
|
664
|
-
name: "
|
|
665
|
-
type: "
|
|
592
|
+
internalType: "address[]",
|
|
593
|
+
name: "tokens",
|
|
594
|
+
type: "address[]",
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
internalType: "address",
|
|
598
|
+
name: "spender",
|
|
599
|
+
type: "address",
|
|
600
|
+
},
|
|
601
|
+
],
|
|
602
|
+
internalType: "struct ITradingBotBase.MultiApproval[]",
|
|
603
|
+
name: "arr",
|
|
604
|
+
type: "tuple[]",
|
|
605
|
+
},
|
|
606
|
+
],
|
|
607
|
+
name: "approveInf",
|
|
608
|
+
outputs: [],
|
|
609
|
+
stateMutability: "nonpayable",
|
|
610
|
+
type: "function",
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
inputs: [
|
|
614
|
+
{
|
|
615
|
+
internalType: "address",
|
|
616
|
+
name: "router",
|
|
617
|
+
type: "address",
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
components: [
|
|
621
|
+
{
|
|
622
|
+
internalType: "address",
|
|
623
|
+
name: "tokenIn",
|
|
624
|
+
type: "address",
|
|
666
625
|
},
|
|
667
626
|
{
|
|
668
|
-
internalType: "
|
|
669
|
-
name: "
|
|
670
|
-
type: "
|
|
627
|
+
internalType: "uint256",
|
|
628
|
+
name: "netTokenIn",
|
|
629
|
+
type: "uint256",
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
internalType: "address",
|
|
633
|
+
name: "tokenMintSy",
|
|
634
|
+
type: "address",
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
internalType: "address",
|
|
638
|
+
name: "bulk",
|
|
639
|
+
type: "address",
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
internalType: "address",
|
|
643
|
+
name: "pendleSwap",
|
|
644
|
+
type: "address",
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
components: [
|
|
648
|
+
{
|
|
649
|
+
internalType: "enum SwapType",
|
|
650
|
+
name: "swapType",
|
|
651
|
+
type: "uint8",
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
internalType: "address",
|
|
655
|
+
name: "extRouter",
|
|
656
|
+
type: "address",
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
internalType: "bytes",
|
|
660
|
+
name: "extCalldata",
|
|
661
|
+
type: "bytes",
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
internalType: "bool",
|
|
665
|
+
name: "needScale",
|
|
666
|
+
type: "bool",
|
|
667
|
+
},
|
|
668
|
+
],
|
|
669
|
+
internalType: "struct SwapData",
|
|
670
|
+
name: "swapData",
|
|
671
|
+
type: "tuple",
|
|
671
672
|
},
|
|
672
673
|
],
|
|
673
|
-
internalType: "struct
|
|
674
|
-
name: "
|
|
674
|
+
internalType: "struct TokenInput[]",
|
|
675
|
+
name: "inps",
|
|
676
|
+
type: "tuple[]",
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
internalType: "uint256",
|
|
680
|
+
name: "minSyOut",
|
|
681
|
+
type: "uint256",
|
|
682
|
+
},
|
|
683
|
+
],
|
|
684
|
+
name: "claimAndCompound",
|
|
685
|
+
outputs: [
|
|
686
|
+
{
|
|
687
|
+
internalType: "uint256",
|
|
688
|
+
name: "netSyOut",
|
|
689
|
+
type: "uint256",
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
internalType: "uint256",
|
|
693
|
+
name: "netPendleOut",
|
|
694
|
+
type: "uint256",
|
|
695
|
+
},
|
|
696
|
+
],
|
|
697
|
+
stateMutability: "nonpayable",
|
|
698
|
+
type: "function",
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
inputs: [],
|
|
702
|
+
name: "claimWithoutCompound",
|
|
703
|
+
outputs: [
|
|
704
|
+
{
|
|
705
|
+
components: [
|
|
706
|
+
{
|
|
707
|
+
internalType: "address",
|
|
708
|
+
name: "token",
|
|
709
|
+
type: "address",
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
internalType: "uint256",
|
|
713
|
+
name: "amount",
|
|
714
|
+
type: "uint256",
|
|
715
|
+
},
|
|
716
|
+
],
|
|
717
|
+
internalType: "struct TokenAmount[]",
|
|
718
|
+
name: "rewards",
|
|
719
|
+
type: "tuple[]",
|
|
720
|
+
},
|
|
721
|
+
],
|
|
722
|
+
stateMutability: "nonpayable",
|
|
723
|
+
type: "function",
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
inputs: [
|
|
727
|
+
{
|
|
728
|
+
internalType: "uint256",
|
|
729
|
+
name: "netSyIn",
|
|
730
|
+
type: "uint256",
|
|
731
|
+
},
|
|
732
|
+
],
|
|
733
|
+
name: "depositSy",
|
|
734
|
+
outputs: [],
|
|
735
|
+
stateMutability: "nonpayable",
|
|
736
|
+
type: "function",
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
inputs: [
|
|
740
|
+
{
|
|
741
|
+
internalType: "address",
|
|
742
|
+
name: "router",
|
|
743
|
+
type: "address",
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
components: [
|
|
747
|
+
{
|
|
748
|
+
internalType: "address",
|
|
749
|
+
name: "tokenIn",
|
|
750
|
+
type: "address",
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
internalType: "uint256",
|
|
754
|
+
name: "netTokenIn",
|
|
755
|
+
type: "uint256",
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
internalType: "address",
|
|
759
|
+
name: "tokenMintSy",
|
|
760
|
+
type: "address",
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
internalType: "address",
|
|
764
|
+
name: "bulk",
|
|
765
|
+
type: "address",
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
internalType: "address",
|
|
769
|
+
name: "pendleSwap",
|
|
770
|
+
type: "address",
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
components: [
|
|
774
|
+
{
|
|
775
|
+
internalType: "enum SwapType",
|
|
776
|
+
name: "swapType",
|
|
777
|
+
type: "uint8",
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
internalType: "address",
|
|
781
|
+
name: "extRouter",
|
|
782
|
+
type: "address",
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
internalType: "bytes",
|
|
786
|
+
name: "extCalldata",
|
|
787
|
+
type: "bytes",
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
internalType: "bool",
|
|
791
|
+
name: "needScale",
|
|
792
|
+
type: "bool",
|
|
793
|
+
},
|
|
794
|
+
],
|
|
795
|
+
internalType: "struct SwapData",
|
|
796
|
+
name: "swapData",
|
|
797
|
+
type: "tuple",
|
|
798
|
+
},
|
|
799
|
+
],
|
|
800
|
+
internalType: "struct TokenInput",
|
|
801
|
+
name: "inp",
|
|
675
802
|
type: "tuple",
|
|
676
803
|
},
|
|
804
|
+
{
|
|
805
|
+
internalType: "uint256",
|
|
806
|
+
name: "minSyOut",
|
|
807
|
+
type: "uint256",
|
|
808
|
+
},
|
|
809
|
+
],
|
|
810
|
+
name: "depositToken",
|
|
811
|
+
outputs: [],
|
|
812
|
+
stateMutability: "payable",
|
|
813
|
+
type: "function",
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
inputs: [],
|
|
817
|
+
name: "readBotState",
|
|
818
|
+
outputs: [
|
|
819
|
+
{
|
|
820
|
+
components: [
|
|
821
|
+
{
|
|
822
|
+
internalType: "uint256",
|
|
823
|
+
name: "lpBalance",
|
|
824
|
+
type: "uint256",
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
internalType: "uint256",
|
|
828
|
+
name: "ytBalance",
|
|
829
|
+
type: "uint256",
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
internalType: "uint256",
|
|
833
|
+
name: "syBalance",
|
|
834
|
+
type: "uint256",
|
|
835
|
+
},
|
|
836
|
+
],
|
|
837
|
+
internalType: "struct BotState",
|
|
838
|
+
name: "botState",
|
|
839
|
+
type: "tuple",
|
|
840
|
+
},
|
|
841
|
+
],
|
|
842
|
+
stateMutability: "view",
|
|
843
|
+
type: "function",
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
inputs: [
|
|
847
|
+
{
|
|
848
|
+
internalType: "address",
|
|
849
|
+
name: "router",
|
|
850
|
+
type: "address",
|
|
851
|
+
},
|
|
852
|
+
],
|
|
853
|
+
name: "readMarketExtState",
|
|
854
|
+
outputs: [
|
|
855
|
+
{
|
|
856
|
+
components: [
|
|
857
|
+
{
|
|
858
|
+
components: [
|
|
859
|
+
{
|
|
860
|
+
internalType: "int256",
|
|
861
|
+
name: "totalPt",
|
|
862
|
+
type: "int256",
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
internalType: "int256",
|
|
866
|
+
name: "totalSy",
|
|
867
|
+
type: "int256",
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
internalType: "int256",
|
|
871
|
+
name: "totalLp",
|
|
872
|
+
type: "int256",
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
internalType: "address",
|
|
876
|
+
name: "treasury",
|
|
877
|
+
type: "address",
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
internalType: "int256",
|
|
881
|
+
name: "scalarRoot",
|
|
882
|
+
type: "int256",
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
internalType: "uint256",
|
|
886
|
+
name: "expiry",
|
|
887
|
+
type: "uint256",
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
internalType: "uint256",
|
|
891
|
+
name: "lnFeeRateRoot",
|
|
892
|
+
type: "uint256",
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
internalType: "uint256",
|
|
896
|
+
name: "reserveFeePercent",
|
|
897
|
+
type: "uint256",
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
internalType: "uint256",
|
|
901
|
+
name: "lastLnImpliedRate",
|
|
902
|
+
type: "uint256",
|
|
903
|
+
},
|
|
904
|
+
],
|
|
905
|
+
internalType: "struct MarketState",
|
|
906
|
+
name: "state",
|
|
907
|
+
type: "tuple",
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
internalType: "PYIndex",
|
|
911
|
+
name: "index",
|
|
912
|
+
type: "uint256",
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
internalType: "uint256",
|
|
916
|
+
name: "blockTime",
|
|
917
|
+
type: "uint256",
|
|
918
|
+
},
|
|
919
|
+
],
|
|
920
|
+
internalType: "struct MarketExtState",
|
|
921
|
+
name: "marketExt",
|
|
922
|
+
type: "tuple",
|
|
923
|
+
},
|
|
924
|
+
],
|
|
925
|
+
stateMutability: "nonpayable",
|
|
926
|
+
type: "function",
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
inputs: [
|
|
677
930
|
{
|
|
678
931
|
components: [
|
|
679
932
|
{
|
|
@@ -789,11 +1042,21 @@ const _abi = [
|
|
|
789
1042
|
name: "floatingSyRatioLimit",
|
|
790
1043
|
type: "uint256",
|
|
791
1044
|
},
|
|
1045
|
+
{
|
|
1046
|
+
internalType: "uint256",
|
|
1047
|
+
name: "floatingSyRatioTarget",
|
|
1048
|
+
type: "uint256",
|
|
1049
|
+
},
|
|
792
1050
|
{
|
|
793
1051
|
internalType: "uint256",
|
|
794
1052
|
name: "ytPtRatioLimit",
|
|
795
1053
|
type: "uint256",
|
|
796
1054
|
},
|
|
1055
|
+
{
|
|
1056
|
+
internalType: "uint256",
|
|
1057
|
+
name: "ytPtRatioTarget",
|
|
1058
|
+
type: "uint256",
|
|
1059
|
+
},
|
|
797
1060
|
],
|
|
798
1061
|
internalType: "struct LongTradingSpecs",
|
|
799
1062
|
name: "_specs",
|
|
@@ -812,23 +1075,6 @@ const _abi = [
|
|
|
812
1075
|
name: "router",
|
|
813
1076
|
type: "address",
|
|
814
1077
|
},
|
|
815
|
-
{
|
|
816
|
-
components: [
|
|
817
|
-
{
|
|
818
|
-
internalType: "enum StrategyFlag",
|
|
819
|
-
name: "iyFlag",
|
|
820
|
-
type: "uint8",
|
|
821
|
-
},
|
|
822
|
-
{
|
|
823
|
-
internalType: "enum StrategyFlag",
|
|
824
|
-
name: "syRatioFlag",
|
|
825
|
-
type: "uint8",
|
|
826
|
-
},
|
|
827
|
-
],
|
|
828
|
-
internalType: "struct StrategyState",
|
|
829
|
-
name: "oldState",
|
|
830
|
-
type: "tuple",
|
|
831
|
-
},
|
|
832
1078
|
{
|
|
833
1079
|
components: [
|
|
834
1080
|
{
|
|
@@ -888,6 +1134,24 @@ const _abi = [
|
|
|
888
1134
|
stateMutability: "nonpayable",
|
|
889
1135
|
type: "function",
|
|
890
1136
|
},
|
|
1137
|
+
{
|
|
1138
|
+
inputs: [
|
|
1139
|
+
{
|
|
1140
|
+
internalType: "address",
|
|
1141
|
+
name: "token",
|
|
1142
|
+
type: "address",
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
internalType: "uint256",
|
|
1146
|
+
name: "amount",
|
|
1147
|
+
type: "uint256",
|
|
1148
|
+
},
|
|
1149
|
+
],
|
|
1150
|
+
name: "withdrawFunds",
|
|
1151
|
+
outputs: [],
|
|
1152
|
+
stateMutability: "nonpayable",
|
|
1153
|
+
type: "function",
|
|
1154
|
+
},
|
|
891
1155
|
];
|
|
892
1156
|
|
|
893
1157
|
export class ILongYieldTradingBot__factory {
|