Skip to main content

VaultImmutables

Git Source

Author: StakeWise

Defines the Vault common immutable variables

State Variables

_keeper

Note: oz-upgrades-unsafe-allow: state-variable-immutable

address internal immutable _keeper;

_vaultsRegistry

Note: oz-upgrades-unsafe-allow: state-variable-immutable

address internal immutable _vaultsRegistry;

Functions

constructor

Constructor

Since the immutable variable value is stored in the bytecode, its value would be shared among all proxies pointing to a given contract instead of each proxy’s storage.

Note: oz-upgrades-unsafe-allow: constructor

constructor(address keeper, address vaultsRegistry);

Parameters

NameTypeDescription
keeperaddressThe address of the Keeper contract
vaultsRegistryaddressThe address of the VaultsRegistry contract

_checkHarvested

Internal method for checking whether the vault is harvested

function _checkHarvested() internal view;

_checkCollateralized

Internal method for checking whether the vault is collateralized

function _checkCollateralized() internal view;

_isCollateralized

Returns whether the vault is collateralized

function _isCollateralized() internal view returns (bool);

Returns

NameTypeDescription
<none>booltrue if the vault is collateralized