Mint/Redeem vToken without Dapp

Summary

This tutorial will guide you through vToken minting and redemption without using the Bifrost Dapp, or in case the Bifrost Dapp is temporarily unavailable.

Where to do?

By using Polkadot.JS, you can directly interact with Bifrost parachain, calling specific functions such vToken minting or redemption. Choose the environment below, depends on where your assets at:

Bifrost-Polkadot (vDOT, vGLMR, vFIL, vASTR)

Bifrost-Kusama (vKSM, vMOVR, vBNC)

Token and vToken Index Library

Token Indexes on Bifrost-Polkadot

NOTE: Decimal means how many "0" follows 1 Token. E.g, DOT or vDOT decimal is 10, so 1 DOT = 10,000,000,000 which by followed up with ten "0".

TokenToken ID, U8DecimalsRedeem Period (day)

DOT

Token2, 0

10

-

vDOT

vToken2, 0

10

0-28

GLMR

Token2, 1

18

-

vGLMR

vToken2, 1

18

0-7

ASTR

Token2, 3

18

-

vASTR

vToken2, 3

18

0-10

FIL

Token2, 4

18

-

vFIL

vToken2, 4

18

0-520

MANTA

Token2, 8

18

-

vMANTA

vToken2, 8

18

-

Token Indexes on Bifrost-Kusama

NOTE: Decimal means how many "0" follows 1 Token. E.g, KSM or vKSM decimal is 12, so 1 KSM = 1,000,000,000,000 which by followed up with twelve "0".

TokenToken ID, U8DecimalsRedeem Period (day)

KSM

Token, KSM

12

-

vKSM

vToken, KSM

12

0-7

MOVR

Token, MOVR

18

-

vMOVR

vToken, MOVR

18

0-2

BNC

Token, BNC

12

-

vBNC

vToken, BNC

12

0-7

Quick Calls

Quick calls can help you quickly construct the transactions, but overview the details of each step in tutorials is strongly suggested.

All the quick calls below had constructed with right decimals with 1 Token as cases, so you can just replace the 1st number to how many acutal tokens that you want to mint or redeem , so it works.

For example, if the value is 10,000,000,000 in the case below, and you want to mint or redeem 15 tokens, simply replace 1 with 15 so that it becomes 150,000,000,000 with the correct decimals.

How to mint vToken?

  1. Please make sure you select the right chain of Polkadot JS before you follow up with the following process, it depends on what vToken you want to mint, check above section at Where to do?.

  2. Selet Extrinsics

  1. Select which address that you want to mint vToken, and construct vtokenminting, mint as below. (make sure you have BNC in balance to pay for transaction fee)

  1. Fill up what token that you want to mint for, we take an example as using 1 DOT for vDOT minting here. (Check Token Index Chart to find what to put here.)

    1. Since DOT index is Token2, 0, so we put Token2 in tokenid, and put 0 in token2:u8.

    2. Since DOT decimal is 10, so we put 10,000,000,000 in tokenAmount

    3. You can put anything in remark.

    4. Submit and sign transaction. (make sure you have wallet extension installed)

    5. Wait for transction processing and check the right corner, green means succeed, red means failed.

  1. Check your balance by select Chain State

  1. Select tokens, accounts,and input what token balance that you are checking for. In the above case, we used DOT to mint vDOT, so we want to check my vDOT balance here.

How to redeem vToken?

  1. Please make sure you select the right chain of Polkadot JS before you follow up with the following process, it depends on what vToken you want to mint, check above section at Where to do?.

  2. Selet Extrinsics

  1. Select which address that you want to redeem vToken, and construct vtokenminting, redeemas below. (make sure you have BNC in balance to pay for transaction fee)

  1. Fill up what token that you want to redeem for, we take an example as using 0.4 vDOT redeeming DOT here. (Check Token Index Chart to find what to put here.) NOTE: The minimum redeem for vDOT is 0.4 vDOT

    1. Since vDOT index is vToken2, 0, so we put vToken2 intokenid, and put 0 in vtoken2:u8.

    2. Since vDOT decimal is 10, so we put 4,000,000,000 in tokenAmount

    3. Submit and sign transaction. (make sure you have wallet extension installed)

    4. Wait for transction processing and check the right corner, green means succeed, red means failed.

  1. Wait for redemption period and receive Token back. Check corresponding redemption period of each vToken above.

Last updated