Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
fix amount precision
Browse files Browse the repository at this point in the history
  • Loading branch information
meeDamian committed Dec 27, 2018
1 parent 0c3ab62 commit f32e8db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (lnd Lnd) Invoice(amount float64, desc string) (invoice common.Invoice, err

inv, err := lnd.InvoiceClient.AddInvoice(ctx, &lnrpc.Invoice{
Memo: desc,
Value: int64(amount * 1e8),
Value: int64(amount),
Expiry: common.DefaultInvoiceExpiry,
})
if err != nil {
Expand Down

0 comments on commit f32e8db

Please sign in to comment.