@clonegod/ttd-sui-common 1.0.62 → 1.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -106,7 +106,7 @@ class AbstractSuiDexTradePlus extends dist_1.AbastrcatTrade {
|
|
|
106
106
|
if (!wallet) {
|
|
107
107
|
continue;
|
|
108
108
|
}
|
|
109
|
-
const tokenAsset = (_b = assets.tokens) === null || _b === void 0 ? void 0 : _b.find((token) => token.
|
|
109
|
+
const tokenAsset = (_b = assets.tokens) === null || _b === void 0 ? void 0 : _b.find((token) => token.address.toLowerCase() === inputToken.address.toLowerCase());
|
|
110
110
|
let tokenBalance = (tokenAsset === null || tokenAsset === void 0 ? void 0 : tokenAsset.balance) || '0';
|
|
111
111
|
const balanceDecimal = new decimal_js_1.default(tokenBalance);
|
|
112
112
|
if (balanceDecimal.gte(requiredAmount)) {
|