-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
According to my observations on the stakeUpdated transactions on the sepolia testnet staking contract (v0.9.2-rc7), it seems that StakeUpdated events are only emitted for invocations that change the stake amount. However, if the height is changed, the effective stake of the node is also affected. The suppression of this event makes actual event-log-based stake tracking impossible.
storage-incentives/src/Staking.sol
Lines 150 to 160 in 9c96668
| if (_addAmount > 0) { | |
| if (!ERC20(bzzToken).transferFrom(msg.sender, address(this), _addAmount)) revert TransferFailed(); | |
| emit StakeUpdated( | |
| msg.sender, | |
| updatedCommittedStake, | |
| updatedPotentialStake, | |
| _newOverlay, | |
| block.number, | |
| _height | |
| ); | |
| } |
NoLogs: https://sepolia.etherscan.io/tx/0xfbad8fc68e0651191086a9583768472b10b8eba4ee718f02e4099af9e594e435
vs
WithLogs: https://sepolia.etherscan.io/tx/0x43be676c04c0fcf18496b3452c1fdff8877c22d797c20d04fc186193fa9e5132
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels