@pendle/core-v2 0.5.1-beta → 0.5.1-beta-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/core/RouterStatic.sol +18 -0
- package/contracts/interfaces/IPAllAction.sol +1 -1
- package/contracts/interfaces/IPRouterStatic.sol +48 -0
- package/package.json +1 -1
- package/typechain-types/IPAllAction.ts +0 -288
- package/typechain-types/IPRouterStatic.ts +483 -0
- package/typechain-types/RouterStatic.ts +483 -0
- package/typechain-types/factories/IPAllAction__factory.ts +0 -193
- package/typechain-types/factories/IPRouterStatic__factory.ts +616 -0
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/RouterStatic__factory.ts +617 -1
- package/typechain-types/ActionStatic.ts +0 -399
- package/typechain-types/IPActionAll.ts +0 -1431
- package/typechain-types/IPActionStatic.ts +0 -359
- package/typechain-types/factories/ActionStatic__factory.ts +0 -308
- package/typechain-types/factories/IPActionAll__factory.ts +0 -983
- package/typechain-types/factories/IPActionStatic__factory.ts +0 -219
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
2
|
pragma solidity 0.8.9;
|
|
3
3
|
|
|
4
|
+
import "../SuperComposableYield/ISuperComposableYield.sol";
|
|
5
|
+
import "../SuperComposableYield/implementations/IRewardManager.sol";
|
|
4
6
|
import "../interfaces/IPRouterStatic.sol";
|
|
5
7
|
import "../interfaces/IPMarket.sol";
|
|
6
8
|
import "../interfaces/IPYieldContractFactory.sol";
|
|
@@ -231,4 +233,20 @@ contract RouterStatic is IPRouterStatic {
|
|
|
231
233
|
userYOInfo.unclaimedInterest.amount > 0 ||
|
|
232
234
|
userYOInfo.unclaimedRewards.length > 0);
|
|
233
235
|
}
|
|
236
|
+
|
|
237
|
+
function getUserSCYInfo(address scy, address user)
|
|
238
|
+
external
|
|
239
|
+
view
|
|
240
|
+
returns (uint256 balance, TokenAmount[] memory rewards)
|
|
241
|
+
{
|
|
242
|
+
ISuperComposableYield SCY = ISuperComposableYield(scy);
|
|
243
|
+
balance = SCY.balanceOf(scy);
|
|
244
|
+
address[] memory rewardTokens = SCY.getRewardTokens();
|
|
245
|
+
rewards = new TokenAmount[](rewardTokens.length);
|
|
246
|
+
for (uint256 i = 0; i < rewardTokens.length; ++i) {
|
|
247
|
+
address rewardToken = rewardTokens[i];
|
|
248
|
+
rewards[i].token = rewardToken;
|
|
249
|
+
(, rewards[i].amount) = IRewardManager(scy).getUserReward(user, rewardToken);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
234
252
|
}
|
|
@@ -68,4 +68,52 @@ interface IPRouterStatic {
|
|
|
68
68
|
bool isYT,
|
|
69
69
|
bool isMarket
|
|
70
70
|
);
|
|
71
|
+
|
|
72
|
+
function getUserYOInfo(address token, address user)
|
|
73
|
+
external
|
|
74
|
+
view
|
|
75
|
+
returns (UserYOInfo memory userYOInfo);
|
|
76
|
+
|
|
77
|
+
function getYOInfo(address token)
|
|
78
|
+
external
|
|
79
|
+
returns (
|
|
80
|
+
uint256 exchangeRate,
|
|
81
|
+
uint256 totalSupply,
|
|
82
|
+
RewardIndex[] memory rewardIndexes
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
function getYO(address token) external view returns (address yt, address ot);
|
|
86
|
+
|
|
87
|
+
function getMarketInfo(address market)
|
|
88
|
+
external
|
|
89
|
+
view
|
|
90
|
+
returns (
|
|
91
|
+
address ot,
|
|
92
|
+
address scy,
|
|
93
|
+
MarketState memory state,
|
|
94
|
+
int256 impliedYield,
|
|
95
|
+
uint256 exchangeRate
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
function getUserMarketInfo(address market, address user)
|
|
99
|
+
external
|
|
100
|
+
view
|
|
101
|
+
returns (UserMarketInfo memory userMarketInfo);
|
|
102
|
+
|
|
103
|
+
function getUserYOPositionsByTokens(address user, address[] calldata tokens)
|
|
104
|
+
external
|
|
105
|
+
view
|
|
106
|
+
returns (UserYOInfo[] memory userYOPositions);
|
|
107
|
+
|
|
108
|
+
function getUserMarketPositions(address user, address[] calldata markets)
|
|
109
|
+
external
|
|
110
|
+
view
|
|
111
|
+
returns (UserMarketInfo[] memory userMarketPositions);
|
|
112
|
+
|
|
113
|
+
function hasYOPosition(UserYOInfo memory userYOInfo) external pure returns (bool hasPosition);
|
|
114
|
+
|
|
115
|
+
function getUserSCYInfo(address scy, address user)
|
|
116
|
+
external
|
|
117
|
+
view
|
|
118
|
+
returns (uint256 balance, TokenAmount[] memory rewards);
|
|
71
119
|
}
|
package/package.json
CHANGED
|
@@ -26,16 +26,11 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
26
26
|
contractName: "IPAllAction";
|
|
27
27
|
functions: {
|
|
28
28
|
"addLiquidity(address,address,uint256,uint256,uint256)": FunctionFragment;
|
|
29
|
-
"addLiquidityStatic(address,uint256,uint256)": FunctionFragment;
|
|
30
|
-
"getOtImpliedYield(address)": FunctionFragment;
|
|
31
|
-
"getPendleTokenType(address)": FunctionFragment;
|
|
32
29
|
"mintScyFromRawToken(uint256,address,uint256,address,address[])": FunctionFragment;
|
|
33
30
|
"mintYoFromRawToken(uint256,address,uint256,address,address[])": FunctionFragment;
|
|
34
31
|
"redeemScyToRawToken(address,uint256,uint256,address,address[])": FunctionFragment;
|
|
35
32
|
"redeemYoToRawToken(address,uint256,uint256,address,address[])": FunctionFragment;
|
|
36
33
|
"removeLiquidity(address,address,uint256,uint256,uint256)": FunctionFragment;
|
|
37
|
-
"removeLiquidityStatic(address,uint256)": FunctionFragment;
|
|
38
|
-
"scyIndex(address)": FunctionFragment;
|
|
39
34
|
"swapExactOtForRawToken(uint256,address,address[],address,uint256)": FunctionFragment;
|
|
40
35
|
"swapExactOtForScy(address,address,uint256,uint256)": FunctionFragment;
|
|
41
36
|
"swapExactRawTokenForOt(uint256,address,address[],address,uint256,uint256,uint256,uint256)": FunctionFragment;
|
|
@@ -45,10 +40,8 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
45
40
|
"swapExactYtForRawToken(uint256,address,address[],address,uint256)": FunctionFragment;
|
|
46
41
|
"swapExactYtForScy(address,address,uint256,uint256)": FunctionFragment;
|
|
47
42
|
"swapOtForExactScy(address,address,uint256,uint256,uint256,uint256,uint256)": FunctionFragment;
|
|
48
|
-
"swapOtForScyStatic(address,uint256)": FunctionFragment;
|
|
49
43
|
"swapScyForExactOt(address,address,uint256,uint256)": FunctionFragment;
|
|
50
44
|
"swapScyForExactYt(address,address,uint256,uint256)": FunctionFragment;
|
|
51
|
-
"swapScyForOtStatic(address,uint256)": FunctionFragment;
|
|
52
45
|
"swapYtForExactScy(address,address,uint256,uint256,uint256,uint256,uint256)": FunctionFragment;
|
|
53
46
|
};
|
|
54
47
|
|
|
@@ -56,18 +49,6 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
56
49
|
functionFragment: "addLiquidity",
|
|
57
50
|
values: [string, string, BigNumberish, BigNumberish, BigNumberish]
|
|
58
51
|
): string;
|
|
59
|
-
encodeFunctionData(
|
|
60
|
-
functionFragment: "addLiquidityStatic",
|
|
61
|
-
values: [string, BigNumberish, BigNumberish]
|
|
62
|
-
): string;
|
|
63
|
-
encodeFunctionData(
|
|
64
|
-
functionFragment: "getOtImpliedYield",
|
|
65
|
-
values: [string]
|
|
66
|
-
): string;
|
|
67
|
-
encodeFunctionData(
|
|
68
|
-
functionFragment: "getPendleTokenType",
|
|
69
|
-
values: [string]
|
|
70
|
-
): string;
|
|
71
52
|
encodeFunctionData(
|
|
72
53
|
functionFragment: "mintScyFromRawToken",
|
|
73
54
|
values: [BigNumberish, string, BigNumberish, string, string[]]
|
|
@@ -88,11 +69,6 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
88
69
|
functionFragment: "removeLiquidity",
|
|
89
70
|
values: [string, string, BigNumberish, BigNumberish, BigNumberish]
|
|
90
71
|
): string;
|
|
91
|
-
encodeFunctionData(
|
|
92
|
-
functionFragment: "removeLiquidityStatic",
|
|
93
|
-
values: [string, BigNumberish]
|
|
94
|
-
): string;
|
|
95
|
-
encodeFunctionData(functionFragment: "scyIndex", values: [string]): string;
|
|
96
72
|
encodeFunctionData(
|
|
97
73
|
functionFragment: "swapExactOtForRawToken",
|
|
98
74
|
values: [BigNumberish, string, string[], string, BigNumberish]
|
|
@@ -171,10 +147,6 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
171
147
|
BigNumberish
|
|
172
148
|
]
|
|
173
149
|
): string;
|
|
174
|
-
encodeFunctionData(
|
|
175
|
-
functionFragment: "swapOtForScyStatic",
|
|
176
|
-
values: [string, BigNumberish]
|
|
177
|
-
): string;
|
|
178
150
|
encodeFunctionData(
|
|
179
151
|
functionFragment: "swapScyForExactOt",
|
|
180
152
|
values: [string, string, BigNumberish, BigNumberish]
|
|
@@ -183,10 +155,6 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
183
155
|
functionFragment: "swapScyForExactYt",
|
|
184
156
|
values: [string, string, BigNumberish, BigNumberish]
|
|
185
157
|
): string;
|
|
186
|
-
encodeFunctionData(
|
|
187
|
-
functionFragment: "swapScyForOtStatic",
|
|
188
|
-
values: [string, BigNumberish]
|
|
189
|
-
): string;
|
|
190
158
|
encodeFunctionData(
|
|
191
159
|
functionFragment: "swapYtForExactScy",
|
|
192
160
|
values: [
|
|
@@ -204,18 +172,6 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
204
172
|
functionFragment: "addLiquidity",
|
|
205
173
|
data: BytesLike
|
|
206
174
|
): Result;
|
|
207
|
-
decodeFunctionResult(
|
|
208
|
-
functionFragment: "addLiquidityStatic",
|
|
209
|
-
data: BytesLike
|
|
210
|
-
): Result;
|
|
211
|
-
decodeFunctionResult(
|
|
212
|
-
functionFragment: "getOtImpliedYield",
|
|
213
|
-
data: BytesLike
|
|
214
|
-
): Result;
|
|
215
|
-
decodeFunctionResult(
|
|
216
|
-
functionFragment: "getPendleTokenType",
|
|
217
|
-
data: BytesLike
|
|
218
|
-
): Result;
|
|
219
175
|
decodeFunctionResult(
|
|
220
176
|
functionFragment: "mintScyFromRawToken",
|
|
221
177
|
data: BytesLike
|
|
@@ -236,11 +192,6 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
236
192
|
functionFragment: "removeLiquidity",
|
|
237
193
|
data: BytesLike
|
|
238
194
|
): Result;
|
|
239
|
-
decodeFunctionResult(
|
|
240
|
-
functionFragment: "removeLiquidityStatic",
|
|
241
|
-
data: BytesLike
|
|
242
|
-
): Result;
|
|
243
|
-
decodeFunctionResult(functionFragment: "scyIndex", data: BytesLike): Result;
|
|
244
195
|
decodeFunctionResult(
|
|
245
196
|
functionFragment: "swapExactOtForRawToken",
|
|
246
197
|
data: BytesLike
|
|
@@ -277,10 +228,6 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
277
228
|
functionFragment: "swapOtForExactScy",
|
|
278
229
|
data: BytesLike
|
|
279
230
|
): Result;
|
|
280
|
-
decodeFunctionResult(
|
|
281
|
-
functionFragment: "swapOtForScyStatic",
|
|
282
|
-
data: BytesLike
|
|
283
|
-
): Result;
|
|
284
231
|
decodeFunctionResult(
|
|
285
232
|
functionFragment: "swapScyForExactOt",
|
|
286
233
|
data: BytesLike
|
|
@@ -289,10 +236,6 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
289
236
|
functionFragment: "swapScyForExactYt",
|
|
290
237
|
data: BytesLike
|
|
291
238
|
): Result;
|
|
292
|
-
decodeFunctionResult(
|
|
293
|
-
functionFragment: "swapScyForOtStatic",
|
|
294
|
-
data: BytesLike
|
|
295
|
-
): Result;
|
|
296
239
|
decodeFunctionResult(
|
|
297
240
|
functionFragment: "swapYtForExactScy",
|
|
298
241
|
data: BytesLike
|
|
@@ -338,29 +281,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
338
281
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
339
282
|
): Promise<ContractTransaction>;
|
|
340
283
|
|
|
341
|
-
addLiquidityStatic(
|
|
342
|
-
market: string,
|
|
343
|
-
scyDesired: BigNumberish,
|
|
344
|
-
otDesired: BigNumberish,
|
|
345
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
346
|
-
): Promise<ContractTransaction>;
|
|
347
|
-
|
|
348
|
-
getOtImpliedYield(
|
|
349
|
-
market: string,
|
|
350
|
-
overrides?: CallOverrides
|
|
351
|
-
): Promise<[BigNumber]>;
|
|
352
|
-
|
|
353
|
-
getPendleTokenType(
|
|
354
|
-
token: string,
|
|
355
|
-
overrides?: CallOverrides
|
|
356
|
-
): Promise<
|
|
357
|
-
[boolean, boolean, boolean] & {
|
|
358
|
-
isOT: boolean;
|
|
359
|
-
isYT: boolean;
|
|
360
|
-
isMarket: boolean;
|
|
361
|
-
}
|
|
362
|
-
>;
|
|
363
|
-
|
|
364
284
|
mintScyFromRawToken(
|
|
365
285
|
netRawTokenIn: BigNumberish,
|
|
366
286
|
SCY: string,
|
|
@@ -406,19 +326,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
406
326
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
407
327
|
): Promise<ContractTransaction>;
|
|
408
328
|
|
|
409
|
-
removeLiquidityStatic(
|
|
410
|
-
market: string,
|
|
411
|
-
lpToRemove: BigNumberish,
|
|
412
|
-
overrides?: CallOverrides
|
|
413
|
-
): Promise<
|
|
414
|
-
[BigNumber, BigNumber] & { netScyOut: BigNumber; netOtOut: BigNumber }
|
|
415
|
-
>;
|
|
416
|
-
|
|
417
|
-
scyIndex(
|
|
418
|
-
market: string,
|
|
419
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
420
|
-
): Promise<ContractTransaction>;
|
|
421
|
-
|
|
422
329
|
swapExactOtForRawToken(
|
|
423
330
|
exactOtIn: BigNumberish,
|
|
424
331
|
receiver: string,
|
|
@@ -510,12 +417,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
510
417
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
511
418
|
): Promise<ContractTransaction>;
|
|
512
419
|
|
|
513
|
-
swapOtForScyStatic(
|
|
514
|
-
market: string,
|
|
515
|
-
exactOtIn: BigNumberish,
|
|
516
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
517
|
-
): Promise<ContractTransaction>;
|
|
518
|
-
|
|
519
420
|
swapScyForExactOt(
|
|
520
421
|
receiver: string,
|
|
521
422
|
market: string,
|
|
@@ -532,12 +433,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
532
433
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
533
434
|
): Promise<ContractTransaction>;
|
|
534
435
|
|
|
535
|
-
swapScyForOtStatic(
|
|
536
|
-
market: string,
|
|
537
|
-
exactOtOut: BigNumberish,
|
|
538
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
539
|
-
): Promise<ContractTransaction>;
|
|
540
|
-
|
|
541
436
|
swapYtForExactScy(
|
|
542
437
|
receiver: string,
|
|
543
438
|
market: string,
|
|
@@ -559,29 +454,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
559
454
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
560
455
|
): Promise<ContractTransaction>;
|
|
561
456
|
|
|
562
|
-
addLiquidityStatic(
|
|
563
|
-
market: string,
|
|
564
|
-
scyDesired: BigNumberish,
|
|
565
|
-
otDesired: BigNumberish,
|
|
566
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
567
|
-
): Promise<ContractTransaction>;
|
|
568
|
-
|
|
569
|
-
getOtImpliedYield(
|
|
570
|
-
market: string,
|
|
571
|
-
overrides?: CallOverrides
|
|
572
|
-
): Promise<BigNumber>;
|
|
573
|
-
|
|
574
|
-
getPendleTokenType(
|
|
575
|
-
token: string,
|
|
576
|
-
overrides?: CallOverrides
|
|
577
|
-
): Promise<
|
|
578
|
-
[boolean, boolean, boolean] & {
|
|
579
|
-
isOT: boolean;
|
|
580
|
-
isYT: boolean;
|
|
581
|
-
isMarket: boolean;
|
|
582
|
-
}
|
|
583
|
-
>;
|
|
584
|
-
|
|
585
457
|
mintScyFromRawToken(
|
|
586
458
|
netRawTokenIn: BigNumberish,
|
|
587
459
|
SCY: string,
|
|
@@ -627,19 +499,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
627
499
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
628
500
|
): Promise<ContractTransaction>;
|
|
629
501
|
|
|
630
|
-
removeLiquidityStatic(
|
|
631
|
-
market: string,
|
|
632
|
-
lpToRemove: BigNumberish,
|
|
633
|
-
overrides?: CallOverrides
|
|
634
|
-
): Promise<
|
|
635
|
-
[BigNumber, BigNumber] & { netScyOut: BigNumber; netOtOut: BigNumber }
|
|
636
|
-
>;
|
|
637
|
-
|
|
638
|
-
scyIndex(
|
|
639
|
-
market: string,
|
|
640
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
641
|
-
): Promise<ContractTransaction>;
|
|
642
|
-
|
|
643
502
|
swapExactOtForRawToken(
|
|
644
503
|
exactOtIn: BigNumberish,
|
|
645
504
|
receiver: string,
|
|
@@ -731,12 +590,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
731
590
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
732
591
|
): Promise<ContractTransaction>;
|
|
733
592
|
|
|
734
|
-
swapOtForScyStatic(
|
|
735
|
-
market: string,
|
|
736
|
-
exactOtIn: BigNumberish,
|
|
737
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
738
|
-
): Promise<ContractTransaction>;
|
|
739
|
-
|
|
740
593
|
swapScyForExactOt(
|
|
741
594
|
receiver: string,
|
|
742
595
|
market: string,
|
|
@@ -753,12 +606,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
753
606
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
754
607
|
): Promise<ContractTransaction>;
|
|
755
608
|
|
|
756
|
-
swapScyForOtStatic(
|
|
757
|
-
market: string,
|
|
758
|
-
exactOtOut: BigNumberish,
|
|
759
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
760
|
-
): Promise<ContractTransaction>;
|
|
761
|
-
|
|
762
609
|
swapYtForExactScy(
|
|
763
610
|
receiver: string,
|
|
764
611
|
market: string,
|
|
@@ -780,35 +627,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
780
627
|
overrides?: CallOverrides
|
|
781
628
|
): Promise<[BigNumber, BigNumber, BigNumber]>;
|
|
782
629
|
|
|
783
|
-
addLiquidityStatic(
|
|
784
|
-
market: string,
|
|
785
|
-
scyDesired: BigNumberish,
|
|
786
|
-
otDesired: BigNumberish,
|
|
787
|
-
overrides?: CallOverrides
|
|
788
|
-
): Promise<
|
|
789
|
-
[BigNumber, BigNumber, BigNumber] & {
|
|
790
|
-
netLpOut: BigNumber;
|
|
791
|
-
scyUsed: BigNumber;
|
|
792
|
-
otUsed: BigNumber;
|
|
793
|
-
}
|
|
794
|
-
>;
|
|
795
|
-
|
|
796
|
-
getOtImpliedYield(
|
|
797
|
-
market: string,
|
|
798
|
-
overrides?: CallOverrides
|
|
799
|
-
): Promise<BigNumber>;
|
|
800
|
-
|
|
801
|
-
getPendleTokenType(
|
|
802
|
-
token: string,
|
|
803
|
-
overrides?: CallOverrides
|
|
804
|
-
): Promise<
|
|
805
|
-
[boolean, boolean, boolean] & {
|
|
806
|
-
isOT: boolean;
|
|
807
|
-
isYT: boolean;
|
|
808
|
-
isMarket: boolean;
|
|
809
|
-
}
|
|
810
|
-
>;
|
|
811
|
-
|
|
812
630
|
mintScyFromRawToken(
|
|
813
631
|
netRawTokenIn: BigNumberish,
|
|
814
632
|
SCY: string,
|
|
@@ -854,16 +672,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
854
672
|
overrides?: CallOverrides
|
|
855
673
|
): Promise<[BigNumber, BigNumber]>;
|
|
856
674
|
|
|
857
|
-
removeLiquidityStatic(
|
|
858
|
-
market: string,
|
|
859
|
-
lpToRemove: BigNumberish,
|
|
860
|
-
overrides?: CallOverrides
|
|
861
|
-
): Promise<
|
|
862
|
-
[BigNumber, BigNumber] & { netScyOut: BigNumber; netOtOut: BigNumber }
|
|
863
|
-
>;
|
|
864
|
-
|
|
865
|
-
scyIndex(market: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
866
|
-
|
|
867
675
|
swapExactOtForRawToken(
|
|
868
676
|
exactOtIn: BigNumberish,
|
|
869
677
|
receiver: string,
|
|
@@ -955,14 +763,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
955
763
|
overrides?: CallOverrides
|
|
956
764
|
): Promise<BigNumber>;
|
|
957
765
|
|
|
958
|
-
swapOtForScyStatic(
|
|
959
|
-
market: string,
|
|
960
|
-
exactOtIn: BigNumberish,
|
|
961
|
-
overrides?: CallOverrides
|
|
962
|
-
): Promise<
|
|
963
|
-
[BigNumber, BigNumber] & { netScyOut: BigNumber; netScyFee: BigNumber }
|
|
964
|
-
>;
|
|
965
|
-
|
|
966
766
|
swapScyForExactOt(
|
|
967
767
|
receiver: string,
|
|
968
768
|
market: string,
|
|
@@ -979,14 +779,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
979
779
|
overrides?: CallOverrides
|
|
980
780
|
): Promise<BigNumber>;
|
|
981
781
|
|
|
982
|
-
swapScyForOtStatic(
|
|
983
|
-
market: string,
|
|
984
|
-
exactOtOut: BigNumberish,
|
|
985
|
-
overrides?: CallOverrides
|
|
986
|
-
): Promise<
|
|
987
|
-
[BigNumber, BigNumber] & { netScyIn: BigNumber; netScyFee: BigNumber }
|
|
988
|
-
>;
|
|
989
|
-
|
|
990
782
|
swapYtForExactScy(
|
|
991
783
|
receiver: string,
|
|
992
784
|
market: string,
|
|
@@ -1011,23 +803,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
1011
803
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1012
804
|
): Promise<BigNumber>;
|
|
1013
805
|
|
|
1014
|
-
addLiquidityStatic(
|
|
1015
|
-
market: string,
|
|
1016
|
-
scyDesired: BigNumberish,
|
|
1017
|
-
otDesired: BigNumberish,
|
|
1018
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1019
|
-
): Promise<BigNumber>;
|
|
1020
|
-
|
|
1021
|
-
getOtImpliedYield(
|
|
1022
|
-
market: string,
|
|
1023
|
-
overrides?: CallOverrides
|
|
1024
|
-
): Promise<BigNumber>;
|
|
1025
|
-
|
|
1026
|
-
getPendleTokenType(
|
|
1027
|
-
token: string,
|
|
1028
|
-
overrides?: CallOverrides
|
|
1029
|
-
): Promise<BigNumber>;
|
|
1030
|
-
|
|
1031
806
|
mintScyFromRawToken(
|
|
1032
807
|
netRawTokenIn: BigNumberish,
|
|
1033
808
|
SCY: string,
|
|
@@ -1073,17 +848,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
1073
848
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1074
849
|
): Promise<BigNumber>;
|
|
1075
850
|
|
|
1076
|
-
removeLiquidityStatic(
|
|
1077
|
-
market: string,
|
|
1078
|
-
lpToRemove: BigNumberish,
|
|
1079
|
-
overrides?: CallOverrides
|
|
1080
|
-
): Promise<BigNumber>;
|
|
1081
|
-
|
|
1082
|
-
scyIndex(
|
|
1083
|
-
market: string,
|
|
1084
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1085
|
-
): Promise<BigNumber>;
|
|
1086
|
-
|
|
1087
851
|
swapExactOtForRawToken(
|
|
1088
852
|
exactOtIn: BigNumberish,
|
|
1089
853
|
receiver: string,
|
|
@@ -1175,12 +939,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
1175
939
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1176
940
|
): Promise<BigNumber>;
|
|
1177
941
|
|
|
1178
|
-
swapOtForScyStatic(
|
|
1179
|
-
market: string,
|
|
1180
|
-
exactOtIn: BigNumberish,
|
|
1181
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1182
|
-
): Promise<BigNumber>;
|
|
1183
|
-
|
|
1184
942
|
swapScyForExactOt(
|
|
1185
943
|
receiver: string,
|
|
1186
944
|
market: string,
|
|
@@ -1197,12 +955,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
1197
955
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1198
956
|
): Promise<BigNumber>;
|
|
1199
957
|
|
|
1200
|
-
swapScyForOtStatic(
|
|
1201
|
-
market: string,
|
|
1202
|
-
exactOtOut: BigNumberish,
|
|
1203
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1204
|
-
): Promise<BigNumber>;
|
|
1205
|
-
|
|
1206
958
|
swapYtForExactScy(
|
|
1207
959
|
receiver: string,
|
|
1208
960
|
market: string,
|
|
@@ -1225,23 +977,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
1225
977
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1226
978
|
): Promise<PopulatedTransaction>;
|
|
1227
979
|
|
|
1228
|
-
addLiquidityStatic(
|
|
1229
|
-
market: string,
|
|
1230
|
-
scyDesired: BigNumberish,
|
|
1231
|
-
otDesired: BigNumberish,
|
|
1232
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1233
|
-
): Promise<PopulatedTransaction>;
|
|
1234
|
-
|
|
1235
|
-
getOtImpliedYield(
|
|
1236
|
-
market: string,
|
|
1237
|
-
overrides?: CallOverrides
|
|
1238
|
-
): Promise<PopulatedTransaction>;
|
|
1239
|
-
|
|
1240
|
-
getPendleTokenType(
|
|
1241
|
-
token: string,
|
|
1242
|
-
overrides?: CallOverrides
|
|
1243
|
-
): Promise<PopulatedTransaction>;
|
|
1244
|
-
|
|
1245
980
|
mintScyFromRawToken(
|
|
1246
981
|
netRawTokenIn: BigNumberish,
|
|
1247
982
|
SCY: string,
|
|
@@ -1287,17 +1022,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
1287
1022
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1288
1023
|
): Promise<PopulatedTransaction>;
|
|
1289
1024
|
|
|
1290
|
-
removeLiquidityStatic(
|
|
1291
|
-
market: string,
|
|
1292
|
-
lpToRemove: BigNumberish,
|
|
1293
|
-
overrides?: CallOverrides
|
|
1294
|
-
): Promise<PopulatedTransaction>;
|
|
1295
|
-
|
|
1296
|
-
scyIndex(
|
|
1297
|
-
market: string,
|
|
1298
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1299
|
-
): Promise<PopulatedTransaction>;
|
|
1300
|
-
|
|
1301
1025
|
swapExactOtForRawToken(
|
|
1302
1026
|
exactOtIn: BigNumberish,
|
|
1303
1027
|
receiver: string,
|
|
@@ -1389,12 +1113,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
1389
1113
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1390
1114
|
): Promise<PopulatedTransaction>;
|
|
1391
1115
|
|
|
1392
|
-
swapOtForScyStatic(
|
|
1393
|
-
market: string,
|
|
1394
|
-
exactOtIn: BigNumberish,
|
|
1395
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1396
|
-
): Promise<PopulatedTransaction>;
|
|
1397
|
-
|
|
1398
1116
|
swapScyForExactOt(
|
|
1399
1117
|
receiver: string,
|
|
1400
1118
|
market: string,
|
|
@@ -1411,12 +1129,6 @@ export interface IPAllAction extends BaseContract {
|
|
|
1411
1129
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1412
1130
|
): Promise<PopulatedTransaction>;
|
|
1413
1131
|
|
|
1414
|
-
swapScyForOtStatic(
|
|
1415
|
-
market: string,
|
|
1416
|
-
exactOtOut: BigNumberish,
|
|
1417
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1418
|
-
): Promise<PopulatedTransaction>;
|
|
1419
|
-
|
|
1420
1132
|
swapYtForExactScy(
|
|
1421
1133
|
receiver: string,
|
|
1422
1134
|
market: string,
|