Skip to content

Commit

Permalink
Fix business scenario 4 tests (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
venables authored Nov 28, 2022
1 parent 3904b81 commit 7211b13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/scenarios/business/4.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe("Business Scenario 4", () => {
await mockUSDC.mint(borrower.address, INPUTS.loanPayment);

// Collateralize loan
await collateralizeLoan(loan, borrower, mockUSDC, 0);
await collateralizeLoan(loan, borrower, mockUSDC);

return {
startTime,
Expand Down Expand Up @@ -119,7 +119,7 @@ describe("Business Scenario 4", () => {

// Initialization checks
// check that FL is zero
expect(await pool.firstLoss()).to.equal(
expect(await poolController.firstLossBalance()).to.equal(
INPUTS.pool.firstLossInitialMinimum
);
// Check that PM has no USDC balance
Expand All @@ -139,7 +139,7 @@ describe("Business Scenario 4", () => {

// +4 days, loan is funded
await advanceToDay(startTime, 4);
await fundLoan(loan, pool, poolAdmin);
await fundLoan(loan, poolController, poolAdmin);
await loan.connect(borrower).drawdown(INPUTS.loan.principal);

// +7 days, lenderA requests 200k PT redemption
Expand Down Expand Up @@ -189,7 +189,7 @@ describe("Business Scenario 4", () => {

// +24 days, PA marks loan in default
await advanceToDay(startTime, 24);
await pool.connect(poolAdmin).defaultLoan(loan.address);
await poolController.connect(poolAdmin).defaultLoan(loan.address);
expect(await pool.liquidityPoolAssets()).to.equal(101288194446);

// +28 days, run the crank
Expand Down

0 comments on commit 7211b13

Please sign in to comment.