Fix max sell in tcs client code

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2023-08-08 14:11:11 +02:00
parent ada933453e
commit cb3159811c
1 changed files with 1 additions and 1 deletions

View File

@ -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);