borrow

Overview

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

executeBorrow

Execution flow

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.

Visual Aid

Last updated