mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 09:29:10 +01:00
fix qr code amounts for monero
This commit is contained in:
parent
d66e8f2d13
commit
a4ba93d249
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using BTCPayServer.Data;
|
||||
|
@ -84,7 +85,7 @@ namespace BTCPayServer.Services.Altcoins.Monero.Payments
|
|||
model.InvoiceBitcoinUrl = client.SendCommandAsync<MakeUriRequest, MakeUriResponse>("make_uri", new MakeUriRequest()
|
||||
{
|
||||
Address = cryptoInfo.Address,
|
||||
Amount = LightMoney.Parse(cryptoInfo.Due).MilliSatoshi
|
||||
Amount = MoneroMoney.Convert(decimal.Parse(cryptoInfo.Due, CultureInfo.InvariantCulture))
|
||||
}).GetAwaiter()
|
||||
.GetResult().Uri;
|
||||
model.InvoiceBitcoinUrlQR = model.InvoiceBitcoinUrl;
|
||||
|
|
Loading…
Add table
Reference in a new issue