> For the complete documentation index, see [llms.txt](https://docs.sparkdex.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sparkdex.ai/additional-information/smart-contract-overview/perps-exchange.md).

# Perps Exchange

## SparkDEX Perpetuals Smart Contracts (Flare Mainnet)

***Important:** Following the deployment of the new Perpetuals infrastructure, the previous Perps contracts will soon be deprecated but will stay retained in this documentation as 'Legacy Perps Smart Contracts' below for historical reference and transparency.*

### New Perpetuals Smart Contracts

The following contracts power the current version of SparkDEX Perpetuals on Flare Mainnet.

<table data-search="false"><thead><tr><th>Contract</th><th>Address</th></tr></thead><tbody><tr><td>AddressStorage</td><td><code>0x81131006A128356c4359eBA06D65f46615684fbC</code></td></tr><tr><td>DiscountChecker</td><td><code>0x10E759F46C38BEeBF8e632889189EEc3aF6Fa663</code></td></tr><tr><td>Executor</td><td><code>0xB4B31694887EcA3C42e877D6a9B09F40b7082D94</code></td></tr><tr><td>FTSOv2Adapter</td><td><code>0x6074D41beD30f7873ef49054EBC851AD54BfC403</code></td></tr><tr><td>FundingTracker</td><td><code>0xB9C3DCE6a456C16Bc20Afe405f254fdeF5a93a0A</code></td></tr><tr><td>OrderBook</td><td><code>0x641CA9819F39e9c853EF846658DC92E72cE5DdA1</code></td></tr><tr><td>PositionManager</td><td><code>0xCfd351b9C57e4C14E7F41EfFc7FF000401ac5cD9</code></td></tr><tr><td>ReferralStorage</td><td><code>0x7228ed80f2D69A58231AAEACA9D460D1a280841c</code></td></tr><tr><td>Store</td><td><code>0x910B51EA34aa5126Bb49f37b41C7B0BFD11d7701</code></td></tr><tr><td>TradingValidator</td><td><code>0xdb854b5ff5Ab2c4255Dea7eF1A7C18A28c295f95</code></td></tr></tbody></table>

## Legacy Perpetuals Smart Contracts

The following contracts belonged to the original SparkDEX Perpetuals deployment and will soon be deprecated following the migration to the New Perps infrastructure.

<table data-search="false"><thead><tr><th>Contract</th><th>Address</th></tr></thead><tbody><tr><td>AddressStorage</td><td><code>0x6098bF06bB653626Fa25c44CB232eC4A2bDc659D</code></td></tr><tr><td>FTSOv2Adapter</td><td><code>0x586F35597D0F0f16c46EaDBffB08a3b439ff17ee</code></td></tr><tr><td>ReferralStorage</td><td><code>0x7c45e1b4CF81581927a854d7d47c79e3F7211309</code></td></tr><tr><td>TradingValidator</td><td><code>0x7c6F8Db7C4Cb32F9540478264b15637933E443A4</code></td></tr><tr><td>FundingTracker</td><td><code>0x96Adda2A49E910d8A1def86D45dAD59F80E7A9C6</code></td></tr><tr><td>OrderBook</td><td><code>0xf76DC0d42A40E53021162521E5ac916AAe2500B9</code></td></tr><tr><td>Store</td><td><code>0x74DA11B3Bb05277CF1cd3572a74d626949183e58</code></td></tr><tr><td>PositionManager</td><td><code>0x0d59962e4fC41a09B73283d1a0bf305dB1237c48</code></td></tr><tr><td>Executor</td><td><code>0x7c224027d3188a6d97186604234c6BFa5CE6CD8E</code></td></tr><tr><td>DiscountChecker</td><td><code>0xE33A95A41F726F0BC3Aa533086ad65C84Ec05524</code></td></tr></tbody></table>

> **Note:** The above contracts will soon be deprecated and are no longer used by SparkDEX's active Perpetuals protocol.

## Unchanged Supporting Contracts

The following contracts have remain unchanged and continue to be used by the current, new Perpetuals deployment.

| Contract       | Address                                      |
| -------------- | -------------------------------------------- |
| Timelock       | `0xB0739F8e71E20B384d29e4597602C89FB7E0A808` |
| BatchSender    | `0xD4Da357D85d50A353A1203FC39f286dfedff3f35` |
| ReferralReader | `0x5D99C306370477893b34848C39Db38E04C4cECB5` |

> These supporting contracts were not affected by SparkDEX's Perpetuals migration and remain fully compatible with the updated Perps infrastructure.
