aboutsummaryrefslogtreecommitdiff
path: root/src/wxApi.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/wxApi.ts')
-rw-r--r--src/wxApi.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wxApi.ts b/src/wxApi.ts
index bdc02af1b..0f460085e 100644
--- a/src/wxApi.ts
+++ b/src/wxApi.ts
@@ -84,6 +84,14 @@ export async function getReserves(exchangeBaseUrl: string): Promise<ReserveRecor
return await callBackend("get-reserves", { exchangeBaseUrl });
}
+export async function getPaybackReserves(): Promise<ReserveRecord[]> {
+ return await callBackend("get-payback-reserves");
+}
+
+export async function withdrawPaybackReserve(reservePub: string): Promise<ReserveRecord[]> {
+ return await callBackend("withdraw-payback-reserve", { reservePub });
+}
+
export async function getCoins(exchangeBaseUrl: string): Promise<CoinRecord[]> {
return await callBackend("get-coins", { exchangeBaseUrl });
}