Registry
newVaultRelease
newVaultRelease
Checks the id of vault release and the api versions, after which adds the vault to all the vault releases.
Parameters:
Name | Type | Description |
---|---|---|
vault | address | Address of a new vault released |
Events emitted:
NewVaultRelease
_newProxyVault
_newProxyVault
Checks the vault release target, deploys vault release proxy (owned by proxy admin) and initializes vault.
Parameters:
Name | Type | Description |
---|---|---|
token | address | Token address of a new vault |
governance | address | Governance address |
targetDecimals | uint256 | Target decimals for a new vault |
vault_release_target | uint256 | Target address for deploying vault’s proxy |
Return value:
Type | Description |
---|---|
address | Vault’s proxy address |
_registerVault
_registerVault
Checks the vault id and the api version, after which adds new vault and its token to all the vaults and registers the token if not already registered.
Parameters:
Name | Type | Description |
---|---|---|
token | address | Token address of the vault |
vault | address | Vault’s address |
Events emitted:
NewVault
newVault
newVault
Creates new proxy vault with all the necessary data and registers that new vault and its token.
Parameters:
Name | Type | Description |
---|---|---|
token | address | Token address of the new vault |
targetDecimals | uint256 | Target decimals value |
vaultReleaseDelta | uint256 | Value used for calculating vault release target |
Return value:
Type | Description |
---|---|
address | New vault’s address |
newExperimentalVault
newExperimentalVault
Creates new proxy vault with all the necessary data.
Parameters:
Name | Type | Description |
---|---|---|
token | address | Token’s address of the vault |
governance | address | Vault’s governance address |
targetDecimals | uint256 | Target decimals value |
vaultReleaseDelta | uint256 | Value used for calculating vault release target |
Return value:
Type | Description |
---|---|
address | New proxy vault’s address |
Events emitted:
NewExperimentalVault
endorseVault
endorseVault
Checks the vault governance and vault api version, after which it registers the vault.
Parameters:
Name | Type | Description |
---|---|---|
vault | address | Vault’s address |
vaultReleaseDelta | address | Value used for calculating vault release target |
tagVault
tagVault
Adds tag to specified vault.
Parameters:
Name | Type | Description |
---|---|---|
vault | address | Vault’s address |
tag | "string" memory | Vault’s tag |
Events emitted:
VaultTagged
Last updated