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

Remove a notification for falling back from STX to regular swaps #17374

Merged
merged 3 commits into from
Jan 25, 2023

Conversation

dan437
Copy link
Contributor

@dan437 dan437 commented Jan 24, 2023

Explanation

The notification below for falling back from STX to regular swaps wasn't really actionable, caused a bit of confusion and unnecessary overhead. All that to communicate an edge case that most users will not encounter. We are removing it to simplify user experience.

Screenshots/Screencaps

Removed notification:
image

@dan437 dan437 requested a review from a team as a code owner January 24, 2023 14:48
@dan437 dan437 requested a review from digiwand January 24, 2023 14:48
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@dan437 dan437 requested a review from adonesky1 January 24, 2023 15:57
@dan437 dan437 requested a review from darkwing January 24, 2023 15:57
Comment on lines -377 to -378
const isStxNotEnoughFundsError =
currentSmartTransactionsError === stxErrorTypes.NOT_ENOUGH_FUNDS;
Copy link
Contributor

Choose a reason for hiding this comment

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

is this not an error we want to maintain?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's correct, we will fallback automatically to a regular swap if there is not enough funds for a gas fee via STX.

Copy link
Contributor

@adonesky1 adonesky1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@dan437 dan437 merged commit a4f968b into MetaMask:develop Jan 25, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2023
@dan437 dan437 deleted the stx-notification branch July 24, 2023 11:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants