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

add rpc warning #723

Merged
merged 10 commits into from
Sep 24, 2024
Merged

add rpc warning #723

merged 10 commits into from
Sep 24, 2024

Conversation

zielvna
Copy link
Collaborator

@zielvna zielvna commented Sep 4, 2024

No description provided.

src/store/sagas/index.ts Outdated Show resolved Hide resolved
src/store/sagas/positions.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@p6te p6te left a comment

Choose a reason for hiding this comment

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

you can add handle error also for connect wallet, for example for rpc quicknode, user can't event connect wallet

@p6te
Copy link
Collaborator

p6te commented Sep 5, 2024

you can add handle error also for connect wallet, for example for rpc quicknode, user can't event connect wallet

and also for swap simulation, because it can not work, and user doesn't know why

@p6te
Copy link
Collaborator

p6te commented Sep 5, 2024

there is more error cases which are for Alchemy RPC, so errors can be different.

  • close position
    image
  • reload chart(handleGetCurrentPlotTicks saga)
    image

you can trigger handleError for errors: 400 and 429 too

@p6te
Copy link
Collaborator

p6te commented Sep 10, 2024

We can avoid crashing the app when user decided to use not recommended RPC. The case is when you choose any other RPC than Helius or Alchemy, write some number in the first input of swap, and then try to write something in the second input. Even if rpc is not working correctly we should avoid crashing the app.

Copy link

This pull request has been deployed to Vercel.

Latest commit: cd665d4
✅ Preview: https://webapp-pfedm499c-invariantlabs.vercel.app
🔍 Inspect: https://vercel.com/invariantlabs/webapp/5yYugGgT1LfVqaBXsFFYmQPvHPDg

View Workflow Logs

@zielvna zielvna merged commit dfe6532 into dev Sep 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants