We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f728dc0 commit 13fc21cCopy full SHA for 13fc21c
test/fixtures/uniswapV3.spec.ts
@@ -95,7 +95,8 @@ describe("UniswapV3Fixture", () => {
95
96
const slot0 = await pool.slot0();
97
98
- const expectedSqrtPrice = uniswapV3Fixture._getSqrtPriceX96(1e12);
+ const ratio = subjectTokenOne.address.toLowerCase() > subjectTokenTwo.address.toLowerCase() ? 1e12 : 1e-12;
99
+ const expectedSqrtPrice = uniswapV3Fixture._getSqrtPriceX96(ratio);
100
101
expect(slot0.sqrtPriceX96).to.eq(expectedSqrtPrice);
102
});
0 commit comments