Skip to content

Commit

Permalink
test: remove test for negativ rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-ux committed Jul 5, 2024
1 parent afdccc1 commit 4a12161
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions contracts/test/token/woeth.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,6 @@ describe("WOETH", function () {
await expect(woeth).to.have.approxBalanceOf("150", oeth);
await expect(woeth).to.have.a.totalSupply("50");
});
it("should decrease with an OETH negative rebase", async () => {
await expect(woeth).to.have.approxBalanceOf("100", oeth);
await expect(woeth).to.have.a.totalSupply("50");
await expect(oeth).to.have.a.totalSupply("400");
// simulate a negative rebase of 1/4 of the supply.
await oeth
.connect(await impersonateAndFund(oethVault.address))
.changeSupply(oethUnits("300"));
await expect(oeth).to.have.a.totalSupply("300");
await expect(woeth).to.have.a.totalSupply("50"); // same total supply
await expect(woeth).to.have.approxBalanceOf("75", oeth); // 25% less than before
});
it("should not increase exchange rate when OETH is transferred to the contract", async () => {
await expect(woeth).to.have.a.totalSupply("50");
await expect(woeth).to.have.approxBalanceOf("100", oeth);
Expand Down

0 comments on commit 4a12161

Please sign in to comment.