Skip to content
Lattice

AaveV3AdapterStorage

Git Source

ERC-7201 namespaced storage for the Aave v3 adapter.

Note:

  • storage-location: erc7201:lattice.storage.AaveV3Adapter
struct AaveV3AdapterStorage {
    /// @dev Aave PoolAddressesProvider; the Pool is re-resolved from this on every call.
    address _provider;
    /// @dev The underlying asset this adapter supplies/borrows (== vault asset).
    address _asset;
    /// @dev The vault funds are returned to on withdraw/emergency.
    address _vault;
    /// @dev Reward recipient for raw-forwarded incentive tokens.
    address _rewardRecipient;
    /// @dev Legacy Chainlink feed key (in the Lattice ChainlinkAdapter) for the asset/USD price.
    ///      NO LONGER consumed by the net-equity valuation — leverage NAV is now priced by Aave's OWN
    ///      oracle for self-consistency (see `_netEquityAssets`). Retained for append-only storage
    ///      safety; still written at init. Unused elsewhere; a future migration may drop it.
    bytes32 _assetUsdFeedKey;
    /// @dev Minimum health factor (WAD). Lever/deploy must not push HF below this.
    uint256 _minHealthFactorWad;
    /// @dev Current eMode category set on the Pool (cached for views).
    uint8 _eModeCategory;
    /// @dev Aave rewards controller; `harvest()` claims incentives for the aToken from it.
    address _rewardsController;
    /// @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
_provideraddress
_assetaddress
_vaultaddress
_rewardRecipientaddress
_assetUsdFeedKeybytes32
_minHealthFactorWaduint256
_eModeCategoryuint8
_rewardsControlleraddress
_operatoraddress