Skip to content

Commit

Permalink
fix: show regular onchain fees when mrh payment is detected (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra-yse authored and yse committed Jul 26, 2024
1 parent 15a5228 commit a1a4343
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/core/src/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -687,12 +687,8 @@ impl LiquidSdk {

let fees_sat = match self.swapper.check_for_mrh(&req.invoice)? {
Some((lbtc_address, _)) => {
self.estimate_onchain_tx_fee(
receiver_amount_sat,
&lbtc_address,
self.config.lowball_fee_rate_msat_per_vbyte(),
)
.await?
self.estimate_onchain_tx_fee(receiver_amount_sat, &lbtc_address, None)
.await?
}
None => {
let lockup_fees_sat = self.estimate_lockup_tx_fee(receiver_amount_sat).await?;
Expand Down

0 comments on commit a1a4343

Please sign in to comment.