General Execution flow
User-facing functions
Most of the core user-facing functions can be called from Pool.sol:
supply, withdraw
borrow, repay
liquidate, etc
We will review these functions within this section and breakdown their logic and workflow to illustrate the inner workings of Aave.
Most functions share a similar structure in their execution flow
cache storage variables
update the state, system-wide (interest accrued)
validate action to be taken against updated system
if validate, change state as per action
update rates, reflective of latest action taken
Common functions
cache, updateState, updateRates
getFlags, getDecimals
getSupplyCap, getBorrowCap
Last updated
Was this helpful?