Starcoin Track, FAI Guide
Starcoin Track, FAI Guide
* By Starcoin community 

In the past two years, with the rapid development of DeFi, DeFi tracks such as DEX and StableCoin have also continued to make great progress, and many high-quality projects have emerged on the StableCoin track.

The Starcoin ecosystem has several high-quality StableCoin protocols implemented by Move, such as the FAI introduced earlier. This article will introduce another protocol on the StableCoin track - the WEN protocol.

The WEN protocol is completely implemented through Move. The token’s Chinese name is Stablecoin, which has been deployed to Starcoin’s Barnard test network.

Select the Correct Network

Set up StarMask’s network first. If it is the main network, choose the Starcoin main network. In this article, we will use the Barnard test network, so set the StarMask network to the Barnard network.

0

Ensure StarMask Has Enough STC

StarMask must have enough STC to perform subsequent operations FAI. Run test on the Barnard network, so you need to apply for the STC required for the test through the Starcoin faucet. In the case of the main network, users are required to top up their wallet accounts by themselves.

  1. Faucet

    Find Barnard’s Faucet on Starcoin official website

    starcoin_faucet

  2. Copy Account Address

    Copy your own account address from StarMask

    barnard_address_copy

  3. Apply for Test STC

    Fill in the account address in step 2 to the Starcoin faucet opened in step 1 to apply for STC on the Barnard testnet.

    It should be noted here that, in order to prevent malicious applications, the faucet website needs to bind a Twitter account to apply.

    starcoin_barnard

First Time to Use WEN

When first time using WEN, there is some simple initialization work.

  1. Visit WEN Official Website

    Click this link to visit WEN official website, the red arrows mark there are two experience entrances.

    wen_1

  2. Connect to StarMask Wallet

    Click “Connect Wallet” button on the right corner to connect your own StarMask wallet as shown.

    wen_2

  3. Select Wallet

    Select the corresponding explore plug-in wallet in the pop-up box, here select StarMask.

    wen_3

Stake and Lending

After connecting to the wallet, enter the lending page to perform Stake and Lending operations.

wen_4

  1. Stake and Lending

    In stablecoins, these two steps can be completed in one transaction or separated into two transactions.

    1: Click “Borrow” button, go to lending function.

    2: Enter the amount of STC Staked in the input box, or click the “Max” button to stake all STC in the current account.

    3: Enter the amount of STC needed to lending in the input box, it should be noted here:

    • Maximum amount of WEN that can be borrowed
    • Different quantities result in different Position Health and risk of liquidation.

    4: Open StarMask wallet, initiate transaction.

    Steps 2 and 3 are not necessary, which means splitting the stake and lending into two different transactions.

    starcoin_wen_6

  2. Initiate on-chain transactions

    This step is an operation in StarMask, sign the transaction,then to confirm the transaction, and then submit the transaction on the chain.

    wen_7

  3. Update Balance

    After the transaction is on the chain, the balance of the WEN account will change.

    wen_8

Repay and Withdraw

After borrowing WEN, it can also be returned at some point in the future, and the STC can be withdrawn from the WEN account.

  1. Repay and Withdraw

    In stablecoins, these two steps can be completed in one transaction or separated into two transactions.

    1: Click “Repay” button, go to repay function.

    2: Enter the amount of WEN need to repay in the input box, or click the “Max” button to repay all WEN in the current account.

    3: Enter the amount of STC need to withdraw in the input box, or click the “Max” button to withdraw all STC in the current account.

    3:Open StarMask wallet to initiate a transaction.

    Steps 2 and 3 are not necessary, which means splitting the repay and withdraw into two different transactions.

    wen_9

  2. Initiate on-chain transactions

    This step is an operation in StarMask, sign the transaction,then to confirm the transaction, and then submit the transaction on the chain.

    wen_10

  3. Update Balance

    After the transaction is on the chain, the balance of the WEN account will change.

    wen_11

Starcoin and WEN

WEN has been deployed on the Barnard network, and you can experience it first if you are interested. The operability of the WEN protocol is relatively easy, and it is currently undergoing the next upgrade to add more liquidity and richer features.

Move is a smart contract language specially designed for financial scenarios and has high security. Starcoin is the first permissionless public chain that supports the smart contract language Move, so Starcoin will surely have a bright future in the DeFi field. As one of Move’s representative projects on the StableCoin track, the WEN protocol is worth looking forward to.