From b0ee5dbfb9aef0351fed214e2c00d1e46a8af570 Mon Sep 17 00:00:00 2001 From: Juan P Lopez Date: Thu, 14 Nov 2024 14:33:59 -0500 Subject: [PATCH] chore(core): update default btc invoice expiration to 2 hours (#4656) --- core/api/src/domain/bitcoin/lightning/invoice-expiration.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/api/src/domain/bitcoin/lightning/invoice-expiration.ts b/core/api/src/domain/bitcoin/lightning/invoice-expiration.ts index be805fd19b..040adc0599 100644 --- a/core/api/src/domain/bitcoin/lightning/invoice-expiration.ts +++ b/core/api/src/domain/bitcoin/lightning/invoice-expiration.ts @@ -3,12 +3,13 @@ import { toSeconds } from "@/domain/primitives" const SECS_PER_MIN = toSeconds(60) const SECS_PER_5_MINS = toSeconds(60 * 5) const SECS_PER_HOUR = toSeconds(60 * 60) +const SECS_PER_2_HOURS = toSeconds(SECS_PER_HOUR * 2) const SECS_PER_DAY = toSeconds(SECS_PER_HOUR * 24) export const defaultTimeToExpiryInSeconds = SECS_PER_5_MINS export const INVOICE_EXPIRATIONS = { - BTC: { min: SECS_PER_MIN, max: SECS_PER_DAY, defaultValue: SECS_PER_HOUR }, + BTC: { min: SECS_PER_MIN, max: SECS_PER_DAY, defaultValue: SECS_PER_2_HOURS }, USD: { min: SECS_PER_MIN, max: SECS_PER_5_MINS, defaultValue: SECS_PER_5_MINS }, }