# LeverageX

### General Description

The LeverageX product consists of several contracts that operate through the Diamond architecture. All calls are directed to the `JavMultiCollatDiamond` contract, which then delegates execution to various libraries based on the selected logic.

### Faucets

* [JavBorrowingFees](/engineering/smart-contracts/leveragex/javborrowingfees.md) -  Storage and interaction with borrowing fees
* [JavFeeTiers](/engineering/smart-contracts/leveragex/javfeetiers.md) - Storage and interaction with fee at different levels of interaction with orders
* [JavPairsStorage](/engineering/smart-contracts/leveragex/javpairsstorage.md) -Stores information about all pairs and their configurations
* [JavPriceAggregator](/engineering/smart-contracts/leveragex/javpriceaggregator.md) - Allows to receive and update the price of pairs at the time of opening/closing/updating trades
* [JavPriceImpact](/engineering/smart-contracts/leveragex/javpriceimpact.md) - Stores the necessary information to interact with price impact logic
* [JavReferrals](/engineering/smart-contracts/leveragex/javreferrals.md) - stores information about the referral system leverageX
* [JavTradingInteractions](/engineering/smart-contracts/leveragex/javtradinginteractions.md) - Allows to open/close/update trades
* [JavTradingProcessing](/engineering/smart-contracts/leveragex/javtradingprocessing.md) - Support faucet for **JavTradingInteractions** that allows to manage different types of orders (market, limit and etc).
* [JavTradingStorage](/engineering/smart-contracts/leveragex/javtradingstorage.md) - Stores information about all trades

### Additional contracts

* [JavBorrowingProvider](/engineering/smart-contracts/leveragex/javborrowingprovider.md) - A contract that allows investors to invest tokens to generate profits through the LLP token. And for traders, it allows them to use the available tokens while trading
* [LLPToken](/engineering/smart-contracts/leveragex/llptoken.md) - token that is purchased through a borrowing provider and participates in the earn side


---

# 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.javsphere.com/engineering/smart-contracts/leveragex.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.
