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: AMM tradable-volume query should respect its fair-price #11281

Merged
merged 1 commit into from
May 15, 2024

Conversation

wwestgarth
Copy link
Contributor

The method TradableVolumeInRange() on an AMM wasn't quite right and would sometimes calculate too much volume because we weren't considering the pool's fair price.

@wwestgarth wwestgarth self-assigned this May 15, 2024
@wwestgarth wwestgarth marked this pull request as ready for review May 15, 2024 12:09
@wwestgarth wwestgarth requested a review from a team as a code owner May 15, 2024 12:09
@wwestgarth wwestgarth force-pushed the fix-tradable-volume branch from 19bd3a4 to 00c0c6a Compare May 15, 2024 12:10
@wwestgarth wwestgarth merged commit 8f33438 into develop May 15, 2024
16 checks passed
@wwestgarth wwestgarth deleted the fix-tradable-volume branch May 15, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants