Skip to content

Commit

Permalink
fix: remove PostTotalShares event checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tamtamchik committed Oct 14, 2024
1 parent ba3c50e commit 7dea205
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions test/integration/accounting.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,6 @@ describe("Accounting", () => {
const { sharesRateBefore, sharesRateAfter } = shareRateFromEvent(tokenRebasedEvent[0]);
expect(sharesRateBefore).to.be.lessThanOrEqual(sharesRateAfter);

const postTotalSharesEvent = ctx.getEvents(reportTxReceipt, "PostTotalShares");
expect(postTotalSharesEvent[0].args.preTotalPooledEther).to.equal(
postTotalSharesEvent[0].args.postTotalPooledEther + amountOfETHLocked,
);

const ethBalanceAfter = await ethers.provider.getBalance(lido.address);
expect(ethBalanceBefore).to.equal(ethBalanceAfter + amountOfETHLocked);
});
Expand Down Expand Up @@ -260,12 +255,6 @@ describe("Accounting", () => {
ethDistributedEvent[0].args.postCLBalance,
"ETHDistributed: CL balance differs from expected",
);

const postTotalSharesEvent = ctx.getEvents(reportTxReceipt, "PostTotalShares");
expect(postTotalSharesEvent[0].args.preTotalPooledEther + REBASE_AMOUNT).to.equal(
postTotalSharesEvent[0].args.postTotalPooledEther + amountOfETHLocked,
"PostTotalShares: TotalPooledEther differs from expected",
);
});

it("Should account correctly with positive CL rebase close to the limits", async () => {
Expand Down Expand Up @@ -382,12 +371,6 @@ describe("Accounting", () => {
ethDistributedEvent[0].args.postCLBalance,
"ETHDistributed: CL balance has not increased",
);

const postTotalSharesEvent = ctx.getEvents(reportTxReceipt, "PostTotalShares");
expect(postTotalSharesEvent[0].args.preTotalPooledEther + rebaseAmount).to.equal(
postTotalSharesEvent[0].args.postTotalPooledEther + amountOfETHLocked,
"PostTotalShares: TotalPooledEther has not increased",
);
});

it("Should account correctly if no EL rewards", async () => {
Expand Down

0 comments on commit 7dea205

Please sign in to comment.