diff --git a/ts/client/src/accounts/healthCache.spec.ts b/ts/client/src/accounts/healthCache.spec.ts index b021175ae..ff9e09fbe 100644 --- a/ts/client/src/accounts/healthCache.spec.ts +++ b/ts/client/src/accounts/healthCache.spec.ts @@ -84,21 +84,24 @@ describe('Health Cache', () => { const pM = mockPerpMarket(9, 0.1, 0.2, 10, targetBank.price.toNumber()); const pp = new PerpPosition( pM.perpMarketIndex, + 0, + new BN(0), new BN(3), I80F48.fromNumber(-310), + new BN(0), + ZERO_I80F48(), + ZERO_I80F48(), new BN(7), new BN(11), - I80F48.fromNumber(0), - I80F48.fromNumber(0), new BN(1), new BN(2), - new BN(0), - new BN(0), 0, 0, new BN(0), new BN(0), new BN(0), + 0, + ZERO_I80F48(), ); const pi1 = PerpInfo.fromPerpPosition(pM, pp); @@ -192,12 +195,13 @@ describe('Health Cache', () => { const pM = mockPerpMarket(9, 0.1, 0.2, 10, bank2.price.toNumber()); const pp = new PerpPosition( pM.perpMarketIndex, + 0, + new BN(0), new BN(fixture.perp1[0]), I80F48.fromNumber(fixture.perp1[1]), new BN(0), - new BN(0), - I80F48.fromNumber(0), - I80F48.fromNumber(0), + ZERO_I80F48(), + ZERO_I80F48(), new BN(fixture.perp1[2]), new BN(fixture.perp1[3]), new BN(0), @@ -207,6 +211,8 @@ describe('Health Cache', () => { new BN(0), new BN(0), new BN(0), + 0, + ZERO_I80F48(), ); const pi1 = PerpInfo.fromPerpPosition(pM, pp);