# App Tutorial

Welcome to Escher.finance! This tutorial will guide you through using the app step by step.

App: [Escher.finance](https://www.escher.finance/)

### 1. Connect Your Wallet

Escher.finance currently operates on EVM chains, with this demo running on Berachain. We support two popular wallets:

* [MetaMask](https://metamask.io/faqs/)
* [Rabby](https://medium.com/@rabby_io/rabby-wallet-easy-onboarding-for-new-users-6fb1ab26ef40)

<figure><img src="/files/ogDp8DPmPQIyB90vjJ88" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/5rs4jqRbYtAjgA9m4LEj" alt=""><figcaption></figcaption></figure>

More wallet options will be added soon.

### 2. Obtain Tokens

After connecting your wallet, you'll need to acquire two types of tokens:

<figure><img src="/files/tZfdmezh5h6T6FFoDAB9" alt=""><figcaption></figcaption></figure>

1. **Bera Tokens**: Used for paying gas fees on Berachain.

<figure><img src="/files/Lke1Ov2b17iQTFns5O2C" alt=""><figcaption></figcaption></figure>

2. **Union Tokens**: ERC20 version of the Union chain token, used for staking to secure and earn rewards on the Union chain.

<figure><img src="/files/bDAWUFb4X0UYWZcA2s4z" alt=""><figcaption></figcaption></figure>

### 3. Claim Your ICA Controller

Now that you have gas tokens (Bera), you can claim your ICA controller. The ICA controller serves as a gateway for interacting with the Union Chain and the ICA on Union.

<figure><img src="/files/V69MMB87MNOvdQcRNIzh" alt=""><figcaption></figcaption></figure>

### 4. Stake Tokens

Sending and staking tokens happen together:

<figure><img src="/files/mEYT8qNVJPUWa7qcoxYt" alt=""><figcaption></figcaption></figure>

1. Select the amount of Union tokens you want to stake.
2. Send the tokens.

<figure><img src="/files/9Cn9g0pr0o3qSO9VHnhk" alt=""><figcaption></figcaption></figure>

3. The authz contract will automatically stake them for you.

<figure><img src="/files/iJGr6o1VlFV9lx9NvXgk" alt=""><figcaption></figcaption></figure>

and than:<br>

<figure><img src="/files/1QLSoGBDjS2oV1hGW5Cw" alt=""><figcaption></figcaption></figure>

Note: This process can take up to 15 minutes.

### 5. Manual Staking Option

If the Authz contract is down for any reason, you can use the manual operation to stake:

1. Go to the manual operations section.

<figure><img src="/files/kUo7bgHGjVrUjjKqWZHL" alt=""><figcaption></figcaption></figure>

2. Send a message to stake your tokens.

<figure><img src="/files/LX10jYC3ba5fFVzcwuOC" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7ipymRf2PkZlEIexbHhi" alt=""><figcaption></figcaption></figure>

### 6. Withdraw Rewards

You can withdraw your rewards directly to your EVM wallet with one click:

1. Click the "Withdraw" button.
2. This action will withdraw all of your available rewards.

<figure><img src="/files/8ge1wxqr65djQVMGUYYU" alt=""><figcaption></figcaption></figure>

### 7. Restake (Compound) Rewards

To compound your rewards:

1. Click the "Restake" button.
2. This will automatically restake your rewards, increasing your total staked amount.

<figure><img src="/files/SZgDbY8Sp7F8byuAB4IH" alt=""><figcaption></figcaption></figure>

### 8. Unbond Tokens

Unbonding tokens is a process that takes 21 days (a mechanism of the Cosmos SDK):

<figure><img src="/files/7ySvgjwJMMSCzzCybhf9" alt=""><figcaption></figcaption></figure>

1. Initiate the unbonding process.

<figure><img src="/files/z2YXYjfCu1zRNDCrgAF7" alt=""><figcaption></figcaption></figure>

2. Wait for the 21-day period to complete.

<figure><img src="/files/M64J5phcdsmtBDbx9XMQ" alt=""><figcaption></figcaption></figure>

3. Once unbonded, go to the manual operations section.
4. Send your tokens to your EVM address.

***

Congratulations! You now know how to use the main features of the Escher.finance app. If you have any questions or encounter any issues, please don't hesitate to contact our support team.

Happy staking!


---

# 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.escher.finance/app-tutorial.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.
