executeSupply contains the core logics of the supply function
executeSupply
cache
updateState
validateSupply
updateInterestRates
transfer & mint
If isFirstSupply (setup userConfig, if first supply & asset can be used as collateral)
userConfig
We will breakdown and examine the unique sections of logics within supply. Code delineated in orange are common functions and can be explored in that section.
Last updated 2 years ago