mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-21 02:54:20 +01:00
Mint: Fakewallet support for USD (#488)
* fakewallet usd wip * FakeWallet support for USD * fix api return for receive * use MINT_BACKEND_BOLT11_SAT everywhere
This commit is contained in:
@@ -22,9 +22,12 @@ from .base import (
|
||||
class LNbitsWallet(LightningBackend):
|
||||
"""https://github.com/lnbits/lnbits"""
|
||||
|
||||
units = set([Unit.sat])
|
||||
supported_units = set([Unit.sat])
|
||||
unit = Unit.sat
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, unit: Unit = Unit.sat, **kwargs):
|
||||
self.assert_unit_supported(unit)
|
||||
self.unit = unit
|
||||
self.endpoint = settings.mint_lnbits_endpoint
|
||||
self.client = httpx.AsyncClient(
|
||||
verify=not settings.debug,
|
||||
|
||||
Reference in New Issue
Block a user