Skip to main content

VohmVault

Policy to mint and burn VOTES to arbitrary addresses

Methods

VESTING_PERIOD

function VESTING_PERIOD() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

VOTES

function VOTES() external view returns (contract VOTESv1)

Returns

NameTypeDescription
_0contract VOTESv1undefined

changeKernel

function changeKernel(contract Kernel newKernel_) external nonpayable

Function used by kernel when migrating to a new kernel.

Parameters

NameTypeDescription
newKernel_contract Kernelundefined

configureDependencies

function configureDependencies() external nonpayable returns (Keycode[] dependencies)

Define module dependencies for this policy.

Returns

NameTypeDescription
dependenciesKeycode[]- Keycode array of module dependencies.

deposit

function deposit(uint256 assets_) external nonpayable

Parameters

NameTypeDescription
assets_uint256undefined

gOHM

function gOHM() external view returns (contract ERC20)

Returns

NameTypeDescription
_0contract ERC20undefined

isActive

function isActive() external view returns (bool)

Easily accessible indicator for if a policy is activated or not.

Returns

NameTypeDescription
_0boolundefined

kernel

function kernel() external view returns (contract Kernel)

Returns

NameTypeDescription
_0contract Kernelundefined

mint

function mint(uint256 shares_) external nonpayable

Parameters

NameTypeDescription
shares_uint256undefined

redeem

function redeem(uint256 shares_) external nonpayable

Parameters

NameTypeDescription
shares_uint256undefined

requestPermissions

function requestPermissions() external view returns (struct Permissions[] permissions)

Function called by kernel to set module function permissions.

Returns

NameTypeDescription
permissionsPermissions[]- Array of keycodes and function selectors for requested permissions.

withdraw

function withdraw(uint256 assets_) external nonpayable

Parameters

NameTypeDescription
assets_uint256undefined

Errors

KernelAdapter_OnlyKernel

error KernelAdapter_OnlyKernel(address caller_)

Parameters

NameTypeDescription
caller_addressundefined

Policy_ModuleDoesNotExist

error Policy_ModuleDoesNotExist(Keycode keycode_)

Parameters

NameTypeDescription
keycode_Keycodeundefined

VohmVault_NotVested

error VohmVault_NotVested()