cake_wallet/lib/entities/calculate_estimated_fee.dart

25 lines
519 B
Dart
Raw Normal View History

2020-09-21 11:50:26 +00:00
import 'package:cake_wallet/entities/transaction_priority.dart';
2020-01-04 19:31:52 +00:00
double calculateEstimatedFee({TransactionPriority priority}) {
if (priority == TransactionPriority.slow) {
return 0.00002459;
}
if (priority == TransactionPriority.regular) {
return 0.00012305;
}
if (priority == TransactionPriority.medium) {
return 0.00024503;
}
if (priority == TransactionPriority.fast) {
return 0.00061453;
}
if (priority == TransactionPriority.fastest) {
return 0.0260216;
}
return 0;
}