# EModeLogic

{% hint style="info" %}
This contract records whenever a user **switches their borrowing profile** to a specific E-Mode category, enabling optimized risk management and potentially higher efficiency when borrowing correlated assets.
{% endhint %}

### Events

* **UserEModeSet(user, categoryId)**\
  Emitted when a user changes their **Efficiency Mode (E-Mode)** configuration in the lending protocol.
  * `user`: The address of the user who set their E-Mode.
  * `categoryId`: The ID of the chosen **E-Mode category**, which determines custom risk parameters (e.g., higher LTVs for correlated assets like stablecoins).

```
[
  {
    "anonymous": false,
    "inputs": [
      { "indexed": true, "internalType": "address", "name": "user", "type": "address" },
      { "indexed": false, "internalType": "uint8", "name": "categoryId", "type": "uint8" }
    ],
    "name": "UserEModeSet",
    "type": "event"
  }
]


```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://colend.gitbook.io/home/abi/emodelogic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
