Skip to content

MetaMorphoFactoryV1_1

0x5EDd48C6ACBd565Eeb31702FD9fa9Cbc86fbE616 | Git Source

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 MORPHO

FEE_PARTITIONER

The fee partitioner.

Internal due to contract size limit.

solidity
address internal immutable FEE_PARTITIONER

isMetaMorpho

solidity
mapping(address => bool) public isMetaMorpho

Functions

constructor

Initializes the contract.

solidity
constructor(address morpho, address feePartitioner) ;

Parameters

NameTypeDescription
morphoaddressThe address of the Morpho contract.
feePartitioneraddress

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

NameTypeDescription
initialOwneraddressThe owner of the vault.
initialTimelockuint256The initial timelock of the vault.
assetaddressThe address of the underlying asset.
namestringThe name of the vault.
symbolstringThe symbol of the vault.
saltbytes32The salt to use for the MetaMorphoV1_1 vault's CREATE2 address.