Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 639 Bytes

setuserusereserveascollateral.md

File metadata and controls

17 lines (11 loc) · 639 Bytes

🚧 setUserUseReserveAsCollateral

Overview

This function allows suppliers to enable/disable a specific supplied asset as collateral.

Execution flow

  • cache
  • get user's AToken balance
  • validate
  • if user is already using asset as collateral, return
  • if-else

We will breakdown and examine the unique sections of logics within setUserUseReserveAsCollateral. Code delineated in orange are common functions and can be explored in that section.