Merge branch 'sairajzero:main' into main

This commit is contained in:
Sai Raj 2022-02-24 17:59:57 +05:30 committed by GitHub
commit 1097daba9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ const consumeAsset = (floID, asset, amount, txQueries = []) => new Promise((reso
rem = 0;
} else {
txQueries.push(["DELETE FROM Vault WHERE id=?", [coins[i].id]]);
rem -= result[i].quantity;
rem -= coins[i].quantity;
}
}
if (rem > 0) //should not happen AS the total and net is checked already