Send partial liquidate instruction just to force settle borrow
This commit is contained in:
parent
c5cfcad99a
commit
266f1e15be
|
@ -339,7 +339,7 @@ async function runPartialLiquidator() {
|
||||||
}
|
}
|
||||||
if (!ma.beingLiquidated) {
|
if (!ma.beingLiquidated) {
|
||||||
const deficit = liabsVal * mangoGroup.initCollRatio - assetsVal;
|
const deficit = liabsVal * mangoGroup.initCollRatio - assetsVal;
|
||||||
if (deficit < 0.1) {
|
if (deficit < 0.01) {
|
||||||
// too small of an account; number precision may cause errors
|
// too small of an account; number precision may cause errors
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue