fix merge
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
0e180ed380
commit
5674076b8e
|
@ -2,7 +2,10 @@ import { AnchorProvider, Wallet } from '@coral-xyz/anchor';
|
||||||
import { Cluster, Connection, Keypair, PublicKey } from '@solana/web3.js';
|
import { Cluster, Connection, Keypair, PublicKey } from '@solana/web3.js';
|
||||||
import cloneDeep from 'lodash/cloneDeep';
|
import cloneDeep from 'lodash/cloneDeep';
|
||||||
import { Group } from '../../src/accounts/group';
|
import { Group } from '../../src/accounts/group';
|
||||||
|
import { HealthCache } from '../../src/accounts/healthCache';
|
||||||
import { HealthType, MangoAccount } from '../../src/accounts/mangoAccount';
|
import { HealthType, MangoAccount } from '../../src/accounts/mangoAccount';
|
||||||
|
import { PerpMarket } from '../../src/accounts/perp';
|
||||||
|
import { Serum3Market } from '../../src/accounts/serum3';
|
||||||
import { MangoClient } from '../../src/client';
|
import { MangoClient } from '../../src/client';
|
||||||
import { MANGO_V4_ID } from '../../src/constants';
|
import { MANGO_V4_ID } from '../../src/constants';
|
||||||
import { ZERO_I80F48 } from '../../src/numbers/I80F48';
|
import { ZERO_I80F48 } from '../../src/numbers/I80F48';
|
||||||
|
@ -234,7 +237,7 @@ async function debugUser(
|
||||||
true
|
true
|
||||||
) {
|
) {
|
||||||
const lp = await pp.getLiquidationPrice(group, mangoAccount);
|
const lp = await pp.getLiquidationPrice(group, mangoAccount);
|
||||||
if (lp.lt(ZERO_I80F48())) {
|
if (lp == null || lp.lt(ZERO_I80F48())) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const lpUi = group
|
const lpUi = group
|
||||||
|
|
Loading…
Reference in New Issue