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

feat: get quote for single part in TWAP #2580

Merged
merged 7 commits into from
Jun 2, 2023

Conversation

nenadV91
Copy link
Contributor

@nenadV91 nenadV91 commented May 31, 2023

Summary

This PR adds quote fetching for single interval in TWAP orders
It contains two parts:

  • updates the useQuoteParams hook to fetch only single interval input amount for TWAP orders
  • updates the QuoteObserverUpdater in TWAP orders to multiply the received output amount with number of parts

To test

Check the TWAP orders quote functionality
Everything should work as before

@vercel
Copy link

vercel bot commented May 31, 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 ↗︎

@nenadV91 nenadV91 requested a review from a team May 31, 2023 11:43
@nenadV91 nenadV91 merged commit 40b2627 into develop Jun 2, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jun 2, 2023
@alfetopito alfetopito deleted the feature/quote-for-single-part branch June 2, 2023 14:05
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.

2 participants