On-chain lending: from depositing assets to repaying debt

Read the complete process first
Lending and borrowing is a common application of DeFi. To understand a lending scenario, you can start from the steps of deposit, lending, repayment and retrieval, and record the participants and asset flow one by one.
Let the conditions correspond to the links
When reading a specific agreement, map fees, collateral requirements, and exit rules to practical steps. Different products need to be checked separately, and the arrangements of one agreement cannot be directly applied to other applications.