Skip to content

Commit

Permalink
Increase minimum Monero fee in processor
Browse files Browse the repository at this point in the history
I'm truly unsure why this is required right now.
  • Loading branch information
kayabaNerve committed Jul 7, 2024
1 parent 1bfd7d9 commit 9e4d83b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions coins/monero/wallet/util/tests/tests.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// TODO
#[test]
fn test() {}
6 changes: 3 additions & 3 deletions processor/src/networks/monero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ impl Monero {
fees.sort();
let fee = fees.get(fees.len() / 2).copied().unwrap_or(0);

// TODO: Set a sane minimum/maximum fee
Ok(FeeRate::new(fee.min(50_000).max(5_000_000), 10000).unwrap())
// TODO: Set a sane minimum fee
const MINIMUM_FEE: u64 = 5_000_000;
Ok(FeeRate::new(fee.max(MINIMUM_FEE), 10000).unwrap())
}

async fn make_signable_transaction(
Expand Down Expand Up @@ -475,7 +476,6 @@ impl Network for Monero {
const MAX_OUTPUTS: usize = 16;

// 0.01 XMR
// TODO: Set a sane dust
const DUST: u64 = 10000000000;

// TODO
Expand Down

0 comments on commit 9e4d83b

Please sign in to comment.