fix default value for reserve fee

format
This commit is contained in:
dni ⚡ 2022-12-07 15:57:22 +01:00
parent 32459168f4
commit b4e8659006
2 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ class Settings(BaseSettings):
lnbits_data_folder: str = Field(default="./data")
lnbits_database_url: str = Field(default=None)
lnbits_force_https: bool = Field(default=False)
lnbits_reserve_fee_min: int = Field(default=4000)
lnbits_reserve_fee_min: int = Field(default=2000)
lnbits_reserve_fee_percent: float = Field(default=1.0)
lnbits_service_fee: float = Field(default=0)
lnbits_hide_api: bool = Field(default=False)

View File

@ -9,14 +9,14 @@ from lnbits.extensions.bleskomat.helpers import (
generate_bleskomat_lnurl_signature,
query_to_signing_payload,
)
from lnbits.settings import settings, get_wallet_class
from lnbits.settings import get_wallet_class, settings
from tests.conftest import client
from tests.extensions.bleskomat.conftest import bleskomat, lnurl
from tests.helpers import credit_wallet, is_regtest
WALLET = get_wallet_class()
@pytest.mark.asyncio
async def test_bleskomat_lnurl_api_missing_secret(client):
response = await client.get("/bleskomat/u")
@ -141,4 +141,4 @@ async def test_bleskomat_lnurl_api_action_success(client, lnurl):
bleskomat_lnurl = await get_bleskomat_lnurl(secret)
assert bleskomat_lnurl, not None
assert bleskomat_lnurl.has_uses_remaining() == False
WALLET.pay_invoice.assert_called_once_with(pr, 4000)
WALLET.pay_invoice.assert_called_once_with(pr, 2000)