Bugfixing amount in invoice data, we need to set Satoshis

This commit is contained in:
rockstardev 2018-06-15 17:12:59 -05:00
parent 66ecb32538
commit 89d9658e82

View file

@ -106,7 +106,7 @@ namespace BTCPayServer.Payments.Lightning.Lnd
{
// TODO: Verify id corresponds to R_hash
Id = BitString(resp.R_hash),
Amount = resp.Value,
Amount = new LightMoney(ConvertInv.ToInt64(resp.Value), LightMoneyUnit.Satoshi),
BOLT11 = resp.Payment_request,
Status = "unpaid"
};