Skip to content

Commit

Permalink
[Trivial] Add another rate limit error to paraswap
Browse files Browse the repository at this point in the history
  • Loading branch information
fleupold committed May 23, 2024
1 parent 50144e8 commit 40730c4
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 @@ -140,7 +140,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" | "Rate limit pricing" => Self::RateLimited,
"Rate limited" | "Rate limit pricing" | "Rate limit reached" => Self::RateLimited,
_ => Self::Api(err.error),
},
}
Expand Down

0 comments on commit 40730c4

Please sign in to comment.