@pendle/core-v2 2.17.1-tradingbot → 2.17.2-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 (35) hide show
  1. package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.dbg.json +1 -1
  2. package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.json +15 -8
  3. package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.json +15 -8
  5. package/build/artifacts/contracts/core/TradingBot/BotDecisionLib.sol/BotDecisionLib.dbg.json +1 -1
  6. package/build/artifacts/contracts/core/TradingBot/BotDecisionLib.sol/BotDecisionLib.json +560 -3
  7. package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +1 -1
  8. package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.json +72 -78
  9. package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.dbg.json +1 -1
  10. package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.json +15 -8
  11. package/build/artifacts/contracts/core/TradingBot/TradingBotOffchain.sol/TradingBotOffchain.dbg.json +1 -1
  12. package/build/artifacts/contracts/core/TradingBot/TradingBotOffchain.sol/TradingBotOffchain.json +30 -48
  13. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +1 -1
  14. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +10 -0
  15. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +1 -1
  16. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +0 -18
  17. package/package.json +1 -1
  18. package/typechain-types/BotActionCallback.ts +16 -12
  19. package/typechain-types/BotActionHelper.ts +16 -12
  20. package/typechain-types/BotDecisionLib.ts +330 -0
  21. package/typechain-types/ILongYieldTradingBot.ts +10 -2
  22. package/typechain-types/ITradingBotBase.ts +0 -36
  23. package/typechain-types/LongYieldTradingBot.ts +74 -36
  24. package/typechain-types/TradingBotBase.ts +16 -12
  25. package/typechain-types/TradingBotOffchain.ts +19 -0
  26. package/typechain-types/factories/BotActionCallback__factory.ts +15 -8
  27. package/typechain-types/factories/BotActionHelper__factory.ts +15 -8
  28. package/typechain-types/factories/BotDecisionLib__factory.ts +620 -0
  29. package/typechain-types/factories/ILongYieldTradingBot__factory.ts +10 -0
  30. package/typechain-types/factories/ITradingBotBase__factory.ts +0 -18
  31. package/typechain-types/factories/LongYieldTradingBot__factory.ts +75 -82
  32. package/typechain-types/factories/TradingBotBase__factory.ts +15 -8
  33. package/typechain-types/factories/TradingBotOffchain__factory.ts +36 -49
  34. package/typechain-types/hardhat.d.ts +9 -0
  35. package/typechain-types/index.ts +2 -0
@@ -120,6 +120,15 @@ export type MarketExtStateStructOutput = [
120
120
  BigNumber
121
121
  ] & { state: MarketStateStructOutput; index: BigNumber; blockTime: BigNumber };
122
122
 
