Skip to content

Commit

Permalink
Merge pull request #1784 from lamassu/releases/v10.1
Browse files Browse the repository at this point in the history
Releases/v10.1
  • Loading branch information
RafaelTaranto authored Feb 5, 2025
2 parents f8e0ced + f1199d9 commit 63b05d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cash-in/cash-in-low.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ function diff (oldTx, newTx) {
}

function ensureRatchet (oldField, newField, fieldKey) {
const monotonic = ['cryptoAtoms', 'fiat', 'send', 'sendConfirmed', 'operatorCompleted', 'timedout', 'txVersion', 'batched']
const free = ['sendPending', 'error', 'errorCode', 'customerId']
const monotonic = ['cryptoAtoms', 'fiat', 'send', 'sendConfirmed', 'operatorCompleted', 'timedout', 'txVersion', 'batched', 'discount']
const free = ['sendPending', 'error', 'errorCode', 'customerId', 'discountSource']

if (_.isNil(oldField)) return true
if (_.includes(fieldKey, monotonic)) return isMonotonic(oldField, newField, fieldKey)
Expand Down

0 comments on commit 63b05d7

Please sign in to comment.