LidoAdapterStorage
ERC-7201 namespaced storage for the Lido staking (buffer-model) adapter.
Note:
- storage-location: erc7201:lattice.storage.LidoAdapter
struct LidoAdapterStorage {
/// @dev WETH — the adapter's asset and idle buffer (the synchronous withdraw is served from it).
address _weth;
/// @dev Lido stETH token (`submit` mints it; an intermediate hop, always wrapped immediately).
address _lido;
/// @dev wstETH wrapper the staked position is held as (non-rebasing; yield via its rising rate).
address _wstETH;
/// @dev Lido withdrawal queue the slow async-exit leg routes through.
address _withdrawalQueue;
/// @dev The Lattice vault funds are returned to on withdraw/emergency.
address _vault;
/// @dev Reward recipient for stray-token sweeps (Lido has no claimable reward token).
address _rewardRecipient;
/// @dev Total stETH currently locked across all pending (unclaimed) withdrawal requests. Counted
/// in NAV so funds in-flight through the queue are not lost from accounting.
uint256 _pendingAssets;
/// @dev Set of pending Lido withdrawal-request ids (added on request, removed on claim).
EnumerableSet.UintSet _pendingRequests;
/// @dev Per-request stETH amount, used to decrement `_pendingAssets` on claim.
mapping(uint256 => uint256) _requestAssets;
/// @dev Authorized operator: the SOLE caller permitted to invoke `deploy`/`withdraw`/`harvest`
/// (the StrategyManager in the live system). Zero until wired ⇒ that trio reverts.
/// APPENDED last (append-only ERC-7201 rule — never reorder/insert).
address _operator;
}Properties
| Name | Type | Description |
|---|---|---|
| _weth | address | |
| _lido | address | |
| _wstETH | address | |
| _withdrawalQueue | address | |
| _vault | address | |
| _rewardRecipient | address | |
| _pendingAssets | uint256 | |
| _pendingRequests | EnumerableSet.UintSet | |
| _requestAssets | mapping(uint256 => uint256) | |
| _operator | address |