2021-01-27 13:51:51 +00:00
|
|
|
import 'package:cake_wallet/entities/monero_transaction_priority.dart';
|
2020-01-04 19:31:52 +00:00
|
|
|
|
2021-01-27 13:51:51 +00:00
|
|
|
double calculateEstimatedFee({MoneroTransactionPriority priority}) {
|
|
|
|
if (priority == MoneroTransactionPriority.slow) {
|
2020-01-04 19:31:52 +00:00
|
|
|
return 0.00002459;
|
|
|
|
}
|
|
|
|
|
2021-01-27 13:51:51 +00:00
|
|
|
if (priority == MoneroTransactionPriority.regular) {
|
2020-01-04 19:31:52 +00:00
|
|
|
return 0.00012305;
|
|
|
|
}
|
|
|
|
|
2021-01-27 13:51:51 +00:00
|
|
|
if (priority == MoneroTransactionPriority.medium) {
|
2020-01-04 19:31:52 +00:00
|
|
|
return 0.00024503;
|
|
|
|
}
|
|
|
|
|
2021-01-27 13:51:51 +00:00
|
|
|
if (priority == MoneroTransactionPriority.fast) {
|
2020-01-04 19:31:52 +00:00
|
|
|
return 0.00061453;
|
|
|
|
}
|
|
|
|
|
2021-01-27 13:51:51 +00:00
|
|
|
if (priority == MoneroTransactionPriority.fastest) {
|
2020-01-04 19:31:52 +00:00
|
|
|
return 0.0260216;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|