Skip to content

Commit

Permalink
Merge pull request #509 from pwdcd/develop
Browse files Browse the repository at this point in the history
chore: fix some comments
  • Loading branch information
chechu authored Aug 16, 2024
2 parents cb85299 + 94c3a73 commit eeec7cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/hardhat/Fork/TokenRedeemer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ const test = (setup: () => Promise<TokenRedeemerFixture>) => () => {
).to.be.reverted;
});

it("should redeem and transfer succesfully", async () => {
it("should redeem and transfer successfully", async () => {
const vTokenAmount = await vToken.balanceOf(supplier.address);
const exchRateCurr = await vToken.callStatic.exchangeRateCurrent();
const vTokenRedeemAmount = SUPPLIED_AMOUNT.mul(parseUnits("1", 18)).div(exchRateCurr);
Expand Down Expand Up @@ -370,7 +370,7 @@ const test = (setup: () => Promise<TokenRedeemerFixture>) => () => {
).to.be.reverted;
});

it("should redeem and repay succesfully", async () => {
it("should redeem and repay successfully", async () => {
await vToken2.connect(borrower).borrow(BORROWED_AMOUNT);
const vTokenAmount = await vToken2.balanceOf(treasury.address);

Expand Down Expand Up @@ -691,15 +691,15 @@ const test = (setup: () => Promise<TokenRedeemerFixture>) => () => {
).to.be.revertedWith("Ownable: caller is not the owner");
});

it("repays one borrow succesfully", async () => {
it("repays one borrow successfully", async () => {
await vaiController.connect(borrower).mintVAI(BORROWED_AMOUNT);
await vai.mint(redeemer.address, BORROWED_AMOUNT);
expect(await vaiController.getVAIRepayAmount(borrower.address)).to.equal(BORROWED_AMOUNT);
await redeemer.connect(owner).batchRepayVAI(vaiController.address, [repayment], treasury.address);
expect(await vaiController.getVAIRepayAmount(borrower.address)).to.equal(0);
});

it("repays multiple borrows succesfully and transfers refund to treasury", async () => {
it("repays multiple borrows successfully and transfers refund to treasury", async () => {
for (const borrower of borrowers) {
await vaiController.connect(borrower).mintVAI(BORROWED_AMOUNT);
}
Expand Down

0 comments on commit eeec7cb

Please sign in to comment.