SRWA Lending consists of three main parts, that are: Lending Protocol, Lending Pool and SRWA User Badge as well as SRWA dApp that we made to make it easier for the users to interact with the platform.
SRWA Badge is used for identifying the user and for reading the state of the Users account (deposit balance, borrow balance). It must be presented to the Lending Protocol on every interaction.
Lending Protocol serves as the communication channel between the user and the Lending Pool. It contains a set of public methods that are used for interaction with the platform (Deposit, Withdraw, Borrow, Repay) as well as the calculations and validation rules that are needed for the platform to function properly.
Lending Pool is used for storing the assets that are deposited by the users and as a reserve for borrowing. Every Lending Pool corresponds with one asset.
SRWA interface is the dApp that is used for interacting with the protocol and for tracking all of the relevant information for the user.