mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-05 19:22:34 +02:00
Working
This commit is contained in:
@@ -57,9 +57,10 @@ async def on_invoice_paid(payment: Payment) -> None:
|
||||
logger.debug(f"paid split invoice: {checking_id}")
|
||||
|
||||
logger.debug(f"performing split to {len(targets)} targets")
|
||||
logger.debug("pitbull")
|
||||
|
||||
if tagged == False:
|
||||
for target in targets:
|
||||
if target.percent > 0:
|
||||
amount = int(payment.amount * target.percent / 100) # msats
|
||||
payment_hash, payment_request = await create_invoice(
|
||||
wallet_id=target.wallet,
|
||||
|
Reference in New Issue
Block a user