Skip to content

Commit

Permalink
Delete bignumber
Browse files Browse the repository at this point in the history
  • Loading branch information
Artjom Galaktionov committed Oct 10, 2023
1 parent 3d8c0a6 commit 6e69d28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/oracles/UniswapV2Oracle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { time } from "@nomicfoundation/hardhat-network-helpers";
import { expect } from "chai";
import { wei } from "@/scripts/utils/utils";
import { Reverter } from "@/test/helpers/reverter";
import BigNumber from "bignumber.js";

import { UniswapV2FactoryMock, UniswapV2OracleMock, UniswapV2PairMock } from "@ethers-v6";

Expand Down Expand Up @@ -138,7 +137,7 @@ describe("UniswapV2Oracle", () => {
let pairInfo = await oracle.getPairInfo(A_C_PAIR, 0);

expect(rounds).to.be.equal(1);
expect(pairInfo[2]).to.be.equal(BigNumber(await time.latest()).mod(2 ** 32));
expect(pairInfo[2]).to.be.equal((await time.latest()) % 2 ** 32);

await oracle.updatePrices();

Expand Down

0 comments on commit 6e69d28

Please sign in to comment.