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(twap): fix slippage value crash #2835

Merged
merged 3 commits into from
Jul 11, 2023

Conversation

alfetopito
Copy link
Collaborator

Summary

Closes #2832

Fix slippage value crash

To Test

  1. Open advanced orders
  2. Insert a decimal value onto slippage, such as 34.34
  3. Click on another field
  • The app should not crash
  • Inserted value should be saved

@vercel
Copy link

vercel bot commented Jul 10, 2023

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

Name Status Preview Comments Updated (UTC)
swap-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback

🌃 Cosmos ↗︎

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.

Hey @alfetopito , great! the app is not crashed now!
However, I noticed that the order confirm modal does not show decimals now
image
slipp

@alfetopito
Copy link
Collaborator Author

alfetopito commented Jul 10, 2023

Hey @alfetopito , great! the app is not crashed now! However, I noticed that the order confirm modal does not show decimals now

Stupid mistake, was rounding BEFORE multiplying by 100 🤦

Fixed now

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.

LGTM!

@alfetopito alfetopito merged commit f8ebf26 into develop Jul 11, 2023
11 of 12 checks passed
@alfetopito alfetopito deleted the feature/twap_2832-slippage-decimal-issue branch July 11, 2023 08:52
@github-actions github-actions bot locked and limited conversation to collaborators Jul 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The app is crashed when type in 34,34 into the Slippage field
3 participants