VeRegistry
Inherits: Ownable
veYFI holders will vote for gauge allocation to vault tokens.
State Variables
veToken
address public veToken;
yfi
address public immutable yfi;
veYfiRewardPool
address public immutable veYfiRewardPool;
gaugefactory
address public immutable gaugefactory;
_vaults
EnumerableSet.AddressSet private _vaults;
gauges
mapping(address => address) public gauges;
vaultForGauge
mapping(address => address) public vaultForGauge;
isGauge
mapping(address => bool) public isGauge;
Functions
constructor
constructor(address _ve, address _yfi, address _gaugefactory, address _veYfiRewardPool) Ownable();
setVe
Set the veYFI token address.
function setVe(address _veToken) external onlyOwner;
Parameters
Name | Type | Description |
---|---|---|
_veToken | address | the new address of the veYFI token |
getVaults
function getVaults() external view returns (address[] memory);
Returns
Name | Type | Description |
---|---|---|
<none> | address[] | address[] list of vaults with gauge that are possible to vote for. |
addVaultToRewards
Add a vault to the list of vaults that receives rewards.
function addVaultToRewards(address _vault, address _owner) external onlyOwner returns (address);
Parameters
Name | Type | Description |
---|---|---|
_vault | address | vault address |
_owner | address | owner. |
removeVaultFromRewards
Remove a vault from the list of vaults receiving rewards.
function removeVaultFromRewards(address _vault) external onlyOwner;
Parameters
Name | Type | Description |
---|---|---|
_vault | address | vault address |
Events
VaultAdded
event VaultAdded(address indexed vault);
VaultRemoved
event VaultRemoved(address indexed vault);
UpdatedVeToken
event UpdatedVeToken(address indexed ve);