How does the lending protocol work?
The Lending contract is a key component of the Crunch Network, and it is responsible for several features, including:
- 1.Deposit: Users can deposit their cryptocurrency assets into the Lending contract to supply liquidity to the protocol. When a user deposits an asset, they receive cTokens in return, which represent their share of the pool.
- 2.Borrow: Users can borrow funds from the protocol by supplying their cryptocurrency assets as collateral. The amount that a user can borrow is determined by their collateral balance and other factors such as interest rates and loan-to-value ratios.
- 3.Rates: The Lending contract calculates interest rates based on several factors such as supply and demand for specific assets, market conditions, and risk profiles of borrowers. These interest rates are denominated in Crunch Tokens and are used to incentivize lenders to supply liquidity to the protocol.
- 4.Repay: Borrowers can repay their loans at any time by returning the borrowed asset plus interest to the protocol. When a borrower repays their loan, they receive back their collateral minus any fees or penalties.
- 5.Loans: The Lending contract manages all aspects of loans, including loan origination, repayment schedules, interest calculations, and liquidation procedures.
- 6.Liquidation: If a borrower's collateral value falls below a certain threshold (known as the liquidation ratio), their position is automatically liquidated by the protocol to protect lenders from losses due to market volatility or default risk. The Lending contract handles all aspects of liquidation procedures, including auctioning off collateral assets and distributing proceeds to lenders.
In summary, the lending contract plays a crucial role in managing liquidity on the Crunch Network while also providing users with access to funds through transparent and trustless borrowing mechanisms.