@gearbox-protocol/sdk 15.0.0-next.2 → 15.0.0-next.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.
|
@@ -121,6 +121,25 @@ export interface IPoolsService {
|
|
|
121
121
|
* @param tokenOut can be undefined if deposit is not resulting in a token out (e.g. for KYC underlying on demand)
|
|
122
122
|
*/
|
|
123
123
|
getDepositMetadata(pool: Address, tokenIn: Address, tokenOut?: Address): DepositMetadata;
|
|
124
|
+
/**
|
|
125
|
+
* Returns a list of tokens that can be redeemed from a pool
|
|
126
|
+
* @param pool
|
|
127
|
+
*/
|
|
128
|
+
getWithdrawalTokensIn(pool: Address): Address[];
|
|
129
|
+
/**
|
|
130
|
+
* Returns a list of tokens that can be received after redeeming from a pool
|
|
131
|
+
* @param pool
|
|
132
|
+
* @param tokenIn token that will be redeemed from the pool
|
|
133
|
+
*/
|
|
134
|
+
getWithdrawalTokensOut(pool: Address, tokenIn: Address): Address[];
|
|
135
|
+
/**
|
|
136
|
+
* After user chooses tokenIn from {@link getWithdrawalTokensIn} and tokenOut from {@link getWithdrawalTokensOut},
|
|
137
|
+
* this method returns metadata that will be used to perform the withdrawal.
|
|
138
|
+
* @param pool
|
|
139
|
+
* @param tokenIn
|
|
140
|
+
* @param tokenOut
|
|
141
|
+
*/
|
|
142
|
+
getWithdrawalMetadata(pool: Address, tokenIn: Address, tokenOut?: Address): WithdrawalMetadata;
|
|
124
143
|
/**
|
|
125
144
|
* Returns contract call parameters for adding liquidity to a pool
|
|
126
145
|
* Or undefined if no deposit action is required (e.g. for KYC underlying on demand)
|