Fix max sell in tcs client code
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
ada933453e
commit
cb3159811c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue