Designing crypto loan smart contracts
In the DeFi world, a crypto loan is a comprehensive system that is built on top of several smart contracts running on a blockchain. Cryptocurrency assets are the most important thing that needs to be managed by these smart contracts. We have to make the cryptos flow precisely between asset pools and various personas. Before we dive into the architecture of the crypto loan smart contracts, let’s first dive into the personas involved in a decentralized crypto loan and discuss how the crypto assets move between asset pools and these personas.
Crypto loan personas
Introducing the personas of a crypto loan will help us to understand how to interact with a crypto smart contract from different point of views. It will help us to understand the requirements of a crypto loan system.
Figure 11.1 describes the personas and their crypto asset flows when interacting with asset pools.
Figure 11.1 – The personas...