Feat: back end support for per coin 0-conf limit
This commit is contained in:
parent
5da28bc830
commit
ac38a40b6c
9 changed files with 32 additions and 21 deletions
|
|
@ -101,8 +101,8 @@ function plugins (settings, deviceId) {
|
|||
}
|
||||
|
||||
function isZeroConf (tx) {
|
||||
const cashOutConfig = configManager.getCashOut(deviceId, settings.config)
|
||||
const zeroConfLimit = cashOutConfig.zeroConfLimit
|
||||
const walletSettings = configManager.getWalletSettings(tx.cryptoCode, settings.config)
|
||||
const zeroConfLimit = walletSettings.zeroConfLimit || 0
|
||||
return tx.fiat.lte(zeroConfLimit)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue