Minting nTokens
Last updated
Last updated
When a user mints nTokens, they deposit cash into the nToken account and the nToken distributes their liquidity to the individual liquidity pools.
Here is a step-by-step flow of minting nTokens.
A user deposits cash (in this example, DAI) into the nToken account.
To provide liquidity, the nToken account needs to mint fCash for each liquidity pool and deposit it in the proper proportion. The second step is for the nToken to fetch the proportion data from the liquidity pools
Based on the proportion data fetched from the liquidity pools, the nToken mints the fCash pair for each maturity. Find background on how this process works here.
The nToken allocates the cash and fCash to the different liquidity pools based on the deposit shares.
The nToken receives liquidity tokens in exchange for the liquidity provided to the pools.
Lastly, Notional mints nTokens and gives them to the user.