pmonitor

Function check_wallet_compliance

source
pub(crate) fn check_wallet_compliance(
    genesis_balance: Amount,
    current_balance: Amount,
) -> bool
Expand description

Check whether the wallet is compliant.

Rather than a naive comparison that the current balance is greater than or equal to the genesis balance, we permit less than within a tolerance of 0.1UM. Doing so allows for discrepancies due to gas fees, for instance if pcli migrate balance was used.