# Web App

**The Mirror Web App is the official web frontend for interacting with Mirror on the Terra network. It is located at one of the decentralized domains listed on** [**https://terra.mirror.finance**](https://terra.mirror.finance)**.**

The Mirror Web App offers a graphical user interface for accessing Mirror's core user flows, such as mAsset trading, minting & burning through CDPs, liquidity provision, staking, and governance.

{% hint style="warning" %}
The Mirror web app requires [Google Chrome](https://www.google.com/chrome/) and [Station Extension](https://chrome.google.com/webstore/detail/terra-station/aiifbnbfobpmeekipheeijimdpnlpgpp) to be installed. Please follow the instructions below to set up your browser to be able to access the DApp.
{% endhint %}

## Terra Station Extension

{% hint style="warning" %}
Currently, Station Extension is only available for Chromium-based web browsers.
{% endhint %}

Station Extension is a Chrome extension that lets you interact with smart contract web front-ends with a wallet embedded in your browser. When you initiate an action such as opening a new position or creating a trade on the Mirror Web App, the webpage will generate a transaction for you in the proper format that encodes your desired interaction. Station Extension will detect the transaction and prompt you to sign and broadcast it to actually execute the operation.

### Installing Station Extension

1. Run [Google Chrome](https://www.google.com/chrome/). Station Extension is only available for Chromium-based web browsers.
2. Install Station Extension [here](https://chrome.google.com/webstore/detail/terra-station/aiifbnbfobpmeekipheeijimdpnlpgpp).
3. **Terra Station** is now visible on your Extensions tray.

### Creating a new wallet

1\. Open **Station Extension**

2\. Select **New Wallet**

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-d2804446396de2a80450153c3875387526f8d6b1%2Fimage%20\(83\).png?alt=media)

3\. Set wallet name and password. **Make sure to record 24 word seed phrase somewhere safe.** Select `Next` to proceed.

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-ad19c26cd9d6359d237e378842681f4768db41a2%2Fimage%20\(52\).png?alt=media)

4\. Confirm your seed phrase by inputting the correct words.

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-cf270e62d7d8611fd3b695469b4cc7dc81628f41%2Fimage%20\(34\).png?alt=media)

6\. Select **`Create a wallet`** to finish.

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-2478217af0a814d7ccdb95007e4432723c2f8fee%2Fimage%20\(79\).png?alt=media)

### Using Hardware Ledger

To use a hardware Ledger wallet on to sign transactions on Terra Station Extension, user must meet the conditions below:

* Install Terra application using [Ledger Live](https://www.ledger.com/ledger-live/download/) application. Make sure that you have enabled Developer Mode on Ledger Live application from Settings > Experimental Features to install Terra application.
* Both Ledger Nano S and X are supported, but the device must be connected to the computer via USB cable. **Bluetooth connection is not supported** by Station Extension

To access hardware ledger wallet from Terra Station Extension, please follow the steps below:

1\. Connect and unlock your Ledger device

2\. Open Terra application from the Ledger device

3\. Select **Access with ledger** on Terra Station Extension menu

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-8d62f4b2405055e0362316ddde0e5fd4c1c76e9b%2Fimage%20\(84\).png?alt=media)

4\. Once the Ledger device is connected to Terra Station Extension successfully, user can start signing transactions with their device.

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-8d30b2de157cb0951f3fdf5b815bea1a7335bd67%2Fimage%20\(80\).png?alt=media)

### Wallet Recovery

1\. Select **Recover existing wallet**

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-df8d11d57c6a47d858d42265a43e7c6baabfeff4%2Fimage%20\(77\).png?alt=media)

2\. Set a new wallet name and password.

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-7fbdad07d83509de177f5a1db05809131fe9908d%2Fimage%20\(75\).png?alt=media)

3\. Enter the 24 word seed phrase of the wallet to recover and select **`Next`** to finish.

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-94a35888670aa7973b794197f6baa60c30a15f4f%2Fimage%20\(49\).png?alt=media)

### Sending Tokens

1\. Select `Send` button aligned to the tokens to send

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-a9a1d2c19cd95de742adc1998b2f4df5e2ab8f22%2Fimage%20\(74\).png?alt=media)

2\. Input the information below and select `Next`:

* Address of the recipient
* Amount of token to send
* Memo is optional

{% hint style="info" %}
Station Extension also support cross-chain transfer to Ethereum addresses through [Shuttle](https://github.com/terra-project/shuttle) bridge.
{% endhint %}

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-874d6cf5f0f63724c33755e6f233e8ad6b0ee5d5%2Fimage%20\(81\).png?alt=media)

3\. Select `Send` after setting the type and amount of tokens pay as transaction fee and entering the password.

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-58b97b03488638ba38c8b1b6bd65601a1886e685%2Fimage%20\(73\).png?alt=media)

4\. Station Extension will display the result of the transaction. Select `OK` to return to the main page.

![](https://3618771758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVsib1UOY6uy1MSeWlcZ6%2Fuploads%2Fgit-blob-c88d4fae9f1d08ed010710ec2357dad514e12d4d%2Fimage%20\(78\).png?alt=media)

## Getting TerraUSD

Mirror runs on the Terra blockchain, and uses TerraUSD (UST), a USD-pegged stablecoin, as the currency of denomination and as a form of collateral. You must have a UST balance in order to use the Mirror Web App, since it pays transaction fees in UST. In addition, it is necessary to trade mAssets and provide liquidity to mAsset/MIR Terraswap pools.

There are several ways to obtain UST:

* Purchasing UST from an exchange
* Swapping LUNA or other Terra stablecoins for UST

### Purchasing UST from an exchange

The most direct way to obtain UST is to purchase it from an exchange. This requires having an exchange account with some funds that you can exchange into UST via a trading pair. For instance, you can purchase UST through [Bittrex](https://bittrex.com) through UST/BTC and UST/USDT markets, or on [Kucoin](https://kucoin.com) against BTC, ETH, USDT and XRP.

### Swapping LUNA or other Terra stablecoins tokens to UST

If you have a Terra account with a balance of Luna or other stablecoins such as KRT, or SDT, you can turn them into UST through the Terra blockchain's native swap functionality. For instance, on [Terra Station](https://station.terra.money), the official Terra desktop wallet, you can access the swap feature through the "Market" page.

1. Navigate to the "Market" page by clicking it on the sidebar. You should see a similar page:

![](https://firebasestorage.googleapis.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLRzugf7mxc4ryNhTuq%2Fuploads%2Fr3mkVkQCHQ2IR3nDQHgp%2Ffile.png?alt=media)

2\. There is a section near the bottom of the page titled "Swap coins". There, you can select the type of coins you want to swap into UST, based on the current "Terra exchange rate".

{% hint style="info" %}
The approximate spread and fee for swapping Luna to UST or other stablecoins to UST will be shown to you. The rules for determining the fees are covered in [Terra Docs](https://docs.terra.money/dev/spec-market).
{% endhint %}

3\. Click **`Next`** and sign the transaction to complete the swap.
