Implementing the pages for deposit, withdrawal, borrowing, and repayment
Deposit, withdrawal, borrowing, and repayment are the four main features of the crypto loan system. Our implementation of the frontend for these features involves having an individual page for each of the features. All of the pages for these features have three major functions that need to be implemented: loading information, verification, and taking action. After taking action, the deposit is complete), the UI code of the page should take the user back to the Loading Information stage and perform Verification on the loaded information.
We will use the following screenshot of the deposit page (Figure 14.2) to explain these three functions.
Figure 14.2 – The three major steps for the page to deposit tokens
Figure 14.2 shows the layout of the pages for the three features we will implement in this section. The page is structured as an interactive form with three parts:
- ...