This commit is contained in:
Gerardo Nardelli 2019-12-03 10:16:23 -03:00
parent 406ede9352
commit 9811c13a04

@ -35,11 +35,11 @@ function swapTokensBuilder(config) {
return txToSend return txToSend
} }
logger.debug(`Checking if half duplex balance if above the threshold`) logger.debug(`Checking if half duplex balance is above the threshold`)
const hdTokenBalanceAboveMinBalance = await foreignBridge.methods.isHDTokenBalanceAboveMinBalance().call() const hdTokenBalanceAboveMinBalance = await foreignBridge.methods.isHDTokenBalanceAboveMinBalance().call()
if (!hdTokenBalanceAboveMinBalance) { if (!hdTokenBalanceAboveMinBalance) {
logger.info(`Token swap discarded because half duplex balance if below the threshold`) logger.info(`Token swap discarded because half duplex balance is below the threshold`)
return txToSend return txToSend
} }