mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-22 02:34:55 +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",
|
||||
"serai-env",
|
||||
"serai-runtime",
|
||||
"serde",
|
||||
"sp-api",
|
||||
"sp-block-builder",
|
||||
"sp-blockchain",
|
||||
|
|
|
@ -1007,9 +1007,9 @@ pub mod pallet {
|
|||
return None;
|
||||
}
|
||||
|
||||
let path = if coin1 == Coin::native() {
|
||||
vec![coin2, coin1]
|
||||
} else if coin2 == Coin::native() {
|
||||
let path = if (coin1 == Coin::native() && coin2 != Coin::native()) ||
|
||||
(coin2 == Coin::native() && coin1 != Coin::native())
|
||||
{
|
||||
vec![coin1, coin2]
|
||||
} else {
|
||||
vec![coin1, Coin::native(), coin2]
|
||||
|
|
|
@ -49,7 +49,6 @@ tokio = { version = "1", features = ["sync", "rt-multi-thread"] }
|
|||
jsonrpsee = { version = "0.16", features = ["server"] }
|
||||
|
||||
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-transaction-pool = { git = "https://github.com/serai-dex/substrate" }
|
||||
|
|
Loading…
Reference in a new issue