From cb3159811c7febb2cd286c25251309c27c3f37e8 Mon Sep 17 00:00:00 2001 From: microwavedcola1 Date: Tue, 8 Aug 2023 14:11:11 +0200 Subject: [PATCH] Fix max sell in tcs client code Signed-off-by: microwavedcola1 --- ts/client/src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/client/src/client.ts b/ts/client/src/client.ts index fbb03dafe..f2fa15887 100644 --- a/ts/client/src/client.ts +++ b/ts/client/src/client.ts @@ -3543,7 +3543,7 @@ export class MangoClient { ? U64_MAX_BN : toNative(maxBuyUi, buyBank.mintDecimals); const maxSell = - maxBuyUi == Number.MAX_SAFE_INTEGER + maxSellUi == Number.MAX_SAFE_INTEGER ? U64_MAX_BN : toNative(maxSellUi, sellBank.mintDecimals);