Skip to content

Commit

Permalink
also classify pricing rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
fleupold committed May 15, 2024
1 parent 6aa1b91 commit 186bf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infra/dex/paraswap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl From<util::http::RoundtripError<dto::Error>> for Error {
"ESTIMATED_LOSS_GREATER_THAN_MAX_IMPACT"
| "No routes found with enough liquidity"
| "Too much slippage on quote, please try again" => Self::NotFound,
"Rate limited" => Self::RateLimited,
"Rate limited" | "Rate limit pricing" => Self::RateLimited,
_ => Self::Api(err.error),
},
}
Expand Down

0 comments on commit 186bf2a

Please sign in to comment.