Change Monero "regular" fee name to "automatic" (#576)

This commit is contained in:
Serhii 2022-11-02 21:00:40 +02:00 committed by GitHub
parent 0040bca853
commit 3996c3de76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View file

@ -9,13 +9,13 @@ class MoneroTransactionPriority extends TransactionPriority {
static const all = [ static const all = [
MoneroTransactionPriority.slow, MoneroTransactionPriority.slow,
MoneroTransactionPriority.regular, MoneroTransactionPriority.automatic,
MoneroTransactionPriority.medium, MoneroTransactionPriority.medium,
MoneroTransactionPriority.fast, MoneroTransactionPriority.fast,
MoneroTransactionPriority.fastest MoneroTransactionPriority.fastest
]; ];
static const slow = MoneroTransactionPriority(title: 'Slow', raw: 0); static const slow = MoneroTransactionPriority(title: 'Slow', raw: 0);
static const regular = MoneroTransactionPriority(title: 'Regular', raw: 1); static const automatic = MoneroTransactionPriority(title: 'Automatic', raw: 1);
static const medium = MoneroTransactionPriority(title: 'Medium', raw: 2); static const medium = MoneroTransactionPriority(title: 'Medium', raw: 2);
static const fast = MoneroTransactionPriority(title: 'Fast', raw: 3); static const fast = MoneroTransactionPriority(title: 'Fast', raw: 3);
static const fastest = MoneroTransactionPriority(title: 'Fastest', raw: 4); static const fastest = MoneroTransactionPriority(title: 'Fastest', raw: 4);
@ -29,7 +29,7 @@ class MoneroTransactionPriority extends TransactionPriority {
case WalletType.bitcoin: case WalletType.bitcoin:
return [ return [
MoneroTransactionPriority.slow, MoneroTransactionPriority.slow,
MoneroTransactionPriority.regular, MoneroTransactionPriority.automatic,
MoneroTransactionPriority.fast MoneroTransactionPriority.fast
]; ];
default: default:
@ -42,7 +42,7 @@ class MoneroTransactionPriority extends TransactionPriority {
case 0: case 0:
return slow; return slow;
case 1: case 1:
return regular; return automatic;
case 2: case 2:
return medium; return medium;
case 3: case 3:
@ -59,8 +59,8 @@ class MoneroTransactionPriority extends TransactionPriority {
switch (this) { switch (this) {
case MoneroTransactionPriority.slow: case MoneroTransactionPriority.slow:
return 'Slow'; // S.current.transaction_priority_slow; return 'Slow'; // S.current.transaction_priority_slow;
case MoneroTransactionPriority.regular: case MoneroTransactionPriority.automatic:
return 'Regular'; // S.current.transaction_priority_regular; return 'Automatic'; // S.current.transaction_priority_regular;
case MoneroTransactionPriority.medium: case MoneroTransactionPriority.medium:
return 'Medium'; // S.current.transaction_priority_medium; return 'Medium'; // S.current.transaction_priority_medium;
case MoneroTransactionPriority.fast: case MoneroTransactionPriority.fast:

View file

@ -225,7 +225,7 @@ abstract class HavenWalletBase extends WalletBase<MoneroBalance,
switch (priority) { switch (priority) {
case MoneroTransactionPriority.slow: case MoneroTransactionPriority.slow:
return 24590000; return 24590000;
case MoneroTransactionPriority.regular: case MoneroTransactionPriority.automatic:
return 123050000; return 123050000;
case MoneroTransactionPriority.medium: case MoneroTransactionPriority.medium:
return 245029999; return 245029999;

View file

@ -242,7 +242,7 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
switch (priority) { switch (priority) {
case MoneroTransactionPriority.slow: case MoneroTransactionPriority.slow:
return 24590000; return 24590000;
case MoneroTransactionPriority.regular: case MoneroTransactionPriority.automatic:
return 123050000; return 123050000;
case MoneroTransactionPriority.medium: case MoneroTransactionPriority.medium:
return 245029999; return 245029999;