Skip to content

Commit

Permalink
Hot fix as_rpc_entry_bid, use base as coin.
Browse files Browse the repository at this point in the history
  • Loading branch information
artemii235 committed Mar 15, 2021
1 parent 4716289 commit f7af5d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mm2src/lp_ordermatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2922,7 +2922,7 @@ impl OrderbookItem {
let rel_min_volume = min_vol_mm.clone().into();

RpcOrderbookEntry {
coin: self.rel.clone(),
coin: self.base.clone(),
address,
price: price_mm.to_decimal(),
price_rat: price_mm.to_ratio(),
Expand Down
1 change: 1 addition & 0 deletions mm2src/mm2_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5556,6 +5556,7 @@ fn test_best_orders() {

let best_morty_orders = response.result.get("MORTY").unwrap();
assert_eq!(expected_price, best_morty_orders[0].price);
assert_eq!("MORTY", best_morty_orders[0].coin);
assert_eq!(1, best_morty_orders.len());

block_on(mm_bob.stop()).unwrap();
Expand Down

0 comments on commit f7af5d3

Please sign in to comment.