From 28139c8cece6fa4d37fa78b625e174d4cbb85c5c Mon Sep 17 00:00:00 2001 From: Aleksei Potapkin Date: Sun, 19 Jan 2025 14:20:17 +0200 Subject: [PATCH] fix: revert ETHDistributed event abi --- contracts/0.4.24/Lido.sol | 4 ++-- test/integration/accounting.integration.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/0.4.24/Lido.sol b/contracts/0.4.24/Lido.sol index 2194052c4..77a9337c9 100644 --- a/contracts/0.4.24/Lido.sol +++ b/contracts/0.4.24/Lido.sol @@ -137,11 +137,11 @@ contract Lido is Versioned, StETHPermit, AragonApp { event DepositedValidatorsChanged(uint256 depositedValidators); // Emitted when oracle accounting report processed - // @dev `principalCLBalance` is the balance of the validators on previous report + // @dev `preClBalance` is the balance of the validators on previous report // plus the amount of ether that was deposited to the deposit contract since then event ETHDistributed( uint256 indexed reportTimestamp, - uint256 principalCLBalance, // preClBalance + deposits + uint256 preClBalance, // actually its preClBalance + deposits due to compatibility reasons uint256 postCLBalance, uint256 withdrawalsWithdrawn, uint256 executionLayerRewardsWithdrawn, diff --git a/test/integration/accounting.integration.ts b/test/integration/accounting.integration.ts index 395f1cb01..82fa3ac05 100644 --- a/test/integration/accounting.integration.ts +++ b/test/integration/accounting.integration.ts @@ -249,7 +249,7 @@ describe("Integration: Accounting", () => { expect(sharesRateAfter).to.be.lessThan(sharesRateBefore); const ethDistributedEvent = ctx.getEvents(reportTxReceipt, "ETHDistributed"); - expect(ethDistributedEvent[0].args.principalCLBalance + REBASE_AMOUNT).to.equal( + expect(ethDistributedEvent[0].args.preClBalance + REBASE_AMOUNT).to.equal( ethDistributedEvent[0].args.postCLBalance, "ETHDistributed: CL balance differs from expected", );