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

feat: display notifications on transactions errors #118

Merged
merged 6 commits into from
Nov 20, 2024

Conversation

dimlbc
Copy link
Member

@dimlbc dimlbc commented Nov 14, 2024

https://trello.com/c/4atDqluw/4634-handle-swap-data-error

Added transaction error notifications with the ability to provide detailed explanations for specific errors

Screenshot 2024-11-14 at 14 10 21

Unknown errors:

Screenshot 2024-11-14 at 14 11 43

@D-Ig need your help in filling TRANSACTION_ERRORS map

We can also hide or adjust the message for unknown errors.

@dimlbc dimlbc requested a review from D-Ig November 14, 2024 13:19
@dimlbc dimlbc force-pushed the feat/handle-transaction-errors branch from 20baccc to 44f0c1e Compare November 14, 2024 13:22
Copy link
Member

@D-Ig D-Ig left a comment

Choose a reason for hiding this comment

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

can have a single instance of

{
    title: 'Low Slippage',
    hint: 'Please increase slippage tolerance and try again.',
}

not to repeat changes once they are needed.

I think it's totally okay to show revert message for "unkown" errors (which haven't been found at TRANSACTION_ERRORS).

@dimlbc dimlbc requested a review from D-Ig November 20, 2024 10:30
@dimlbc
Copy link
Member Author

dimlbc commented Nov 20, 2024

Added Swap Quote Fetching Error notifications triggered when clicking on Swap/Deposit buttons when the swap API call fails

Screenshot 2024-11-20 at 11 26 57 Screenshot 2024-11-20 at 11 26 46

@dimlbc dimlbc merged commit 9e8fdbf into main Nov 20, 2024
1 check passed
@dimlbc dimlbc deleted the feat/handle-transaction-errors branch November 20, 2024 16:20
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.

2 participants