fix machete & dex quote price api

This commit is contained in:
akildemir 2024-10-28 12:41:39 +03:00
parent 21589936a9
commit b0d00cf7ea
3 changed files with 3 additions and 5 deletions

1
Cargo.lock generated
View file

@ -8380,7 +8380,6 @@ dependencies = [
"schnorrkel", "schnorrkel",
"serai-env", "serai-env",
"serai-runtime", "serai-runtime",
"serde",
"sp-api", "sp-api",
"sp-block-builder", "sp-block-builder",
"sp-blockchain", "sp-blockchain",

View file

@ -1007,9 +1007,9 @@ pub mod pallet {
return None; return None;
} }
let path = if coin1 == Coin::native() { let path = if (coin1 == Coin::native() && coin2 != Coin::native()) ||
vec![coin2, coin1] (coin2 == Coin::native() && coin1 != Coin::native())
} else if coin2 == Coin::native() { {
vec![coin1, coin2] vec![coin1, coin2]
} else { } else {
vec![coin1, Coin::native(), coin2] vec![coin1, Coin::native(), coin2]

View file

@ -49,7 +49,6 @@ tokio = { version = "1", features = ["sync", "rt-multi-thread"] }
jsonrpsee = { version = "0.16", features = ["server"] } jsonrpsee = { version = "0.16", features = ["server"] }
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
serde = { version = "1", default-features = false, features = ["derive", "alloc"] }
sc-offchain = { git = "https://github.com/serai-dex/substrate" } sc-offchain = { git = "https://github.com/serai-dex/substrate" }
sc-transaction-pool = { git = "https://github.com/serai-dex/substrate" } sc-transaction-pool = { git = "https://github.com/serai-dex/substrate" }