Skip to content

Conversation

@busimus
Copy link
Contributor

@busimus busimus commented May 7, 2025

Sometimes in low liquidity situations the calcImpact method returns positive values for both the base and quote flows, which are obviously incorrect. Currently the SDK interprets that as a very high input of very high output, this PR changes this behavior to throw an error instead. It's not the best way to signal this error (because it could be confused by the caller with a recoverable RPC exception), but anything better would require an API change.

  • Tests pass
  • Appropriate changes to README are included in PR

@benwolski benwolski merged commit fa6462b into develop May 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants