Skip to content

Commit

Permalink
Properly parse paraswap rate limits
Browse files Browse the repository at this point in the history
  • Loading branch information
fleupold committed May 15, 2024
1 parent 14d3f60 commit 6aa1b91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/infra/dex/paraswap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +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,
_ => Self::Api(err.error),
},
}
Expand Down

0 comments on commit 6aa1b91

Please sign in to comment.