Starcoin Track, FAI Guide | Starcoin

* By Starcoin community

Recently, Starcoin ecosystem has had comprehensive upgrade. After Oracle, NFT and other leading-edge applications have joined Starcoin ecosystem, a batch of applications in the DeFi field such as Swap, Stablecoin, and Bridge has emerged.

The FAI track has been deployed on Starcoin's Barnard network and will be launched on the main network soon. When FAI is about to launch, read FAI operation guide, and let's start together.

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.

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

2. Copy Account Address

Copy your own account address from StarMask

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.

First Time to Use FAI

To FAI new users, you need to do some initialization work before FAI mining.

  1. Visit FAI Official Website

Click this link to visit FAI official website.

2. Connect to StarMask Wallet

Click "Connect" button to connect your own StarMask wallet as shown.

3. Create FAI Account

After successful connection of StarMask, you will be prompted to create an FAI account. Click the "Enable Vault" button to create an account.

Initiate a transaction created by the FAI account in StarMask wallet, and here is the real on-chain transaction on Starcoin.

If the FAI account is successfully created, there will be a prompt of "Create Vault Success!"

4. Deposit Token

Here we take depositing STC as an example to explain.

  1. Deposit STC

① Click "Supply" button to call deposit function.

② Enter the number of STCs to be deposited, or click the Max button to deposit all STCs.

③ Click "Supply" button, open StarMask wallet

2. Initiate an on-chain transaction

Click the Confirm button in StarMask wallet to initiate an on-chain transaction.

If the transaction is successful, there will be a prompt of "Supply Success!"

Mint Stable Coins

Token has been deposited into the FAI account in previous section, now you can start to mint your own FAI stable coin.

  1. Mint FAI

① Click "Mint" button, go to cast page.

② Enter the amount of STC mortgaged in the input box, or click the "Max" button to mortgage all STC in the current account.

③ Click "Mint" button to open StarMask wallet.

2. Initiate on-chain transactions

Click "Confirm" button in the StarMask wallet to initiate an on-chain transaction.

If the transaction is successfully created, there will be a prompt of "Mint Success!"

Repay FAI

Mortgaged token can be used to mint stable coin, and also can be used to repay FAI, retrieve mortgaged token.

  1. Repay FAI

① Click "Repay" button, go to repay page.

② Enter the amount of STC need to repay in the input box, or click the "Max" button to repay all STC in the current account.

③ Click "Repay" button to open StarMask wallet.

2. Initiate on-chain transactions

Click "Confirm" button in the StarMask wallet to initiate an on-chain transaction.

If the transaction is successful, there will be a prompt of "Repay Success!"

Withdraw

No matter how many Tokens have been deposited into the FAI account,or the Token was retrieved after repaying to the FAI account, the FAI account may have balance, which can be withdraw through the withdraw function.

  1. Withdraw

① Click "Withdraw" button, go to withdraw page.

② 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.

③ Click "Withdraw" button to open StarMask wallet.

2. Initiate on-chain transactions

Click "Confirm" button in the StarMask wallet to initiate an on-chain transaction.

If the transaction is successful, there will be a prompt of "Withdraw Success!"

Starcoin and FAI

Starcoin has several expectable stablecoin projects, and FAI is one of the high-quality projects. This article is the guide of FAI. For more information about FAI's model, please pay attention to FAI's official website.

Starcoin uses Move as a smart contract programming language. Since Move is a more secure smart contract language customized for DeFi scenarios, FAI is implemented through Move, which can better ensure the security and reliability of FAI, which is worth looking forward to.

Originally published at https://starcoin.org.

--

--

--

Starcoin is a proof-of-work blockchain that enables secure smart contracts to power services in decentralized finance, gaming and NFTs.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Token Burning: Securing cryptocurrencies

ERA token: Make money playing!

As DeFi lifts off, decentralised exchanges are spreading their wings

Happy 1st Birthday TotemFi

Key Reasons Why Advertising and Marketing are Critical To The Cryptocurrency Industry

crypto marketing services are critical to any crypto business

TALENTA DAILY NEWS

Weekly Highlights from Robi! | April 4— 10

Optimism Is The End Of Ethereum (As We Know It)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Starcoin

Starcoin

Starcoin is a proof-of-work blockchain that enables secure smart contracts to power services in decentralized finance, gaming and NFTs.

More from Medium

In-Depth Comparison of ERC20 and Starcoin’s t Token Protocol | Starcoin

Comdex — Decentralized Synthetics Exchange

Participate In Our “The Soul of the Chat” Competition & Share the $250 Prize Pool on Our Telegram

How to stake $DVPN tokens with Sentinel