# Stacks

## Mainnet Contracts

These contracts have been deployed on the Stacks mainnet and serve as essential components utilized by BitFlow.

{% hint style="info" %}
Unless specified otherwise, the following mainnet contracts are deployed to this address: [SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M](https://explorer.hiro.so/address/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M?chain=mainnet).
{% endhint %}

### StableSwap Contracts

| **Contract Name**             | **Explorer Link**                                                                                                                           |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| stableswap-stx-ststx-v-1-2    | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stableswap-stx-ststx-v-1-2?chain=mainnet)    |
| stableswap-usda-susdt-v-1-2   | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stableswap-usda-susdt-v-1-2?chain=mainnet)   |
| stableswap-aeusdc-susdt-v-1-2 | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stableswap-aeusdc-susdt-v-1-2?chain=mainnet) |
| stableswap-usda-aeusdc-v-1-2  | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stableswap-usda-aeusdc-v-1-2?chain=mainnet)  |
| stableswap-usda-aeusdc-v-1-4  | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stableswap-usda-aeusdc-v-1-4?chain=mainnet)  |
| stableswap-abtc-xbtc-v-1-2    | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stableswap-abtc-xbtc-v-1-2?chain=mainnet)    |

### Earn Contracts

| **Contract Name**       | **Explorer Link**                                                                                                                     |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| earn-stx-ststx-v-1-2    | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.earn-stx-ststx-v-1-2?chain=mainnet)    |
| earn-usda-susdt-v-1-3   | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.earn-usda-susdt-v-1-3?chain=mainnet)   |
| earn-aeusdc-susdt-v-1-3 | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.earn-aeusdc-susdt-v-1-3?chain=mainnet) |
| earn-usda-aeusdc-v-1-3  | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.earn-usda-aeusdc-v-1-3?chain=mainnet)  |
| earn-usda-aeusdc-v-1-5  | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.earn-usda-aeusdc-v-1-5?chain=mainnet)  |
| earn-abtc-xbtc-v-1-3    | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.earn-abtc-xbtc-v-1-3?chain=mainnet)    |

### LP Token Contracts

| **Contract Name**           | **Explorer Link**                                                                                                                         |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| stx-ststx-lp-token-v-1-2    | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.stx-ststx-lp-token-v-1-2?chain=mainnet)    |
| usda-susdt-lp-token-v-1-2   | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.usda-susdt-lp-token-v-1-2?chain=mainnet)   |
| aeusdc-susdt-lp-token-v-1-2 | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.aeusdc-susdt-lp-token-v-1-2?chain=mainnet) |
| usda-aeusdc-lp-token-v-1-2  | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.usda-aeusdc-lp-token-v-1-2?chain=mainnet)  |
| usda-aeusdc-lp-token-v-1-4  | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.usda-aeusdc-lp-token-v-1-4?chain=mainnet)  |
| abtc-xbtc-lp-token-v-1-2    | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.abtc-xbtc-lp-token-v-1-2?chain=mainnet)    |

### XYK Contracts

{% hint style="info" %}
The following mainnet contracts for XYK are deployed to this address:

[SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR](https://explorer.hiro.so/address/SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR?chain=mainnet).
{% endhint %}

| **Contract Name**               | **Explorer Link**                                                                                                                              |
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| sip-010-trait-ft-standard-v-1-1 | [View on Hiro Explorer](https://explorer.hiro.so/txid/SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.sip-010-trait-ft-standard-v-1-1?chain=mainnet) |
| xyk-pool-trait-v-1-1            | [View on Hiro Explorer](https://explorer.hiro.so/txid/SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-trait-v-1-1?chain=mainnet)            |
| token-stx-v-1-1                 | [View on Hiro Explorer](https://explorer.hiro.so/txid/SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.token-stx-v-1-1?chain=mainnet)                 |
| xyk-core-v-1-1                  | [View on Hiro Explorer](https://explorer.hiro.so/txid/SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-core-v-1-1?chain=mainnet)                  |
| xyk-pool-stx-aeusdc-v-1-1       | [View on Hiro Explorer](https://explorer.hiro.so/txid/SM1793C4R5PZ4NS4VQ4WMP7SKKYVH8JZEWSZ9HCCR.xyk-pool-stx-aeusdc-v-1-1?chain=mainnet)       |

### Router Contracts

| **Contract Name**                       | **Explorer Link**                                                                                                                                     |
| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| router-stx-ststx-bitflow-arkadiko-v-1-1 | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-stx-ststx-bitflow-arkadiko-v-1-1?chain=mainnet) |
| router-stx-ststx-bitflow-velar-v-1-2    | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-stx-ststx-bitflow-velar-v-1-2?chain=mainnet)    |
| router-stx-ststx-bitflow-alex-v-1-1     | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-stx-ststx-bitflow-alex-v-1-1?chain=mainnet)     |
| router-stx-ststx-bitflow-alex-v-1-2     | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-stx-ststx-bitflow-alex-v-1-2?chain=mainnet)     |
| router-stx-ststx-bitflow-alex-v-2-1     | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-stx-ststx-bitflow-alex-v-2-1?chain=mainnet)     |
| router-stx-ststx-bitflow-xyk-v-1-1      | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-stx-ststx-bitflow-xyk-v-1-1?chain=mainnet)      |
| router-stx-usda-arkadiko-alex-v-1-1     | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-stx-usda-arkadiko-alex-v-1-1?chain=mainnet)     |
| router-xyk-arkadiko-v-1-1               | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-xyk-arkadiko-v-1-1?chain=mainnet)               |
| router-xyk-velar-v-1-1                  | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-xyk-velar-v-1-1?chain=mainnet)                  |
| router-xyk-alex-v-1-1                   | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-xyk-alex-v-1-1?chain=mainnet)                   |
| router-xyk-alex-v-1-2                   | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-xyk-alex-v-1-2?chain=mainnet)                   |
| router-velar-alex-v-1-1                 | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-1?chain=mainnet)                 |
| router-velar-alex-v-1-2                 | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.router-velar-alex-v-1-2?chain=mainnet)                 |

### Wrapper Contracts

| **Contract Name**            | **Explorer Link**                                                                                                                          |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| wrapper-velar-v-1-1          | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-velar-v-1-1?chain=mainnet)          |
| wrapper-velar-multihop-v-1-1 | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-velar-multihop-v-1-1?chain=mainnet) |
| wrapper-alex-v-2-1           | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-alex-v-2-1?chain=mainnet)           |
| wrapper-arkadiko-v-1-1       | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.wrapper-arkadiko-v-1-1?chain=mainnet)       |

### Emissions Contracts

| **Contract Name**                | **Explorer Link**                                                                                                                              |
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| diko-emissions-usda-aeusdc-v-1-3 | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.diko-emissions-usda-aeusdc-v-1-3?chain=mainnet) |
| diko-emissions-usda-aeusdc-v-1-4 | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.diko-emissions-usda-aeusdc-v-1-4?chain=mainnet) |

### Additional Contracts

