BTCPrice should be bitcoin price of item

This commit is contained in:
nicolas.dorier 2017-12-17 19:40:42 +09:00
parent d9794216dd
commit 99040597dc

View File

@ -286,7 +286,7 @@ namespace BTCPayServer.Services.Invoices
CurrentTime = DateTimeOffset.UtcNow,
InvoiceTime = InvoiceTime,
ExpirationTime = ExpirationTime,
BTCPrice = Money.Coins((decimal)(1.0 / Rate)).ToString(),
BTCPrice = Money.Coins((decimal)(ProductInformation.Price / Rate)).ToString(),
Status = Status,
Url = ServerUrl.WithTrailingSlash() + "invoice?id=" + Id,
Currency = ProductInformation.Currency,