BTCPayServer.Lightning icon indicating copy to clipboard operation
BTCPayServer.Lightning copied to clipboard

Onchain balance for LND implementations with incorrect format

Open eyonys opened this issue 2 years ago • 0 comments

GetBalance functionality for LND implementation returns incorrect OnChainBalance. LND REST API Reference in /v1/balance/blockchain gets balance in sats, but in src/BTCPayServer.Lightning.LND/LndClient.cs Ln 418 amount returned from SwaggerClient is not converted properly to LightMoney, causing amount in sats is passed directly as amount in BTC.

eyonys avatar Jun 08 '22 20:06 eyonys