Report a Change Output with every Eventuality to ensure we don't fall out of synchrony

This commit is contained in:
Luke Parker
2024-09-20 00:55:21 -04:00
parent 702b4c860c
commit 1e1b821d34
4 changed files with 132 additions and 33 deletions

View File

@@ -1,3 +1,5 @@
use serai_client::primitives::Amount;
pub(crate) mod output;
pub(crate) mod transaction;
pub(crate) mod machine;
@@ -10,3 +12,10 @@ pub(crate) const DAI: [u8; 20] =
};
pub(crate) const TOKENS: [[u8; 20]; 1] = [DAI];
// 8 decimals, so 1_000_000_00 would be 1 ETH. This is 0.0015 ETH (5 USD if Ether is ~3300 USD).
#[allow(clippy::inconsistent_digit_grouping)]
pub(crate) const ETHER_DUST: Amount = Amount(1_500_00);
// 5 DAI
#[allow(clippy::inconsistent_digit_grouping)]
pub(crate) const DAI_DUST: Amount = Amount(5_000_000_00);