You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The checkReply function doesn't handle all error cases, which causes type errors following its invocation on line 186.
Throwing an unexpected error with response details could be a solution. Though, I didn't see any generic error type in the core, perhaps one might need to be created.
I've observed error codes not included in the list of error codes defined in the Totle API documentation, so it's best to have a code path for any case not matched.
The text was updated successfully, but these errors were encountered:
edge-exchange-plugins/src/swap/totle.js
Lines 86 to 102 in 6c45dc4
The
checkReply
function doesn't handle all error cases, which causes type errors following its invocation on line 186.Throwing an unexpected error with response details could be a solution. Though, I didn't see any generic error type in the core, perhaps one might need to be created.
I've observed error codes not included in the list of error codes defined in the Totle API documentation, so it's best to have a code path for any case not matched.
The text was updated successfully, but these errors were encountered: