Skip to content

Commit 72a9256

Browse files
authored
Drop OKX solver (#204)
The OKX solver was migrated to another repo cowprotocol/services#4236. This PR cleans up the current repository.
1 parent 29723cf commit 72a9256

File tree

18 files changed

+2
-3033
lines changed

18 files changed

+2
-3033
lines changed

Cargo.lock

Lines changed: 2 additions & 131 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,14 @@ anyhow = "1"
1818
alloy = { version = "1.1.0", default-features = false, features = ["rand"] }
1919
async-trait = "0.1.80"
2020
axum = "0.6"
21-
base64 = "0.22.1"
2221
bigdecimal = { version = "0.3", features = ["serde"] }
2322
chrono = { version = "0.4.38", features = ["serde"], default-features = false }
2423
clap = { version = "4", features = ["derive", "env"] }
2524
futures = "0.3.30"
2625
hex = "0.4"
27-
hmac = "0.12.1"
28-
humantime = "2.1.0"
2926
humantime-serde = "1.1.1"
3027
hyper = "0.14"
3128
itertools = "0.11"
32-
moka = { version = "0.12", features = ["future"] }
3329
num = "0.4"
3430
prometheus = "0.13"
3531
prometheus-metric-storage = "0.5.0"
@@ -38,15 +34,12 @@ serde = "1"
3834
serde_json = "1"
3935
serde_with = "3"
4036
serde_repr = "0.1"
41-
sha2 = "0.10.8"
4237
thiserror = "1"
4338
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal", "time"] }
4439
toml = "0.7"
4540
tower = "0.4"
4641
tower-http = { version = "0.4", features = ["trace"] }
4742
tracing = "0.1"
48-
web3 = "0.19"
49-
5043
contracts = { git = "https://github.com/cowprotocol/services.git", tag = "v2.345.4", package = "contracts" }
5144
ethrpc = { git = "https://github.com/cowprotocol/services.git", tag = "v2.345.4", package = "ethrpc" }
5245
observe = { git = "https://github.com/cowprotocol/services.git", tag = "v2.345.4", package = "observe" , features = ["axum-tracing"]}

config/example.okx.toml

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/domain/dex/slippage.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ impl Slippage {
4747
Self(value)
4848
}
4949

50-
/// Returns 1% slippage.
51-
#[cfg(test)]
52-
pub fn one_percent() -> Self {
53-
Self::new("0.01".parse().unwrap())
54-
}
55-
5650
/// Returns a zero slippage.
5751
pub fn zero() -> Self {
5852
Self::new(BigDecimal::zero())

0 commit comments

Comments
 (0)