From 4c03a1200eb947a0ed13f78b46fd670601b8cb80 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 1 May 2017 04:05:16 +0200 Subject: implement payback (with rudimentary UI) --- src/wxApi.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/wxApi.ts') 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 { + return await callBackend("get-payback-reserves"); +} + +export async function withdrawPaybackReserve(reservePub: string): Promise { + return await callBackend("withdraw-payback-reserve", { reservePub }); +} + export async function getCoins(exchangeBaseUrl: string): Promise { return await callBackend("get-coins", { exchangeBaseUrl }); } -- cgit v1.2.3