Working
This commit is contained in:
parent
5f53eb8e4e
commit
f506b010f6
1 changed files with 17 additions and 16 deletions
|
|
@ -57,9 +57,10 @@ async def on_invoice_paid(payment: Payment) -> None:
|
||||||
logger.debug(f"paid split invoice: {checking_id}")
|
logger.debug(f"paid split invoice: {checking_id}")
|
||||||
|
|
||||||
logger.debug(f"performing split to {len(targets)} targets")
|
logger.debug(f"performing split to {len(targets)} targets")
|
||||||
logger.debug("pitbull")
|
|
||||||
if tagged == False:
|
if tagged == False:
|
||||||
for target in targets:
|
for target in targets:
|
||||||
|
if target.percent > 0:
|
||||||
amount = int(payment.amount * target.percent / 100) # msats
|
amount = int(payment.amount * target.percent / 100) # msats
|
||||||
payment_hash, payment_request = await create_invoice(
|
payment_hash, payment_request = await create_invoice(
|
||||||
wallet_id=target.wallet,
|
wallet_id=target.wallet,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue