From 05548563980ff79d81222298141365c86667d4b9 Mon Sep 17 00:00:00 2001 From: Daniel Karzel Date: Tue, 2 Nov 2021 15:17:03 +1100 Subject: [PATCH] Change btc per kvb to sats per vbyte --- daemon/src/maker.rs | 6 +++--- daemon/src/taker.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/daemon/src/maker.rs b/daemon/src/maker.rs index a281d0f..22f78b9 100644 --- a/daemon/src/maker.rs +++ b/daemon/src/maker.rs @@ -98,8 +98,8 @@ enum Withdraw { /// will be drained. Amount is to be specified with denomination, e.g. "0.1 BTC" #[clap(long)] amount: Option, - /// Optionally specify the fee-rate for the transaction. The fee-rate is specified as btc - /// per kvb, e.g. 0.00001 + /// Optionally specify the fee-rate for the transaction. The fee-rate is specified as sats + /// per vbyte, e.g. 5.0 #[clap(long)] fee: Option, /// The address to receive the Bitcoin. @@ -187,7 +187,7 @@ async fn main() -> Result<()> { .send(wallet::Withdraw { amount: *amount, address: address.clone(), - fee: fee.map(FeeRate::from_btc_per_kvb), + fee: fee.map(FeeRate::from_sat_per_vb), }) .await??; diff --git a/daemon/src/taker.rs b/daemon/src/taker.rs index c74e03d..e3d8737 100644 --- a/daemon/src/taker.rs +++ b/daemon/src/taker.rs @@ -87,8 +87,8 @@ enum Withdraw { /// will be drained. Amount is to be specified with denomination, e.g. "0.1 BTC" #[clap(long)] amount: Option, - /// Optionally specify the fee-rate for the transaction. The fee-rate is specified as btc - /// per kvb, e.g. 0.00001 + /// Optionally specify the fee-rate for the transaction. The fee-rate is specified as sats + /// per vbyte, e.g. 5.0 #[clap(long)] fee: Option, /// The address to receive the Bitcoin. @@ -176,7 +176,7 @@ async fn main() -> Result<()> { .send(wallet::Withdraw { amount: *amount, address: address.clone(), - fee: fee.map(FeeRate::from_btc_per_kvb), + fee: fee.map(FeeRate::from_sat_per_vb), }) .await??;