# ConfiguratorLogic

{% hint style="info" %}
This contract tracks **reserve lifecycle events**: initialization of reserves, and upgrades of the proxy contracts for aToken, stable debt token, and variable debt token.
{% endhint %}

### Events&#x20;

* **ATokenUpgraded(asset, proxy, implementation)**\
  Emitted when the **aToken contract for a reserve is upgraded** to a new implementation.
  * `asset`: The underlying asset of the reserve.
  * `proxy`: The proxy contract address of the aToken.
  * `implementation`: The new implementation contract address.

***

* **ReserveInitialized(asset, aToken, stableDebtToken, variableDebtToken, interestRateStrategyAddress)**\
  Emitted when a **new reserve is initialized** in the protocol.
  * `asset`: The underlying asset of the reserve.
  * `aToken`: The address of the aToken contract representing deposits.
  * `stableDebtToken`: The address of the stable debt token contract.
  * `variableDebtToken`: The address of the variable debt token contract.
  * `interestRateStrategyAddress`: The strategy contract managing interest rate models for the reserve.

***

* **StableDebtTokenUpgraded(asset, proxy, implementation)**\
  Emitted when the **stable debt token contract** for a reserve is upgraded.
  * `asset`: The underlying asset.
  * `proxy`: The proxy contract address of the stable debt token.
  * `implementation`: The new implementation contract address.

***

* **VariableDebtTokenUpgraded(asset, proxy, implementation)**\
  Emitted when the **variable debt token contract** for a reserve is upgraded.
  * `asset`: The underlying asset.
  * `proxy`: The proxy contract address of the variable debt token.
  * `implementation`: The new implementation contract address.

```
[
  {
    "anonymous": false,
    "inputs": [
      { "indexed": true, "internalType": "address", "name": "asset", "type": "address" },
      { "indexed": true, "internalType": "address", "name": "proxy", "type": "address" },
      { "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }
    ],
    "name": "ATokenUpgraded",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      { "indexed": true, "internalType": "address", "name": "asset", "type": "address" },
      { "indexed": true, "internalType": "address", "name": "aToken", "type": "address" },
      { "indexed": false, "internalType": "address", "name": "stableDebtToken", "type": "address" },
      { "indexed": false, "internalType": "address", "name": "variableDebtToken", "type": "address" },
      { "indexed": false, "internalType": "address", "name": "interestRateStrategyAddress", "type": "address" }
    ],
    "name": "ReserveInitialized",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      { "indexed": true, "internalType": "address", "name": "asset", "type": "address" },
      { "indexed": true, "internalType": "address", "name": "proxy", "type": "address" },
      { "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }
    ],
    "name": "StableDebtTokenUpgraded",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      { "indexed": true, "internalType": "address", "name": "asset", "type": "address" },
      { "indexed": true, "internalType": "address", "name": "proxy", "type": "address" },
      { "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }
    ],
    "name": "VariableDebtTokenUpgraded",
    "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/configuratorlogic.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.
