LogoLogo
HomeDappGithub
  • 🌈What is Bifrost
    • Bifrost vs Others
    • Bifrost cross-chain architecture
    • Bifrost security model
  • 🧬Tokenomics 2.0
    • Overview
    • Protocol Growth Flywheel
    • Core - bbBNC
      • How to maximize your bbBNC yield?
      • How to get or redeem?
    • BNC
    • vBNC
    • Treasury
  • 📚FAQ
    • Glossary
    • What are vTokens?
      • vETH
      • vKSM
      • vDOT
      • vFIL
      • vGLMR & vMOVR
      • vMANTA
      • vASTR
      • Validator Governance
      • XCM V3 in Bifrost
      • Mint/Redeem vToken without Dapp
    • What is LoopStake?
      • LoopStake Lending Parameters
    • What is LST Governance?
    • What is LST Stable Swap?
    • What is vToken Delegation Voting?
  • 🏃Dapp Tutorials & use cases
    • Liquid Staking on Bifrost
    • Liquid Staking on Omni LS
    • Loop Stake (Leverage Staking)
    • Governance with vDOT & vKSM
    • Providing Liquidity on DEX/Perp DEX
    • Supplying Liquidity on Money Market
    • Yield DCA
    • Farming
    • Unstaking
  • 🦸For the Community
    • Ambassadors
    • Governance
      • Overview
      • Proposal Guidelines (polkadot.js)
      • Proposal Guidelines (Subsquare)
      • OpenGov Components
      • OpenGov Tracks
        • Root
        • WhitelistedCaller
        • Liquid Staking
      • Proposal Template
        • HRMP
        • Validator Boost List
      • Bifrost Fellowship
      • On-chain Identity
    • Rainbow Boost
  • ⚒️For Builders
    • Build with SLPx
      • Overview
      • Supported Networks
        • Soneium
        • Astar
        • Manta Pacific
        • Moonbeam
        • Moonriver
        • Ethereum
      • XCM Oracle
    • vToken APIs
    • Builder Programs
      • Grants and Funding Program
      • Open Bounties
      • Bug Bounty
  • 🧩For Partners
    • Reward-Share Program (RSP)
      • Why RSP?
      • Integrate RSP
      • Claim RSP Rewards
      • Terms & Conditions
      • FAQ
    • Join The Program
    • Validator Boost List (VBL)
  • ⚖️For Collators
    • Requirement
    • Run a Collator
    • Stop Collating
  • 📦Resources
    • Tools
    • Audit Report
    • Press Kit
    • Token Icon
Powered by GitBook
On this page
  • Summary
  • Where to do?
  • Token and vToken Index Library
  • Token Indexes on Bifrost-Polkadot
  • Token Indexes on Bifrost-Kusama
  • Quick Calls
  • How to mint vToken?
  • How to redeem vToken?

Was this helpful?

  1. FAQ
  2. What are vTokens?

Mint/Redeem vToken without Dapp

PreviousXCM V3 in BifrostNextWhat is LoopStake?

Last updated 6 months ago

Was this helpful?

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, vBNC)

Bifrost-Kusama (vKSM, vMOVR)

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

Token
Token ID, U8
Decimals
Redeem 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

-

BNC

Native, BNC

12

-

vBNC

vToken, BNC

12

0-7

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

Token
Token ID, U8
Decimals
Redeem Period (day)

KSM

Token, KSM

12

-

vKSM

vToken, KSM

12

0-7

MOVR

Token, MOVR

18

-

vMOVR

vToken, MOVR

18

0-2

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.

Token
Mint
Redeem

vDOT

vGLMR

vASTR

vBNC

vFIL

vMANTA

vKSM

vMOVR

How to mint vToken?

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

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

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

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

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

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

📚
Where to do
Token Index Chart
Where to do
Token Index Chart
above
1 vDOT
1 vDOT
1 vGLMR
1 vGLMR
1 vASTR
1 vASTR
1 vBNC
vBNC
1 vFIL
1 vFIL
1 vMANTA
1 vMANTA
1 vKSM
1 vKSM
1 vMOVR
1 vMOVR
Polkadot/Substrate Portal
Logo
Polkadot/Substrate Portal
Logo