Skip to content

FluidVaultFactory ​

Git Source

Inherits:VaultFactoryCore, VaultFactoryAuth, VaultFactoryDeployment, VaultFactoryERC721

creates Fluid vault protocol vaults, which are interacting with Fluid Liquidity to deposit / borrow funds. Vaults are created at a deterministic address, given an incrementing vaultId (see getVaultAddress()). Vaults can only be deployed by allow-listed deployer addresses. This factory also implements ERC721-Enumerable, the NFTs are used to represent created user positions. Only vaults can mint new NFTs.

Note the deployed vaults start out with no config at Liquidity contract. This must be done by Liquidity auths in a separate step, otherwise no deposits will be possible. This contract is not upgradeable. It supports adding new vault deployment logic contracts for new, future vaults.

Functions ​

constructor ​

solidity
constructor(address owner_) VaultFactoryCore(owner_);