From 8459c19acf66f6d533405bfe4bd47ee370cc5550 Mon Sep 17 00:00:00 2001 From: benthecarman Date: Thu, 27 Jun 2024 13:32:37 -0500 Subject: [PATCH] fix lightning budget --- src/lightning.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lightning.rs b/src/lightning.rs index 27a7f3a..a270e0c 100644 --- a/src/lightning.rs +++ b/src/lightning.rs @@ -122,7 +122,7 @@ pub async fn pay_lightning( .payments .add_payment( x_forwarded_for, - invoice.amount_milli_satoshis().unwrap_or(0), + invoice.amount_milli_satoshis().unwrap_or(0) / 1000, ) .await;