diff --git a/docs/asb/README.md b/docs/asb/README.md index b1acc877..88448b71 100644 --- a/docs/asb/README.md +++ b/docs/asb/README.md @@ -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. 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. -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. Currently, we use a spot-price model, i.e. the ASB dictates the price to the CLI. diff --git a/swap/src/asb/recovery/cancel.rs b/swap/src/asb/recovery/cancel.rs index ec70a8df..8da1508f 100644 --- a/swap/src/asb/recovery/cancel.rs +++ b/swap/src/asb/recovery/cancel.rs @@ -39,7 +39,7 @@ pub async fn cancel( | AliceState::BtcRedeemed | AliceState::XmrRefunded | 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 { diff --git a/swap/src/monero/wallet_rpc.rs b/swap/src/monero/wallet_rpc.rs index 8af1167e..f99994df 100644 --- a/swap/src/monero/wallet_rpc.rs +++ b/swap/src/monero/wallet_rpc.rs @@ -369,7 +369,7 @@ impl WalletRpc { } // 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")] while let Ok(line) = tokio::time::timeout(std::time::Duration::from_secs(3), reader.next_line()).await diff --git a/swap/src/protocol/bob/swap.rs b/swap/src/protocol/bob/swap.rs index 8eaa1489..a1dec289 100644 --- a/swap/src/protocol/bob/swap.rs +++ b/swap/src/protocol/bob/swap.rs @@ -258,7 +258,7 @@ async fn next_state( // might not be able to ever transfer the Monero. tracing::warn!("Failed to generate monero wallet from keys: {:#}", e); 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?; }