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

fix(limit-orders): do not override user entered price #5232

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Conversation

shoom3301
Copy link
Collaborator

Summary

Fixes #5165

InitialPriceUpdater has been resetting isTypedValue flag time to time because it was relying only on the local flag - isInitialPriceSet.
To avoid the resetting, I've bound the isInitialPriceSet to isTypedValue so now if a user entered a value, then the updater will never override it.

To Test

See #5165

Copy link

vercel bot commented Dec 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cosmos ✅ Ready (Inspect) Visit Preview Dec 19, 2024 8:50am
cowfi ✅ Ready (Inspect) Visit Preview Dec 19, 2024 8:50am
explorer-dev ✅ Ready (Inspect) Visit Preview Dec 19, 2024 8:50am
sdk-tools ✅ Ready (Inspect) Visit Preview Dec 19, 2024 8:50am
swap-dev ✅ Ready (Inspect) Visit Preview Dec 19, 2024 8:50am
widget-configurator ✅ Ready (Inspect) Visit Preview Dec 19, 2024 8:50am

Copy link

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this!

@shoom3301 shoom3301 merged commit a07740c into develop Dec 19, 2024
12 of 13 checks passed
@shoom3301 shoom3301 deleted the fix/5165 branch December 19, 2024 11:41
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Limit: price is recalculated after user's input
3 participants