aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/payments.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index d9808f3a..93afc9ea 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -566,9 +566,10 @@ export const build = async ({
amount = parseInt(amount);
if (amount < 0) fail("invalid amount");
- const fees: any = await fetch(`${api[type]}/fees/recommended`).then((r) =>
- r.json(),
- );
+ const fees: any =
+ type === types.liquid
+ ? { fastestFee: 0.1, halfHourFee: 0.1, hourFee: 0.1 }
+ : await fetch(`${api[type]}/fees/recommended`).then((r) => r.json());
fees.hourFee = fees.halfHourFee;
fees.halfHourFee = fees.fastestFee;
@@ -761,7 +762,7 @@ export const check = async () => {
try {
if (completed) await finalize(completed, p);
else if (failed) await reverse(p);
- } catch(e) {
+ } catch (e) {
err("failed to finalize", p.id, e.message);
}
}