# getConfigurationData

## Overview

<figure><img src="https://1829638638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0k7YXwFGMFZcsyqkM4q1%2Fuploads%2Fv1eFIDfMZBGmuKTeA6eH%2Fimage.png?alt=media&#x26;token=8226c766-002d-4162-bc86-12350dedde39" alt=""><figcaption></figcaption></figure>

### Execution flow

* [x] <mark style="color:orange;">cache + updateState + get health factor</mark>
* [x] \_calculateDebt
* [x] validateLiquidationCall
* [ ] getConfigurationData
* [ ] calculateAvailableCollateralToLiquidate
* [ ] <mark style="color:orange;">setBorrowing</mark>
* [ ] <mark style="color:orange;">setUsingAsCollateral</mark>
* [ ] \_burnDebtTokens
* [ ] <mark style="color:orange;">updateInterestRates</mark>
* [ ] <mark style="color:orange;">updateIsolatedDebtIfIsolated</mark>
* [ ] liquidate/burn collateral
* [ ] liquidation fee
* [ ] Wrap-up

## getConfigurationData

<img src="https://1829638638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0k7YXwFGMFZcsyqkM4q1%2Fuploads%2FL6jaBi6wmHQas1Qhywb4%2Ffile.excalidraw.svg?alt=media&#x26;token=5982a962-7af3-47cd-b73f-dbf1230f1a2f" alt="" class="gitbook-drawing">

* get liquidation bonus of collateral from its ReserveData struct: `liquidationBonus`
* get oracle addresses for both debt and collateral assets:&#x20;
  * `collateralPriceSource`, `debtPriceSource`
* **If user is in some E-mode category**
  * get `eModePriceSource` -> if defined, will overwrite `debtPriceSource` that was obtained earlier
  * **If user's e-mode and collateral e-mode categories match:**
    * overwrite `liquidationBonus` with the e-mode's liquidation bonus
    * if `eModePriceSource` is defined, overwrite `collateralPriceSource` that was obtained earlier
