Skip to content
Lattice

UniswapV3AdapterStorage

Git Source

ERC-7201 namespaced storage for the full-range Uniswap V3 LP adapter.

Note:

  • storage-location: erc7201:lattice.storage.UniswapV3Adapter
struct UniswapV3AdapterStorage {
    /// @dev The Uniswap V3 NonfungiblePositionManager (custodies the position NFT).
    address _positionManager;
    /// @dev The Uniswap V3 pool this adapter LPs into.
    address _pool;
    /// @dev The pool's token0 (== the adapter's `asset`, the vault-facing accounting token).
    address _token0;
    /// @dev The pool's token1 (supplied by the keeper, never swapped).
    address _token1;
    /// @dev The Lattice vault funds are returned to on emergency exit.
    address _vault;
    /// @dev Reward recipient for collected fees (token0 + token1) and routed leftover token1.
    address _rewardRecipient;
    /// @dev The position NFT id; 0 means no position has been minted yet.
    uint256 _tokenId;
    /// @dev TWAP observation window (seconds) for `pool.observe`-based valuation.
    uint32 _twapWindow;
    /// @dev The pool fee tier (hundredths of a bip).
    uint24 _fee;
    /// @dev Full-range lower tick (min usable tick aligned to tickSpacing), cached at init.
    int24 _tickLower;
    /// @dev Full-range upper tick (max usable tick aligned to tickSpacing), cached at init.
    int24 _tickUpper;
    /// @dev Slippage tolerance in basis points applied to add/remove min-amount floors.
    uint256 _slippageBps;
    /// @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

NameTypeDescription
_positionManageraddress
_pooladdress
_token0address
_token1address
_vaultaddress
_rewardRecipientaddress
_tokenIduint256
_twapWindowuint32
_feeuint24
_tickLowerint24
_tickUpperint24
_slippageBpsuint256
_operatoraddress