cake_wallet/lib/entities/calculate_estimated_fee.dart
2021-01-27 15:51:51 +02:00

25 lines
No EOL
562 B
Dart

import 'package:cake_wallet/entities/monero_transaction_priority.dart';
double calculateEstimatedFee({MoneroTransactionPriority priority}) {
if (priority == MoneroTransactionPriority.slow) {
return 0.00002459;
}
if (priority == MoneroTransactionPriority.regular) {
return 0.00012305;
}
if (priority == MoneroTransactionPriority.medium) {
return 0.00024503;
}
if (priority == MoneroTransactionPriority.fast) {
return 0.00061453;
}
if (priority == MoneroTransactionPriority.fastest) {
return 0.0260216;
}
return 0;
}