Add dummy fee values to the scheduler

This commit is contained in:
Luke Parker
2024-09-20 00:55:03 -04:00
parent bc1bbf9951
commit 702b4c860c
2 changed files with 17 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ use ethereum_erc20::{TopLevelTransfer, Erc20};
use ethereum_router::{Coin as EthereumCoin, InInstruction as EthereumInInstruction, Router};
use crate::{
TOKENS, InitialSeraiKey,
TOKENS, ETHER_DUST, DAI_DUST, InitialSeraiKey,
block::{Epoch, FullEpoch},
};
@@ -207,12 +207,9 @@ impl<D: Db> ScannerFeed for Rpc<D> {
fn dust(coin: Coin) -> Amount {
assert_eq!(coin.network(), NetworkId::Ethereum);
#[allow(clippy::inconsistent_digit_grouping)]
match coin {
// 5 USD if Ether is ~3300 USD
Coin::Ether => Amount(1_500_00),
// 5 DAI
Coin::Dai => Amount(5_000_000_00),
Coin::Ether => ETHER_DUST,
Coin::Dai => DAI_DUST,
_ => unreachable!(),
}
}