mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-13 19:37:42 +01:00
clean visual aid comments
This commit is contained in:
parent
8bb801ac99
commit
70899994fe
3 changed files with 5 additions and 5 deletions
|
@ -42,11 +42,11 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||
ls = await get_livestream_by_track(track.id)
|
||||
assert ls, f"track {track.id} is not associated with a livestream"
|
||||
|
||||
amount = int(payment.amount * (100 - ls.fee_pct) / 100) # msats
|
||||
amount = int(payment.amount * (100 - ls.fee_pct) / 100)
|
||||
|
||||
payment_hash, payment_request = await create_invoice(
|
||||
wallet_id=producer.wallet,
|
||||
amount=int(amount / 1000), # sats
|
||||
amount=int(amount / 1000),
|
||||
internal=True,
|
||||
memo=f"Revenue from '{track.name}'.",
|
||||
)
|
||||
|
|
|
@ -47,7 +47,7 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||
if target.percent > 0:
|
||||
tagged = target.tag in payment.extra
|
||||
|
||||
amount = int(amount_to_split * target.percent / 100) # msats
|
||||
amount = int(amount_to_split * target.percent / 100)
|
||||
memo = (
|
||||
f"split payment: {target.percent}% for {target.alias or target.wallet}"
|
||||
)
|
||||
|
@ -57,7 +57,7 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||
|
||||
payment_hash, payment_request = await create_invoice(
|
||||
wallet_id=target.wallet,
|
||||
amount=int(amount / 1000), # sats
|
||||
amount=int(amount / 1000),
|
||||
internal=True,
|
||||
memo=memo,
|
||||
)
|
||||
|
|
|
@ -53,7 +53,7 @@ async def on_invoice_paid(payment: Payment) -> None:
|
|||
|
||||
payment_hash, payment_request = await create_invoice(
|
||||
wallet_id=wallet_id,
|
||||
amount=int(tipAmount), # sats
|
||||
amount=int(tipAmount),
|
||||
internal=True,
|
||||
memo=f"tpos tip",
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue