Skip to content

Commit 13fc21c

Browse files
authored
fix broken test (#102)
1 parent f728dc0 commit 13fc21c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/fixtures/uniswapV3.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ describe("UniswapV3Fixture", () => {
9595

9696
const slot0 = await pool.slot0();
9797

98-
const expectedSqrtPrice = uniswapV3Fixture._getSqrtPriceX96(1e12);
98+
const ratio = subjectTokenOne.address.toLowerCase() > subjectTokenTwo.address.toLowerCase() ? 1e12 : 1e-12;
99+
const expectedSqrtPrice = uniswapV3Fixture._getSqrtPriceX96(ratio);
99100

100101
expect(slot0.sqrtPriceX96).to.eq(expectedSqrtPrice);
101102
});

0 commit comments

Comments
 (0)