# Developer Guide

OpenLeverage is an open-source project. If you want to contribute to the project or have questions on technical aspects, we highly encourage you to discuss the problem and the solution with the team. If you want to reach out to the dev team directly, contact the [dev-chat channel](https://discord.gg/openleverage) on Discord.

## Source Code Repo

The source can be found in [OpenLeverage GitHub](https://github.com/OpenLeverageDev/openleverage-contracts).

## Backend API

#### All Lending pools info

<pre><code><strong>https://&#x3C;chain>.openleverage.finance/api/info/pools
</strong></code></pre>

**All pool lending and borrowing interest info**

```
https://<chain>.openleverage.finance/api/info/pools/interest
```

#### Stats for Individual lending pool

```
https://<chain>.openleverage.finance/api/info/pool/<poolAddress>
```

Chain prefixes are bnb, kcc, eth.

## Deployed Contracts

### Ethereum

| Contract                | Address                                    |
| ----------------------- | ------------------------------------------ |
| Timelock                | 0x2645252e2155c12e2726d0Ccd5fc0d1cCCFE07E6 |
| EthDexAggregatorV1      | 0x0618BB1d384Fb98aFf54344C659863a114d67E18 |
| DexAggregatorDelegator  | 0xd78b5db4Aec619779B4c7D1ab99e290E6347d66A |
| XOLE                    | 0x335aCe4Dc018D3454655BAcCF67D273B7BA60976 |
| XOLEDelegator           | 0xe194002badd717b1e4d9f160b681f1d7c2e45776 |
| LPool                   | 0xa6f1114e90cF94Ba3a7D72c4886b4E069803CdB6 |
| ControllerV1            | 0x4fe63344AbEB0b7c61FFC75F3FD6944441f3C68D |
| ControllerDelegator     | 0x0eabe8e34a1fae4601953667f811acb9ff808e78 |
| OpenLevV1Lib            | 0xc082DF0E88510527328f1664d0830BA666310f26 |
| OpenLevV1               | 0xF580Ff539cb2764Dcc687F950478d9DadEb83502 |
| OpenLevDelegator        | 0x03Bf707DeB2808f711bb0086fc17C5CAfA6e8AaF |
| LPoolDepositor          | 0x5e849353BE4117ba53F7A153673b2120c0430bfb |
| LPoolDepositorDelegator | 0xA6C4bB39F031CC74d4bd005A764E152970762561 |
| QueryHelper             | 0x8e95FF1939a2C7c59ec5eF170A591e2Da08Fb87A |

### BNB Chain

| Contract                | Address                                    |
| ----------------------- | ------------------------------------------ |
| Timelock                | 0x7B041bD2f676EEd1ab22A17c9eD5b6b3cb794673 |
| BscDexAggregatorV1      | 0xC8DEa1E3d4E17606977cfa65E9a8AFc8e8cc86C3 |
| DexAggregatorDelegator  | 0xE9E321D1cb6b540E922a5e4d8720FEed0749e93F |
| XOLE                    | 0x2C3e8742efd65261eCFfbc925feA694e29572bca |
| XOLEDelegator           | 0x71F1158D76aF5B6762D5EbCdEE19105eab2C77d2 |
| LPool                   | 0xDe7676a276f7710ff87da0a82272EA21f3A8690E |
| ControllerV1            | 0x4B16dF3276778226ec71421b4E306A2ef4d4dFfC |
| ControllerDelegator     | 0x912C0462474c933499a6923a6Afc6AC1E58b8Ce4 |
| OpenLevV1Lib            | 0xb4F37c78A69D04044Bef702B79fAb8E1f3E70FCE |
| OpenLevV1               | 0xf43b090d50C5909707D50E56992da2Bab3961251 |
| OpenLevDelegator        | 0x6A75aC4b8d8E76d15502E69Be4cb6325422833B4 |
| LPoolDepositor          | 0x3C1550fD43e69cB20a7A1D318eD84096d6E1eCFd |
| LPoolDepositorDelegator | 0x73FB88ffF5F22ea7276F73832C6334696b7A3541 |
| QueryHelper             | 0x512A2F81B4F4AE66747F2f21910D5a14015BD3E9 |

### KuCoin Community Chain

| Contract                | Address                                    |
| ----------------------- | ------------------------------------------ |
| Timelock                | 0xAd0BFA476FB71215BA026EBE60FfA9b31D98Efe7 |
| KccDexAggregatorV1      | 0x2Ff5BDEE4EeFd7a3a052dAE9469dDA22f364d686 |
| DexAggregatorDelegator  | 0xc2E51Ab824cC088CB5253E74963B00a15Be7d234 |
| XOLE                    | 0x27CCB1F9Abc27F6A92DC4bD6b974Cd152419813c |
| XOLEDelegator           | 0xC7ff25AD08Aa8eA665Cf78532F7317067Cffb290 |
| LPool                   | 0x15d530E620Da0BACdDBDea7fb37eaaaBB4ae1d07 |
| ControllerV1            | 0x01Af643dD8dD41ed1F1066FAc465cc8bfc52D6EB |
| ControllerDelegator     | 0x8A2F01b39319de1dFE219090018B6F460e968e00 |
| OpenLevV1Lib            | 0x3E202DB5DB294107Cafee34c6E923eE8039F9728 |
| OpenLevV1               | 0x7C0d5BF86427C02F6A841E28Ff7cF2934AA83B34 |
| OpenLevDelegator        | 0xEF6890d740E1244fEa42E3D1B9Ff515C24c004Ce |
| LPoolDepositor          | 0xC7C3333f713eB2b100Dc6bdC9F79FA43a2A5dDc8 |
| LPoolDepositorDelegator | 0xCC25Bcd56E425B13AbB6C8C653C50A1F6Adb7b18 |
| QueryHelper             | 0xbd51d161fb4109f2cde5b430ace615fc83062273 |

### Kovan Testnet

| Contract               | Address                                    |
| ---------------------- | ------------------------------------------ |
| Timelock               | 0xC8f0231Dfee65aCDD104c42E94151233be61323E |
| EthDexAggregatorV1     | 0xE67eD93Cf45444bdC1FdEcba0f7a32E1AB01A8a3 |
| DexAggregatorDelegator | 0xEae4C8209a42f73FA3Da2df28f263a2E52fACDa8 |
| XOLE                   | 0x69ef2561D48C3EcB420D483A39259D09bEAAcD08 |
| XOLEDelegator          | 0xe88C939de25d76a60628AC8e1969533A5fC4bCF1 |
| LPool                  | 0x2aEFaD39034273515849BeaF72AD3149eA92a59F |
| ControllerV1           | 0xbe4495Cb19b3a4a2aDbB417fF468Fd93be0a2339 |
| ControllerDelegator    | 0x487D093cbd6BA30E7bAbFEec337f54E2c59b4755 |
| OpenLevV1              | 0xA38139a3f0ADCB90E48809F7376048615A98A684 |
| OpenLevDelegator       | 0xF4ee94Aecc60E5De397744442770472b3aC45283 |
| LPoolDepositor         | 0xff2d5d3177befed6a5f41abaf59ab4cfc02326b2 |
| QueryHelper            | 0x4a6790a98dcFdaec6eB9C148dfAcCab56ebC5838 |


---

# 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://docs.openleverage.finance/main/dev/github.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.
