diff --git a/mm2src/lp_ordermatch.rs b/mm2src/lp_ordermatch.rs index 7822782e0c..698eaeaca3 100644 --- a/mm2src/lp_ordermatch.rs +++ b/mm2src/lp_ordermatch.rs @@ -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(), diff --git a/mm2src/mm2_tests.rs b/mm2src/mm2_tests.rs index 525b89cf47..8c5a2001fb 100644 --- a/mm2src/mm2_tests.rs +++ b/mm2src/mm2_tests.rs @@ -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();