Skip to content

Commit b0d00cf

Browse files
committed
fix machete & dex quote price api
1 parent 2158993 commit b0d00cf

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

substrate/dex/pallet/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,9 +1007,9 @@ pub mod pallet {
10071007
return None;
10081008
}
10091009

1010-
let path = if coin1 == Coin::native() {
1011-
vec![coin2, coin1]
1012-
} else if coin2 == Coin::native() {
1010+
let path = if (coin1 == Coin::native() && coin2 != Coin::native()) ||
1011+
(coin2 == Coin::native() && coin1 != Coin::native())
1012+
{
10131013
vec![coin1, coin2]
10141014
} else {
10151015
vec![coin1, Coin::native(), coin2]

substrate/node/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ tokio = { version = "1", features = ["sync", "rt-multi-thread"] }
4949
jsonrpsee = { version = "0.16", features = ["server"] }
5050

5151
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
52-
serde = { version = "1", default-features = false, features = ["derive", "alloc"] }
5352

5453
sc-offchain = { git = "https://github.com/serai-dex/substrate" }
5554
sc-transaction-pool = { git = "https://github.com/serai-dex/substrate" }

0 commit comments

Comments
 (0)