Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LW 9904] "UTxO Fully Depleted" error in send flow #1116

Merged
merged 25 commits into from
Jun 21, 2024

Conversation

lucas-barros
Copy link

@lucas-barros lucas-barros commented Apr 30, 2024

Checklist


Proposed solution

  • LW-9904: Display detailed error banner instead of input error message instructing the user to use "Max button"
  • LW-10450: Max amount concept for ADA is updated
    • from: total balance - minimum ADA for assets - 1 ADA
    • to: total balance - minimun ADA for assets - ADA buffer (buffer starts with 0 and is incremented by 1 ADA until tx is built successfully to account for UTXO depleted error)

Testing

  • Create new wallet and send ADA and assets to it. Try to send just ADA from the created wallet to another address.
  • Use wallet from LW-10450 and try to send 19,205 ADA to another address.

Screenshots

image image

@lucas-barros lucas-barros marked this pull request as ready for review April 30, 2024 14:24
@lucas-barros lucas-barros requested review from a team as code owners April 30, 2024 14:24
Copy link

github-actions bot commented Apr 30, 2024

Allure Report

allure-report-publisher generated test report!

smokeTests: ✅ test report for f222985a

passed failed skipped flaky total result
Total 33 0 0 0 33

Copy link
Contributor

@renanvalentin renanvalentin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@VanessaPC VanessaPC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a small comment, but it looks good to me.
I cannot reproduce the banner.

Copy link
Contributor

@VanessaPC VanessaPC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tomislavhoracek tomislavhoracek self-requested a review May 7, 2024 09:05
Copy link
Contributor

@tomislavhoracek tomislavhoracek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lucas-barros 💯
I left just one small suggestion

@lucas-barros lucas-barros force-pushed the feat/lw-9904-utxo-fully-depleted-error-in-send-flow branch 3 times, most recently from b8e38fb to 7194150 Compare May 10, 2024 16:40
@@ -157,6 +157,7 @@ export const useSelectedCoins = ({
compactValue: assetInputItem.compactValue || compactNumberWithUnit(assetInputItem.value),
value: assetInputItem.value,
hasMaxBtn: true,
displayMaxBtn: assetInputItem.id === cardanoCoin.id && error === COIN_SELECTION_ERRORS.FULLY_DEPLETED_ERROR,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Display the max button without need for hover if error is FULLY_DEPLETED_ERROR

@lucas-barros lucas-barros force-pushed the feat/lw-9904-utxo-fully-depleted-error-in-send-flow branch 2 times, most recently from 4d15f13 to 1ed503c Compare May 13, 2024 12:42
Copy link
Member

@DominikGuzei DominikGuzei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work 🎉

Copy link
Contributor

@VanessaPC VanessaPC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tomislavhoracek tomislavhoracek self-requested a review May 14, 2024 08:34
@lucas-barros lucas-barros force-pushed the feat/lw-9904-utxo-fully-depleted-error-in-send-flow branch 2 times, most recently from 4f67232 to b69e8eb Compare May 22, 2024 19:49
@lucas-barros lucas-barros force-pushed the feat/lw-9904-utxo-fully-depleted-error-in-send-flow branch from b69e8eb to 3bbdd79 Compare May 23, 2024 11:08
@lucas-barros lucas-barros force-pushed the feat/lw-9904-utxo-fully-depleted-error-in-send-flow branch from fb25825 to f0cf533 Compare May 28, 2024 01:19
Copy link

@lucas-barros lucas-barros merged commit 23bd9d4 into main Jun 21, 2024
19 of 26 checks passed
@lucas-barros lucas-barros deleted the feat/lw-9904-utxo-fully-depleted-error-in-send-flow branch June 21, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants