From 5ee67ae39803c63e12ec9f99ebe5390a2879f604 Mon Sep 17 00:00:00 2001 From: Aleksei Potapkin Date: Wed, 15 Jan 2025 21:46:28 +0200 Subject: [PATCH] chore: added a comment about denominator greater than zero --- contracts/0.4.24/Lido.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/0.4.24/Lido.sol b/contracts/0.4.24/Lido.sol index 4668bff76..2194052c4 100644 --- a/contracts/0.4.24/Lido.sol +++ b/contracts/0.4.24/Lido.sol @@ -196,7 +196,7 @@ contract Lido is Versioned, StETHPermit, AragonApp { * @param _eip712StETH eip712 helper contract for StETH */ function initialize(address _lidoLocator, address _eip712StETH) public payable onlyInit { - _bootstrapInitialHolder(); + _bootstrapInitialHolder(); // stone in the elevator LIDO_LOCATOR_POSITION.setStorageAddress(_lidoLocator); emit LidoLocatorSet(_lidoLocator); @@ -958,7 +958,7 @@ contract Lido is Versioned, StETHPermit, AragonApp { /// @dev the denominator (in shares) of the share rate for StETH conversion between shares and ether and vice versa. function _getShareRateDenominator() internal view returns (uint256) { uint256 externalShares = EXTERNAL_SHARES_POSITION.getStorageUint256(); - uint256 internalShares = _getTotalShares() - externalShares; + uint256 internalShares = _getTotalShares() - externalShares; // never 0 because of the stone in the elevator return internalShares; }