mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-28 19:50:20 -05:00
feat(swap): show min deposit required for min_quantity
This commit is contained in:
parent
293cbb68d6
commit
dc706c584a
4 changed files with 55 additions and 22 deletions
|
|
@ -11,6 +11,7 @@ use bitcoin::Script;
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
const SCRIPT_SIZE: usize = 34;
|
||||
const TX_LOCK_WEIGHT: usize = 485;
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
pub struct TxLock {
|
||||
|
|
@ -161,6 +162,10 @@ impl TxLock {
|
|||
output: vec![tx_out],
|
||||
}
|
||||
}
|
||||
|
||||
pub fn weight() -> usize {
|
||||
TX_LOCK_WEIGHT
|
||||
}
|
||||
}
|
||||
|
||||
impl From<TxLock> for PartiallySignedTransaction {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue