This page sets out how a liquidity providers (LP) can deposit or withdraw funds from a pool.

Deposits

To make a stable coin deposit the user must first select the lending pool they wish to invest in. Once this has been selected the user calls the function deposit() specific to that lending pool and they specify the amount they want to deposit. In return for their deposit a user receives debt tokens. These are minted from the lending pool and are issued based on the debt token price at that specific time. Note each lending pool has a unique debt token and and these can be traded or exchanged freely.

How to make a deposit

Understanding the maths behind deposits

Withdrawals

After a given period of time a depositor may wish to exchange (burn) their debt tokens for the stable coin token they initially deposited. This is achieved by calling the withdraw() function. The depositor specifies the amount of debt tokens they want to exchange and is repaid an amount of stable coins determined by the debt token price at that specific time.

How to make a withdrawal

Understanding the maths behind withdrawals