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

[CL]: Add query for getting underlying assets for unit of liquidity #6340

Open
Tracked by #5864
AlpinYukseloglu opened this issue Sep 7, 2023 · 1 comment
Open
Tracked by #5864
Assignees

Comments

@AlpinYukseloglu
Copy link
Contributor

Background

While this is not currently blocking anything or directly necessary, it came up during discussions for APY calculations that it would be useful in general to have a query that takes in a tick range and returns the underlying assets for a given amount of liquidity in that range.

Suggested Design

  • Expose CalcActualAmounts as a query to allow for easy conversion from liquidity -> asset amounts

Acceptance Criteria

  • Query is implemented
@hieuvubk
Copy link
Contributor

I have a question, how about the range we pass in query? Should be random range or 2 consecutive ticks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage 🔍
Development

Successfully merging a pull request may close this issue.

2 participants