Skip to main content

BLREGv1

Git Source

Inherits: Module

Olympus Boosted Liquidity Vault Registry (Module) Contract

The Olympus Boosted Liquidity Vault Registry Module tracks the boosted liquidity vaults that are approved to be used by the Olympus protocol. This allows for a single-soure of truth for reporting purposes around total OHM deployed and net emissions.

State Variables

activeVaultCount

Count of active vaults

This is a useless variable in contracts but useful for any frontends or off-chain requests where the array is not easily accessible.

uint256 public activeVaultCount;

activeVaults

Tracks all active vaults

address[] public activeVaults;

Functions

addVault

Adds an vault to the registry

function addVault(address vault_) external virtual;

Parameters

NameTypeDescription
vault_addressThe address of the vault to add

removeVault

Removes an vault from the registry

function removeVault(address vault_) external virtual;

Parameters

NameTypeDescription
vault_addressThe address of the vault to remove

Events

VaultAdded

event VaultAdded(address indexed vault);

VaultRemoved

event VaultRemoved(address indexed vault);