diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/payments.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/payments.js b/lib/payments.js index 7dbc1775..e1e0590e 100644 --- a/lib/payments.js +++ b/lib/payments.js @@ -122,6 +122,7 @@ export let credit = async (hash, amount, memo, ref, type = types.internal) => { let equivalentRate = invoice.rate * (store.rates[currency] / store.rates[invoice.currency]); + if (Math.abs(invoice.rate / store.rates[invoice.currency] - 1) < 0.01) { rate = equivalentRate; } else { |
