Are you an LLM? You can read better optimized documentation at /developers/contracts/meta-morpho-factory-v1_1.md for this page in Markdown format
MetaMorphoFactoryV1_1
Inherits: IMetaMorphoV1_1Factory
This contract allows to create MetaMorphoV1_1 vaults, and to index them easily.
State Variables
MORPHO
The address of the Morpho contract.
solidity
address public immutable MORPHOFEE_PARTITIONER
The fee partitioner.
Internal due to contract size limit.
solidity
address internal immutable FEE_PARTITIONERisMetaMorpho
solidity
mapping(address => bool) public isMetaMorphoFunctions
constructor
Initializes the contract.
solidity
constructor(address morpho, address feePartitioner) ;Parameters
| Name | Type | Description |
|---|---|---|
morpho | address | The address of the Morpho contract. |
feePartitioner | address |
createMetaMorpho
Creates a new MetaMorphoV1_1 vault.
solidity
function createMetaMorpho(
address initialOwner,
uint256 initialTimelock,
address asset,
string memory name,
string memory symbol,
bytes32 salt
) external returns (IMetaMorphoV1_1 metaMorpho);Parameters
| Name | Type | Description |
|---|---|---|
initialOwner | address | The owner of the vault. |
initialTimelock | uint256 | The initial timelock of the vault. |
asset | address | The address of the underlying asset. |
name | string | The name of the vault. |
symbol | string | The symbol of the vault. |
salt | bytes32 | The salt to use for the MetaMorphoV1_1 vault's CREATE2 address. |