Skip to content

Commit

Permalink
Add fee and deposit enabled fields to response in relayer address server
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Oct 11, 2023
1 parent d36e775 commit 45bed5a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/bitcoin/relayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,12 @@ pub struct OutputMatch {
pub struct RawSignatorySet {
pub signatories: Vec<RawSignatory>,
pub index: u32,
#[serde(rename = "bridgeFeeRate")]
pub bridge_fee_rate: f64,
#[serde(rename = "minerFeeRate")]
pub miner_fee_rate: f64,
#[serde(rename = "depositsEnabled")]
pub deposits_enabled: bool,
}

impl From<SignatorySet> for RawSignatorySet {
Expand All @@ -765,6 +771,10 @@ impl From<SignatorySet> for RawSignatorySet {
RawSignatorySet {
signatories,
index: sigset.index(),
// TODO
bridge_fee_rate: 0.015,
miner_fee_rate: 0.0001,
deposits_enabled: true,
}
}
}
Expand Down

0 comments on commit 45bed5a

Please sign in to comment.