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

Implement user-definable RPCs #2145

Open
DefiDebauchery opened this issue May 8, 2024 · 0 comments
Open

Implement user-definable RPCs #2145

DefiDebauchery opened this issue May 8, 2024 · 0 comments

Comments

@DefiDebauchery
Copy link
Member

Beefy's dapp config defines a single system RPC for each network which relies on the connection between the end user and that RPC.

Because routing (and overall uptime) of our chosen RPC endpoints are highly variable, this frequently results in one or more RPCs failing, with little recourse available. Allowing end-users to define their own endpoints in the case of an error (or simply improve throughput) would mitigate these issues.

These overridden values would be contained in localStorage, alongside other application data, and considered when fetching RPC URLs from the core configuration.

I imagine this could be done in three defined stages:

  1. Defining the format for localStorage and updating application code to consider the values.
  2. A UI component to interface with localStorage, displaying and allowing updates to those values (with appropriate sanitation, and validation using eth_chainId), as well as a control on the dapp to access this menu.
  3. Hooks that reload applicable RPC calls when a new value is stored, avoiding having to refresh the page.
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

No branches or pull requests

1 participant