mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-26 10:46:23 -05:00
Move log messages to the appropriate abstraction layer
Log messages are ideally as close to the functionality they are talking about, otherwise we might end up repeating ourselves on several callsites or the log messages gets outdated if the behaviour changes.
This commit is contained in:
parent
b8df4a3145
commit
7387884e6d
8 changed files with 28 additions and 20 deletions
|
|
@ -389,12 +389,14 @@ pub async fn request_quote_and_setup(
|
|||
.send_quote_request(QuoteRequest { btc_amount })
|
||||
.await?;
|
||||
|
||||
let quote_response = event_loop_handle.recv_quote_response().await?;
|
||||
let xmr_amount = event_loop_handle.recv_quote_response().await?.xmr_amount;
|
||||
|
||||
tracing::info!("Quote for {} is {}", btc_amount, xmr_amount);
|
||||
|
||||
let state0 = State0::new(
|
||||
&mut OsRng,
|
||||
btc_amount,
|
||||
quote_response.xmr_amount,
|
||||
xmr_amount,
|
||||
execution_params.bitcoin_cancel_timelock,
|
||||
execution_params.bitcoin_punish_timelock,
|
||||
bitcoin_refund_address,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue