paraswap-sdk icon indicating copy to clipboard operation
paraswap-sdk copied to clipboard

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

Open sakulstra opened this issue 3 years ago • 5 comments

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.

sakulstra avatar Feb 10 '21 10:02 sakulstra

nothing...

tetuaoro avatar Jul 16 '21 20:07 tetuaoro

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

shredding avatar Nov 01 '21 08:11 shredding

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).

mwamedacen avatar Nov 02 '21 07:11 mwamedacen

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 avatar Dec 27 '21 10:12 shredding

Any updates?

shredding avatar Feb 02 '22 12:02 shredding