mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +00:00
Change Monero "regular" fee name to "automatic" (#576)
This commit is contained in:
parent
0040bca853
commit
3996c3de76
3 changed files with 8 additions and 8 deletions
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue