mirror of
https://github.com/serai-dex/serai.git
synced 2025-02-02 03:06:31 +00:00
fix machete & dex quote price api
This commit is contained in:
parent
21589936a9
commit
b0d00cf7ea
3 changed files with 3 additions and 5 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -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",
|
||||||
|
|
|
@ -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]
|
||||||
|
|
|
@ -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" }
|
||||||
|
|
Loading…
Reference in a new issue