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

[docs] add possible error codes & docs on what they mean #22

Open
sakulstra opened this issue Feb 10, 2021 · 5 comments
Open

[docs] add possible error codes & docs on what they mean #22

sakulstra opened this issue Feb 10, 2021 · 5 comments

Comments

@sakulstra
Copy link
Contributor

Started integrating paraswap into our application & want to ahndle errors properly.
Would be great if the docs would contain a list of possible error codes & a short explanation on what they mean.

Till now i only faced:
ESTIMATED_LOSS_GREATER_THAN_MAX_IMPACT, but I'd assume there are more.

@tetuaoro
Copy link

nothing...

@shredding
Copy link

Is there an update on this one or would you explain that error a bit more in detail please.

@mwamedacen
Copy link
Member

Hello, we documented all the errors in our OpenAPI specification right here : https://app.swaggerhub.com/apis/paraswapv5/api/1.0#/TransactionsErrorMessage (accessible from the docs https://developers.paraswap.network/ then go to > Try OpenAPI specification).

@shredding
Copy link

Maybe I'm missing something but I only see an array of non-explanining messages:

Screenshot 2021-12-27 at 11 28 50

E.g. can you point me specifically to the documentation of the aformentioned ESTIMATED_LOSS_GREATER_THAN_MAX_IMPACT error?

@shredding
Copy link

Any updates?

bogdoslavik pushed a commit to dystopia-exchange/paraswap-sdk that referenced this issue May 14, 2022
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

No branches or pull requests

4 participants