From 684e180402acde9d02a2363bd42edf769778e2bd Mon Sep 17 00:00:00 2001 From: Aleksandr Tarelkin Date: Thu, 7 Nov 2024 15:26:24 +0300 Subject: [PATCH 1/2] fix: rename rageQuitExtensionDuration --- contracts/libraries/EscrowState.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/libraries/EscrowState.sol b/contracts/libraries/EscrowState.sol index 84d8ec14..605192c1 100644 --- a/contracts/libraries/EscrowState.sol +++ b/contracts/libraries/EscrowState.sol @@ -38,7 +38,7 @@ library EscrowState { event EscrowStateChanged(State from, State to); event RageQuitExtensionPeriodStarted(Timestamp startedAt); event MinAssetsLockDurationSet(Duration newAssetsLockDuration); - event RageQuitStarted(Duration rageQuitExtensionDuration, Duration rageQuitEthWithdrawalsDelay); + event RageQuitStarted(Duration rageQuitExtensionPeriodDuration, Duration rageQuitEthWithdrawalsDelay); /// @notice Stores the context of the state of the Escrow instance /// @param state The current state of the Escrow instance From d157dfa9095686ae872b5975b431fd5eb0835dc1 Mon Sep 17 00:00:00 2001 From: Aleksandr Tarelkin Date: Thu, 7 Nov 2024 15:42:00 +0300 Subject: [PATCH 2/2] fix: rename unlockedStETHShares and wstETHUnlocked --- contracts/Escrow.sol | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contracts/Escrow.sol b/contracts/Escrow.sol index 24fd9130..fc00d256 100644 --- a/contracts/Escrow.sol +++ b/contracts/Escrow.sol @@ -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(); }