Skip to content

Bug: displaying incorrect value for paid invoices in success notification #1107

@Abdulkbk

Description

@Abdulkbk

Describe the bug
After successfully paying an invoice, the success alert card does not display the correct value paid. I tried this with 3 different Lightning implementations (LND, C-Lightning, and Eclair) and got the same result.

For example, I created a network with the 3 LN nodes and opened channels as follows:

  • Alice (LND) -> Bob (C-lightning)
  • Bob (C-lightning) -> Carol (Eclair)

I then created an invoice of 1,000,000 sats using Carol and paid it using Bob. I got "sent 1 sat from bob":

Image

I created another invoice for 20,000 using Bob and paid it with Alice. I received "sent 20 sat from alice."

Image

Interestingly, this bug occurs when I run yarn dev on the latest master. It is not present when I test in release 3.0.0, AFAIK.

To Reproduce
Steps to reproduce the behavior:

  1. Ensure you have the most current version of the master branch.
  2. Set up a network with multiple Lightning nodes.
  3. Generate an invoice with one node and pay it using another.
  4. Pay close attention to the success notification.

Expected behaviorThe expected outcome is to receive the accurate amount of the invoice that has been paid, in the success notification.

Screenshots
Example:

Image

Image

Image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Polar Version: 3.2.0 (latest master)
  • Docker Version: 27.4.1
  • Docker Compose Version: 2.32.1

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions