Skip to content

Commit

Permalink
Merge branch 'main' into feature/okx-integration
Browse files Browse the repository at this point in the history
mstrug committed Jan 9, 2025
2 parents e22c654 + 6b9aff1 commit dcb7115
Showing 3 changed files with 35 additions and 33 deletions.
48 changes: 24 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -45,16 +45,16 @@ tower-http = { version = "0.4", features = ["trace"] }
tracing = "0.1"
web3 = "0.19"

contracts = { git = "https://github.com/cowprotocol/services.git", tag = "v2.289.0", package = "contracts" }
ethrpc = { git = "https://github.com/cowprotocol/services.git", tag = "v2.289.0", package = "ethrpc" }
observe = { git = "https://github.com/cowprotocol/services.git", tag = "v2.289.0", package = "observe" }
shared = { git = "https://github.com/cowprotocol/services.git", tag = "v2.289.0", package = "shared" }
dto = { git = "https://github.com/cowprotocol/services.git", tag = "v2.289.0", package = "solvers-dto" }
rate-limit = { git = "https://github.com/cowprotocol/services.git", tag = "v2.289.0", package = "rate-limit" }
number = { git = "https://github.com/cowprotocol/services.git", tag = "v2.289.0", package = "number" }
contracts = { git = "https://github.com/cowprotocol/services.git", tag = "v2.292.1", package = "contracts" }
ethrpc = { git = "https://github.com/cowprotocol/services.git", tag = "v2.292.1", package = "ethrpc" }
observe = { git = "https://github.com/cowprotocol/services.git", tag = "v2.292.1", package = "observe" }
shared = { git = "https://github.com/cowprotocol/services.git", tag = "v2.292.1", package = "shared" }
dto = { git = "https://github.com/cowprotocol/services.git", tag = "v2.292.1", package = "solvers-dto" }
rate-limit = { git = "https://github.com/cowprotocol/services.git", tag = "v2.292.1", package = "rate-limit" }
number = { git = "https://github.com/cowprotocol/services.git", tag = "v2.292.1", package = "number" }

[dev-dependencies]
testlib = { git = "https://github.com/cowprotocol/services.git", tag = "v2.289.0", package = "testlib" }
testlib = { git = "https://github.com/cowprotocol/services.git", tag = "v2.292.1", package = "testlib" }
glob = "0.3"
maplit = "1"
tempfile = "3"
4 changes: 3 additions & 1 deletion src/infra/dex/oneinch/mod.rs
Original file line number Diff line number Diff line change
@@ -219,7 +219,9 @@ impl From<util::http::RoundtripError<dto::Error>> for Error {
// based on empirical observations of what the API has returned in the
// past.
match err.status_code {
400 => Self::NotFound,
// 403 is returned when the 1inch quote API is forbidden due to legal reason for
// a specific address or an artificial address was used in the request.
400 | 403 => Self::NotFound,
_ => Self::Api {
code: err.status_code,
description: err.description,

0 comments on commit dcb7115

Please sign in to comment.