Skip to content

Commit

Permalink
chore: added a comment about denominator greater than zero
Browse files Browse the repository at this point in the history
  • Loading branch information
folkyatina committed Jan 15, 2025
1 parent 5904609 commit 5ee67ae
Showing 1 changed file with 2 additions and 2 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 @@ -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);
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 5ee67ae

Please sign in to comment.