Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn verification error into estimator error (#2489)
# Description I initially classified errors coming from verification incorrectly. `ProtocolErrors` will actually get logged as errors which leads to these [alerts](https://cowservices.slack.com/archives/C0371SB243E/p1709821653091049). However, if we have to discard a quote because it's actually not good the estimator is actually at fault. Those errors will not lead to alerts. Also the user will receive a `400` response (no liquidity) instead of `500` (internal server error). # Changes Turned `TooInaccurate` error into an `EstimatorError` instead of `ProtocolError`.
- Loading branch information