Change Lightning balance property
Some checks failed
continuous-integration/drone/push Build is failing

... so that clients can use the same property with all balances
This commit is contained in:
Râu Cao 2024-01-15 11:39:24 +03:00
parent 3aa0c49507
commit 7e8443c598
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -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