> For the complete documentation index, see [llms.txt](https://docs.javsphere.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.javsphere.com/engineering/smart-contracts/leveragex.md).

# 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
