Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit 9b970c8

Browse files
committed
Remove max federation invoice amount
1 parent 2c6c4ef commit 9b970c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mutiny-core/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ use mockall::{automock, predicate::*};
135135
pub const DEVICE_LOCK_INTERVAL_SECS: u64 = 30;
136136
const BITCOIN_PRICE_CACHE_SEC: u64 = 300;
137137
const DEFAULT_PAYMENT_TIMEOUT: u64 = 30;
138-
const MAX_FEDERATION_INVOICE_AMT: u64 = 200_000;
139138
const SWAP_LABEL: &str = "SWAP";
140139
const MELT_CASHU_TOKEN: &str = "Cashu Token Melt";
141140

@@ -1737,9 +1736,9 @@ impl<S: MutinyStorage> MutinyWallet<S> {
17371736
amount: u64,
17381737
labels: Vec<String>,
17391738
) -> Result<MutinyInvoice, MutinyError> {
1740-
// Attempt to create federation invoice if available and below max amount
1739+
// Attempt to create federation invoice if available
17411740
let federation_ids = self.list_federation_ids().await?;
1742-
if !federation_ids.is_empty() && amount <= MAX_FEDERATION_INVOICE_AMT {
1741+
if !federation_ids.is_empty() {
17431742
let federation_id = &federation_ids[0];
17441743
let fedimint_client = self.federations.read().await.get(federation_id).cloned();
17451744

0 commit comments

Comments
 (0)