# Tutorial CreDA dApp on ESC

## Wel**come to CreDA**

You can toggle between **Light** and **Dark** mode. \
\
Before you continue, make sure you[ bridged some ELA to Elastos Smart Chain](https://creda-app.gitbook.io/creda-protocol/elastos-guides/bridge-tutorial), as you will need to pay for gas fees. **We recommend at least 2 ELA as the initial balance.**&#x20;

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2F4aiUocPDnf7WgOFBJV5I%2FEE%2016.jpg?alt=media&#x26;token=b41d450c-928f-4e0b-9c24-a87e4730feb5" alt=""></div>

## 1. Profile: Get your credit score <a href="#f73f" id="f73f"></a>

The very first time you need to manually **SYNC** your wallet, so Credit oracle calculates your Credit Score. After that, the system will auto-sync your credit score every 24h.

{% hint style="info" %}
Make sure you connected to ESC network
{% endhint %}

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2Foe2LqKt4C4YPlMRJhMwg%2FEE%2043.jpg?alt=media&#x26;token=415afa01-ac8f-4e6a-af9a-349abf2d15c4" alt=""></div>

## 2. Mint cNFT <a href="#f73f" id="f73f"></a>

#### Profile menu

To be able to mint cNFT, your credit score needs to be above 50!

On the **Profile** tab within the **Credit NFT** window on the right, click **“Mint”**. Pay attention to confirm tx as it will appear on your MetaMask / Essentials.

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2FdBZM1mr3NwZUROHRb9EB%2FEE%2019.jpg?alt=media&#x26;token=caf2e804-ed3c-4a57-80f7-bb43344a4665" alt=""></div>

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2FLIRJRDI8NC4XDhWZfiO5%2FEE%2020.jpg?alt=media&#x26;token=5dc400c3-1e09-4130-a07d-c8150d772945" alt=""></div>

After a successful transaction, you will see your cNFT:\
\- **Level 1** is only possible at the moment. \
\- **Number (NO.)** that is unique and belongs to your wallet

{% hint style="info" %}
Users will be able to use CREDA tokens to upgrade the cNFT they already own. \
**At this stage Level 1 and Level 2 are possible!** **Don't lock more than 11 CREDA!**\
\
cNFT upgrade to **Level 2** was unlocked once we passed **>100 cNFT mints** on ESC in total and you can already upgrade from Level 1 to Level 2 if your **credit score is among the top 10%** across all that have minted cNFT). Level 2 mint comes with 11 CREDA collateral locked in your cNFT.
{% endhint %}

{% hint style="info" %}
Elastos Smart Chain block explorer: [https://esc.elastos.io/](https://esc.elastos.io/)
{% endhint %}

## **3. F**ree **CREDA drop (Locked balance)**&#x20;

#### Vault menu

After successful credit score sync and cNFT mint, you got dropped some **CREDA in locked status** based on your Credit Score. The higher the credit score, the larger the CREDA-locked balance.&#x20;

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2FnpL0O0LhLzV18FnRcf2A%2FEE%2029.jpg?alt=media&#x26;token=38acf61c-413b-4e8c-b3b9-d2e17576b5e7" alt=""></div>

Once you **CLAIM** your locked balance, continue with the unlocking process below.

## 4. Unlock the CREDA TOKEN <a href="#id-16b0" id="id-16b0"></a>

#### Vault menu

At the moment there are 2 ways you can receive a locked CREDA drop:

1. As a direct result of your Credit Score
2. Staking rewards from mining pools

In both cases, minted CREDA is **locked CREDA.** To start the unlocking process, follow the next steps.

### **Step 1**

Go to **Vault menu** and **CLAIM** free (locked) CREDA

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2FjgyTmWWsPM2wmxrx75xg%2FEE%2030.jpg?alt=media&#x26;token=390979d0-11be-412c-aac8-2714a43bacd6" alt=""></div>

Once you **CLAIM** your locked CREDA balance will show in the **'locked amount'.**

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2FGLYL6VPUhRKfvyk5OZcn%2FEE%2031.jpg?alt=media&#x26;token=1c481934-4907-4631-b9eb-0edc4a3df267" alt="Locked 71.2 + claimed 35.6 CREDA = total of 106.80 CREDA for unlock"></div>

### **Step 2**

Click “**Get LP**” to provide the [CREDA-ELA liquidity on Glide](https://glidefinance.io/add/0xc136E6B376a9946B156db1ED3A34b08AFdAeD76d/ELA).

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2Fr1wKXtAGG8AQJdGYMLMJ%2FEE%2032.jpg?alt=media&#x26;token=5e67e934-e039-4f82-8736-c1ba072ded5a" alt=""></div>

{% hint style="info" %}
For providing Glide-LP liquidity, you will need **unlocked CREDA** + ELA on your wallet balance. You can buy unlocked CREDA directly on [Glide](https://glidefinance.io/swap).\
\
**CREDA in locked status can't be traded, swapped, or bridged!**
{% endhint %}

You can always check your LOCKED / UNLOCKED wallet balance within Vault menu!

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2FE7JKWMtvaGrj4UzCmiCO%2FEE%2042.jpg?alt=media&#x26;token=a8950b64-8a56-4e34-b609-3b4cf2a76b18" alt=""></div>

{% hint style="info" %}
Before proceeding with adding Glide LP, make sure you have some CREDA under **Unlocked CREDA balance.**
{% endhint %}

### Step 3

Go back to adding the Liquidity window and on the Input side enter CREDA you would like to stake and ELA will be auto-calculated (in our case we adding 10 CREDA tokens).

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2FY64PZ4pZCNtJRwpl3Rd2%2FEE%2035.jpg?alt=media&#x26;token=d20f5b9d-ab05-402d-8177-2d5900fac5ca" alt=""></div>

After confirming the Supply, you will see a confirmation page below.&#x20;

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2Foupr0b20qvc3cWSCU8mx%2FEE%2036.jpg?alt=media&#x26;token=34b0d369-f5e8-49c9-be24-7b5247c3199f" alt=""></div>

Exit Glide dApp and log back into [CreDA dApp](https://www.creda.app/).

### **Step 4**

Now that we got **4.27 CREDA/ELA Poll Tokens**, we need to stake them.

#### Vault menu > Unlock CREDA

Click on **“Approve”** and then **“Stake”** to stake CREDA/ELA LP.&#x20;

{% hint style="info" %}
If for any reason you can't see LP balance in your wallet before staking it, you can add the contract address manually.

LP CREDA-ELA: **0x922BfF1d745e88DEDEe5f38776cFe343bd843A7c**
{% endhint %}

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2FsANkjddRp8rT7OLNXaUD%2FEE%2037.jpg?alt=media&#x26;token=eb6ba2d0-3abd-49b0-8226-7b39c0bdf06e" alt=""></div>

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2FmyFFndv9OB1OpM3OmczM%2FEE%2038.jpg?alt=media&#x26;token=92e3e426-ad3d-4282-95c4-e2115b0e41af" alt=""></div>

{% hint style="info" %}
Input no more than 2 decimal places and use dot as separator (not ",")
{% endhint %}

### **Step 5**

#### Vault menu > Unlock CREDA



Providing CREDA/ELA liquidity gradually releases, or **“unlocks”**, your CREDA.

You will find the amount of unlocked CREDA as shown below.

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2F8s6HxIOO4LKkwBHev7gz%2FEE%2044.jpg?alt=media&#x26;token=67b46894-ad3f-4db2-b3c0-7bdb37fa5657" alt=""></div>

{% hint style="info" %}
**Staked** = CREDA/ELA Pool Tokens

**Speed/Day** = your current unlocking speed rate

**Unlocked** = unlocked CREDA for claim

**Remaining** = TOTAL unlocked CREDA balance in unlocking process
{% endhint %}

When you unlock your CREDA balance, simply **CLAIM** it.

## 5. Unlocking mechanism

| Glide LP Staked (CREDA/ELA) | Number of CREDA unlocked per day |
| :-------------------------: | :------------------------------: |
|             0.1             |               0.001              |
|              1              |               0.01               |
|              5              |               0.05               |
|              10             |                0.1               |
|              50             |                0.5               |
|             100             |                 1                |
|             500             |                 5                |
|            1,000            |                10                |

{% hint style="info" %}
The Unlock Speed can not be higher than 10% of the locked token balance.
{% endhint %}

## 6. Mine CREDA Token <a href="#id-95d2" id="id-95d2"></a>

#### Vault menu > **Hard Launch Mining Pool**

You can choose between 5 mining pools:\
\- ELA\
\- USDC\
\- FILDA\
\- GLIDE\
\- ELK

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2FDY2zPexStPUYgz3Et9Zw%2FEE%2040.jpg?alt=media&#x26;token=6f0727d2-dee1-4f7b-b5c6-73667520ec3e" alt=""></div>

{% hint style="info" %}
**Mine Limit is your upper limit for mining CREDA in these pools.**\
\
Mine Limit reflects your calculated Credit Score (294) minus the balance that is already in the unlocking process (88.20 CREDA) = 205.80 CREDA remaining mine limit.\
\
**After you reach your mine limit, further CREDA mining stops.**
{% endhint %}

## **7. Stake**

Once you successfully deposited assets in the chosen pool(s), you started mining **CREDA in locked status.** For the unlocking process, see [Step 4.](https://creda-app.gitbook.io/creda-protocol/elastos-guides/tutorial-creda-dapp-on-esc#16b0)

{% hint style="info" %}
**Once you unstake the ELA pool, you might receive it back on your wallet balance as WELA (wrapped ELA).**
{% endhint %}

<div align="left"><img src="https://1888623400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIkBpl0Jl7LkylvgjTcLr%2Fuploads%2FM70cJK7Xfx7O66TILE8s%2FEE%2041.jpg?alt=media&#x26;token=a709e9c4-02fe-4ebf-b229-476134e10ff9" alt=""></div>
