Lending Platform on Gno.land
Note: This specification is an initial draft and may contain incomplete, ambiguous, or incorrect details. Certain aspects may be included in the implementation but not documented here, while others may be described but not implemented. This document will be continuously updated as development progresses and my understanding of the subject expands.
1. Protocol Overview
GnoLend is a non-custodial lending protocol on Gno.land that facilitates lending and overcollateralized borrowing of crypto assets. The protocol operates through isolated lending pools, where each pool contains a single GRC20 token.
When users deposit assets into a pool, they receive interest-bearing gTokens, which represent their share of the lending pool. These gTokens accrue interest via a static rate mechanism and are transferable as GRC20 tokens. Users can borrow assets from any pool by providing collateral that exceeds their borrowed position value, with borrowing limits determined by asset-specific Loan-to-Value (LTV) ratios.
Lending Pool State Variables
Each lending pool maintains the following key data: