Merge pull request #1360 from chaotixkilla/fix-eth-zero-conf-limit

Set ETH zero conf limit value to 0
This commit is contained in:
Rafael Taranto 2022-10-06 19:21:28 +01:00 committed by GitHub
commit 987f68b0a8
2 changed files with 27 additions and 0 deletions

View file

@ -170,6 +170,11 @@ function authorizeZeroConf (settings, tx, machineId) {
return Promise.reject(new Error('tx.fiat is undefined!'))
}
// TODO: confirm if this treatment is needed for ERC-20 tokens, once their cash-out transactions are enabled
if (tx.cryptoCode === 'ETH') {
return Promise.resolve(false)
}
if (tx.fiat.gt(zeroConfLimit)) {
return Promise.resolve(false)
}