AeraVaultModulesFactory
AeraVaultModulesFactory
Inherits: IAeraVaultAssetRegistryFactory, IAeraVaultHooksFactory, Sweepable
Used to create new asset registry and hooks.
Only one instance of the factory will be required per chain.
State Variables
v2Factory
The address of the v2 factory.
wrappedNativeToken
Wrapped native token.
Functions
onlyOwnerOrV2Factory
MODIFIERS ///
Throws if called by any account other than the owner or v2 factory.
constructor
FUNCTIONS ///
deployAssetRegistry
Deploy asset registry.
Parameters
Name | Type | Description |
---|---|---|
|
| The salt value to deploy asset registry. |
|
| |
|
| Vault address. |
|
| Initial list of registered assets. |
|
| Numeraire token address. |
|
| Fee token address. |
|
| Sequencer Uptime Feed address for L2. |
Returns
Name | Type | Description |
---|---|---|
|
| The address of deployed asset registry. |
deployHooks
Deploy hooks.
Parameters
Name | Type | Description |
---|---|---|
|
| The salt value to deploy hooks. |
|
| |
|
| Vault address. |
|
| The minimum fraction of value that the vault has to retain during the day in the course of submissions. |
|
| Array of target contract and sighash combinations to allow. |
Returns
Name | Type | Description |
---|---|---|
|
| The address of deployed hooks. |
Events
AssetRegistryCreated
EVENTS ///
Emitted when the asset registry is created.
HooksCreated
Emitted when the hooks is created.
Errors
Aera_CallerIsNeitherOwnerOrV2Factory
MODIFIERS ///
Aera__V2FactoryIsZeroAddress
Last updated