mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 13:09:24 +00:00
Increase minimum Monero fee in processor
I'm truly unsure why this is required right now.
This commit is contained in:
3
coins/monero/wallet/util/tests/tests.rs
Normal file
3
coins/monero/wallet/util/tests/tests.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
// TODO
|
||||
#[test]
|
||||
fn test() {}
|
||||
@@ -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(
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user