Skip to content

Commit

Permalink
fix: revert ETHDistributed event abi
Browse files Browse the repository at this point in the history
  • Loading branch information
folkyatina committed Jan 19, 2025
1 parent 5bca471 commit 28139c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/0.4.24/Lido.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/accounting.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
);
Expand Down

0 comments on commit 28139c8

Please sign in to comment.