Skip to content

Commit

Permalink
fix machete & dex quote price api
Browse files Browse the repository at this point in the history
  • Loading branch information
akildemir committed Oct 28, 2024
1 parent 2158993 commit b0d00cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions substrate/dex/pallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 0 additions & 1 deletion substrate/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down

0 comments on commit b0d00cf

Please sign in to comment.