-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Pool Simulator] Add validation in new form #171
Conversation
…multiple-types-of-amm
BAL-527 Add validation in new Form
Requirements:
|
apps/balancer-tools/src/app/poolsimulator/(components)/ShareButton.tsx
Outdated
Show resolved
Hide resolved
apps/balancer-tools/src/app/poolsimulator/(components)/PoolParamsForm.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌 great refactors
apps/balancer-tools/src/app/poolsimulator/(components)/PoolParamsForm.tsx
Show resolved
Hide resolved
apps/balancer-tools/src/app/poolsimulator/(components)/PoolParamsForm.tsx
Outdated
Show resolved
Hide resolved
apps/balancer-tools/src/app/poolsimulator/(components)/ShareButton.tsx
Outdated
Show resolved
Hide resolved
* Remove AMM convertions * Add tokens on Pool Params form * show tokens on analysis page * solve luiza comments --------- Co-authored-by: luizakp <[email protected]>
@@ -169,6 +182,18 @@ export function PoolParamsForm() { | |||
</span> | |||
</div> | |||
))} | |||
<div className="flex flex-col"> | |||
<label className="mb-2 block text-sm text-slate12">Tokens</label> | |||
{errors?.tokens?.message && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 good strategy. think this was not in the video though, was it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is from PYC's PR
This PR:
Next Step
7.43.9
and @hookform/resolvers to3.1.0
due to unexpected form behaviorNext Step
it was expected to show the data that the user defined on the forms. But when importing a pool and changing those parameters the data displayed was the imported. E.g. Import a pool with swap fee of 0.001 and changed this value to 9. The expected value on pool Params visualization is 9, but rendered value was 0.001.https://www.loom.com/share/b0a63d9f67234169b307f7f7b325d692?sid=ad4e37f3-70ff-49f3-aa76-118377744a51
Commits regarding this PR: