From e69a2c9111263a1416aceaf1b960fa24ac0a656c Mon Sep 17 00:00:00 2001 From: Philipp Hoenisch Date: Fri, 7 May 2021 08:30:15 +1000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Daniel Karzel --- swap/src/bitcoin/wallet.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swap/src/bitcoin/wallet.rs b/swap/src/bitcoin/wallet.rs index 28cb9375..e064889a 100644 --- a/swap/src/bitcoin/wallet.rs +++ b/swap/src/bitcoin/wallet.rs @@ -326,7 +326,7 @@ where Ok(Amount::from_sat(max_giveable)) } - /// Estimate total tx fee based for a pre-defined target block based on the + /// Estimate total tx fee for a pre-defined target block based on the /// transaction weight. The max fee cannot be more than MAX_PERCENTAGE_FEE /// of amount pub async fn estimate_fee( @@ -357,7 +357,7 @@ fn estimate_fee( ) -> Amount { // Doing some heavy math here :) // `usize` is 32 or 64 bits wide, but `f32`'s mantissa is only 23 bits wide. - // This fine because such a big transaction cannot exist and there are also no + // This is fine because such a big transaction cannot exist and there are also no // negative fees. #[allow( clippy::cast_precision_loss,