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

LP Token estimation in fiat : Why an exception if prices are = 0 ? #297

Open
redDwarf03 opened this issue Oct 15, 2024 · 0 comments
Open
Labels
question Further information is requested

Comments

@redDwarf03
Copy link
Member

In DexTokensProviders.estimateTokenInFiat why have we an exception if prices are = 0
Normally, if tokens from LP have no price, LP Price = 0

  if (fiatValueToken1 == 0 && fiatValueToken2 == 0) {
    throw Exception();
  }
@redDwarf03 redDwarf03 added the question Further information is requested label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant