@@ -42,7 +42,7 @@ contract SlashEscrowFactory is Initializable, SlashEscrowFactoryStorage, Ownable
4242 ) external initializer {
4343 _transferOwnership (initialOwner);
4444 _setPausedStatus (initialPausedStatus);
45- _setGlobalBurnOrRedistributionDelay (initialGlobalDelayBlocks);
45+ _setGlobalEscrowDelay (initialGlobalDelayBlocks);
4646 }
4747
4848 /**
@@ -72,14 +72,14 @@ contract SlashEscrowFactory is Initializable, SlashEscrowFactoryStorage, Ownable
7272
7373 // Set the start block for the slash ID.
7474 _slashIdToStartBlock[operatorSet.key ()][slashId] = uint32 (block .number );
75- emit StartBurnOrRedistribution (operatorSet, slashId, strategy, uint32 (block .number ));
75+ emit StartEscrow (operatorSet, slashId, strategy, uint32 (block .number ));
7676 }
7777
7878 /// @inheritdoc ISlashEscrowFactory
7979 function releaseSlashEscrow (
8080 OperatorSet calldata operatorSet ,
8181 uint256 slashId
82- ) external virtual onlyWhenNotPaused (PAUSED_BURN_OR_REDISTRIBUTE_SHARES ) {
82+ ) external virtual onlyWhenNotPaused (PAUSED_RELEASE_ESCROW ) {
8383 address redistributionRecipient = allocationManager.getRedistributionRecipient (operatorSet);
8484
8585 // If the redistribution recipient is not the default burn address...
@@ -88,10 +88,10 @@ contract SlashEscrowFactory is Initializable, SlashEscrowFactoryStorage, Ownable
8888 }
8989
9090 // Assert that the slash ID is not paused
91- require (! isBurnOrRedistributionPaused (operatorSet, slashId), IPausable.CurrentlyPaused ());
91+ require (! isEscrowPaused (operatorSet, slashId), IPausable.CurrentlyPaused ());
9292
9393 // Assert that the escrow delay has elapsed
94- require (block .number >= getBurnOrRedistributionCompleteBlock (operatorSet, slashId), EscrowDelayNotElapsed ());
94+ require (block .number >= getEscrowCompleteBlock (operatorSet, slashId), EscrowDelayNotElapsed ());
9595
9696 // Calling `decreaseBurnOrRedistributableShares` will transfer the underlying tokens to the `SlashEscrow`.
9797 // NOTE: While `decreaseBurnOrRedistributableShares` may have already been called, we call it again to ensure that the
@@ -114,7 +114,7 @@ contract SlashEscrowFactory is Initializable, SlashEscrowFactoryStorage, Ownable
114114 address strategy = pendingStrategiesForSlashId.at (i - 1 );
115115
116116 // Burn or redistribute the underlying tokens for the strategy.
117- slashEscrow.burnOrRedistributeUnderlyingTokens (
117+ slashEscrow.releaseTokens (
118118 ISlashEscrowFactory (address (this )),
119119 slashEscrowImplementation,
120120 operatorSet,
@@ -125,7 +125,7 @@ contract SlashEscrowFactory is Initializable, SlashEscrowFactoryStorage, Ownable
125125
126126 // Remove the strategy and underlying amount from the pending burn or redistributions map.
127127 pendingStrategiesForSlashId.remove (strategy);
128- emit BurnOrRedistributionComplete (operatorSet, slashId, IStrategy (strategy), redistributionRecipient);
128+ emit EscrowComplete (operatorSet, slashId, IStrategy (strategy), redistributionRecipient);
129129 }
130130
131131 // Remove the slash ID from the pending slash IDs set.
@@ -161,17 +161,17 @@ contract SlashEscrowFactory is Initializable, SlashEscrowFactoryStorage, Ownable
161161 */
162162
163163 /// @inheritdoc ISlashEscrowFactory
164- function pauseRedistribution (OperatorSet calldata operatorSet , uint256 slashId ) external virtual onlyPauser {
164+ function pauseEscrow (OperatorSet calldata operatorSet , uint256 slashId ) external virtual onlyPauser {
165165 _checkNewPausedStatus (operatorSet, slashId, true );
166166 _paused[operatorSet.key ()][slashId] = true ;
167- emit RedistributionPaused (operatorSet, slashId);
167+ emit EscrowPaused (operatorSet, slashId);
168168 }
169169
170170 /// @inheritdoc ISlashEscrowFactory
171- function unpauseRedistribution (OperatorSet calldata operatorSet , uint256 slashId ) external virtual onlyUnpauser {
171+ function unpauseEscrow (OperatorSet calldata operatorSet , uint256 slashId ) external virtual onlyUnpauser {
172172 _checkNewPausedStatus (operatorSet, slashId, false );
173173 _paused[operatorSet.key ()][slashId] = false ;
174- emit RedistributionUnpaused (operatorSet, slashId);
174+ emit EscrowUnPaused (operatorSet, slashId);
175175 }
176176
177177 /**
@@ -181,28 +181,28 @@ contract SlashEscrowFactory is Initializable, SlashEscrowFactoryStorage, Ownable
181181 */
182182
183183 /// @inheritdoc ISlashEscrowFactory
184- function setGlobalBurnOrRedistributionDelay (
184+ function setGlobalEscrowDelay (
185185 uint32 delay
186186 ) external onlyOwner {
187- _setGlobalBurnOrRedistributionDelay (delay);
187+ _setGlobalEscrowDelay (delay);
188188 }
189189
190190 /// @inheritdoc ISlashEscrowFactory
191- function setStrategyBurnOrRedistributionDelay (IStrategy strategy , uint32 delay ) external onlyOwner {
192- _strategyBurnOrRedistributionDelayBlocks [address (strategy)] = delay;
193- emit StrategyBurnOrRedistributionDelaySet (strategy, delay);
191+ function setStrategyEscrowDelay (IStrategy strategy , uint32 delay ) external onlyOwner {
192+ _strategyEscrowDelayBlocks [address (strategy)] = delay;
193+ emit StrategyEscrowDelaySet (strategy, delay);
194194 }
195195
196196 /**
197197 *
198198 * HELPERS
199199 *
200200 */
201- function _setGlobalBurnOrRedistributionDelay (
201+ function _setGlobalEscrowDelay (
202202 uint32 delay
203203 ) internal {
204- _globalBurnOrRedistributionDelayBlocks = delay;
205- emit GlobalBurnOrRedistributionDelaySet (delay);
204+ _globalEscrowDelayBlocks = delay;
205+ emit GlobalEscrowDelaySet (delay);
206206 }
207207
208208 /// @notice Checks that the new paused status is not the same as the current paused status.
@@ -287,7 +287,7 @@ contract SlashEscrowFactory is Initializable, SlashEscrowFactoryStorage, Ownable
287287 // For each slashId, get the complete block.
288288 completeBlocks[i] = new uint32 [](slashIds[i].length );
289289 for (uint256 j = 0 ; j < slashIds[i].length ; j++ ) {
290- completeBlocks[i][j] = getBurnOrRedistributionCompleteBlock (operatorSets[i], slashIds[i][j]);
290+ completeBlocks[i][j] = getEscrowCompleteBlock (operatorSets[i], slashIds[i][j]);
291291 }
292292 }
293293 }
@@ -349,55 +349,46 @@ contract SlashEscrowFactory is Initializable, SlashEscrowFactoryStorage, Ownable
349349 }
350350
351351 /// @inheritdoc ISlashEscrowFactory
352- function isBurnOrRedistributionPaused (
353- OperatorSet calldata operatorSet ,
354- uint256 slashId
355- ) public view returns (bool ) {
352+ function isEscrowPaused (OperatorSet calldata operatorSet , uint256 slashId ) public view returns (bool ) {
356353 return _paused[operatorSet.key ()][slashId];
357354 }
358355
359356 /// @inheritdoc ISlashEscrowFactory
360- function getBurnOrRedistributionStartBlock (
361- OperatorSet memory operatorSet ,
362- uint256 slashId
363- ) public view returns (uint256 ) {
357+ function getEscrowStartBlock (OperatorSet memory operatorSet , uint256 slashId ) public view returns (uint256 ) {
364358 return _slashIdToStartBlock[operatorSet.key ()][slashId];
365359 }
366360
367361 /// @inheritdoc ISlashEscrowFactory
368- function getBurnOrRedistributionCompleteBlock (
369- OperatorSet memory operatorSet ,
370- uint256 slashId
371- ) public view returns (uint32 ) {
362+ function getEscrowCompleteBlock (OperatorSet memory operatorSet , uint256 slashId ) public view returns (uint32 ) {
372363 IStrategy[] memory strategies = getPendingStrategiesForSlashId (operatorSet, slashId);
373364
374365 // Loop through all strategies and return the max delay
375366 uint32 maxStrategyDelay;
376367 for (uint256 i = 0 ; i < strategies.length ; ++ i) {
377- uint32 delay = getStrategyBurnOrRedistributionDelay (IStrategy (address (strategies[i])));
368+ uint32 delay = getStrategyEscrowDelay (IStrategy (address (strategies[i])));
378369 if (delay > maxStrategyDelay) {
379370 maxStrategyDelay = delay;
380371 }
381372 }
382373
383374 // The escrow can be released once the max strategy delay has elapsed.
384- return uint32 (getBurnOrRedistributionStartBlock (operatorSet, slashId) + maxStrategyDelay + 1 );
375+ return uint32 (getEscrowStartBlock (operatorSet, slashId) + maxStrategyDelay + 1 );
385376 }
386377
387378 /// @inheritdoc ISlashEscrowFactory
388- function getStrategyBurnOrRedistributionDelay (
379+ function getStrategyEscrowDelay (
389380 IStrategy strategy
390381 ) public view returns (uint32 ) {
391- uint32 globalDelay = _globalBurnOrRedistributionDelayBlocks ;
392- uint32 strategyDelay = _strategyBurnOrRedistributionDelayBlocks [address (strategy)];
382+ uint32 globalDelay = _globalEscrowDelayBlocks ;
383+ uint32 strategyDelay = _strategyEscrowDelayBlocks [address (strategy)];
393384
394385 // Return whichever delay is greater.
395386 return strategyDelay > globalDelay ? strategyDelay : globalDelay;
396387 }
397388
398389 /// @inheritdoc ISlashEscrowFactory
399- function getGlobalBurnOrRedistributionDelay () external view returns (uint32 ) {
400- return _globalBurnOrRedistributionDelayBlocks ;
390+ function getGlobalEscrowDelay () external view returns (uint32 ) {
391+ return _globalEscrowDelayBlocks ;
401392 }
402393
403394 /// @inheritdoc ISlashEscrowFactory
0 commit comments