@@ -81,9 +81,6 @@ contract Burner is IBurner, AccessControlEnumerable, Versioned {
8181
8282 uint256 totalCoverSharesBurnt;
8383 uint256 totalNonCoverSharesBurnt;
84-
85- uint256 redeemSharesBurnRequested;
86- uint256 totalRedeemSharesBurnt;
8784 }
8885
8986 /// @custom:storage-location erc7201:Lido.Core.Burner.IsMigrationAllowed-v3Upgrade
@@ -119,16 +116,6 @@ contract Burner is IBurner, AccessControlEnumerable, Versioned {
119116 */
120117 event StETHBurnt (bool indexed isCover , uint256 amountOfStETH , uint256 amountOfShares );
121118
122- /**
123- * Emitted when a new redeem burn request is added.
124- */
125- event RedeemStETHBurnRequested (address indexed requestedBy , uint256 amountOfStETH , uint256 amountOfShares );
126-
127- /**
128- * Emitted when redeem shares are burnt.
129- */
130- event RedeemStETHBurnt (uint256 amountOfStETH , uint256 amountOfShares );
131-
132119 /**
133120 * Emitted when the excessive stETH `amount` (corresponding to `amountOfShares` shares) recovered (i.e. transferred)
134121 * to the Lido treasure address by `requestedBy` sender.
@@ -195,7 +182,7 @@ contract Burner is IBurner, AccessControlEnumerable, Versioned {
195182 Storage storage $ = _storage ();
196183 $.totalCoverSharesBurnt = oldBurner.getCoverSharesBurnt ();
197184 $.totalNonCoverSharesBurnt = oldBurner.getNonCoverSharesBurnt ();
198- (uint256 coverShares , uint256 nonCoverShares , ) = oldBurner.getSharesRequestedToBurn ();
185+ (uint256 coverShares , uint256 nonCoverShares ) = oldBurner.getSharesRequestedToBurn ();
199186 $.coverSharesBurnRequested = coverShares;
200187 $.nonCoverSharesBurnRequested = nonCoverShares;
201188 }
@@ -293,29 +280,6 @@ contract Burner is IBurner, AccessControlEnumerable, Versioned {
293280 _requestBurn (_sharesAmountToBurn, stETHAmount, false /* _isCover */ );
294281 }
295282
296- /**
297- * @notice BE CAREFUL, the provided stETH shares will be burnt permanently.
298- *
299- * Transfers `_sharesAmountToBurn` stETH shares from `_from` and irreversibly locks these
300- * on the burner contract address. Marks the shares amount for burning on the isolated
301- * redeem track (burned outside the rebase limiter).
302- *
303- * @param _from address to transfer shares from
304- * @param _sharesAmountToBurn stETH shares to burn
305- */
306- function requestBurnSharesForRedeem (
307- address _from ,
308- uint256 _sharesAmountToBurn
309- ) external onlyRole (REQUEST_BURN_SHARES_ROLE) {
310- if (_sharesAmountToBurn == 0 ) revert ZeroBurnAmount ();
311-
312- uint256 stETHAmount = LIDO.transferSharesFrom (_from, address (this ), _sharesAmountToBurn);
313-
314- emit RedeemStETHBurnRequested (msg .sender , stETHAmount, _sharesAmountToBurn);
315-
316- _storage ().redeemSharesBurnRequested += _sharesAmountToBurn;
317- }
318-
319283 /**
320284 * Transfers the excess stETH amount (e.g. belonging to the burner contract address
321285 * but not marked for burning) to the Lido treasury address set upon the
@@ -428,35 +392,6 @@ contract Burner is IBurner, AccessControlEnumerable, Versioned {
428392 assert (sharesToBurnNow == _sharesToBurn);
429393 }
430394
431- /**
432- * Commit all pending redeem shares to burn. Burns everything — no budget argument.
433- *
434- * Redeem shares are burned outside the rebase limiter (rate-neutral),
435- * so they are always fully burned on each oracle report.
436- *
437- * Increments `totalRedeemSharesBurnt` counter.
438- * Resets `redeemSharesBurnRequested` counter.
439- * Does nothing if zero shares are pending.
440- */
441- function commitRedeemSharesToBurn () external virtual override {
442- if (msg .sender != LOCATOR.accounting ()) revert AppAuthFailed ();
443-
444- Storage storage $ = _storage ();
445- uint256 redeemShares = $.redeemSharesBurnRequested;
446-
447- if (redeemShares == 0 ) {
448- return ;
449- }
450-
451- $.redeemSharesBurnRequested = 0 ;
452- $.totalRedeemSharesBurnt += redeemShares;
453-
454- uint256 stETHAmount = LIDO.getPooledEthByShares (redeemShares);
455- emit RedeemStETHBurnt (stETHAmount, redeemShares);
456-
457- LIDO.burnShares (redeemShares);
458- }
459-
460395 /**
461396 * Returns the current amount of shares locked on the contract to be burnt.
462397 */
@@ -465,12 +400,11 @@ contract Burner is IBurner, AccessControlEnumerable, Versioned {
465400 view
466401 virtual
467402 override
468- returns (uint256 coverShares , uint256 nonCoverShares , uint256 redeemShares )
403+ returns (uint256 coverShares , uint256 nonCoverShares )
469404 {
470405 Storage storage $ = _storage ();
471406 coverShares = $.coverSharesBurnRequested;
472407 nonCoverShares = $.nonCoverSharesBurnRequested;
473- redeemShares = $.redeemSharesBurnRequested;
474408 }
475409
476410 /**
@@ -487,20 +421,6 @@ contract Burner is IBurner, AccessControlEnumerable, Versioned {
487421 return _storage ().totalNonCoverSharesBurnt;
488422 }
489423
490- /**
491- * Returns the current amount of redeem shares locked on the contract to be burnt.
492- */
493- function getRedeemSharesRequestedToBurn () external view virtual override returns (uint256 ) {
494- return _storage ().redeemSharesBurnRequested;
495- }
496-
497- /**
498- * Returns the total redeem shares ever burnt.
499- */
500- function getRedeemSharesBurnt () external view virtual override returns (uint256 ) {
501- return _storage ().totalRedeemSharesBurnt;
502- }
503-
504424 /**
505425 * Returns the stETH amount belonging to the burner contract address but not marked for burning.
506426 */
@@ -510,9 +430,7 @@ contract Burner is IBurner, AccessControlEnumerable, Versioned {
510430
511431 function _getExcessStETHShares () internal view returns (uint256 ) {
512432 Storage storage $ = _storage ();
513- uint256 sharesBurnRequested = $.coverSharesBurnRequested
514- + $.nonCoverSharesBurnRequested
515- + $.redeemSharesBurnRequested;
433+ uint256 sharesBurnRequested = ($.coverSharesBurnRequested + $.nonCoverSharesBurnRequested);
516434 uint256 totalShares = LIDO.sharesOf (address (this ));
517435
518436 // sanity check, don't revert
0 commit comments