-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
really impressive excel skills |
test/Loan.test.ts
Outdated
@@ -1140,6 +1140,8 @@ describe("Loan", () => { | |||
await loan.connect(borrower).drawdown(); | |||
expect(await loan.originationFee()).to.equal(416); | |||
|
|||
833.333333333; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://etherscan.io/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
it shouldn't change anything though
There was a problem hiding this comment.
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.
Started adding them under tests/scenarios/business