Skip to content
Lattice

CurveStableSwapAdapterStorage

Git Source

ERC-7201 namespaced storage for the Curve StableSwap single-sided LP adapter.

Note:

  • storage-location: erc7201:lattice.storage.CurveStableSwapAdapter
struct CurveStableSwapAdapterStorage {
    /// @dev The Curve StableSwap pool (2-coin) this adapter LPs into.
    address _pool;
    /// @dev The pool's LP token (held loose or staked in the gauge).
    address _lpToken;
    /// @dev Optional staking gauge; address(0) means the adapter holds LP unstaked.
    address _gauge;
    /// @dev The underlying asset supplied/withdrawn single-sided (== pool coin at `_coinIndex`).
    address _asset;
    /// @dev The Lattice vault funds are returned to on withdraw/emergency.
    address _vault;
    /// @dev Reward recipient for raw-forwarded CRV (+ gauge extras).
    address _rewardRecipient;
    /// @dev The CRV (primary gauge reward) token forwarded raw on harvest; address(0) == none.
    address _crvToken;
    /// @dev The pool coin index `_asset` occupies (0 or 1 for a 2-coin pool).
    int128 _coinIndex;
    /// @dev Slippage tolerance in basis points applied to add/remove min-out 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
_pooladdress
_lpTokenaddress
_gaugeaddress
_assetaddress
_vaultaddress
_rewardRecipientaddress
_crvTokenaddress
_coinIndexint128
_slippageBpsuint256
_operatoraddress