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

VAL-62 Part 1: add first e2e scenario test #75

Merged
merged 3 commits into from
Nov 2, 2022
Merged

VAL-62 Part 1: add first e2e scenario test #75

merged 3 commits into from
Nov 2, 2022

Conversation

ams9198
Copy link
Contributor

@ams9198 ams9198 commented Nov 1, 2022

Started adding them under tests/scenarios/business

@pickle4325
Copy link
Collaborator

really impressive excel skills

@@ -1140,6 +1140,8 @@ describe("Loan", () => {
await loan.connect(borrower).drawdown();
expect(await loan.originationFee()).to.equal(416);

833.333333333;
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like a stray statement here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks!

@@ -16,7 +16,7 @@ describe("FeeVault", () => {
await feeVault.deployed();

const Asset = await ethers.getContractFactory("MockERC20");
const asset = await Asset.deploy("Test Coin", "TC");
const asset = await Asset.deploy("Test Coin", "TC", 18);
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't USDC and EUROC 6 decimals?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@ams9198 ams9198 Nov 1, 2022

Choose a reason for hiding this comment

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

For the existing tests, like this one, I left them as-is (since openzepp defaults to 18, which we were using previously). For the scenario test, I specifically mimicked USDC with 6 decimals since that's what we're testing.

bricestacey
bricestacey previously approved these changes Nov 2, 2022
@ams9198 ams9198 merged commit ea98f56 into circlefin:master Nov 2, 2022
@ams9198 ams9198 deleted the VAL-62 branch November 2, 2022 14:47
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.

4 participants