> For the complete documentation index, see [llms.txt](https://calnix.gitbook.io/aave-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://calnix.gitbook.io/aave-book/functions/setuserusereserveascollateral.md).

# setUserUseReserveAsCollateral

### Overview

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

<figure><img src="/files/Gt3btHvg5CyppviG1ovW" alt=""><figcaption></figcaption></figure>

### Execution flow

* [ ] <mark style="color:orange;">cache</mark>
* [ ] 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](/aave-book/functions/common-functions.md).
