@pendle/core-v2 0.11.8-testnet → 0.11.9-testnet
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/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +20 -2
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.json +185 -0
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +2 -2
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.json +180 -0
- 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/IPAllAction.sol/IPAllAction.json +169 -0
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +150 -56
- package/contracts/core/PendleRouter.sol +8 -0
- package/contracts/core/actions/ActionCallback.sol +39 -0
- package/contracts/core/actions/ActionSwapPTYT.sol +86 -0
- package/contracts/core/actions/base/CallbackHelper.sol +49 -1
- package/contracts/interfaces/IPActionSwapPTYT.sol +31 -0
- package/contracts/interfaces/IPAllAction.sol +2 -0
- package/contracts/libraries/math/MarketApproxLib.sol +116 -0
- package/contracts/offchain-helpers/MarketMathStatic.sol +53 -0
- package/contracts/offchain-helpers/RouterStatic.sol +24 -0
- package/deployments/43113-core.json +1 -1
- package/package.json +1 -3
- package/typechain-types/ActionSwapPTYT.ts +233 -0
- package/typechain-types/IPActionSwapPTYT.ts +233 -0
- package/typechain-types/IPAllAction.ts +138 -0
- package/typechain-types/PendleRouter.ts +19 -0
- package/typechain-types/RouterStatic.ts +92 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTYT__factory.ts +238 -0
- package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
- package/typechain-types/factories/IPActionSwapPTYT__factory.ts +195 -0
- package/typechain-types/factories/IPAllAction__factory.ts +169 -0
- package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +23 -1
- package/typechain-types/factories/RouterStatic__factory.ts +79 -1
- package/typechain-types/hardhat.d.ts +18 -198
- package/typechain-types/index.ts +4 -44
|
@@ -123,10 +123,12 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
123
123
|
"removeLiquiditySingleToken(address,address,uint256,(address,uint256,address,bytes))": FunctionFragment;
|
|
124
124
|
"swapExactPtForScy(address,address,uint256,uint256)": FunctionFragment;
|
|
125
125
|
"swapExactPtForToken(address,address,uint256,(address,uint256,address,bytes))": FunctionFragment;
|
|
126
|
+
"swapExactPtForYt(address,address,uint256,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
126
127
|
"swapExactScyForPt(address,address,uint256,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
127
128
|
"swapExactScyForYt(address,address,uint256,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
128
129
|
"swapExactTokenForPt(address,address,uint256,(uint256,uint256,uint256,uint256,uint256),(address,uint256,address,bytes))": FunctionFragment;
|
|
129
130
|
"swapExactTokenForYt(address,address,uint256,(uint256,uint256,uint256,uint256,uint256),(address,uint256,address,bytes))": FunctionFragment;
|
|
131
|
+
"swapExactYtForPt(address,address,uint256,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
130
132
|
"swapExactYtForScy(address,address,uint256,uint256)": FunctionFragment;
|
|
131
133
|
"swapExactYtForToken(address,address,uint256,(address,uint256,address,bytes))": FunctionFragment;
|
|
132
134
|
"swapPtForExactScy(address,address,uint256,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
@@ -224,6 +226,10 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
224
226
|
functionFragment: "swapExactPtForToken",
|
|
225
227
|
values: [string, string, BigNumberish, TokenOutputStruct]
|
|
226
228
|
): string;
|
|
229
|
+
encodeFunctionData(
|
|
230
|
+
functionFragment: "swapExactPtForYt",
|
|
231
|
+
values: [string, string, BigNumberish, BigNumberish, ApproxParamsStruct]
|
|
232
|
+
): string;
|
|
227
233
|
encodeFunctionData(
|
|
228
234
|
functionFragment: "swapExactScyForPt",
|
|
229
235
|
values: [string, string, BigNumberish, BigNumberish, ApproxParamsStruct]
|
|
@@ -240,6 +246,10 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
240
246
|
functionFragment: "swapExactTokenForYt",
|
|
241
247
|
values: [string, string, BigNumberish, ApproxParamsStruct, TokenInputStruct]
|
|
242
248
|
): string;
|
|
249
|
+
encodeFunctionData(
|
|
250
|
+
functionFragment: "swapExactYtForPt",
|
|
251
|
+
values: [string, string, BigNumberish, BigNumberish, ApproxParamsStruct]
|
|
252
|
+
): string;
|
|
243
253
|
encodeFunctionData(
|
|
244
254
|
functionFragment: "swapExactYtForScy",
|
|
245
255
|
values: [string, string, BigNumberish, BigNumberish]
|
|
@@ -346,6 +356,10 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
346
356
|
functionFragment: "swapExactPtForToken",
|
|
347
357
|
data: BytesLike
|
|
348
358
|
): Result;
|
|
359
|
+
decodeFunctionResult(
|
|
360
|
+
functionFragment: "swapExactPtForYt",
|
|
361
|
+
data: BytesLike
|
|
362
|
+
): Result;
|
|
349
363
|
decodeFunctionResult(
|
|
350
364
|
functionFragment: "swapExactScyForPt",
|
|
351
365
|
data: BytesLike
|
|
@@ -362,6 +376,10 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
362
376
|
functionFragment: "swapExactTokenForYt",
|
|
363
377
|
data: BytesLike
|
|
364
378
|
): Result;
|
|
379
|
+
decodeFunctionResult(
|
|
380
|
+
functionFragment: "swapExactYtForPt",
|
|
381
|
+
data: BytesLike
|
|
382
|
+
): Result;
|
|
365
383
|
decodeFunctionResult(
|
|
366
384
|
functionFragment: "swapExactYtForScy",
|
|
367
385
|
data: BytesLike
|
|
@@ -408,6 +426,7 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
408
426
|
"RemoveLiquiditySingleToken(address,address,address,address,uint256,uint256)": EventFragment;
|
|
409
427
|
"SwapPtAndScy(address,address,address,int256,int256)": EventFragment;
|
|
410
428
|
"SwapPtAndToken(address,address,address,address,int256,int256)": EventFragment;
|
|
429
|
+
"SwapPtAndYt(address,address,address,int256,int256)": EventFragment;
|
|
411
430
|
"SwapYtAndScy(address,address,address,int256,int256)": EventFragment;
|
|
412
431
|
"SwapYtAndToken(address,address,address,address,int256,int256)": EventFragment;
|
|
413
432
|
};
|
|
@@ -440,6 +459,7 @@ export interface IPAllActionInterface extends utils.Interface {
|
|
|
440
459
|
getEvent(nameOrSignatureOrTopic: "RemoveLiquiditySingleToken"): EventFragment;
|
|
441
460
|
getEvent(nameOrSignatureOrTopic: "SwapPtAndScy"): EventFragment;
|
|
442
461
|
getEvent(nameOrSignatureOrTopic: "SwapPtAndToken"): EventFragment;
|
|
462
|
+
getEvent(nameOrSignatureOrTopic: "SwapPtAndYt"): EventFragment;
|
|
443
463
|
getEvent(nameOrSignatureOrTopic: "SwapYtAndScy"): EventFragment;
|
|
444
464
|
getEvent(nameOrSignatureOrTopic: "SwapYtAndToken"): EventFragment;
|
|
445
465
|
}
|
|
@@ -744,6 +764,19 @@ export type SwapPtAndTokenEvent = TypedEvent<
|
|
|
744
764
|
|
|
745
765
|
export type SwapPtAndTokenEventFilter = TypedEventFilter<SwapPtAndTokenEvent>;
|
|
746
766
|
|
|
767
|
+
export type SwapPtAndYtEvent = TypedEvent<
|
|
768
|
+
[string, string, string, BigNumber, BigNumber],
|
|
769
|
+
{
|
|
770
|
+
caller: string;
|
|
771
|
+
market: string;
|
|
772
|
+
receiver: string;
|
|
773
|
+
netPtToAccount: BigNumber;
|
|
774
|
+
netYtToAccount: BigNumber;
|
|
775
|
+
}
|
|
776
|
+
>;
|
|
777
|
+
|
|
778
|
+
export type SwapPtAndYtEventFilter = TypedEventFilter<SwapPtAndYtEvent>;
|
|
779
|
+
|
|
747
780
|
export type SwapYtAndScyEvent = TypedEvent<
|
|
748
781
|
[string, string, string, BigNumber, BigNumber],
|
|
749
782
|
{
|
|
@@ -975,6 +1008,15 @@ export interface IPAllAction extends BaseContract {
|
|
|
975
1008
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
976
1009
|
): Promise<ContractTransaction>;
|
|
977
1010
|
|
|
1011
|
+
swapExactPtForYt(
|
|
1012
|
+
receiver: string,
|
|
1013
|
+
market: string,
|
|
1014
|
+
exactPtIn: BigNumberish,
|
|
1015
|
+
minYtOut: BigNumberish,
|
|
1016
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
1017
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1018
|
+
): Promise<ContractTransaction>;
|
|
1019
|
+
|
|
978
1020
|
swapExactScyForPt(
|
|
979
1021
|
receiver: string,
|
|
980
1022
|
market: string,
|
|
@@ -1011,6 +1053,15 @@ export interface IPAllAction extends BaseContract {
|
|
|
1011
1053
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
1012
1054
|
): Promise<ContractTransaction>;
|
|
1013
1055
|
|
|
1056
|
+
swapExactYtForPt(
|
|
1057
|
+
receiver: string,
|
|
1058
|
+
market: string,
|
|
1059
|
+
exactYtIn: BigNumberish,
|
|
1060
|
+
minPtOut: BigNumberish,
|
|
1061
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
1062
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1063
|
+
): Promise<ContractTransaction>;
|
|
1064
|
+
|
|
1014
1065
|
swapExactYtForScy(
|
|
1015
1066
|
receiver: string,
|
|
1016
1067
|
market: string,
|
|
@@ -1238,6 +1289,15 @@ export interface IPAllAction extends BaseContract {
|
|
|
1238
1289
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1239
1290
|
): Promise<ContractTransaction>;
|
|
1240
1291
|
|
|
1292
|
+
swapExactPtForYt(
|
|
1293
|
+
receiver: string,
|
|
1294
|
+
market: string,
|
|
1295
|
+
exactPtIn: BigNumberish,
|
|
1296
|
+
minYtOut: BigNumberish,
|
|
1297
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
1298
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1299
|
+
): Promise<ContractTransaction>;
|
|
1300
|
+
|
|
1241
1301
|
swapExactScyForPt(
|
|
1242
1302
|
receiver: string,
|
|
1243
1303
|
market: string,
|
|
@@ -1274,6 +1334,15 @@ export interface IPAllAction extends BaseContract {
|
|
|
1274
1334
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
1275
1335
|
): Promise<ContractTransaction>;
|
|
1276
1336
|
|
|
1337
|
+
swapExactYtForPt(
|
|
1338
|
+
receiver: string,
|
|
1339
|
+
market: string,
|
|
1340
|
+
exactYtIn: BigNumberish,
|
|
1341
|
+
minPtOut: BigNumberish,
|
|
1342
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
1343
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1344
|
+
): Promise<ContractTransaction>;
|
|
1345
|
+
|
|
1277
1346
|
swapExactYtForScy(
|
|
1278
1347
|
receiver: string,
|
|
1279
1348
|
market: string,
|
|
@@ -1529,6 +1598,15 @@ export interface IPAllAction extends BaseContract {
|
|
|
1529
1598
|
overrides?: CallOverrides
|
|
1530
1599
|
): Promise<BigNumber>;
|
|
1531
1600
|
|
|
1601
|
+
swapExactPtForYt(
|
|
1602
|
+
receiver: string,
|
|
1603
|
+
market: string,
|
|
1604
|
+
exactPtIn: BigNumberish,
|
|
1605
|
+
minYtOut: BigNumberish,
|
|
1606
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
1607
|
+
overrides?: CallOverrides
|
|
1608
|
+
): Promise<BigNumber>;
|
|
1609
|
+
|
|
1532
1610
|
swapExactScyForPt(
|
|
1533
1611
|
receiver: string,
|
|
1534
1612
|
market: string,
|
|
@@ -1565,6 +1643,15 @@ export interface IPAllAction extends BaseContract {
|
|
|
1565
1643
|
overrides?: CallOverrides
|
|
1566
1644
|
): Promise<BigNumber>;
|
|
1567
1645
|
|
|
1646
|
+
swapExactYtForPt(
|
|
1647
|
+
receiver: string,
|
|
1648
|
+
market: string,
|
|
1649
|
+
exactYtIn: BigNumberish,
|
|
1650
|
+
minPtOut: BigNumberish,
|
|
1651
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
1652
|
+
overrides?: CallOverrides
|
|
1653
|
+
): Promise<BigNumber>;
|
|
1654
|
+
|
|
1568
1655
|
swapExactYtForScy(
|
|
1569
1656
|
receiver: string,
|
|
1570
1657
|
market: string,
|
|
@@ -1951,6 +2038,21 @@ export interface IPAllAction extends BaseContract {
|
|
|
1951
2038
|
netTokenToAccount?: null
|
|
1952
2039
|
): SwapPtAndTokenEventFilter;
|
|
1953
2040
|
|
|
2041
|
+
"SwapPtAndYt(address,address,address,int256,int256)"(
|
|
2042
|
+
caller?: string | null,
|
|
2043
|
+
market?: string | null,
|
|
2044
|
+
receiver?: string | null,
|
|
2045
|
+
netPtToAccount?: null,
|
|
2046
|
+
netYtToAccount?: null
|
|
2047
|
+
): SwapPtAndYtEventFilter;
|
|
2048
|
+
SwapPtAndYt(
|
|
2049
|
+
caller?: string | null,
|
|
2050
|
+
market?: string | null,
|
|
2051
|
+
receiver?: string | null,
|
|
2052
|
+
netPtToAccount?: null,
|
|
2053
|
+
netYtToAccount?: null
|
|
2054
|
+
): SwapPtAndYtEventFilter;
|
|
2055
|
+
|
|
1954
2056
|
"SwapYtAndScy(address,address,address,int256,int256)"(
|
|
1955
2057
|
caller?: string | null,
|
|
1956
2058
|
market?: string | null,
|
|
@@ -2161,6 +2263,15 @@ export interface IPAllAction extends BaseContract {
|
|
|
2161
2263
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
2162
2264
|
): Promise<BigNumber>;
|
|
2163
2265
|
|
|
2266
|
+
swapExactPtForYt(
|
|
2267
|
+
receiver: string,
|
|
2268
|
+
market: string,
|
|
2269
|
+
exactPtIn: BigNumberish,
|
|
2270
|
+
minYtOut: BigNumberish,
|
|
2271
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
2272
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
2273
|
+
): Promise<BigNumber>;
|
|
2274
|
+
|
|
2164
2275
|
swapExactScyForPt(
|
|
2165
2276
|
receiver: string,
|
|
2166
2277
|
market: string,
|
|
@@ -2197,6 +2308,15 @@ export interface IPAllAction extends BaseContract {
|
|
|
2197
2308
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
2198
2309
|
): Promise<BigNumber>;
|
|
2199
2310
|
|
|
2311
|
+
swapExactYtForPt(
|
|
2312
|
+
receiver: string,
|
|
2313
|
+
market: string,
|
|
2314
|
+
exactYtIn: BigNumberish,
|
|
2315
|
+
minPtOut: BigNumberish,
|
|
2316
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
2317
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
2318
|
+
): Promise<BigNumber>;
|
|
2319
|
+
|
|
2200
2320
|
swapExactYtForScy(
|
|
2201
2321
|
receiver: string,
|
|
2202
2322
|
market: string,
|
|
@@ -2425,6 +2545,15 @@ export interface IPAllAction extends BaseContract {
|
|
|
2425
2545
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
2426
2546
|
): Promise<PopulatedTransaction>;
|
|
2427
2547
|
|
|
2548
|
+
swapExactPtForYt(
|
|
2549
|
+
receiver: string,
|
|
2550
|
+
market: string,
|
|
2551
|
+
exactPtIn: BigNumberish,
|
|
2552
|
+
minYtOut: BigNumberish,
|
|
2553
|
+
guessTotalPtToSwap: ApproxParamsStruct,
|
|
2554
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
2555
|
+
): Promise<PopulatedTransaction>;
|
|
2556
|
+
|
|
2428
2557
|
swapExactScyForPt(
|
|
2429
2558
|
receiver: string,
|
|
2430
2559
|
market: string,
|
|
@@ -2461,6 +2590,15 @@ export interface IPAllAction extends BaseContract {
|
|
|
2461
2590
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
2462
2591
|
): Promise<PopulatedTransaction>;
|
|
2463
2592
|
|
|
2593
|
+
swapExactYtForPt(
|
|
2594
|
+
receiver: string,
|
|
2595
|
+
market: string,
|
|
2596
|
+
exactYtIn: BigNumberish,
|
|
2597
|
+
minPtOut: BigNumberish,
|
|
2598
|
+
guessTotalPtSwapped: ApproxParamsStruct,
|
|
2599
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
2600
|
+
): Promise<PopulatedTransaction>;
|
|
2601
|
+
|
|
2464
2602
|
swapExactYtForScy(
|
|
2465
2603
|
receiver: string,
|
|
2466
2604
|
market: string,
|
|
@@ -30,6 +30,7 @@ export interface PendleRouterInterface extends utils.Interface {
|
|
|
30
30
|
"ACTION_MINT_REDEEM()": FunctionFragment;
|
|
31
31
|
"ACTION_MISC()": FunctionFragment;
|
|
32
32
|
"ACTION_SWAP_PT()": FunctionFragment;
|
|
33
|
+
"ACTION_SWAP_PTYT()": FunctionFragment;
|
|
33
34
|
"ACTION_SWAP_YT()": FunctionFragment;
|
|
34
35
|
"claimOwnership()": FunctionFragment;
|
|
35
36
|
"getRouterImplementation(bytes4)": FunctionFragment;
|
|
@@ -62,6 +63,10 @@ export interface PendleRouterInterface extends utils.Interface {
|
|
|
62
63
|
functionFragment: "ACTION_SWAP_PT",
|
|
63
64
|
values?: undefined
|
|
64
65
|
): string;
|
|
66
|
+
encodeFunctionData(
|
|
67
|
+
functionFragment: "ACTION_SWAP_PTYT",
|
|
68
|
+
values?: undefined
|
|
69
|
+
): string;
|
|
65
70
|
encodeFunctionData(
|
|
66
71
|
functionFragment: "ACTION_SWAP_YT",
|
|
67
72
|
values?: undefined
|
|
@@ -117,6 +122,10 @@ export interface PendleRouterInterface extends utils.Interface {
|
|
|
117
122
|
functionFragment: "ACTION_SWAP_PT",
|
|
118
123
|
data: BytesLike
|
|
119
124
|
): Result;
|
|
125
|
+
decodeFunctionResult(
|
|
126
|
+
functionFragment: "ACTION_SWAP_PTYT",
|
|
127
|
+
data: BytesLike
|
|
128
|
+
): Result;
|
|
120
129
|
decodeFunctionResult(
|
|
121
130
|
functionFragment: "ACTION_SWAP_YT",
|
|
122
131
|
data: BytesLike
|
|
@@ -223,6 +232,8 @@ export interface PendleRouter extends BaseContract {
|
|
|
223
232
|
|
|
224
233
|
ACTION_SWAP_PT(overrides?: CallOverrides): Promise<[string]>;
|
|
225
234
|
|
|
235
|
+
ACTION_SWAP_PTYT(overrides?: CallOverrides): Promise<[string]>;
|
|
236
|
+
|
|
226
237
|
ACTION_SWAP_YT(overrides?: CallOverrides): Promise<[string]>;
|
|
227
238
|
|
|
228
239
|
claimOwnership(
|
|
@@ -273,6 +284,8 @@ export interface PendleRouter extends BaseContract {
|
|
|
273
284
|
|
|
274
285
|
ACTION_SWAP_PT(overrides?: CallOverrides): Promise<string>;
|
|
275
286
|
|
|
287
|
+
ACTION_SWAP_PTYT(overrides?: CallOverrides): Promise<string>;
|
|
288
|
+
|
|
276
289
|
ACTION_SWAP_YT(overrides?: CallOverrides): Promise<string>;
|
|
277
290
|
|
|
278
291
|
claimOwnership(
|
|
@@ -323,6 +336,8 @@ export interface PendleRouter extends BaseContract {
|
|
|
323
336
|
|
|
324
337
|
ACTION_SWAP_PT(overrides?: CallOverrides): Promise<string>;
|
|
325
338
|
|
|
339
|
+
ACTION_SWAP_PTYT(overrides?: CallOverrides): Promise<string>;
|
|
340
|
+
|
|
326
341
|
ACTION_SWAP_YT(overrides?: CallOverrides): Promise<string>;
|
|
327
342
|
|
|
328
343
|
claimOwnership(overrides?: CallOverrides): Promise<void>;
|
|
@@ -398,6 +413,8 @@ export interface PendleRouter extends BaseContract {
|
|
|
398
413
|
|
|
399
414
|
ACTION_SWAP_PT(overrides?: CallOverrides): Promise<BigNumber>;
|
|
400
415
|
|
|
416
|
+
ACTION_SWAP_PTYT(overrides?: CallOverrides): Promise<BigNumber>;
|
|
417
|
+
|
|
401
418
|
ACTION_SWAP_YT(overrides?: CallOverrides): Promise<BigNumber>;
|
|
402
419
|
|
|
403
420
|
claimOwnership(
|
|
@@ -453,6 +470,8 @@ export interface PendleRouter extends BaseContract {
|
|
|
453
470
|
|
|
454
471
|
ACTION_SWAP_PT(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
455
472
|
|
|
473
|
+
ACTION_SWAP_PTYT(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
474
|
+
|
|
456
475
|
ACTION_SWAP_YT(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
457
476
|
|
|
458
477
|
claimOwnership(
|
|
@@ -197,9 +197,11 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
197
197
|
"swapExactBaseTokenForYtStatic(address,address,uint256)": FunctionFragment;
|
|
198
198
|
"swapExactPtForBaseTokenStatic(address,uint256,address)": FunctionFragment;
|
|
199
199
|
"swapExactPtForScyStatic(address,uint256)": FunctionFragment;
|
|
200
|
+
"swapExactPtForYtStatic(address,uint256)": FunctionFragment;
|
|
200
201
|
"swapExactScyForPtStatic(address,uint256)": FunctionFragment;
|
|
201
202
|
"swapExactScyForYtStatic(address,uint256)": FunctionFragment;
|
|
202
203
|
"swapExactYtForBaseTokenStatic(address,uint256,address)": FunctionFragment;
|
|
204
|
+
"swapExactYtForPtStatic(address,uint256)": FunctionFragment;
|
|
203
205
|
"swapExactYtForScyStatic(address,uint256)": FunctionFragment;
|
|
204
206
|
"swapPtForExactScyStatic(address,uint256)": FunctionFragment;
|
|
205
207
|
"swapScyForExactPtStatic(address,uint256)": FunctionFragment;
|
|
@@ -358,6 +360,10 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
358
360
|
functionFragment: "swapExactPtForScyStatic",
|
|
359
361
|
values: [string, BigNumberish]
|
|
360
362
|
): string;
|
|
363
|
+
encodeFunctionData(
|
|
364
|
+
functionFragment: "swapExactPtForYtStatic",
|
|
365
|
+
values: [string, BigNumberish]
|
|
366
|
+
): string;
|
|
361
367
|
encodeFunctionData(
|
|
362
368
|
functionFragment: "swapExactScyForPtStatic",
|
|
363
369
|
values: [string, BigNumberish]
|
|
@@ -370,6 +376,10 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
370
376
|
functionFragment: "swapExactYtForBaseTokenStatic",
|
|
371
377
|
values: [string, BigNumberish, string]
|
|
372
378
|
): string;
|
|
379
|
+
encodeFunctionData(
|
|
380
|
+
functionFragment: "swapExactYtForPtStatic",
|
|
381
|
+
values: [string, BigNumberish]
|
|
382
|
+
): string;
|
|
373
383
|
encodeFunctionData(
|
|
374
384
|
functionFragment: "swapExactYtForScyStatic",
|
|
375
385
|
values: [string, BigNumberish]
|
|
@@ -545,6 +555,10 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
545
555
|
functionFragment: "swapExactPtForScyStatic",
|
|
546
556
|
data: BytesLike
|
|
547
557
|
): Result;
|
|
558
|
+
decodeFunctionResult(
|
|
559
|
+
functionFragment: "swapExactPtForYtStatic",
|
|
560
|
+
data: BytesLike
|
|
561
|
+
): Result;
|
|
548
562
|
decodeFunctionResult(
|
|
549
563
|
functionFragment: "swapExactScyForPtStatic",
|
|
550
564
|
data: BytesLike
|
|
@@ -557,6 +571,10 @@ export interface RouterStaticInterface extends utils.Interface {
|
|
|
557
571
|
functionFragment: "swapExactYtForBaseTokenStatic",
|
|
558
572
|
data: BytesLike
|
|
559
573
|
): Result;
|
|
574
|
+
decodeFunctionResult(
|
|
575
|
+
functionFragment: "swapExactYtForPtStatic",
|
|
576
|
+
data: BytesLike
|
|
577
|
+
): Result;
|
|
560
578
|
decodeFunctionResult(
|
|
561
579
|
functionFragment: "swapExactYtForScyStatic",
|
|
562
580
|
data: BytesLike
|
|
@@ -909,6 +927,12 @@ export interface RouterStatic extends BaseContract {
|
|
|
909
927
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
910
928
|
): Promise<ContractTransaction>;
|
|
911
929
|
|
|
930
|
+
swapExactPtForYtStatic(
|
|
931
|
+
market: string,
|
|
932
|
+
exactPtIn: BigNumberish,
|
|
933
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
934
|
+
): Promise<ContractTransaction>;
|
|
935
|
+
|
|
912
936
|
swapExactScyForPtStatic(
|
|
913
937
|
market: string,
|
|
914
938
|
exactScyIn: BigNumberish,
|
|
@@ -928,6 +952,12 @@ export interface RouterStatic extends BaseContract {
|
|
|
928
952
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
929
953
|
): Promise<ContractTransaction>;
|
|
930
954
|
|
|
955
|
+
swapExactYtForPtStatic(
|
|
956
|
+
market: string,
|
|
957
|
+
exactYtIn: BigNumberish,
|
|
958
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
959
|
+
): Promise<ContractTransaction>;
|
|
960
|
+
|
|
931
961
|
swapExactYtForScyStatic(
|
|
932
962
|
market: string,
|
|
933
963
|
exactYtIn: BigNumberish,
|
|
@@ -1219,6 +1249,12 @@ export interface RouterStatic extends BaseContract {
|
|
|
1219
1249
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1220
1250
|
): Promise<ContractTransaction>;
|
|
1221
1251
|
|
|
1252
|
+
swapExactPtForYtStatic(
|
|
1253
|
+
market: string,
|
|
1254
|
+
exactPtIn: BigNumberish,
|
|
1255
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1256
|
+
): Promise<ContractTransaction>;
|
|
1257
|
+
|
|
1222
1258
|
swapExactScyForPtStatic(
|
|
1223
1259
|
market: string,
|
|
1224
1260
|
exactScyIn: BigNumberish,
|
|
@@ -1238,6 +1274,12 @@ export interface RouterStatic extends BaseContract {
|
|
|
1238
1274
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1239
1275
|
): Promise<ContractTransaction>;
|
|
1240
1276
|
|
|
1277
|
+
swapExactYtForPtStatic(
|
|
1278
|
+
market: string,
|
|
1279
|
+
exactYtIn: BigNumberish,
|
|
1280
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1281
|
+
): Promise<ContractTransaction>;
|
|
1282
|
+
|
|
1241
1283
|
swapExactYtForScyStatic(
|
|
1242
1284
|
market: string,
|
|
1243
1285
|
exactYtIn: BigNumberish,
|
|
@@ -1612,6 +1654,19 @@ export interface RouterStatic extends BaseContract {
|
|
|
1612
1654
|
}
|
|
1613
1655
|
>;
|
|
1614
1656
|
|
|
1657
|
+
swapExactPtForYtStatic(
|
|
1658
|
+
market: string,
|
|
1659
|
+
exactPtIn: BigNumberish,
|
|
1660
|
+
overrides?: CallOverrides
|
|
1661
|
+
): Promise<
|
|
1662
|
+
[BigNumber, BigNumber, BigNumber, BigNumber] & {
|
|
1663
|
+
netYtOut: BigNumber;
|
|
1664
|
+
totalPtToSwap: BigNumber;
|
|
1665
|
+
netScyFee: BigNumber;
|
|
1666
|
+
priceImpact: BigNumber;
|
|
1667
|
+
}
|
|
1668
|
+
>;
|
|
1669
|
+
|
|
1615
1670
|
swapExactScyForPtStatic(
|
|
1616
1671
|
market: string,
|
|
1617
1672
|
exactScyIn: BigNumberish,
|
|
@@ -1649,6 +1704,19 @@ export interface RouterStatic extends BaseContract {
|
|
|
1649
1704
|
}
|
|
1650
1705
|
>;
|
|
1651
1706
|
|
|
1707
|
+
swapExactYtForPtStatic(
|
|
1708
|
+
market: string,
|
|
1709
|
+
exactYtIn: BigNumberish,
|
|
1710
|
+
overrides?: CallOverrides
|
|
1711
|
+
): Promise<
|
|
1712
|
+
[BigNumber, BigNumber, BigNumber, BigNumber] & {
|
|
1713
|
+
netPtOut: BigNumber;
|
|
1714
|
+
totalPtSwapped: BigNumber;
|
|
1715
|
+
netScyFee: BigNumber;
|
|
1716
|
+
priceImpact: BigNumber;
|
|
1717
|
+
}
|
|
1718
|
+
>;
|
|
1719
|
+
|
|
1652
1720
|
swapExactYtForScyStatic(
|
|
1653
1721
|
market: string,
|
|
1654
1722
|
exactYtIn: BigNumberish,
|
|
@@ -1977,6 +2045,12 @@ export interface RouterStatic extends BaseContract {
|
|
|
1977
2045
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1978
2046
|
): Promise<BigNumber>;
|
|
1979
2047
|
|
|
2048
|
+
swapExactPtForYtStatic(
|
|
2049
|
+
market: string,
|
|
2050
|
+
exactPtIn: BigNumberish,
|
|
2051
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
2052
|
+
): Promise<BigNumber>;
|
|
2053
|
+
|
|
1980
2054
|
swapExactScyForPtStatic(
|
|
1981
2055
|
market: string,
|
|
1982
2056
|
exactScyIn: BigNumberish,
|
|
@@ -1996,6 +2070,12 @@ export interface RouterStatic extends BaseContract {
|
|
|
1996
2070
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1997
2071
|
): Promise<BigNumber>;
|
|
1998
2072
|
|
|
2073
|
+
swapExactYtForPtStatic(
|
|
2074
|
+
market: string,
|
|
2075
|
+
exactYtIn: BigNumberish,
|
|
2076
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
2077
|
+
): Promise<BigNumber>;
|
|
2078
|
+
|
|
1999
2079
|
swapExactYtForScyStatic(
|
|
2000
2080
|
market: string,
|
|
2001
2081
|
exactYtIn: BigNumberish,
|
|
@@ -2268,6 +2348,12 @@ export interface RouterStatic extends BaseContract {
|
|
|
2268
2348
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
2269
2349
|
): Promise<PopulatedTransaction>;
|
|
2270
2350
|
|
|
2351
|
+
swapExactPtForYtStatic(
|
|
2352
|
+
market: string,
|
|
2353
|
+
exactPtIn: BigNumberish,
|
|
2354
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
2355
|
+
): Promise<PopulatedTransaction>;
|
|
2356
|
+
|
|
2271
2357
|
swapExactScyForPtStatic(
|
|
2272
2358
|
market: string,
|
|
2273
2359
|
exactScyIn: BigNumberish,
|
|
@@ -2287,6 +2373,12 @@ export interface RouterStatic extends BaseContract {
|
|
|
2287
2373
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
2288
2374
|
): Promise<PopulatedTransaction>;
|
|
2289
2375
|
|
|
2376
|
+
swapExactYtForPtStatic(
|
|
2377
|
+
market: string,
|
|
2378
|
+
exactYtIn: BigNumberish,
|
|
2379
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
2380
|
+
): Promise<PopulatedTransaction>;
|
|
2381
|
+
|
|
2290
2382
|
swapExactYtForScyStatic(
|
|
2291
2383
|
market: string,
|
|
2292
2384
|
exactYtIn: BigNumberish,
|