Skip to main content

Use Vaults (ma/mcToken)

In this tutorial, one will learn how to get some maToken or mcToken through 2 different manners.

A maToken (e.g. maUSDC or maUSDT) and mcToken (e.g. mcUSDC or mcUSDT) represent tokenized supply positions on Morpho AaveV2 Optimizer and Morpho CompoundV2 Optimizer, respectively. They are created using ERC4626 vaults.

There are 2 ways to get ma/mcTokens:

  1. Through the vaults.morpho.org website:
    vaults.morpho.org website
  2. Through Etherscan
  • How to swap a token for a ma/mcToken?

Let's take an example with USDT -> maUSDT.

A: Approve access to your USDT

First, check by yourself the contract address of the USDT

and do the following steps:

  1. Connect your wallet to the “web3 🔴” on Etherscan

  2. Approve X amount of tokens on the USDT contract. The decimals of the token are in the decimals section in the “Read Contract” section.

  3. Go to “Write Contract” section, enter the correct details into “2. approve”, and click “write” button

    _spender: the maUSDT vault address,

    _amount: 20000000 (20 tokens, 6 decimals)

B: Deposit USDT into maUSDT vault

Once approved, you need to deposit the USDT into the vault.

  1. Double-check the contract address of the maUSDT vault in the deployment section of the developers’ documentation of morpho.
  2. Once confirmed, go navigate to the “Contract” tab and the “Write as Proxy” section, and fill receiver and assets like this:
    • receiver: your wallet address
    • assets: in the example, we use 10 000 000 (10 tokens, and 6 decimals)

When it is done you should see the following kind of transaction.

Congrats, you now possess some maToken or mcToken.

💡 If one wants to re-deposit other assets and has trouble doing it:
-> start again this tutorial, but first approve an amount to 0, wait a minute and then restart entirely as written.