Fix liquidateSpot bug

This commit is contained in:
Riordan Panayides 2021-12-05 16:04:03 +00:00
parent b6219236cc
commit 604cc420bc
1 changed files with 1 additions and 1 deletions

View File

@ -645,7 +645,7 @@ async function liquidateSpot(
}`,
);
if (maxNet.lt(ONE_I80F48) || maxNetIndex == -1) {
if (maxNet.lt(ZERO_I80F48) || maxNetIndex == -1) {
const highestHealthMarket = perpMarkets
.map((perpMarket, i) => {
const marketIndex = mangoGroup.getPerpMarketIndex(