Skip to content

Add LNURL-pay comment to dev fee invoices #694

@Catrya

Description

@Catrya

Currently, when Mostro pays a dev fee invoice via LNURL-pay (resolv_ln_address in src/lnurl.rs), no identifying information is attached to the payment. The callback only sends the amount parameter:
This makes it impossible to trace which Mostro node or order originated a specific dev fee payment when reviewing them on the receiving end.

Proposal

Use the LNURL-pay comment field (LUD-12) to attach context to each dev fee payment. The callback would become:
{callback}?amount={amount_msat}&comment={comment}

The comment should include:

  • Order ID — to trace back which trade generated the fee
  • Mostro node pubkey — to identify which Mostro instance sent the payment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions