Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(hardhat): switch to ethers v6 #142

Closed
wants to merge 3 commits into from
Closed

Conversation

Rubilmax
Copy link
Collaborator

@Rubilmax Rubilmax marked this pull request as ready for review July 18, 2023 10:06
@MerlinEgalite
Copy link
Contributor

The CI is failing though

@Rubilmax Rubilmax mentioned this pull request Jul 18, 2023
@Rubilmax
Copy link
Collaborator Author

The CI is failing though

Fixed in #141

@MathisGD
Copy link
Contributor

#141 has been merged, the CI should pass with a rebase

Copy link
Contributor

@QGarchery QGarchery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🙏

@@ -70,24 +72,25 @@ describe("Blue", () => {
borrowableOracle = await OracleMockFactory.deploy();
collateralOracle = await OracleMockFactory.deploy();

await borrowableOracle.connect(admin).setPrice(BigNumber.WAD);
await collateralOracle.connect(admin).setPrice(BigNumber.WAD);
await borrowableOracle.connect(admin).setPrice(0); // Make health check always pass.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need that now ? I tried reverting this change in local and it seems to pass

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed, people supply some collateral. I would revert the change as it might change the cost of the health check

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sometimes, the test run fails because of not enough collateral. I'd say it happens to me 1/3 of the time.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but isn't the test supposed to be deterministic ?

Copy link
Contributor

@QGarchery QGarchery Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's open a new issue and merge this PR ?

Copy link
Collaborator Author

@Rubilmax Rubilmax Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this frictionless, productivity-oriented development process 😁😁
I'll dig this up though, as I believe it is in the scope of this PR and I'm just curious about the 2 points raised in this comment.

@Rubilmax Rubilmax marked this pull request as draft July 19, 2023 08:13
@Rubilmax
Copy link
Collaborator Author

Unfortunately, local tests show that ethers v6 is on average 6x slower than ethers v5. The CI duration is thus increased by roughly 5x. So I'm against ethers v6 for now.

@Rubilmax
Copy link
Collaborator Author

For now, this work is replaced by #146.

@MathisGD
Copy link
Contributor

Can be closed no ?

@Rubilmax
Copy link
Collaborator Author

Closed but please not delete

@Rubilmax Rubilmax closed this Jul 20, 2023
@Rubilmax Rubilmax deleted the refactor/hardhat branch August 28, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants