estimatedTime property

String get estimatedTime

Estimate transaction time based on max fee per gas

Implementation

String get estimatedTime {
  final gwei = maxFeePerGasInGwei;
  if (gwei > Decimal.fromInt(100)) return '< 15 seconds';
  if (gwei > Decimal.fromInt(50)) return '< 30 seconds';
  if (gwei > Decimal.fromInt(20)) return '< 2 minutes';
  return '> 5 minutes';
}