@pendle/core-v2 0.5.1-beta-4 → 0.6.0
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/SuperComposableYield/ISuperComposableYield.sol +2 -0
- package/contracts/SuperComposableYield/implementations/RewardManager.sol +35 -20
- package/contracts/SuperComposableYield/implementations/SCYBase.sol +39 -19
- package/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol +26 -14
- package/contracts/core/PendleBaseToken.sol +2 -2
- package/contracts/core/PendleMarket.sol +145 -61
- package/contracts/core/PendleMarketFactory.sol +30 -19
- package/contracts/core/{PendleOwnershipToken.sol → PendlePrincipalToken.sol} +14 -2
- package/contracts/core/PendleRouter.sol +23 -9
- package/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol +21 -20
- package/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol +22 -16
- package/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol +13 -13
- package/contracts/core/PendleSCYImpl/PendleStETHSCY.sol +107 -0
- package/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol +14 -15
- package/contracts/core/PendleYieldContractFactory.sol +29 -14
- package/contracts/core/PendleYieldToken.sol +130 -76
- package/contracts/core/RouterStatic.sol +16 -157
- package/contracts/core/actions/ActionCallback.sol +36 -18
- package/contracts/core/actions/ActionCore.sol +41 -88
- package/contracts/core/actions/ActionRedeem.sol +36 -0
- package/contracts/core/actions/ActionYT.sol +41 -59
- package/contracts/core/actions/base/{ActionSCYAndOTBase.sol → ActionSCYAndPTBase.sol} +59 -45
- package/contracts/core/actions/base/{ActionSCYAndYOBase.sol → ActionSCYAndPYBase.sol} +57 -19
- package/contracts/core/actions/base/ActionSCYAndYTBase.sol +31 -21
- package/contracts/interfaces/IPActionCore.sol +21 -28
- package/contracts/interfaces/IPActionRedeem.sol +17 -0
- package/contracts/interfaces/IPActionYT.sol +5 -12
- package/contracts/interfaces/IPAllAction.sol +2 -2
- package/contracts/interfaces/IPMarket.sol +33 -10
- package/contracts/interfaces/IPMarketAddRemoveCallback.sol +2 -2
- package/contracts/interfaces/IPMarketFactory.sol +3 -1
- package/contracts/interfaces/IPMarketSwapCallback.sol +1 -1
- package/contracts/interfaces/{IPOwnershipToken.sol → IPPrincipalToken.sol} +1 -1
- package/contracts/interfaces/IPRouterStatic.sol +7 -82
- package/contracts/interfaces/IPYieldContractFactory.sol +10 -2
- package/contracts/interfaces/IPYieldToken.sol +14 -5
- package/contracts/interfaces/IWstETH.sol +10 -0
- package/contracts/libraries/JoeLibrary.sol +1 -1
- package/contracts/libraries/math/LogExpMath.sol +1 -1
- package/contracts/libraries/math/MarketApproxLib.sol +128 -88
- package/contracts/libraries/math/MarketMathAux.sol +13 -13
- package/contracts/libraries/math/MarketMathCore.sol +62 -93
- package/contracts/libraries/math/Math.sol +14 -2
- package/contracts/periphery/PendleGovernanceManager.sol +5 -3
- package/package.json +3 -2
- package/typechain-types/ActionCallback.ts +5 -5
- package/typechain-types/ActionCore.ts +312 -234
- package/typechain-types/ActionRedeem.ts +125 -0
- package/typechain-types/ActionSCYAndPYBase.ts +223 -0
- package/typechain-types/ActionSCYAndYOBase.ts +129 -3
- package/typechain-types/ActionSCYAndYTBase.ts +149 -3
- package/typechain-types/ActionYT.ts +192 -94
- package/typechain-types/IPActionCore.ts +183 -231
- package/typechain-types/IPActionRedeem.ts +125 -0
- package/typechain-types/IPActionYT.ts +43 -91
- package/typechain-types/IPAllAction.ts +258 -321
- package/typechain-types/IPMarket.ts +150 -50
- package/typechain-types/IPMarketAddRemoveCallback.ts +10 -10
- package/typechain-types/IPMarketFactory.ts +28 -6
- package/typechain-types/IPMarketSwapCallback.ts +5 -5
- package/typechain-types/{IPOwnershipToken.ts → IPPrincipalToken.ts} +5 -5
- package/typechain-types/IPRouterStatic.ts +50 -530
- package/typechain-types/IPYieldContractFactory.ts +85 -19
- package/typechain-types/IPYieldToken.ts +138 -37
- package/typechain-types/ISuperComposableYield.ts +13 -0
- package/typechain-types/IWstETH.ts +149 -0
- package/typechain-types/PendleAaveV3SCY.ts +110 -0
- package/typechain-types/PendleBaseToken.ts +1 -1
- package/typechain-types/PendleBenQiErc20SCY.ts +55 -12
- package/typechain-types/PendleBtrflyScy.ts +27 -23
- package/typechain-types/PendleGovernanceManager.ts +5 -5
- package/typechain-types/PendleMarket.ts +197 -100
- package/typechain-types/PendleMarketFactory.ts +96 -34
- package/typechain-types/{PendleOwnershipToken.ts → PendlePrincipalToken.ts} +15 -6
- package/typechain-types/PendleRouter.ts +19 -0
- package/typechain-types/PendleRouterRedeemUpg.ts +125 -0
- package/typechain-types/PendleStEthSCY.ts +872 -0
- package/typechain-types/PendleYearnVaultScy.ts +27 -23
- package/typechain-types/PendleYieldContractFactory.ts +94 -28
- package/typechain-types/PendleYieldToken.ts +142 -57
- package/typechain-types/RewardManager.ts +21 -0
- package/typechain-types/RouterStatic.ts +50 -530
- package/typechain-types/SCYBase.ts +25 -0
- package/typechain-types/SCYBaseWithRewards.ts +64 -0
- package/typechain-types/factories/ActionCallback__factory.ts +2 -2
- package/typechain-types/factories/ActionCore__factory.ts +263 -79
- package/typechain-types/factories/ActionRedeem__factory.ts +105 -0
- package/typechain-types/factories/ActionSCYAndPYBase__factory.ts +200 -0
- package/typechain-types/factories/ActionSCYAndYOBase__factory.ts +148 -0
- package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +173 -0
- package/typechain-types/factories/ActionYT__factory.ts +265 -56
- package/typechain-types/factories/IPActionCore__factory.ts +114 -78
- package/typechain-types/factories/IPActionRedeem__factory.ts +70 -0
- package/typechain-types/factories/IPActionYT__factory.ts +90 -54
- package/typechain-types/factories/IPAllAction__factory.ts +254 -138
- package/typechain-types/factories/IPMarketAddRemoveCallback__factory.ts +2 -2
- package/typechain-types/factories/IPMarketFactory__factory.ts +26 -1
- package/typechain-types/factories/IPMarketSwapCallback__factory.ts +1 -1
- package/typechain-types/factories/IPMarket__factory.ts +125 -13
- package/typechain-types/factories/{IPOwnershipToken__factory.ts → IPPrincipalToken__factory.ts} +8 -8
- package/typechain-types/factories/IPRouterStatic__factory.ts +12 -628
- package/typechain-types/factories/IPYieldContractFactory__factory.ts +72 -2
- package/typechain-types/factories/IPYieldToken__factory.ts +93 -7
- package/typechain-types/factories/ISuperComposableYield__factory.ts +13 -0
- package/typechain-types/factories/IWstETH__factory.ts +74 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +97 -3
- package/typechain-types/factories/PendleBaseToken__factory.ts +1 -1
- package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +62 -7
- package/typechain-types/factories/PendleBtrflyScy__factory.ts +42 -19
- package/typechain-types/factories/PendleGovernanceManager__factory.ts +2 -2
- package/typechain-types/factories/PendleMarketFactory__factory.ts +66 -15
- package/typechain-types/factories/PendleMarket__factory.ts +170 -53
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +540 -0
- package/typechain-types/factories/PendleRouterRedeemUpg__factory.ts +112 -0
- package/typechain-types/factories/PendleRouter__factory.ts +23 -1
- package/typechain-types/factories/PendleStEthSCY__factory.ts +716 -0
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +41 -18
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +75 -5
- package/typechain-types/factories/PendleYieldToken__factory.ts +102 -33
- package/typechain-types/factories/RewardManager__factory.ts +13 -0
- package/typechain-types/factories/RouterStatic__factory.ts +13 -629
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +60 -2
- package/typechain-types/factories/SCYBase__factory.ts +28 -2
- package/typechain-types/hardhat.d.ts +52 -16
- package/typechain-types/index.ts +14 -6
- package/typechain-types/factories/PendleOwnershipToken__factory.ts +0 -527
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
Signer,
|
|
14
14
|
utils,
|
|
15
15
|
} from "ethers";
|
|
16
|
-
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
16
|
+
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
17
17
|
import { Listener, Provider } from "@ethersproject/providers";
|
|
18
18
|
import type {
|
|
19
19
|
TypedEventFilter,
|
|
@@ -22,23 +22,45 @@ import type {
|
|
|
22
22
|
OnEvent,
|
|
23
23
|
} from "./common";
|
|
24
24
|
|
|
25
|
+
export type ApproxParamsStruct = {
|
|
26
|
+
guessMin: BigNumberish;
|
|
27
|
+
guessMax: BigNumberish;
|
|
28
|
+
guessOffchain: BigNumberish;
|
|
29
|
+
maxIteration: BigNumberish;
|
|
30
|
+
eps: BigNumberish;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type ApproxParamsStructOutput = [
|
|
34
|
+
BigNumber,
|
|
35
|
+
BigNumber,
|
|
36
|
+
BigNumber,
|
|
37
|
+
BigNumber,
|
|
38
|
+
BigNumber
|
|
39
|
+
] & {
|
|
40
|
+
guessMin: BigNumber;
|
|
41
|
+
guessMax: BigNumber;
|
|
42
|
+
guessOffchain: BigNumber;
|
|
43
|
+
maxIteration: BigNumber;
|
|
44
|
+
eps: BigNumber;
|
|
45
|
+
};
|
|
46
|
+
|
|
25
47
|
export interface ActionCoreInterface extends utils.Interface {
|
|
26
48
|
contractName: "ActionCore";
|
|
27
49
|
functions: {
|
|
28
50
|
"addLiquidity(address,address,uint256,uint256,uint256)": FunctionFragment;
|
|
29
51
|
"joeFactory()": FunctionFragment;
|
|
30
52
|
"joeRouter()": FunctionFragment;
|
|
53
|
+
"mintPyFromRawToken(uint256,address,uint256,address,address[])": FunctionFragment;
|
|
31
54
|
"mintScyFromRawToken(uint256,address,uint256,address,address[])": FunctionFragment;
|
|
32
|
-
"
|
|
55
|
+
"redeemPyToRawToken(address,uint256,uint256,address,address[])": FunctionFragment;
|
|
33
56
|
"redeemScyToRawToken(address,uint256,uint256,address,address[])": FunctionFragment;
|
|
34
|
-
"redeemYoToRawToken(address,uint256,uint256,address,address[])": FunctionFragment;
|
|
35
57
|
"removeLiquidity(address,address,uint256,uint256,uint256)": FunctionFragment;
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
58
|
+
"swapExactPtForRawToken(uint256,address,address[],address,uint256)": FunctionFragment;
|
|
59
|
+
"swapExactPtForScy(address,address,uint256,uint256)": FunctionFragment;
|
|
60
|
+
"swapExactRawTokenForPt(uint256,address,address[],address,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
61
|
+
"swapExactScyForPt(address,address,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
62
|
+
"swapPtForExactScy(address,address,uint256,(uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
|
|
63
|
+
"swapScyForExactPt(address,address,uint256,uint256)": FunctionFragment;
|
|
42
64
|
};
|
|
43
65
|
|
|
44
66
|
encodeFunctionData(
|
|
@@ -51,19 +73,19 @@ export interface ActionCoreInterface extends utils.Interface {
|
|
|
51
73
|
): string;
|
|
52
74
|
encodeFunctionData(functionFragment: "joeRouter", values?: undefined): string;
|
|
53
75
|
encodeFunctionData(
|
|
54
|
-
functionFragment: "
|
|
76
|
+
functionFragment: "mintPyFromRawToken",
|
|
55
77
|
values: [BigNumberish, string, BigNumberish, string, string[]]
|
|
56
78
|
): string;
|
|
57
79
|
encodeFunctionData(
|
|
58
|
-
functionFragment: "
|
|
80
|
+
functionFragment: "mintScyFromRawToken",
|
|
59
81
|
values: [BigNumberish, string, BigNumberish, string, string[]]
|
|
60
82
|
): string;
|
|
61
83
|
encodeFunctionData(
|
|
62
|
-
functionFragment: "
|
|
84
|
+
functionFragment: "redeemPyToRawToken",
|
|
63
85
|
values: [string, BigNumberish, BigNumberish, string, string[]]
|
|
64
86
|
): string;
|
|
65
87
|
encodeFunctionData(
|
|
66
|
-
functionFragment: "
|
|
88
|
+
functionFragment: "redeemScyToRawToken",
|
|
67
89
|
values: [string, BigNumberish, BigNumberish, string, string[]]
|
|
68
90
|
): string;
|
|
69
91
|
encodeFunctionData(
|
|
@@ -71,52 +93,27 @@ export interface ActionCoreInterface extends utils.Interface {
|
|
|
71
93
|
values: [string, string, BigNumberish, BigNumberish, BigNumberish]
|
|
72
94
|
): string;
|
|
73
95
|
encodeFunctionData(
|
|
74
|
-
functionFragment: "
|
|
96
|
+
functionFragment: "swapExactPtForRawToken",
|
|
75
97
|
values: [BigNumberish, string, string[], string, BigNumberish]
|
|
76
98
|
): string;
|
|
77
99
|
encodeFunctionData(
|
|
78
|
-
functionFragment: "
|
|
100
|
+
functionFragment: "swapExactPtForScy",
|
|
79
101
|
values: [string, string, BigNumberish, BigNumberish]
|
|
80
102
|
): string;
|
|
81
103
|
encodeFunctionData(
|
|
82
|
-
functionFragment: "
|
|
83
|
-
values: [
|
|
84
|
-
BigNumberish,
|
|
85
|
-
string,
|
|
86
|
-
string[],
|
|
87
|
-
string,
|
|
88
|
-
BigNumberish,
|
|
89
|
-
BigNumberish,
|
|
90
|
-
BigNumberish,
|
|
91
|
-
BigNumberish
|
|
92
|
-
]
|
|
104
|
+
functionFragment: "swapExactRawTokenForPt",
|
|
105
|
+
values: [BigNumberish, string, string[], string, ApproxParamsStruct]
|
|
93
106
|
): string;
|
|
94
107
|
encodeFunctionData(
|
|
95
|
-
functionFragment: "
|
|
96
|
-
values: [
|
|
97
|
-
string,
|
|
98
|
-
string,
|
|
99
|
-
BigNumberish,
|
|
100
|
-
BigNumberish,
|
|
101
|
-
BigNumberish,
|
|
102
|
-
BigNumberish,
|
|
103
|
-
BigNumberish
|
|
104
|
-
]
|
|
108
|
+
functionFragment: "swapExactScyForPt",
|
|
109
|
+
values: [string, string, BigNumberish, ApproxParamsStruct]
|
|
105
110
|
): string;
|
|
106
111
|
encodeFunctionData(
|
|
107
|
-
functionFragment: "
|
|
108
|
-
values: [
|
|
109
|
-
string,
|
|
110
|
-
string,
|
|
111
|
-
BigNumberish,
|
|
112
|
-
BigNumberish,
|
|
113
|
-
BigNumberish,
|
|
114
|
-
BigNumberish,
|
|
115
|
-
BigNumberish
|
|
116
|
-
]
|
|
112
|
+
functionFragment: "swapPtForExactScy",
|
|
113
|
+
values: [string, string, BigNumberish, ApproxParamsStruct]
|
|
117
114
|
): string;
|
|
118
115
|
encodeFunctionData(
|
|
119
|
-
functionFragment: "
|
|
116
|
+
functionFragment: "swapScyForExactPt",
|
|
120
117
|
values: [string, string, BigNumberish, BigNumberish]
|
|
121
118
|
): string;
|
|
122
119
|
|
|
@@ -127,19 +124,19 @@ export interface ActionCoreInterface extends utils.Interface {
|
|
|
127
124
|
decodeFunctionResult(functionFragment: "joeFactory", data: BytesLike): Result;
|
|
128
125
|
decodeFunctionResult(functionFragment: "joeRouter", data: BytesLike): Result;
|
|
129
126
|
decodeFunctionResult(
|
|
130
|
-
functionFragment: "
|
|
127
|
+
functionFragment: "mintPyFromRawToken",
|
|
131
128
|
data: BytesLike
|
|
132
129
|
): Result;
|
|
133
130
|
decodeFunctionResult(
|
|
134
|
-
functionFragment: "
|
|
131
|
+
functionFragment: "mintScyFromRawToken",
|
|
135
132
|
data: BytesLike
|
|
136
133
|
): Result;
|
|
137
134
|
decodeFunctionResult(
|
|
138
|
-
functionFragment: "
|
|
135
|
+
functionFragment: "redeemPyToRawToken",
|
|
139
136
|
data: BytesLike
|
|
140
137
|
): Result;
|
|
141
138
|
decodeFunctionResult(
|
|
142
|
-
functionFragment: "
|
|
139
|
+
functionFragment: "redeemScyToRawToken",
|
|
143
140
|
data: BytesLike
|
|
144
141
|
): Result;
|
|
145
142
|
decodeFunctionResult(
|
|
@@ -147,33 +144,99 @@ export interface ActionCoreInterface extends utils.Interface {
|
|
|
147
144
|
data: BytesLike
|
|
148
145
|
): Result;
|
|
149
146
|
decodeFunctionResult(
|
|
150
|
-
functionFragment: "
|
|
147
|
+
functionFragment: "swapExactPtForRawToken",
|
|
151
148
|
data: BytesLike
|
|
152
149
|
): Result;
|
|
153
150
|
decodeFunctionResult(
|
|
154
|
-
functionFragment: "
|
|
151
|
+
functionFragment: "swapExactPtForScy",
|
|
155
152
|
data: BytesLike
|
|
156
153
|
): Result;
|
|
157
154
|
decodeFunctionResult(
|
|
158
|
-
functionFragment: "
|
|
155
|
+
functionFragment: "swapExactRawTokenForPt",
|
|
159
156
|
data: BytesLike
|
|
160
157
|
): Result;
|
|
161
158
|
decodeFunctionResult(
|
|
162
|
-
functionFragment: "
|
|
159
|
+
functionFragment: "swapExactScyForPt",
|
|
163
160
|
data: BytesLike
|
|
164
161
|
): Result;
|
|
165
162
|
decodeFunctionResult(
|
|
166
|
-
functionFragment: "
|
|
163
|
+
functionFragment: "swapPtForExactScy",
|
|
167
164
|
data: BytesLike
|
|
168
165
|
): Result;
|
|
169
166
|
decodeFunctionResult(
|
|
170
|
-
functionFragment: "
|
|
167
|
+
functionFragment: "swapScyForExactPt",
|
|
171
168
|
data: BytesLike
|
|
172
169
|
): Result;
|
|
173
170
|
|
|
174
|
-
events: {
|
|
171
|
+
events: {
|
|
172
|
+
"MintPyFromRawToken(address,address,uint256,address,uint256)": EventFragment;
|
|
173
|
+
"MintScyFromRawToken(address,address,uint256,address,uint256)": EventFragment;
|
|
174
|
+
"RedeemPyToRawToken(address,address,uint256,address,uint256)": EventFragment;
|
|
175
|
+
"RedeemScyToRawToken(address,address,uint256,address,uint256)": EventFragment;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
getEvent(nameOrSignatureOrTopic: "MintPyFromRawToken"): EventFragment;
|
|
179
|
+
getEvent(nameOrSignatureOrTopic: "MintScyFromRawToken"): EventFragment;
|
|
180
|
+
getEvent(nameOrSignatureOrTopic: "RedeemPyToRawToken"): EventFragment;
|
|
181
|
+
getEvent(nameOrSignatureOrTopic: "RedeemScyToRawToken"): EventFragment;
|
|
175
182
|
}
|
|
176
183
|
|
|
184
|
+
export type MintPyFromRawTokenEvent = TypedEvent<
|
|
185
|
+
[string, string, BigNumber, string, BigNumber],
|
|
186
|
+
{
|
|
187
|
+
user: string;
|
|
188
|
+
rawTokenIn: string;
|
|
189
|
+
netRawTokenIn: BigNumber;
|
|
190
|
+
YT: string;
|
|
191
|
+
netPyOut: BigNumber;
|
|
192
|
+
}
|
|
193
|
+
>;
|
|
194
|
+
|
|
195
|
+
export type MintPyFromRawTokenEventFilter =
|
|
196
|
+
TypedEventFilter<MintPyFromRawTokenEvent>;
|
|
197
|
+
|
|
198
|
+
export type MintScyFromRawTokenEvent = TypedEvent<
|
|
199
|
+
[string, string, BigNumber, string, BigNumber],
|
|
200
|
+
{
|
|
201
|
+
user: string;
|
|
202
|
+
rawTokenIn: string;
|
|
203
|
+
netRawTokenIn: BigNumber;
|
|
204
|
+
SCY: string;
|
|
205
|
+
netScyOut: BigNumber;
|
|
206
|
+
}
|
|
207
|
+
>;
|
|
208
|
+
|
|
209
|
+
export type MintScyFromRawTokenEventFilter =
|
|
210
|
+
TypedEventFilter<MintScyFromRawTokenEvent>;
|
|
211
|
+
|
|
212
|
+
export type RedeemPyToRawTokenEvent = TypedEvent<
|
|
213
|
+
[string, string, BigNumber, string, BigNumber],
|
|
214
|
+
{
|
|
215
|
+
user: string;
|
|
216
|
+
YT: string;
|
|
217
|
+
netPyIn: BigNumber;
|
|
218
|
+
rawTokenOut: string;
|
|
219
|
+
netRawTokenOut: BigNumber;
|
|
220
|
+
}
|
|
221
|
+
>;
|
|
222
|
+
|
|
223
|
+
export type RedeemPyToRawTokenEventFilter =
|
|
224
|
+
TypedEventFilter<RedeemPyToRawTokenEvent>;
|
|
225
|
+
|
|
226
|
+
export type RedeemScyToRawTokenEvent = TypedEvent<
|
|
227
|
+
[string, string, BigNumber, string, BigNumber],
|
|
228
|
+
{
|
|
229
|
+
user: string;
|
|
230
|
+
SCY: string;
|
|
231
|
+
netScyIn: BigNumber;
|
|
232
|
+
rawTokenOut: string;
|
|
233
|
+
netRawTokenOut: BigNumber;
|
|
234
|
+
}
|
|
235
|
+
>;
|
|
236
|
+
|
|
237
|
+
export type RedeemScyToRawTokenEventFilter =
|
|
238
|
+
TypedEventFilter<RedeemScyToRawTokenEvent>;
|
|
239
|
+
|
|
177
240
|
export interface ActionCore extends BaseContract {
|
|
178
241
|
contractName: "ActionCore";
|
|
179
242
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
@@ -206,7 +269,7 @@ export interface ActionCore extends BaseContract {
|
|
|
206
269
|
receiver: string,
|
|
207
270
|
market: string,
|
|
208
271
|
scyDesired: BigNumberish,
|
|
209
|
-
|
|
272
|
+
ptDesired: BigNumberish,
|
|
210
273
|
minLpOut: BigNumberish,
|
|
211
274
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
212
275
|
): Promise<ContractTransaction>;
|
|
@@ -215,36 +278,36 @@ export interface ActionCore extends BaseContract {
|
|
|
215
278
|
|
|
216
279
|
joeRouter(overrides?: CallOverrides): Promise<[string]>;
|
|
217
280
|
|
|
218
|
-
|
|
281
|
+
mintPyFromRawToken(
|
|
219
282
|
netRawTokenIn: BigNumberish,
|
|
220
|
-
|
|
221
|
-
|
|
283
|
+
YT: string,
|
|
284
|
+
minPyOut: BigNumberish,
|
|
222
285
|
receiver: string,
|
|
223
286
|
path: string[],
|
|
224
287
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
225
288
|
): Promise<ContractTransaction>;
|
|
226
289
|
|
|
227
|
-
|
|
290
|
+
mintScyFromRawToken(
|
|
228
291
|
netRawTokenIn: BigNumberish,
|
|
229
|
-
|
|
230
|
-
|
|
292
|
+
SCY: string,
|
|
293
|
+
minScyOut: BigNumberish,
|
|
231
294
|
receiver: string,
|
|
232
295
|
path: string[],
|
|
233
296
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
234
297
|
): Promise<ContractTransaction>;
|
|
235
298
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
299
|
+
redeemPyToRawToken(
|
|
300
|
+
YT: string,
|
|
301
|
+
netPyIn: BigNumberish,
|
|
239
302
|
minRawTokenOut: BigNumberish,
|
|
240
303
|
receiver: string,
|
|
241
304
|
path: string[],
|
|
242
305
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
243
306
|
): Promise<ContractTransaction>;
|
|
244
307
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
308
|
+
redeemScyToRawToken(
|
|
309
|
+
SCY: string,
|
|
310
|
+
netScyIn: BigNumberish,
|
|
248
311
|
minRawTokenOut: BigNumberish,
|
|
249
312
|
receiver: string,
|
|
250
313
|
path: string[],
|
|
@@ -256,12 +319,12 @@ export interface ActionCore extends BaseContract {
|
|
|
256
319
|
market: string,
|
|
257
320
|
lpToRemove: BigNumberish,
|
|
258
321
|
scyOutMin: BigNumberish,
|
|
259
|
-
|
|
322
|
+
ptOutMin: BigNumberish,
|
|
260
323
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
261
324
|
): Promise<ContractTransaction>;
|
|
262
325
|
|
|
263
|
-
|
|
264
|
-
|
|
326
|
+
swapExactPtForRawToken(
|
|
327
|
+
exactPtIn: BigNumberish,
|
|
265
328
|
receiver: string,
|
|
266
329
|
path: string[],
|
|
267
330
|
market: string,
|
|
@@ -269,52 +332,43 @@ export interface ActionCore extends BaseContract {
|
|
|
269
332
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
270
333
|
): Promise<ContractTransaction>;
|
|
271
334
|
|
|
272
|
-
|
|
335
|
+
swapExactPtForScy(
|
|
273
336
|
receiver: string,
|
|
274
337
|
market: string,
|
|
275
|
-
|
|
338
|
+
exactPtIn: BigNumberish,
|
|
276
339
|
minScyOut: BigNumberish,
|
|
277
340
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
278
341
|
): Promise<ContractTransaction>;
|
|
279
342
|
|
|
280
|
-
|
|
343
|
+
swapExactRawTokenForPt(
|
|
281
344
|
exactRawTokenIn: BigNumberish,
|
|
282
345
|
receiver: string,
|
|
283
346
|
path: string[],
|
|
284
347
|
market: string,
|
|
285
|
-
|
|
286
|
-
otOutguessMax: BigNumberish,
|
|
287
|
-
maxIteration: BigNumberish,
|
|
288
|
-
eps: BigNumberish,
|
|
348
|
+
approx: ApproxParamsStruct,
|
|
289
349
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
290
350
|
): Promise<ContractTransaction>;
|
|
291
351
|
|
|
292
|
-
|
|
352
|
+
swapExactScyForPt(
|
|
293
353
|
receiver: string,
|
|
294
354
|
market: string,
|
|
295
355
|
exactScyIn: BigNumberish,
|
|
296
|
-
|
|
297
|
-
otOutguessMax: BigNumberish,
|
|
298
|
-
maxIteration: BigNumberish,
|
|
299
|
-
eps: BigNumberish,
|
|
356
|
+
approx: ApproxParamsStruct,
|
|
300
357
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
301
358
|
): Promise<ContractTransaction>;
|
|
302
359
|
|
|
303
|
-
|
|
360
|
+
swapPtForExactScy(
|
|
304
361
|
receiver: string,
|
|
305
362
|
market: string,
|
|
306
363
|
exactScyOut: BigNumberish,
|
|
307
|
-
|
|
308
|
-
otInGuessMax: BigNumberish,
|
|
309
|
-
maxIteration: BigNumberish,
|
|
310
|
-
eps: BigNumberish,
|
|
364
|
+
approx: ApproxParamsStruct,
|
|
311
365
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
312
366
|
): Promise<ContractTransaction>;
|
|
313
367
|
|
|
314
|
-
|
|
368
|
+
swapScyForExactPt(
|
|
315
369
|
receiver: string,
|
|
316
370
|
market: string,
|
|
317
|
-
|
|
371
|
+
exactPtOut: BigNumberish,
|
|
318
372
|
maxScyIn: BigNumberish,
|
|
319
373
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
320
374
|
): Promise<ContractTransaction>;
|
|
@@ -324,7 +378,7 @@ export interface ActionCore extends BaseContract {
|
|
|
324
378
|
receiver: string,
|
|
325
379
|
market: string,
|
|
326
380
|
scyDesired: BigNumberish,
|
|
327
|
-
|
|
381
|
+
ptDesired: BigNumberish,
|
|
328
382
|
minLpOut: BigNumberish,
|
|
329
383
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
330
384
|
): Promise<ContractTransaction>;
|
|
@@ -333,36 +387,36 @@ export interface ActionCore extends BaseContract {
|
|
|
333
387
|
|
|
334
388
|
joeRouter(overrides?: CallOverrides): Promise<string>;
|
|
335
389
|
|
|
336
|
-
|
|
390
|
+
mintPyFromRawToken(
|
|
337
391
|
netRawTokenIn: BigNumberish,
|
|
338
|
-
|
|
339
|
-
|
|
392
|
+
YT: string,
|
|
393
|
+
minPyOut: BigNumberish,
|
|
340
394
|
receiver: string,
|
|
341
395
|
path: string[],
|
|
342
396
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
343
397
|
): Promise<ContractTransaction>;
|
|
344
398
|
|
|
345
|
-
|
|
399
|
+
mintScyFromRawToken(
|
|
346
400
|
netRawTokenIn: BigNumberish,
|
|
347
|
-
|
|
348
|
-
|
|
401
|
+
SCY: string,
|
|
402
|
+
minScyOut: BigNumberish,
|
|
349
403
|
receiver: string,
|
|
350
404
|
path: string[],
|
|
351
405
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
352
406
|
): Promise<ContractTransaction>;
|
|
353
407
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
408
|
+
redeemPyToRawToken(
|
|
409
|
+
YT: string,
|
|
410
|
+
netPyIn: BigNumberish,
|
|
357
411
|
minRawTokenOut: BigNumberish,
|
|
358
412
|
receiver: string,
|
|
359
413
|
path: string[],
|
|
360
414
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
361
415
|
): Promise<ContractTransaction>;
|
|
362
416
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
417
|
+
redeemScyToRawToken(
|
|
418
|
+
SCY: string,
|
|
419
|
+
netScyIn: BigNumberish,
|
|
366
420
|
minRawTokenOut: BigNumberish,
|
|
367
421
|
receiver: string,
|
|
368
422
|
path: string[],
|
|
@@ -374,12 +428,12 @@ export interface ActionCore extends BaseContract {
|
|
|
374
428
|
market: string,
|
|
375
429
|
lpToRemove: BigNumberish,
|
|
376
430
|
scyOutMin: BigNumberish,
|
|
377
|
-
|
|
431
|
+
ptOutMin: BigNumberish,
|
|
378
432
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
379
433
|
): Promise<ContractTransaction>;
|
|
380
434
|
|
|
381
|
-
|
|
382
|
-
|
|
435
|
+
swapExactPtForRawToken(
|
|
436
|
+
exactPtIn: BigNumberish,
|
|
383
437
|
receiver: string,
|
|
384
438
|
path: string[],
|
|
385
439
|
market: string,
|
|
@@ -387,52 +441,43 @@ export interface ActionCore extends BaseContract {
|
|
|
387
441
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
388
442
|
): Promise<ContractTransaction>;
|
|
389
443
|
|
|
390
|
-
|
|
444
|
+
swapExactPtForScy(
|
|
391
445
|
receiver: string,
|
|
392
446
|
market: string,
|
|
393
|
-
|
|
447
|
+
exactPtIn: BigNumberish,
|
|
394
448
|
minScyOut: BigNumberish,
|
|
395
449
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
396
450
|
): Promise<ContractTransaction>;
|
|
397
451
|
|
|
398
|
-
|
|
452
|
+
swapExactRawTokenForPt(
|
|
399
453
|
exactRawTokenIn: BigNumberish,
|
|
400
454
|
receiver: string,
|
|
401
455
|
path: string[],
|
|
402
456
|
market: string,
|
|
403
|
-
|
|
404
|
-
otOutguessMax: BigNumberish,
|
|
405
|
-
maxIteration: BigNumberish,
|
|
406
|
-
eps: BigNumberish,
|
|
457
|
+
approx: ApproxParamsStruct,
|
|
407
458
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
408
459
|
): Promise<ContractTransaction>;
|
|
409
460
|
|
|
410
|
-
|
|
461
|
+
swapExactScyForPt(
|
|
411
462
|
receiver: string,
|
|
412
463
|
market: string,
|
|
413
464
|
exactScyIn: BigNumberish,
|
|
414
|
-
|
|
415
|
-
otOutguessMax: BigNumberish,
|
|
416
|
-
maxIteration: BigNumberish,
|
|
417
|
-
eps: BigNumberish,
|
|
465
|
+
approx: ApproxParamsStruct,
|
|
418
466
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
419
467
|
): Promise<ContractTransaction>;
|
|
420
468
|
|
|
421
|
-
|
|
469
|
+
swapPtForExactScy(
|
|
422
470
|
receiver: string,
|
|
423
471
|
market: string,
|
|
424
472
|
exactScyOut: BigNumberish,
|
|
425
|
-
|
|
426
|
-
otInGuessMax: BigNumberish,
|
|
427
|
-
maxIteration: BigNumberish,
|
|
428
|
-
eps: BigNumberish,
|
|
473
|
+
approx: ApproxParamsStruct,
|
|
429
474
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
430
475
|
): Promise<ContractTransaction>;
|
|
431
476
|
|
|
432
|
-
|
|
477
|
+
swapScyForExactPt(
|
|
433
478
|
receiver: string,
|
|
434
479
|
market: string,
|
|
435
|
-
|
|
480
|
+
exactPtOut: BigNumberish,
|
|
436
481
|
maxScyIn: BigNumberish,
|
|
437
482
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
438
483
|
): Promise<ContractTransaction>;
|
|
@@ -442,7 +487,7 @@ export interface ActionCore extends BaseContract {
|
|
|
442
487
|
receiver: string,
|
|
443
488
|
market: string,
|
|
444
489
|
scyDesired: BigNumberish,
|
|
445
|
-
|
|
490
|
+
ptDesired: BigNumberish,
|
|
446
491
|
minLpOut: BigNumberish,
|
|
447
492
|
overrides?: CallOverrides
|
|
448
493
|
): Promise<[BigNumber, BigNumber, BigNumber]>;
|
|
@@ -451,36 +496,36 @@ export interface ActionCore extends BaseContract {
|
|
|
451
496
|
|
|
452
497
|
joeRouter(overrides?: CallOverrides): Promise<string>;
|
|
453
498
|
|
|
454
|
-
|
|
499
|
+
mintPyFromRawToken(
|
|
455
500
|
netRawTokenIn: BigNumberish,
|
|
456
|
-
|
|
457
|
-
|
|
501
|
+
YT: string,
|
|
502
|
+
minPyOut: BigNumberish,
|
|
458
503
|
receiver: string,
|
|
459
504
|
path: string[],
|
|
460
505
|
overrides?: CallOverrides
|
|
461
506
|
): Promise<BigNumber>;
|
|
462
507
|
|
|
463
|
-
|
|
508
|
+
mintScyFromRawToken(
|
|
464
509
|
netRawTokenIn: BigNumberish,
|
|
465
|
-
|
|
466
|
-
|
|
510
|
+
SCY: string,
|
|
511
|
+
minScyOut: BigNumberish,
|
|
467
512
|
receiver: string,
|
|
468
513
|
path: string[],
|
|
469
514
|
overrides?: CallOverrides
|
|
470
515
|
): Promise<BigNumber>;
|
|
471
516
|
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
517
|
+
redeemPyToRawToken(
|
|
518
|
+
YT: string,
|
|
519
|
+
netPyIn: BigNumberish,
|
|
475
520
|
minRawTokenOut: BigNumberish,
|
|
476
521
|
receiver: string,
|
|
477
522
|
path: string[],
|
|
478
523
|
overrides?: CallOverrides
|
|
479
524
|
): Promise<BigNumber>;
|
|
480
525
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
526
|
+
redeemScyToRawToken(
|
|
527
|
+
SCY: string,
|
|
528
|
+
netScyIn: BigNumberish,
|
|
484
529
|
minRawTokenOut: BigNumberish,
|
|
485
530
|
receiver: string,
|
|
486
531
|
path: string[],
|
|
@@ -492,12 +537,12 @@ export interface ActionCore extends BaseContract {
|
|
|
492
537
|
market: string,
|
|
493
538
|
lpToRemove: BigNumberish,
|
|
494
539
|
scyOutMin: BigNumberish,
|
|
495
|
-
|
|
540
|
+
ptOutMin: BigNumberish,
|
|
496
541
|
overrides?: CallOverrides
|
|
497
542
|
): Promise<[BigNumber, BigNumber]>;
|
|
498
543
|
|
|
499
|
-
|
|
500
|
-
|
|
544
|
+
swapExactPtForRawToken(
|
|
545
|
+
exactPtIn: BigNumberish,
|
|
501
546
|
receiver: string,
|
|
502
547
|
path: string[],
|
|
503
548
|
market: string,
|
|
@@ -505,65 +550,116 @@ export interface ActionCore extends BaseContract {
|
|
|
505
550
|
overrides?: CallOverrides
|
|
506
551
|
): Promise<BigNumber>;
|
|
507
552
|
|
|
508
|
-
|
|
553
|
+
swapExactPtForScy(
|
|
509
554
|
receiver: string,
|
|
510
555
|
market: string,
|
|
511
|
-
|
|
556
|
+
exactPtIn: BigNumberish,
|
|
512
557
|
minScyOut: BigNumberish,
|
|
513
558
|
overrides?: CallOverrides
|
|
514
559
|
): Promise<BigNumber>;
|
|
515
560
|
|
|
516
|
-
|
|
561
|
+
swapExactRawTokenForPt(
|
|
517
562
|
exactRawTokenIn: BigNumberish,
|
|
518
563
|
receiver: string,
|
|
519
564
|
path: string[],
|
|
520
565
|
market: string,
|
|
521
|
-
|
|
522
|
-
otOutguessMax: BigNumberish,
|
|
523
|
-
maxIteration: BigNumberish,
|
|
524
|
-
eps: BigNumberish,
|
|
566
|
+
approx: ApproxParamsStruct,
|
|
525
567
|
overrides?: CallOverrides
|
|
526
568
|
): Promise<BigNumber>;
|
|
527
569
|
|
|
528
|
-
|
|
570
|
+
swapExactScyForPt(
|
|
529
571
|
receiver: string,
|
|
530
572
|
market: string,
|
|
531
573
|
exactScyIn: BigNumberish,
|
|
532
|
-
|
|
533
|
-
otOutguessMax: BigNumberish,
|
|
534
|
-
maxIteration: BigNumberish,
|
|
535
|
-
eps: BigNumberish,
|
|
574
|
+
approx: ApproxParamsStruct,
|
|
536
575
|
overrides?: CallOverrides
|
|
537
576
|
): Promise<BigNumber>;
|
|
538
577
|
|
|
539
|
-
|
|
578
|
+
swapPtForExactScy(
|
|
540
579
|
receiver: string,
|
|
541
580
|
market: string,
|
|
542
581
|
exactScyOut: BigNumberish,
|
|
543
|
-
|
|
544
|
-
otInGuessMax: BigNumberish,
|
|
545
|
-
maxIteration: BigNumberish,
|
|
546
|
-
eps: BigNumberish,
|
|
582
|
+
approx: ApproxParamsStruct,
|
|
547
583
|
overrides?: CallOverrides
|
|
548
584
|
): Promise<BigNumber>;
|
|
549
585
|
|
|
550
|
-
|
|
586
|
+
swapScyForExactPt(
|
|
551
587
|
receiver: string,
|
|
552
588
|
market: string,
|
|
553
|
-
|
|
589
|
+
exactPtOut: BigNumberish,
|
|
554
590
|
maxScyIn: BigNumberish,
|
|
555
591
|
overrides?: CallOverrides
|
|
556
592
|
): Promise<BigNumber>;
|
|
557
593
|
};
|
|
558
594
|
|
|
559
|
-
filters: {
|
|
595
|
+
filters: {
|
|
596
|
+
"MintPyFromRawToken(address,address,uint256,address,uint256)"(
|
|
597
|
+
user?: string | null,
|
|
598
|
+
rawTokenIn?: string | null,
|
|
599
|
+
netRawTokenIn?: null,
|
|
600
|
+
YT?: string | null,
|
|
601
|
+
netPyOut?: null
|
|
602
|
+
): MintPyFromRawTokenEventFilter;
|
|
603
|
+
MintPyFromRawToken(
|
|
604
|
+
user?: string | null,
|
|
605
|
+
rawTokenIn?: string | null,
|
|
606
|
+
netRawTokenIn?: null,
|
|
607
|
+
YT?: string | null,
|
|
608
|
+
netPyOut?: null
|
|
609
|
+
): MintPyFromRawTokenEventFilter;
|
|
610
|
+
|
|
611
|
+
"MintScyFromRawToken(address,address,uint256,address,uint256)"(
|
|
612
|
+
user?: string | null,
|
|
613
|
+
rawTokenIn?: string | null,
|
|
614
|
+
netRawTokenIn?: null,
|
|
615
|
+
SCY?: string | null,
|
|
616
|
+
netScyOut?: null
|
|
617
|
+
): MintScyFromRawTokenEventFilter;
|
|
618
|
+
MintScyFromRawToken(
|
|
619
|
+
user?: string | null,
|
|
620
|
+
rawTokenIn?: string | null,
|
|
621
|
+
netRawTokenIn?: null,
|
|
622
|
+
SCY?: string | null,
|
|
623
|
+
netScyOut?: null
|
|
624
|
+
): MintScyFromRawTokenEventFilter;
|
|
625
|
+
|
|
626
|
+
"RedeemPyToRawToken(address,address,uint256,address,uint256)"(
|
|
627
|
+
user?: string | null,
|
|
628
|
+
YT?: string | null,
|
|
629
|
+
netPyIn?: null,
|
|
630
|
+
rawTokenOut?: string | null,
|
|
631
|
+
netRawTokenOut?: null
|
|
632
|
+
): RedeemPyToRawTokenEventFilter;
|
|
633
|
+
RedeemPyToRawToken(
|
|
634
|
+
user?: string | null,
|
|
635
|
+
YT?: string | null,
|
|
636
|
+
netPyIn?: null,
|
|
637
|
+
rawTokenOut?: string | null,
|
|
638
|
+
netRawTokenOut?: null
|
|
639
|
+
): RedeemPyToRawTokenEventFilter;
|
|
640
|
+
|
|
641
|
+
"RedeemScyToRawToken(address,address,uint256,address,uint256)"(
|
|
642
|
+
user?: string | null,
|
|
643
|
+
SCY?: string | null,
|
|
644
|
+
netScyIn?: null,
|
|
645
|
+
rawTokenOut?: string | null,
|
|
646
|
+
netRawTokenOut?: null
|
|
647
|
+
): RedeemScyToRawTokenEventFilter;
|
|
648
|
+
RedeemScyToRawToken(
|
|
649
|
+
user?: string | null,
|
|
650
|
+
SCY?: string | null,
|
|
651
|
+
netScyIn?: null,
|
|
652
|
+
rawTokenOut?: string | null,
|
|
653
|
+
netRawTokenOut?: null
|
|
654
|
+
): RedeemScyToRawTokenEventFilter;
|
|
655
|
+
};
|
|
560
656
|
|
|
561
657
|
estimateGas: {
|
|
562
658
|
addLiquidity(
|
|
563
659
|
receiver: string,
|
|
564
660
|
market: string,
|
|
565
661
|
scyDesired: BigNumberish,
|
|
566
|
-
|
|
662
|
+
ptDesired: BigNumberish,
|
|
567
663
|
minLpOut: BigNumberish,
|
|
568
664
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
569
665
|
): Promise<BigNumber>;
|
|
@@ -572,36 +668,36 @@ export interface ActionCore extends BaseContract {
|
|
|
572
668
|
|
|
573
669
|
joeRouter(overrides?: CallOverrides): Promise<BigNumber>;
|
|
574
670
|
|
|
575
|
-
|
|
671
|
+
mintPyFromRawToken(
|
|
576
672
|
netRawTokenIn: BigNumberish,
|
|
577
|
-
|
|
578
|
-
|
|
673
|
+
YT: string,
|
|
674
|
+
minPyOut: BigNumberish,
|
|
579
675
|
receiver: string,
|
|
580
676
|
path: string[],
|
|
581
677
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
582
678
|
): Promise<BigNumber>;
|
|
583
679
|
|
|
584
|
-
|
|
680
|
+
mintScyFromRawToken(
|
|
585
681
|
netRawTokenIn: BigNumberish,
|
|
586
|
-
|
|
587
|
-
|
|
682
|
+
SCY: string,
|
|
683
|
+
minScyOut: BigNumberish,
|
|
588
684
|
receiver: string,
|
|
589
685
|
path: string[],
|
|
590
686
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
591
687
|
): Promise<BigNumber>;
|
|
592
688
|
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
689
|
+
redeemPyToRawToken(
|
|
690
|
+
YT: string,
|
|
691
|
+
netPyIn: BigNumberish,
|
|
596
692
|
minRawTokenOut: BigNumberish,
|
|
597
693
|
receiver: string,
|
|
598
694
|
path: string[],
|
|
599
695
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
600
696
|
): Promise<BigNumber>;
|
|
601
697
|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
698
|
+
redeemScyToRawToken(
|
|
699
|
+
SCY: string,
|
|
700
|
+
netScyIn: BigNumberish,
|
|
605
701
|
minRawTokenOut: BigNumberish,
|
|
606
702
|
receiver: string,
|
|
607
703
|
path: string[],
|
|
@@ -613,12 +709,12 @@ export interface ActionCore extends BaseContract {
|
|
|
613
709
|
market: string,
|
|
614
710
|
lpToRemove: BigNumberish,
|
|
615
711
|
scyOutMin: BigNumberish,
|
|
616
|
-
|
|
712
|
+
ptOutMin: BigNumberish,
|
|
617
713
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
618
714
|
): Promise<BigNumber>;
|
|
619
715
|
|
|
620
|
-
|
|
621
|
-
|
|
716
|
+
swapExactPtForRawToken(
|
|
717
|
+
exactPtIn: BigNumberish,
|
|
622
718
|
receiver: string,
|
|
623
719
|
path: string[],
|
|
624
720
|
market: string,
|
|
@@ -626,52 +722,43 @@ export interface ActionCore extends BaseContract {
|
|
|
626
722
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
627
723
|
): Promise<BigNumber>;
|
|
628
724
|
|
|
629
|
-
|
|
725
|
+
swapExactPtForScy(
|
|
630
726
|
receiver: string,
|
|
631
727
|
market: string,
|
|
632
|
-
|
|
728
|
+
exactPtIn: BigNumberish,
|
|
633
729
|
minScyOut: BigNumberish,
|
|
634
730
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
635
731
|
): Promise<BigNumber>;
|
|
636
732
|
|
|
637
|
-
|
|
733
|
+
swapExactRawTokenForPt(
|
|
638
734
|
exactRawTokenIn: BigNumberish,
|
|
639
735
|
receiver: string,
|
|
640
736
|
path: string[],
|
|
641
737
|
market: string,
|
|
642
|
-
|
|
643
|
-
otOutguessMax: BigNumberish,
|
|
644
|
-
maxIteration: BigNumberish,
|
|
645
|
-
eps: BigNumberish,
|
|
738
|
+
approx: ApproxParamsStruct,
|
|
646
739
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
647
740
|
): Promise<BigNumber>;
|
|
648
741
|
|
|
649
|
-
|
|
742
|
+
swapExactScyForPt(
|
|
650
743
|
receiver: string,
|
|
651
744
|
market: string,
|
|
652
745
|
exactScyIn: BigNumberish,
|
|
653
|
-
|
|
654
|
-
otOutguessMax: BigNumberish,
|
|
655
|
-
maxIteration: BigNumberish,
|
|
656
|
-
eps: BigNumberish,
|
|
746
|
+
approx: ApproxParamsStruct,
|
|
657
747
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
658
748
|
): Promise<BigNumber>;
|
|
659
749
|
|
|
660
|
-
|
|
750
|
+
swapPtForExactScy(
|
|
661
751
|
receiver: string,
|
|
662
752
|
market: string,
|
|
663
753
|
exactScyOut: BigNumberish,
|
|
664
|
-
|
|
665
|
-
otInGuessMax: BigNumberish,
|
|
666
|
-
maxIteration: BigNumberish,
|
|
667
|
-
eps: BigNumberish,
|
|
754
|
+
approx: ApproxParamsStruct,
|
|
668
755
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
669
756
|
): Promise<BigNumber>;
|
|
670
757
|
|
|
671
|
-
|
|
758
|
+
swapScyForExactPt(
|
|
672
759
|
receiver: string,
|
|
673
760
|
market: string,
|
|
674
|
-
|
|
761
|
+
exactPtOut: BigNumberish,
|
|
675
762
|
maxScyIn: BigNumberish,
|
|
676
763
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
677
764
|
): Promise<BigNumber>;
|
|
@@ -682,7 +769,7 @@ export interface ActionCore extends BaseContract {
|
|
|
682
769
|
receiver: string,
|
|
683
770
|
market: string,
|
|
684
771
|
scyDesired: BigNumberish,
|
|
685
|
-
|
|
772
|
+
ptDesired: BigNumberish,
|
|
686
773
|
minLpOut: BigNumberish,
|
|
687
774
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
688
775
|
): Promise<PopulatedTransaction>;
|
|
@@ -691,36 +778,36 @@ export interface ActionCore extends BaseContract {
|
|
|
691
778
|
|
|
692
779
|
joeRouter(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
693
780
|
|
|
694
|
-
|
|
781
|
+
mintPyFromRawToken(
|
|
695
782
|
netRawTokenIn: BigNumberish,
|
|
696
|
-
|
|
697
|
-
|
|
783
|
+
YT: string,
|
|
784
|
+
minPyOut: BigNumberish,
|
|
698
785
|
receiver: string,
|
|
699
786
|
path: string[],
|
|
700
787
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
701
788
|
): Promise<PopulatedTransaction>;
|
|
702
789
|
|
|
703
|
-
|
|
790
|
+
mintScyFromRawToken(
|
|
704
791
|
netRawTokenIn: BigNumberish,
|
|
705
|
-
|
|
706
|
-
|
|
792
|
+
SCY: string,
|
|
793
|
+
minScyOut: BigNumberish,
|
|
707
794
|
receiver: string,
|
|
708
795
|
path: string[],
|
|
709
796
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
710
797
|
): Promise<PopulatedTransaction>;
|
|
711
798
|
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
799
|
+
redeemPyToRawToken(
|
|
800
|
+
YT: string,
|
|
801
|
+
netPyIn: BigNumberish,
|
|
715
802
|
minRawTokenOut: BigNumberish,
|
|
716
803
|
receiver: string,
|
|
717
804
|
path: string[],
|
|
718
805
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
719
806
|
): Promise<PopulatedTransaction>;
|
|
720
807
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
808
|
+
redeemScyToRawToken(
|
|
809
|
+
SCY: string,
|
|
810
|
+
netScyIn: BigNumberish,
|
|
724
811
|
minRawTokenOut: BigNumberish,
|
|
725
812
|
receiver: string,
|
|
726
813
|
path: string[],
|
|
@@ -732,12 +819,12 @@ export interface ActionCore extends BaseContract {
|
|
|
732
819
|
market: string,
|
|
733
820
|
lpToRemove: BigNumberish,
|
|
734
821
|
scyOutMin: BigNumberish,
|
|
735
|
-
|
|
822
|
+
ptOutMin: BigNumberish,
|
|
736
823
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
737
824
|
): Promise<PopulatedTransaction>;
|
|
738
825
|
|
|
739
|
-
|
|
740
|
-
|
|
826
|
+
swapExactPtForRawToken(
|
|
827
|
+
exactPtIn: BigNumberish,
|
|
741
828
|
receiver: string,
|
|
742
829
|
path: string[],
|
|
743
830
|
market: string,
|
|
@@ -745,52 +832,43 @@ export interface ActionCore extends BaseContract {
|
|
|
745
832
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
746
833
|
): Promise<PopulatedTransaction>;
|
|
747
834
|
|
|
748
|
-
|
|
835
|
+
swapExactPtForScy(
|
|
749
836
|
receiver: string,
|
|
750
837
|
market: string,
|
|
751
|
-
|
|
838
|
+
exactPtIn: BigNumberish,
|
|
752
839
|
minScyOut: BigNumberish,
|
|
753
840
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
754
841
|
): Promise<PopulatedTransaction>;
|
|
755
842
|
|
|
756
|
-
|
|
843
|
+
swapExactRawTokenForPt(
|
|
757
844
|
exactRawTokenIn: BigNumberish,
|
|
758
845
|
receiver: string,
|
|
759
846
|
path: string[],
|
|
760
847
|
market: string,
|
|
761
|
-
|
|
762
|
-
otOutguessMax: BigNumberish,
|
|
763
|
-
maxIteration: BigNumberish,
|
|
764
|
-
eps: BigNumberish,
|
|
848
|
+
approx: ApproxParamsStruct,
|
|
765
849
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
766
850
|
): Promise<PopulatedTransaction>;
|
|
767
851
|
|
|
768
|
-
|
|
852
|
+
swapExactScyForPt(
|
|
769
853
|
receiver: string,
|
|
770
854
|
market: string,
|
|
771
855
|
exactScyIn: BigNumberish,
|
|
772
|
-
|
|
773
|
-
otOutguessMax: BigNumberish,
|
|
774
|
-
maxIteration: BigNumberish,
|
|
775
|
-
eps: BigNumberish,
|
|
856
|
+
approx: ApproxParamsStruct,
|
|
776
857
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
777
858
|
): Promise<PopulatedTransaction>;
|
|
778
859
|
|
|
779
|
-
|
|
860
|
+
swapPtForExactScy(
|
|
780
861
|
receiver: string,
|
|
781
862
|
market: string,
|
|
782
863
|
exactScyOut: BigNumberish,
|
|
783
|
-
|
|
784
|
-
otInGuessMax: BigNumberish,
|
|
785
|
-
maxIteration: BigNumberish,
|
|
786
|
-
eps: BigNumberish,
|
|
864
|
+
approx: ApproxParamsStruct,
|
|
787
865
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
788
866
|
): Promise<PopulatedTransaction>;
|
|
789
867
|
|
|
790
|
-
|
|
868
|
+
swapScyForExactPt(
|
|
791
869
|
receiver: string,
|
|
792
870
|
market: string,
|
|
793
|
-
|
|
871
|
+
exactPtOut: BigNumberish,
|
|
794
872
|
maxScyIn: BigNumberish,
|
|
795
873
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
796
874
|
): Promise<PopulatedTransaction>;
|