Create a Market
This tutorial guides you through the process of creating and configuring a market in your Morpho vault.
Deploying an Oracle via Etherscan
Jump on the Morpho contract
See the address section.
E.g: Ethereum mainnet address is 0xbbbbbbbbbb9cc5e90e3b3af64bdaf62c37eeffcb
Fill all attributes
Jump on the createMarket
function
loanToken
: paste the address of the loan token,collateralToken
: paste the address of the collateral token,oracle
: paste the oracle address,irm
: paste the Interest Rate Model address,lltv
: the LLTV is defined with 18 decimals. 1e18 represents an LLTV of 100% (which is not enabled) and 945000000000000000 thus represents 94.5%.
To align with the 90% target utilization immediately, it's advised to add $1 of supply and then borrow $0.90. This not only ensures that the pool's utilization starts at 90% but also prevents the rate at uTarget from decreasing due to zero utilization, which can happen if a market remains unused (e.g. intended for future use in 7 days).

Sign the transaction
You are done.
Note
Creating a market will emit an event: CreateMarket
with the market id
:

To retrieve the market parameters from this id
, one has to paste the id
into the idToMarketParams
function on the Morpho contract.
For instance with the id
:0xb323495f7e4148be5643a4ea4a8221eef163e4bccfdedc2a6f4696baacbc86cc