123
+ export declare namespace ITradingBotBase {
124
+ export type MultiApprovalStruct = { tokens: string[]; spender: string };
125
+
126
+ export type MultiApprovalStructOutput = [string[], string] & {
127
+ tokens: string[];
128
+ spender: string;
129
+ };
130
+ }
131
+
123
132
  export interface BotActionCallbackInterface extends utils.Interface {
124
133
  contractName: "BotActionCallback";
125
134
  functions: {
@@ -127,7 +136,7 @@ export interface BotActionCallbackInterface extends utils.Interface {
127
136
  "PT()": FunctionFragment;
128
137
  "SY()": FunctionFragment;
129
138
  "YT()": FunctionFragment;
130
- "approveInf(address,address)": FunctionFragment;
139
+ "approveInf((address[],address)[])": FunctionFragment;
131
140
  "claimAndCompound(address,(address,uint256,address,address,address,(uint8,address,bytes,bool))[],uint256)": FunctionFragment;
132
141
  "claimOwnership()": FunctionFragment;
133
142
  "depositSy(uint256)": FunctionFragment;
@@ -148,7 +157,7 @@ export interface BotActionCallbackInterface extends utils.Interface {
148
157
  encodeFunctionData(functionFragment: "YT", values?: undefined): string;
149
158
  encodeFunctionData(
150
159
  functionFragment: "approveInf",
151
- values: [string, string]
160
+ values: [ITradingBotBase.MultiApprovalStruct[]]
152
161
  ): string;
153
162
  encodeFunctionData(
154
163
  functionFragment: "claimAndCompound",
@@ -330,8 +339,7 @@ export interface BotActionCallback extends BaseContract {
330
339
  YT(overrides?: CallOverrides): Promise<[string]>;
331
340
 
332
341
  approveInf(
333
- token: string,
334
- spender: string,
342
+ arr: ITradingBotBase.MultiApprovalStruct[],
335
343
  overrides?: Overrides & { from?: string | Promise<string> }
336
344
  ): Promise<ContractTransaction>;
337
345
 
@@ -403,8 +411,7 @@ export interface BotActionCallback extends BaseContract {
403
411
  YT(overrides?: CallOverrides): Promise<string>;
404
412
 
405
413
  approveInf(
406
- token: string,
407
- spender: string,
414
+ arr: ITradingBotBase.MultiApprovalStruct[],
408
415
  overrides?: Overrides & { from?: string | Promise<string> }
409
416
  ): Promise<ContractTransaction>;
410
417
 
@@ -474,8 +481,7 @@ export interface BotActionCallback extends BaseContract {
474
481
  YT(overrides?: CallOverrides): Promise<string>;
475
482
 
476
483
  approveInf(
477
- token: string,
478
- spender: string,
484
+ arr: ITradingBotBase.MultiApprovalStruct[],
479
485
  overrides?: CallOverrides
480
486
  ): Promise<void>;
481
487
 
@@ -587,8 +593,7 @@ export interface BotActionCallback extends BaseContract {
587
593
  YT(overrides?: CallOverrides): Promise<BigNumber>;
588
594
 
589
595
  approveInf(
590
- token: string,
591
- spender: string,
596
+ arr: ITradingBotBase.MultiApprovalStruct[],
592
597
  overrides?: Overrides & { from?: string | Promise<string> }
593
598
  ): Promise<BigNumber>;
594
599
 
@@ -659,8 +664,7 @@ export interface BotActionCallback extends BaseContract {
659
664
  YT(overrides?: CallOverrides): Promise<PopulatedTransaction>;
660
665
 
661
666
  approveInf(
662
- token: string,
663
- spender: string,
667
+ arr: ITradingBotBase.MultiApprovalStruct[],
664
668
  overrides?: Overrides & { from?: string | Promise<string> }
665
669
  ): Promise<PopulatedTransaction>;
666
670
 
@@ -120,6 +120,15 @@ export type MarketExtStateStructOutput = [
120
120
  BigNumber
121
121
  ] & { state: MarketStateStructOutput; index: BigNumber; blockTime: BigNumber };
122
122
 
123
+ export declare namespace ITradingBotBase {
124
+ export type MultiApprovalStruct = { tokens: string[]; spender: string };
125
+
126
+ export type MultiApprovalStructOutput = [string[], string] & {
127
+ tokens: string[];
128
+ spender: string;
129
+ };
130
+ }
131
+
123
132
  export interface BotActionHelperInterface extends utils.Interface {
124
133
  contractName: "BotActionHelper";
125
134
  functions: {
@@ -127,7 +136,7 @@ export interface BotActionHelperInterface extends utils.Interface {
127
136
  "PT()": FunctionFragment;
128
137
  "SY()": FunctionFragment;
129
138
  "YT()": FunctionFragment;
130
- "approveInf(address,address)": FunctionFragment;
139
+ "approveInf((address[],address)[])": FunctionFragment;
131
140
  "claimAndCompound(address,(address,uint256,address,address,address,(uint8,address,bytes,bool))[],uint256)": FunctionFragment;
132
141
  "claimOwnership()": FunctionFragment;
133
142
  "depositSy(uint256)": FunctionFragment;
@@ -148,7 +157,7 @@ export interface BotActionHelperInterface extends utils.Interface {
148
157
  encodeFunctionData(functionFragment: "YT", values?: undefined): string;
149
158
  encodeFunctionData(
150
159
  functionFragment: "approveInf",
151
- values: [string, string]
160
+ values: [ITradingBotBase.MultiApprovalStruct[]]
152
161
  ): string;
153
162
  encodeFunctionData(
154
163
  functionFragment: "claimAndCompound",
@@ -330,8 +339,7 @@ export interface BotActionHelper extends BaseContract {
330
339
  YT(overrides?: CallOverrides): Promise<[string]>;
331
340
 
332
341
  approveInf(
333
- token: string,
334
- spender: string,
342
+ arr: ITradingBotBase.MultiApprovalStruct[],
335
343
  overrides?: Overrides & { from?: string | Promise<string> }
336
344
  ): Promise<ContractTransaction>;
337
345
 
@@ -403,8 +411,7 @@ export interface BotActionHelper extends BaseContract {
403
411
  YT(overrides?: CallOverrides): Promise<string>;
404
412
 
405
413
  approveInf(
406
- token: string,
407
- spender: string,
414
+ arr: ITradingBotBase.MultiApprovalStruct[],
408
415
  overrides?: Overrides & { from?: string | Promise<string> }
409
416
  ): Promise<ContractTransaction>;
410
417
 
@@ -474,8 +481,7 @@ export interface BotActionHelper extends BaseContract {
474
481
  YT(overrides?: CallOverrides): Promise<string>;
475
482
 
476
483
  approveInf(
477
- token: string,
478
- spender: string,
484
+ arr: ITradingBotBase.MultiApprovalStruct[],
479
485
  overrides?: CallOverrides
480
486
  ): Promise<void>;
481
487
 
@@ -587,8 +593,7 @@ export interface BotActionHelper extends BaseContract {
587
593
  YT(overrides?: CallOverrides): Promise<BigNumber>;
588
594
 
589
595
  approveInf(
590
- token: string,
591
- spender: string,
596
+ arr: ITradingBotBase.MultiApprovalStruct[],
592
597
  overrides?: Overrides & { from?: string | Promise<string> }
593
598
  ): Promise<BigNumber>;
594
599
 
@@ -659,8 +664,7 @@ export interface BotActionHelper extends BaseContract {
659
664
  YT(overrides?: CallOverrides): Promise<PopulatedTransaction>;
660
665
 
661
666
  approveInf(
662
- token: string,
663
- spender: string,
667
+ arr: ITradingBotBase.MultiApprovalStruct[],
664
668
  overrides?: Overrides & { from?: string | Promise<string> }
665
669
  ): Promise<PopulatedTransaction>;
666
670
 
@@ -0,0 +1,330 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ PopulatedTransaction,
11
+ Signer,
12
+ utils,
13
+ } from "ethers";
14
+ import { FunctionFragment, Result } from "@ethersproject/abi";
15
+ import { Listener, Provider } from "@ethersproject/providers";
16
+ import type {
17
+ TypedEventFilter,
18
+ TypedEvent,
19
+ TypedListener,
20
+ OnEvent,
21
+ } from "./common";
22
+
23
+ export type StrategyStateStruct = {
24
+ iyFlag: BigNumberish;
25
+ syRatioFlag: BigNumberish;
26
+ };
27
+
28
+ export type StrategyStateStructOutput = [number, number] & {
29
+ iyFlag: number;
30
+ syRatioFlag: number;
31
+ };
32
+
33
+ export type BotStateStruct = {
34
+ lpBalance: BigNumberish;
35
+ ytBalance: BigNumberish;
36
+ syBalance: BigNumberish;
37
+ };
38
+
39
+ export type BotStateStructOutput = [BigNumber, BigNumber, BigNumber] & {
40
+ lpBalance: BigNumber;
41
+ ytBalance: BigNumber;
42
+ syBalance: BigNumber;
43
+ };
44
+
45
+ export type MarketStateStruct = {
46
+ totalPt: BigNumberish;
47
+ totalSy: BigNumberish;
48
+ totalLp: BigNumberish;
49
+ treasury: string;
50
+ scalarRoot: BigNumberish;
51
+ expiry: BigNumberish;
52
+ lnFeeRateRoot: BigNumberish;
53
+ reserveFeePercent: BigNumberish;
54
+ lastLnImpliedRate: BigNumberish;
55
+ };
56
+
57
+ export type MarketStateStructOutput = [
58
+ BigNumber,
59
+ BigNumber,
60
+ BigNumber,
61
+ string,
62
+ BigNumber,
63
+ BigNumber,
64
+ BigNumber,
65
+ BigNumber,
66
+ BigNumber
67
+ ] & {
68
+ totalPt: BigNumber;
69
+ totalSy: BigNumber;
70
+ totalLp: BigNumber;
71
+ treasury: string;
72
+ scalarRoot: BigNumber;
73
+ expiry: BigNumber;
74
+ lnFeeRateRoot: BigNumber;
75
+ reserveFeePercent: BigNumber;
76
+ lastLnImpliedRate: BigNumber;
77
+ };
78
+
79
+ export type MarketExtStateStruct = {
80
+ state: MarketStateStruct;
81
+ index: BigNumberish;
82
+ blockTime: BigNumberish;
83
+ };
84
+
85
+ export type MarketExtStateStructOutput = [
86
+ MarketStateStructOutput,
87
+ BigNumber,
88
+ BigNumber
89
+ ] & { state: MarketStateStructOutput; index: BigNumber; blockTime: BigNumber };
90
+
91
+ export type LongTradingSpecsStruct = {
92
+ lowerIyLimit: BigNumberish;
93
+ upperIyLimit: BigNumberish;
94
+ floatingSyRatioLimit: BigNumberish;
95
+ ytPtRatioLimit: BigNumberish;
96
+ };
97
+
98
+ export type LongTradingSpecsStructOutput = [
99
+ BigNumber,
100
+ BigNumber,
101
+ BigNumber,
102
+ BigNumber
103
+ ] & {
104
+ lowerIyLimit: BigNumber;
105
+ upperIyLimit: BigNumber;
106
+ floatingSyRatioLimit: BigNumber;
107
+ ytPtRatioLimit: BigNumber;
108
+ };
109
+
110
+ export type ApproxParamsStruct = {
111
+ guessMin: BigNumberish;
112
+ guessMax: BigNumberish;
113
+ guessOffchain: BigNumberish;
114
+ maxIteration: BigNumberish;
115
+ eps: BigNumberish;
116
+ };
117
+
118
+ export type ApproxParamsStructOutput = [
119
+ BigNumber,
120
+ BigNumber,
121
+ BigNumber,
122
+ BigNumber,
123
+ BigNumber
124
+ ] & {
125
+ guessMin: BigNumber;
126
+ guessMax: BigNumber;
127
+ guessOffchain: BigNumber;
128
+ maxIteration: BigNumber;
129
+ eps: BigNumber;
130
+ };
131
+
132
+ export interface BotDecisionLibInterface extends utils.Interface {
133
+ contractName: "BotDecisionLib";
134
+ functions: {
135
+ "actionToTake((uint8,uint8))": FunctionFragment;
136
+ "binarySearchUntilSwitchState((uint256,uint256,uint256),((int256,int256,int256,address,int256,uint256,uint256,uint256,uint256),uint256,uint256),(uint256,uint256,uint256,uint256),uint8,(uint8,uint8),(uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
137
+ "strategyState((uint256,uint256,uint256),((int256,int256,int256,address,int256,uint256,uint256,uint256,uint256),uint256,uint256),(uint256,uint256,uint256,uint256))": FunctionFragment;
138
+ };
139
+
140
+ encodeFunctionData(
141
+ functionFragment: "actionToTake",
142
+ values: [StrategyStateStruct]
143
+ ): string;
144
+ encodeFunctionData(
145
+ functionFragment: "binarySearchUntilSwitchState",
146
+ values: [
147
+ BotStateStruct,
148
+ MarketExtStateStruct,
149
+ LongTradingSpecsStruct,
150
+ BigNumberish,
151
+ StrategyStateStruct,
152
+ ApproxParamsStruct,
153
+ ApproxParamsStruct
154
+ ]
155
+ ): string;
156
+ encodeFunctionData(
157
+ functionFragment: "strategyState",
158
+ values: [BotStateStruct, MarketExtStateStruct, LongTradingSpecsStruct]
159
+ ): string;
160
+
161
+ decodeFunctionResult(
162
+ functionFragment: "actionToTake",
163
+ data: BytesLike
164
+ ): Result;
165
+ decodeFunctionResult(
166
+ functionFragment: "binarySearchUntilSwitchState",
167
+ data: BytesLike
168
+ ): Result;
169
+ decodeFunctionResult(
170
+ functionFragment: "strategyState",
171
+ data: BytesLike
172
+ ): Result;
173
+
174
+ events: {};
175
+ }
176
+
177
+ export interface BotDecisionLib extends BaseContract {
178
+ contractName: "BotDecisionLib";
179
+ connect(signerOrProvider: Signer | Provider | string): this;
180
+ attach(addressOrName: string): this;
181
+ deployed(): Promise<this>;
182
+
183
+ interface: BotDecisionLibInterface;
184
+
185
+ queryFilter<TEvent extends TypedEvent>(
186
+ event: TypedEventFilter<TEvent>,
187
+ fromBlockOrBlockhash?: string | number | undefined,
188
+ toBlock?: string | number | undefined
189
+ ): Promise<Array<TEvent>>;
190
+
191
+ listeners<TEvent extends TypedEvent>(
192
+ eventFilter?: TypedEventFilter<TEvent>
193
+ ): Array<TypedListener<TEvent>>;
194
+ listeners(eventName?: string): Array<Listener>;
195
+ removeAllListeners<TEvent extends TypedEvent>(
196
+ eventFilter: TypedEventFilter<TEvent>
197
+ ): this;
198
+ removeAllListeners(eventName?: string): this;
199
+ off: OnEvent<this>;
200
+ on: OnEvent<this>;
201
+ once: OnEvent<this>;
202
+ removeListener: OnEvent<this>;
203
+
204
+ functions: {
205
+ actionToTake(
206
+ currentState: StrategyStateStruct,
207
+ overrides?: CallOverrides
208
+ ): Promise<[number]>;
209
+
210
+ binarySearchUntilSwitchState(
211
+ bot: BotStateStruct,
212
+ marketExt: MarketExtStateStruct,
213
+ specs: LongTradingSpecsStruct,
214
+ action: BigNumberish,
215
+ oldState: StrategyStateStruct,
216
+ botParams: ApproxParamsStruct,
217
+ intParams: ApproxParamsStruct,
218
+ overrides?: CallOverrides
219
+ ): Promise<[BigNumber]>;
220
+
221
+ strategyState(
222
+ bot: BotStateStruct,
223
+ marketExt: MarketExtStateStruct,
224
+ specs: LongTradingSpecsStruct,
225
+ overrides?: CallOverrides
226
+ ): Promise<
227
+ [StrategyStateStructOutput] & { currentState: StrategyStateStructOutput }
228
+ >;
229
+ };
230
+
231
+ actionToTake(
232
+ currentState: StrategyStateStruct,
233
+ overrides?: CallOverrides
234
+ ): Promise<number>;
235
+
236
+ binarySearchUntilSwitchState(
237
+ bot: BotStateStruct,
238
+ marketExt: MarketExtStateStruct,
239
+ specs: LongTradingSpecsStruct,
240
+ action: BigNumberish,
241
+ oldState: StrategyStateStruct,
242
+ botParams: ApproxParamsStruct,
243
+ intParams: ApproxParamsStruct,
244
+ overrides?: CallOverrides
245
+ ): Promise<BigNumber>;
246
+
247
+ strategyState(
248
+ bot: BotStateStruct,
249
+ marketExt: MarketExtStateStruct,
250
+ specs: LongTradingSpecsStruct,
251
+ overrides?: CallOverrides
252
+ ): Promise<StrategyStateStructOutput>;
253
+
254
+ callStatic: {
255
+ actionToTake(
256
+ currentState: StrategyStateStruct,
257
+ overrides?: CallOverrides
258
+ ): Promise<number>;
259
+
260
+ binarySearchUntilSwitchState(
261
+ bot: BotStateStruct,
262
+ marketExt: MarketExtStateStruct,
263
+ specs: LongTradingSpecsStruct,
264
+ action: BigNumberish,
265
+ oldState: StrategyStateStruct,
266
+ botParams: ApproxParamsStruct,
267
+ intParams: ApproxParamsStruct,
268
+ overrides?: CallOverrides
269
+ ): Promise<BigNumber>;
270
+
271
+ strategyState(
272
+ bot: BotStateStruct,
273
+ marketExt: MarketExtStateStruct,
274
+ specs: LongTradingSpecsStruct,
275
+ overrides?: CallOverrides
276
+ ): Promise<StrategyStateStructOutput>;
277
+ };
278
+
279
+ filters: {};
280
+
281
+ estimateGas: {
282
+ actionToTake(
283
+ currentState: StrategyStateStruct,
284
+ overrides?: CallOverrides
285
+ ): Promise<BigNumber>;
286
+
287
+ binarySearchUntilSwitchState(
288
+ bot: BotStateStruct,
289
+ marketExt: MarketExtStateStruct,
290
+ specs: LongTradingSpecsStruct,
291
+ action: BigNumberish,
292
+ oldState: StrategyStateStruct,
293
+ botParams: ApproxParamsStruct,
294
+ intParams: ApproxParamsStruct,
295
+ overrides?: CallOverrides
296
+ ): Promise<BigNumber>;
297
+
298
+ strategyState(
299
+ bot: BotStateStruct,
300
+ marketExt: MarketExtStateStruct,
301
+ specs: LongTradingSpecsStruct,
302
+ overrides?: CallOverrides
303
+ ): Promise<BigNumber>;
304
+ };
305
+
306
+ populateTransaction: {
307
+ actionToTake(
308
+ currentState: StrategyStateStruct,
309
+ overrides?: CallOverrides
310
+ ): Promise<PopulatedTransaction>;
311
+
312
+ binarySearchUntilSwitchState(
313
+ bot: BotStateStruct,
314
+ marketExt: MarketExtStateStruct,
315
+ specs: LongTradingSpecsStruct,
316
+ action: BigNumberish,
317
+ oldState: StrategyStateStruct,
318
+ botParams: ApproxParamsStruct,
319
+ intParams: ApproxParamsStruct,
320
+ overrides?: CallOverrides
321
+ ): Promise<PopulatedTransaction>;
322
+
323
+ strategyState(
324
+ bot: BotStateStruct,
325
+ marketExt: MarketExtStateStruct,
326
+ specs: LongTradingSpecsStruct,
327
+ overrides?: CallOverrides
328
+ ): Promise<PopulatedTransaction>;
329
+ };
330
+ }
@@ -404,7 +404,11 @@ export interface ILongYieldTradingBot extends BaseContract {
404
404
  maxSyIn: BigNumberish,
405
405
  overrides?: CallOverrides
406
406
  ): Promise<
407
- [BigNumber, BigNumber] & { netLpOut: BigNumber; netSyIn: BigNumber }
407
+ [BigNumber, BigNumber, BigNumber] & {
408
+ netPtFromSwap: BigNumber;
409
+ netLpOut: BigNumber;
410
+ netSyIn: BigNumber;
411
+ }
408
412
  >;
409
413
 
410
414
  addLiqFromYt(
@@ -414,7 +418,11 @@ export interface ILongYieldTradingBot extends BaseContract {
414
418
  maxYtIn: BigNumberish,
415
419
  overrides?: CallOverrides
416
420
  ): Promise<
417
- [BigNumber, BigNumber] & { netLpOut: BigNumber; netYtIn: BigNumber }
421
+ [BigNumber, BigNumber, BigNumber] & {
422
+ netPtFromSwap: BigNumber;
423
+ netLpOut: BigNumber;
424
+ netYtIn: BigNumber;
425
+ }
418
426
  >;
419
427
 
420
428
  addLiqKeepYt(
@@ -123,7 +123,6 @@ export type MarketExtStateStructOutput = [
123
123
  export interface ITradingBotBaseInterface extends utils.Interface {
124
124
  contractName: "ITradingBotBase";
125
125
  functions: {
126
- "approveInf(address,address)": FunctionFragment;
127
126
  "claimAndCompound(address,(address,uint256,address,address,address,(uint8,address,bytes,bool))[],uint256)": FunctionFragment;
128
127
  "depositSy(uint256)": FunctionFragment;
129
128
  "depositToken(address,(address,uint256,address,address,address,(uint8,address,bytes,bool)),uint256)": FunctionFragment;
@@ -132,10 +131,6 @@ export interface ITradingBotBaseInterface extends utils.Interface {
132
131
  "withdrawFunds(address,uint256)": FunctionFragment;
133
132
  };
134
133
 
135
- encodeFunctionData(
136
- functionFragment: "approveInf",
137
- values: [string, string]
138
- ): string;
139
134
  encodeFunctionData(
140
135
  functionFragment: "claimAndCompound",
141
136
  values: [string, TokenInputStruct[], BigNumberish]
@@ -161,7 +156,6 @@ export interface ITradingBotBaseInterface extends utils.Interface {
161
156
  values: [string, BigNumberish]
162
157
  ): string;
163
158
 
164
- decodeFunctionResult(functionFragment: "approveInf", data: BytesLike): Result;
165
159
  decodeFunctionResult(
166
160
  functionFragment: "claimAndCompound",
167
161
  data: BytesLike
@@ -251,12 +245,6 @@ export interface ITradingBotBase extends BaseContract {
251
245
  removeListener: OnEvent<this>;
252
246
 
253
247
  functions: {
254
- approveInf(
255
- token: string,
256
- spender: string,
257
- overrides?: Overrides & { from?: string | Promise<string> }
258
- ): Promise<ContractTransaction>;
259
-
260
248
  claimAndCompound(
261
249
  router: string,
262
250
  inps: TokenInputStruct[],
@@ -292,12 +280,6 @@ export interface ITradingBotBase extends BaseContract {
292
280
  ): Promise<ContractTransaction>;
293
281
  };
294
282
 
295
- approveInf(
296
- token: string,
297
- spender: string,
298
- overrides?: Overrides & { from?: string | Promise<string> }
299
- ): Promise<ContractTransaction>;
300
-
301
283
  claimAndCompound(
302
284
  router: string,
303
285
  inps: TokenInputStruct[],
@@ -331,12 +313,6 @@ export interface ITradingBotBase extends BaseContract {
331
313
  ): Promise<ContractTransaction>;
332
314
 
333
315
  callStatic: {
334
- approveInf(
335
- token: string,
336
- spender: string,
337
- overrides?: CallOverrides
338
- ): Promise<void>;
339
-
340
316
  claimAndCompound(
341
317
  router: string,
342
318
  inps: TokenInputStruct[],
@@ -402,12 +378,6 @@ export interface ITradingBotBase extends BaseContract {
402
378
  };
403
379
 
404
380
  estimateGas: {
405
- approveInf(
406
- token: string,
407
- spender: string,
408
- overrides?: Overrides & { from?: string | Promise<string> }
409
- ): Promise<BigNumber>;
410
-
411
381
  claimAndCompound(
412
382
  router: string,
413
383
  inps: TokenInputStruct[],
@@ -442,12 +412,6 @@ export interface ITradingBotBase extends BaseContract {
442
412
  };
443
413
 
444
414
  populateTransaction: {
445
- approveInf(
446
- token: string,
447
- spender: string,
448
- overrides?: Overrides & { from?: string | Promise<string> }
449
- ): Promise<PopulatedTransaction>;
450
-
451
415
  claimAndCompound(
452
416
  router: string,
453
417
  inps: TokenInputStruct[],