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 7266cb9 commit b5d521d
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 @@ -205,11 +205,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 @@ -258,12 +253,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 @@ -380,12 +369,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 b5d521d

Please sign in to comment.