Mechanics
Last updated
Last updated
Consider nToken to be a portfolio manager for your liquidity provisioning needs. nTokens is built on V1 liquidity provisioning mechanics and it automates allocation and rolls at maturities.
To mint nTokens, a user deposit Cash (cTokens) into the nToken account. The nToken account then distributes the user's liquidity into the underlying liquidity pools for that currency and holds the resultant liquidity tokens which represent the nToken account's claim on the user's deposited liquidity.
The nToken account distributes the liquidity based on thee proportion set by a governance parameter called 'Deposit Shares'.
The nToken account distributes a user's liquidity to individual markets based on a set of governance parameters called deposit shares. Deposit shares are percentage figures that tell the nToken account how much of a user's total liquidity to deposit into each individual market.
Deposit shares allow Notional governors to direct liquidity to the maturities where there is the greatest end-user demand for borrowing and lending. For example, governors may decide on a set of deposit shares that would direct more liquidity to long-dated maturities and less liquidity to short-dated maturities, or vice versa depending on relative demand.
The nToken account provides liquidity to an individual liquidity pool in the same way as any other account. The nToken account mints a pair of offsetting fCash tokens, places the cTokens along with the positive fCash into the liquidity pool in exchange for liquidity tokens, and holds the negative fCash alongside the liquidity tokens in its portfolio.
For example, if you were to provide 100 DAI as liquidity in a liquidity pool having the current proportion of Cash:fCash as 51:49, you would mint 96.078 +ve fCash and 96.078 -ve fCash.
...
The liquidity provider then deposits their Cash and the positive fCash into the liquidity pool and receives liquidity tokens in return.
Now the liquidity provider has liquidity tokens and an obligation that is offset by the positive fCash that their liquidity tokens entitle them to.
Context: Liquidity provisioning
Similar to V1 where an LP would hold assets representing a single liquidity pool, in V2 at any time, the nToken account will hold cTokens, fCash, and liquidity tokens from different liquidity pools.