mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-22 17:12:03 -07:00
Merge pull request #22 from Permissionless-Software-Foundation/ct-unstable
fix(orders): Fixing bug with creating orders
This commit is contained in:
@@ -130,7 +130,7 @@ class OrderLib {
|
||||
|
||||
// If there are fewer tokens in the wallet than what's in the order,
|
||||
// throw an error.
|
||||
if (totalTokenBalance <= orderEntity.numTokens || isNaN(totalTokenBalance)) {
|
||||
if (totalTokenBalance < orderEntity.numTokens || isNaN(totalTokenBalance)) {
|
||||
throw new Error(
|
||||
'App wallet does not have enough tokens to satisfy the SELL order.'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user