Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Oct 19, 2023
1 parent 7cee59e commit c796395
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/liquidatePerp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ describe('liquidate perp (no open orders)', () => {
console.log('deltaValueToLiq:', deltaValueToLiq.toString());
console.log('pp.base:', pp.baseAssetAmount.toString());

const expectedLiqPrice = 0.452190;
const expectedLiqPrice = 0.45219;
const liqPrice = driftClientUser.liquidationPrice(0, ZERO);
console.log('liqPrice:', liqPrice.toString());
assert(liqPrice.eq(new BN(expectedLiqPrice * PRICE_PRECISION.toNumber())));
Expand Down
7 changes: 6 additions & 1 deletion tests/postOnly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,12 @@ describe('post only', () => {
assert(position.quoteBreakEvenAmount.eq(new BN(1000200)));
assert(driftClient.getQuoteAssetTokenAmount().eq(usdcAmount));
assert(driftClient.getUserStats().getAccount().fees.totalFeePaid.eq(ZERO));
assert(driftClient.getUserStats().getAccount().fees.totalFeeRebate.eq(new BN(200)));
assert(
driftClient
.getUserStats()
.getAccount()
.fees.totalFeeRebate.eq(new BN(200))
);

await fillerDriftClient.fetchAccounts();
const orderRecord = eventSubscriber.getEventsArray('OrderActionRecord')[0];
Expand Down

0 comments on commit c796395

Please sign in to comment.