Compare commits

..
Author SHA1 Message Date
Shroominic bf92c18e03 fix: improve receive ln address warning logic 2026-01-03 22:12:39 +01:00
shroominicandGitHub f1fa7d094f routstr/v0.2.1
v0.2.1
2025-12-27 22:08:51 +01:00
shroominicandGitHub eed5bc5b04 Merge pull request #278 from Routstr/openai-responses-api
OpenAI responses api
2025-12-27 22:02:51 +01:00
+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,