Skip to content

Commit

Permalink
Merge pull request #175 from lidofinance/fix/var-names
Browse files Browse the repository at this point in the history
Audit fix: Variable Names
  • Loading branch information
bulbozaur authored Nov 11, 2024
2 parents 3f3702d + d157dfa commit 476fcfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions contracts/Escrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,15 @@ contract Escrow is IEscrow {

/// @notice Unlocks all previously locked stETH and wstETH tokens, returning them in the form of wstETH tokens.
/// This action decreases the rage quit support proportionally to the number of unlocked wstETH shares.
/// @return unlockedStETHShares The total number of wstETH shares unlocked from the Escrow.
function unlockWstETH() external returns (uint256 unlockedStETHShares) {
/// @return wstETHUnlocked The total number of wstETH shares unlocked from the Escrow.
function unlockWstETH() external returns (uint256 wstETHUnlocked) {
DUAL_GOVERNANCE.activateNextState();
_escrowState.checkSignallingEscrow();
_accounting.checkMinAssetsLockDurationPassed(msg.sender, _escrowState.minAssetsLockDuration);

SharesValue wstETHUnlocked = _accounting.accountStETHSharesUnlock(msg.sender);
unlockedStETHShares = WST_ETH.wrap(ST_ETH.getPooledEthByShares(wstETHUnlocked.toUint256()));
WST_ETH.transfer(msg.sender, unlockedStETHShares);
SharesValue unlockedStETHShares = _accounting.accountStETHSharesUnlock(msg.sender);
wstETHUnlocked = WST_ETH.wrap(ST_ETH.getPooledEthByShares(unlockedStETHShares.toUint256()));
WST_ETH.transfer(msg.sender, wstETHUnlocked);

DUAL_GOVERNANCE.activateNextState();
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/EscrowState.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ library EscrowState {
event EscrowStateChanged(State indexed from, State indexed to);
event RageQuitExtensionPeriodStarted(Timestamp startedAt);
event MinAssetsLockDurationSet(Duration newAssetsLockDuration);
event RageQuitStarted(Duration rageQuitExtensionDuration, Duration rageQuitEthWithdrawalsDelay);
event RageQuitStarted(Duration rageQuitExtensionPeriodDuration, Duration rageQuitEthWithdrawalsDelay);

// ---
// Data Types
Expand Down

0 comments on commit 476fcfe

Please sign in to comment.