mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-26 10:46:23 -05:00
Add relative and absolute max transaction fee.
This commit is contained in:
parent
dc6ab0fa52
commit
dc8dd5af28
5 changed files with 168 additions and 46 deletions
|
|
@ -66,8 +66,12 @@ async fn next_state(
|
|||
Ok(match state {
|
||||
BobState::Started { btc_amount } => {
|
||||
let bitcoin_refund_address = bitcoin_wallet.new_address().await?;
|
||||
let tx_refund_fee = bitcoin_wallet.estimate_fee(TxRefund::weight()).await?;
|
||||
let tx_cancel_fee = bitcoin_wallet.estimate_fee(TxCancel::weight()).await?;
|
||||
let tx_refund_fee = bitcoin_wallet
|
||||
.estimate_fee(TxRefund::weight(), btc_amount)
|
||||
.await?;
|
||||
let tx_cancel_fee = bitcoin_wallet
|
||||
.estimate_fee(TxCancel::weight(), btc_amount)
|
||||
.await?;
|
||||
|
||||
let state2 = request_price_and_setup(
|
||||
swap_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue