mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-06-30 16:41:21 +00:00
chore: remove repeat word (#1671)
Signed-off-by: chengehe <hechenge@yeah.net>
This commit is contained in:
parent
2eb9e01f97
commit
49a7f7eed6
|
@ -110,7 +110,7 @@ The minimum and maximum amount as well as a spread, that is added on top of the
|
||||||
In order to be able to trade, the ASB must define a price to be able to agree on the amounts to be swapped with a CLI.
|
In order to be able to trade, the ASB must define a price to be able to agree on the amounts to be swapped with a CLI.
|
||||||
The `XMR<>BTC` price is currently determined by the price from the central exchange Kraken.
|
The `XMR<>BTC` price is currently determined by the price from the central exchange Kraken.
|
||||||
Upon startup the ASB connects to the Kraken price websocket and listens on the stream for price updates.
|
Upon startup the ASB connects to the Kraken price websocket and listens on the stream for price updates.
|
||||||
You can plug in a different price ticker websocket using the the `price_ticker_ws_url` configuration option.
|
You can plug in a different price ticker websocket using the `price_ticker_ws_url` configuration option.
|
||||||
You will have to make sure that the format returned is the same as the format used by Kraken.
|
You will have to make sure that the format returned is the same as the format used by Kraken.
|
||||||
|
|
||||||
Currently, we use a spot-price model, i.e. the ASB dictates the price to the CLI.
|
Currently, we use a spot-price model, i.e. the ASB dictates the price to the CLI.
|
||||||
|
|
|
@ -39,7 +39,7 @@ pub async fn cancel(
|
||||||
| AliceState::BtcRedeemed
|
| AliceState::BtcRedeemed
|
||||||
| AliceState::XmrRefunded
|
| AliceState::XmrRefunded
|
||||||
| AliceState::BtcPunished
|
| AliceState::BtcPunished
|
||||||
| AliceState::SafelyAborted => bail!("Swap is is in state {} which is not cancelable", state),
|
| AliceState::SafelyAborted => bail!("Swap is in state {} which is not cancelable", state),
|
||||||
};
|
};
|
||||||
|
|
||||||
let txid = match state3.submit_tx_cancel(bitcoin_wallet.as_ref()).await {
|
let txid = match state3.submit_tx_cancel(bitcoin_wallet.as_ref()).await {
|
||||||
|
|
|
@ -369,7 +369,7 @@ impl WalletRpc {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we do not hear from the monero_wallet_rpc process for 3 seconds we assume
|
// If we do not hear from the monero_wallet_rpc process for 3 seconds we assume
|
||||||
// it is is ready
|
// it is ready
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
while let Ok(line) =
|
while let Ok(line) =
|
||||||
tokio::time::timeout(std::time::Duration::from_secs(3), reader.next_line()).await
|
tokio::time::timeout(std::time::Duration::from_secs(3), reader.next_line()).await
|
||||||
|
|
|
@ -258,7 +258,7 @@ async fn next_state(
|
||||||
// might not be able to ever transfer the Monero.
|
// might not be able to ever transfer the Monero.
|
||||||
tracing::warn!("Failed to generate monero wallet from keys: {:#}", e);
|
tracing::warn!("Failed to generate monero wallet from keys: {:#}", e);
|
||||||
tracing::info!(%wallet_file_name,
|
tracing::info!(%wallet_file_name,
|
||||||
"Falling back to trying to open the the wallet if it already exists",
|
"Falling back to trying to open the wallet if it already exists",
|
||||||
);
|
);
|
||||||
monero_wallet.open(wallet_file_name).await?;
|
monero_wallet.open(wallet_file_name).await?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user