You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
562 B
25 lines
562 B
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;
|
|
} |