Compare commits

..
Author SHA1 Message Date
Shroominic bf92c18e03 fix: improve receive ln address warning logic 2026-01-03 22:12:39 +01:00
2 changed files with 6 additions and 8 deletions
-5
View File
@@ -62,11 +62,6 @@ async def lifespan(_: FastAPI) -> AsyncGenerator[None, None]:
async with create_session() as session:
s = await SettingsService.initialize(session)
if not s.admin_password:
logger.warning(
f"Admin password is not set. Visit {s.http_url or 'http://localhost:8000'}/admin to set the password."
)
# Apply app metadata from settings
try:
app.title = s.name
+6 -3
View File
@@ -305,9 +305,6 @@ async def fetch_all_balances(
async def periodic_payout() -> None:
if not settings.receive_ln_address:
logger.error("RECEIVE_LN_ADDRESS is not set, skipping payout")
return
while True:
await asyncio.sleep(60 * 15)
try:
@@ -328,6 +325,12 @@ async def periodic_payout() -> None:
available_balance = proofs_balance - user_balance
min_amount = 210 if unit == "sat" else 210000
if available_balance > min_amount:
if not settings.receive_ln_address:
logger.error(
"RECEIVE_LN_ADDRESS is not set, skipping payout"
)
continue
amount_received = await raw_send_to_lnurl(
wallet,
proofs,