diff --git a/src/flow.rs b/src/flow.rs index d5a68d89..18cabc2d 100644 --- a/src/flow.rs +++ b/src/flow.rs @@ -30,13 +30,7 @@ pub async fn hold_invoice_paid(hash: &str) { "Order Id: {} - Seller paid invoice with hash: {hash}", order.id ); - let mut master_buyer_pubkey: Option = None; - let mut master_seller_pubkey: Option = None; - // If this is a sell order we show the master identities - if order.kind == "Sell" { - master_buyer_pubkey = order.master_buyer_pubkey.clone(); - master_seller_pubkey = order.master_seller_pubkey.clone(); - } + let order_kind = match Kind::from_str(&order.kind) { Ok(k) => k, Err(e) => {