Merge pull request #22 from Permissionless-Software-Foundation/ct-unstable

fix(orders): Fixing bug with creating orders
This commit is contained in:
Chris Troutner
2022-05-02 08:32:25 -07:00
committed by GitHub
+1 -1
View File
@@ -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.'
)