Skip to content
Lattice

StrategyManagerStorage

Git Source

Storage struct for StrategyManager module.

Note:

  • storage-location: erc7201:lattice.storage.StrategyManager
struct StrategyManagerStorage {
    address _vault;
    address[] _strategies;
    mapping(address strategy => uint16 targetBps) _targets;
    /// @dev 1-based index into `_strategies` array. 0 means not registered.
    mapping(address strategy => uint256 strategyIndex) _strategyIndex;
    uint256 _totalTargetBps;
    /// @dev Set by a force removal, cleared by the admin (#270). While set, the vault's deposits stay closed.
    bool _depositsLatched;
}

Properties

NameTypeDescription
_vaultaddress
_strategiesaddress[]
_targetsmapping(address strategy => uint16 targetBps)
_strategyIndexmapping(address strategy => uint256 strategyIndex)
_totalTargetBpsuint256
_depositsLatchedbool