| **Contract Name**                      | **Explorer Link**                                                                                                                                    |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| sip-010-trait-ft-standard              | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.sip-010-trait-ft-standard?chain=mainnet)              |
| lp-trait                               | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.lp-trait?chain=mainnet)                               |
| arkadiko-swap-quotes-v-1-1             | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.arkadiko-swap-quotes-v-1-1?chain=mainnet)             |
| usda-aeusdc-cycle-rewards-helper-v-1-4 | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.usda-aeusdc-cycle-rewards-helper-v-1-4?chain=mainnet) |
| usda-aeusdc-migration-helper-v-1-1     | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.usda-aeusdc-migration-helper-v-1-1?chain=mainnet)     |
| usda-aeusdc-migration-setup-v-1-1      | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.usda-aeusdc-migration-setup-v-1-1?chain=mainnet)      |
| usda-aeusdc-migration-setup-v-1-2      | [View on Hiro Explorer](https://explorer.hiro.so/txid/SPQC38PW542EQJ5M11CR25P7BS1CA6QT4TBXGB3M.usda-aeusdc-migration-setup-v-1-2?chain=mainnet)      |

***

## Testnet Contracts

These contracts have been deployed on the Stacks testnet and are utilized by BitFlow for testing purposes.

{% hint style="info" %}
Unless specified otherwise, the following testnet contracts are deployed to this address: [STRP7MYBHSMFH5EGN3HGX6KNQ7QBHVTBPF1669DW](https://explorer.hiro.so/address/STRP7MYBHSMFH5EGN3HGX6KNQ7QBHVTBPF1669DW?chain=testnet).
{% endhint %}

{% hint style="warning" %}
To access the latest version of BitFlow's core contracts, please refer to the contracts currently deployed on mainnet, which are [listed here](#mainnet-contracts).
{% endhint %}

### StableSwap Contracts

<table data-header-hidden data-full-width="false"><thead><tr><th>Contract Name</th><th></th></tr></thead><tbody><tr><td><strong>Contract Name</strong></td><td><strong>Explorer Link</strong></td></tr><tr><td>stableswap-xbtc-sbtc-v-0-1-1</td><td><a href="https://explorer.hiro.so/txid/STRP7MYBHSMFH5EGN3HGX6KNQ7QBHVTBPF1669DW.stableswap-xbtc-sbtc-v-0-1-1?chain=testnet">View on Hiro Explorer</a></td></tr><tr><td>stableswap-usda-susdt</td><td><a href="https://explorer.hiro.so/txid/STRP7MYBHSMFH5EGN3HGX6KNQ7QBHVTBPF1669DW.stableswap-usda-susdt?chain=testnet">View on Hiro Explorer</a></td></tr></tbody></table>

### Earn Contracts

| **Contract Name**      | **Explorer Link**                                                                                                                    |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| earn-xbtc-sbtc-v-0-1-1 | [View on Hiro Explorer](https://explorer.hiro.so/txid/STRP7MYBHSMFH5EGN3HGX6KNQ7QBHVTBPF1669DW.earn-xbtc-sbtc-v-0-1-1?chain=testnet) |
| earn-usda-susdt        | [View on Hiro Explorer](https://explorer.hiro.so/txid/STRP7MYBHSMFH5EGN3HGX6KNQ7QBHVTBPF1669DW.earn-usda-susdt?chain=testnet)        |

### LP Token Contracts

| **Contract Name**           | **Explorer Link**                                                                                                                         |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| xbtc-sbtc-lp-token-test-v6  | [View on Hiro Explorer](https://explorer.hiro.so/txid/STRP7MYBHSMFH5EGN3HGX6KNQ7QBHVTBPF1669DW.xbtc-sbtc-lp-token-test-v6?chain=testnet)  |
| usda-susdt-lp-token-test-v3 | [View on Hiro Explorer](https://explorer.hiro.so/txid/STRP7MYBHSMFH5EGN3HGX6KNQ7QBHVTBPF1669DW.usda-susdt-lp-token-test-v3?chain=testnet) |

### XYK Contracts

{% hint style="info" %}
Currently, there are no available contracts. Check back soon.
{% endhint %}

### Router Contracts

{% hint style="info" %}
Currently, there are no available contracts. Check back soon.
{% endhint %}

### Wrapper Contracts

{% hint style="info" %}
Currently, there are no available contracts. Check back soon.
{% endhint %}

### Emissions Contracts

{% hint style="info" %}
Currently, there are no available contracts. Check back soon.
{% endhint %}

### Additional Contracts

| **Contract Name**         | **Explorer Link**                                                                                                                       |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| sip-010-trait-ft-standard | [View on Hiro Explorer](https://explorer.hiro.so/txid/STRP7MYBHSMFH5EGN3HGX6KNQ7QBHVTBPF1669DW.sip-010-trait-ft-standard?chain=testnet) |
| lp-trait                  | [View on Hiro Explorer](https://explorer.hiro.so/txid/STRP7MYBHSMFH5EGN3HGX6KNQ7QBHVTBPF1669DW.lp-trait?chain=testnet)                  |
