lnbits / lnurldevice

For offline and online LNURL devices
MIT License
6 stars 7 forks source link

Why are sats actually bits? #20

Open MichaelAntonFischer opened 1 year ago

MichaelAntonFischer commented 1 year ago

Over the weekend, I was for the first time using a lnurldevice with the currency set to "sat". The quirky behaviour I noticed is that when the amount requested is 21 then instead of 21,000 msat, the invoice from the server contains 2100,000 msat or 21 bits instead of 21 sats.

How?

Why?