borrow
Last updated
This function is called when the user wishes to take out a loan. Since Aave is an overcollateralized borrowing protocol, users can borrow up to a fraction of their deposited collateral.
Before being able to call borrow
, users must have deposited collateral via supply
.
executeBorrow
contains the core logics of the borrow function
We will breakdown and examine the unique sections of logics within executeBorrow. Code delineated in orange are common functions and can be explored in that section.