Skip to content

Commit

Permalink
chore: set default values for btconchain
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Feb 18, 2024
1 parent 64f8249 commit 81c87e1
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions moksha-mint/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,25 @@ pub struct BtcOnchainConfig {
#[clap(skip)]
pub onchain_type: Option<BtcOnchainType>,

#[clap(long, env = "MINT_BTC_ONCHAIN_BACKEND_MIN_CONFIRMATIONS")]
#[clap(
long,
default_value_t = 1,
env = "MINT_BTC_ONCHAIN_BACKEND_MIN_CONFIRMATIONS"
)]
pub min_confirmations: u8,

#[clap(long, env = "MINT_BTC_ONCHAIN_BACKEND_MIN_AMOUNT")]
#[clap(
long,
default_value_t = 1_000,
env = "MINT_BTC_ONCHAIN_BACKEND_MIN_AMOUNT"
)]
pub min_amount: u64,

#[clap(long, env = "MINT_BTC_ONCHAIN_BACKEND_MAX_AMOUNT")]
#[clap(
long,
default_value_t = 1_000_000,
env = "MINT_BTC_ONCHAIN_BACKEND_MAX_AMOUNT"
)]
pub max_amount: u64,
}

Expand Down

0 comments on commit 81c87e1

Please sign in to comment.