lnbits / cashu

MIT License
9 stars 3 forks source link

Reserve and fee are deducted from cashu mint ln invoice payments, even to local lnbits wallets #70

Closed BrunswickBTC closed 6 months ago

BrunswickBTC commented 8 months ago

In lnbits server admin, there are three options of concern; funding:fee-reserve, server:service-fee and server:disable-fee.

When server:disable-fee is enabled, the cashu mint should not deduct server:service-fee from the cashu tokens to payments to local wallets.

When making ln payments to either local wallets or ln payments through funding:funding-sources, the mint should never hold a reserve, even if it is set to non-zero as this should only apply to local lightning wallets.

BrunswickBTC commented 6 months ago

It turns out that ln fees are only included in a transaction if it amounts to less than the reserve.