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

Refactor MaxReserveForm #1338

Merged
merged 2 commits into from
May 8, 2023
Merged

Refactor MaxReserveForm #1338

merged 2 commits into from
May 8, 2023

Conversation

Hornebom
Copy link
Contributor

@Hornebom Hornebom commented May 8, 2023

Description

  • use actual pool max reserve as initial value
  • enable formik to update initial value when pool params are updated -> enableReinitialize
  • solve ui and code being out of sync: ui displays max reserve value, but formik value is '' (invalid number error thrown -> see screenshot)
  • MaxReserveForm checks internally if for 'liquidity admin' right -> removes equal checks higher in the application tree
  • React.VFC deprecated -> use React.FC

Approvals

  • Dev

Screenshots

Screenshot 2023-05-08 at 11 37 45

- use actual pool max reserve as initial value
- enable formik to update initial value when pool params are updated -> enableReinitialize
- solve ui and code being out of sync: ui displays max reserve value, but formik value is `''` (invalid number error thrown)
- MaxReserveForm checks internally if for 'liquidity admin' right -> removes checks higher in the component tree
- React.VFC deprecated -> React.FC
@Hornebom Hornebom requested a review from onnovisser May 8, 2023 09:46
@github-actions
Copy link

github-actions bot commented May 8, 2023

PR deployed in Google Cloud
URL: https://app-pr1338.k-f.dev
Commit #: 8d675ed
To access the functions directly check the corresponding deploy Action

@Hornebom Hornebom merged commit c1693cd into main May 8, 2023
@Hornebom Hornebom deleted the refactor/max-reserve-form branch May 8, 2023 10:15
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