From 7e8443c598099e8ce9ce309bd6a6e870582097ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Mon, 15 Jan 2024 11:39:24 +0300 Subject: [PATCH] Change Lightning balance property ... so that clients can use the same property with all balances --- app/services/btcpay_manager/fetch_lightning_wallet_balance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/btcpay_manager/fetch_lightning_wallet_balance.rb b/app/services/btcpay_manager/fetch_lightning_wallet_balance.rb index 533d2f1..96bbf00 100644 --- a/app/services/btcpay_manager/fetch_lightning_wallet_balance.rb +++ b/app/services/btcpay_manager/fetch_lightning_wallet_balance.rb @@ -4,7 +4,7 @@ module BtcpayManager res = get "stores/#{store_id}/lightning/BTC/balance" { - balance: res["offchain"]["local"].to_i / 1000 # msats to sats + confirmed_balance: res["offchain"]["local"].to_i / 1000 # msats to sats } end end