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

ci(hardhat): change code #151

Merged
merged 3 commits into from
Jul 21, 2023
Merged

ci(hardhat): change code #151

merged 3 commits into from
Jul 21, 2023

Conversation

Rubilmax
Copy link
Contributor

@Rubilmax Rubilmax commented Jul 20, 2023

This PR changes everything about the way tests are wrote in hardhat but it fixes the CI. But I don't know why the CI was broken before, so I just went rewriting it my way and it works... Not good, but it works.

@Rubilmax Rubilmax marked this pull request as ready for review July 20, 2023 14:09
MerlinEgalite
MerlinEgalite previously approved these changes Jul 20, 2023
@Rubilmax Rubilmax merged commit f905e62 into main Jul 21, 2023
2 checks passed
@Rubilmax Rubilmax deleted the fix/hardhat-ci-collateral branch July 21, 2023 13:43
await blue.connect(user).withdraw(market, amount.div(2), user.address);
}
if (random() < 2 / 3) {
await blue.connect(user).supply(market, amount, user.address);
Copy link
Contributor

Choose a reason for hiding this comment

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

no risk that amount is zero here ? at line 135 we check it at least

borrowableAsset: borrowable.address,
collateralAsset: collateral.address,
borrowableOracle: borrowableOracle.address,
collateralOracle: collateralOracle.address,
irm: irm.address,
lltv: BigNumber.WAD.div(2),
};
lltv: BigNumber.WAD.div(2).add(1),
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 add one ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants