Skip to content
Lattice

CompoundV3AdapterStorage

Git Source

ERC-7201 namespaced storage for the Compound v3 (Comet) supply adapter.

Note:

  • storage-location: erc7201:lattice.storage.CompoundV3Adapter
struct CompoundV3AdapterStorage {
    /// @dev The Comet market this adapter supplies to.
    address _comet;
    /// @dev The underlying base asset (== Comet base token == vault asset).
    address _asset;
    /// @dev The vault funds are returned to on withdraw/emergency.
    address _vault;
    /// @dev Reward recipient for raw-forwarded COMP.
    address _rewardRecipient;
    /// @dev The CometRewards controller; `harvest()` claims COMP from it.
    address _cometRewards;
    /// @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
_cometaddress
_assetaddress
_vaultaddress
_rewardRecipientaddress
_cometRewardsaddress
_operatoraddress