mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 17:40:43 +00:00
CWA-199 | fixed receive amount for empty deposit amount; added correction to xmr limits
This commit is contained in:
parent
ef750cb454
commit
99c732aab0
2 changed files with 5 additions and 3 deletions
|
@ -68,9 +68,9 @@ class XMRTOExchangeProvider extends ExchangeProvider {
|
|||
|
||||
if (price > 0) {
|
||||
try {
|
||||
min /= price;
|
||||
min = limitsFormat(min) + correction;
|
||||
max /= price;
|
||||
min = min/price + correction;
|
||||
min = limitsFormat(min);
|
||||
max = max/price - correction;
|
||||
max = limitsFormat(max);
|
||||
} catch (e) {
|
||||
min = 0;
|
||||
|
|
|
@ -107,6 +107,7 @@ abstract class ExchangeStoreBase with Store {
|
|||
|
||||
if (amount == null || amount.isEmpty) {
|
||||
depositAmount = '';
|
||||
receiveAmount = '';
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -125,6 +126,7 @@ abstract class ExchangeStoreBase with Store {
|
|||
|
||||
if (amount == null || amount.isEmpty) {
|
||||
depositAmount = '';
|
||||
receiveAmount = '';
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue