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

web-wallet: Use w3sper's minStake Amount Instead of Client-Side Environment Variable #3010

Open
nortonandreev opened this issue Nov 18, 2024 · 0 comments
Labels
module:web-wallet Issues related to web-wallet module

Comments

@nortonandreev
Copy link
Contributor

Description

Currently, the web app relies on a client-side environment variable to determine the minimum stake amount. However, we can now leverage w3sper's minStake value directly, ensuring consistency and reducing reliance on hardcoded values in the client.

Proposed Solution

  • Replace the usage of the client-side environment variable with the minStake value provided by w3sper.
  • Update any logic, validations, or UI elements that reference the minimum stake amount to use the w3sper value.
  • Add error handling to manage cases where the minStake value is unavailable or returns an invalid value.

Additional Context

This change will help maintain alignment between the client and backend, improving the overall reliability of the staking process. Any dependencies on the environment variable should be identified and updated.

@nortonandreev nortonandreev added the module:web-wallet Issues related to web-wallet module label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:web-wallet Issues related to web-wallet module
Projects
None yet
Development

No branches or pull requests

1 participant