diff --git a/src/daemon/http/index.ts b/src/daemon/http/index.ts index ff1b2d0..1ed8a3e 100644 --- a/src/daemon/http/index.ts +++ b/src/daemon/http/index.ts @@ -446,6 +446,7 @@ export function createDaemonRequestHandler(deps: { threshold: autoRefill.threshold, amount: autoRefill.amount, cooldownMs: autoRefill.cooldownMs, + cooldownMinutes: autoRefill.cooldownMs / 60000, } : undefined, }, @@ -565,7 +566,10 @@ export function createDaemonRequestHandler(deps: { return { output: { message: `Auto-refill ${enabled ? "enabled" : "disabled"}.`, - autoRefill: config.nwc.autoRefill, + autoRefill: { + ...config.nwc.autoRefill, + cooldownMinutes: config.nwc.autoRefill.cooldownMs / 60000, + }, }, }; }); diff --git a/src/daemon/wallet/index.ts b/src/daemon/wallet/index.ts index a7a9711..4d2f96f 100644 --- a/src/daemon/wallet/index.ts +++ b/src/daemon/wallet/index.ts @@ -319,7 +319,7 @@ export async function createWalletAdapter( const getConfig = options.getAutoRefillConfig ?? (() => options.autoRefill); stopAutoRefill = startAutoRefillLoop(client, getWallet, getConfig); logger.log( - `[wallet] Auto-refill enabled: threshold=${autoRefillConfig.threshold} sats, amount=${autoRefillConfig.amount} sats, cooldown=${autoRefillConfig.cooldownMs}ms`, + `[wallet] Auto-refill enabled: threshold=${autoRefillConfig.threshold} sats, amount=${autoRefillConfig.amount} sats, cooldown=${autoRefillConfig.cooldownMs / 60000} minutes`, ); } else if (wallet && options.getAutoRefillConfig) { // Wallet exists but auto-refill is not currently enabled.