pendulum-chain / portal

The Pendulum/Amplitude portal UI
GNU General Public License v3.0
1 stars 1 forks source link

Bridge back to stellar - max amount chosen by the user allow for the amount that is incompatible #503

Open annatekl opened 1 week ago

annatekl commented 1 week ago

Context

When choosing 'Back to Stellar' and entering 'Max,' the amount prefilled by the system is half the available funds and correct, but the error message after the transaction is signed indicates that the amount is incompatible.

Reproduction

Steps to reproduce the behaviour:

  1. Go to the Spacewalk bridge.
  2. Click on "Back to Stellar."
  3. Click on 'Max' to prefill the maximum available amount.
  4. Sign the transaction.
  5. See error message: "Transaction failed with errors: currency.Incompatible/Amount: The amount is incompatible."

Expected behavior

Screenshots

Screenshot 2024-06-25 at 15 47 59
annatekl commented 1 week ago

Hey team! Please add your planning poker estimate with Zenhub @ebma @Sharqiewicz

ebma commented 1 week ago

@Sharqiewicz this should be an easy fix. We should simply not allow more than 7 decimals in that input field.

annatekl commented 1 week ago

ticket updated @ebma

vadaynujra commented 1 week ago

@annatekl can you add the other bugs found on the To Stellar flow into this ticket too?

annatekl commented 1 week ago

@ebma can we fix in this ticket:

vadaynujra commented 1 week ago

@annatekl the ticket has already been worked upon and asked for a product review / test yesterday. Could you create new bug ticket for the additional bugs. If we want to get it included, it's best to include it in the ticket description before the tech team starts working on it.