From 45bed5aac14172677b48d16096c94a44c78b0d27 Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Tue, 3 Oct 2023 20:10:31 +0300 Subject: [PATCH] Add fee and deposit enabled fields to response in relayer address server --- src/bitcoin/relayer.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bitcoin/relayer.rs b/src/bitcoin/relayer.rs index 665c4cbc..b5a3f37b 100644 --- a/src/bitcoin/relayer.rs +++ b/src/bitcoin/relayer.rs @@ -753,6 +753,12 @@ pub struct OutputMatch { pub struct RawSignatorySet { pub signatories: Vec, 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 for RawSignatorySet { @@ -765,6 +771,10 @@ impl From for RawSignatorySet { RawSignatorySet { signatories, index: sigset.index(), + // TODO + bridge_fee_rate: 0.015, + miner_fee_rate: 0.0001, + deposits_enabled: true, } } }