isHighFee property
bool
get
isHighFee
Returns true if the fee seems unusually high
Implementation
bool get isHighFee {
return maybeMap(
ethGas:
(fee) =>
fee.gasPrice * Decimal.fromInt(_gweiInEth) > Decimal.fromInt(100),
ethGasEip1559:
(fee) =>
fee.maxFeePerGas * Decimal.fromInt(_gweiInEth) > Decimal.fromInt(100),
utxoFixed: (fee) => fee.amount > Decimal.fromInt(50000),
utxoPerKbyte: (fee) => fee.amount > Decimal.fromInt(50000),
orElse: () => false,
);
}