Mint

To mint pegged token for user on pegged chain, FE(front-end) needs to do the following things:

  1. Get basic pegged configs through cBridge gateway. The same api as general token transfer

  2. After collecting all needed information, always get updated estimation for the mint. The same estimation api as general token transfer

  3. Check user's on-chain token allowance for cBridge contract. If the allowance is not enough for mint, trigger the corresponding on-chain approve flow

  4. Submit on-chain deposit/mint request to cBridge OriginalTokenVault contract on source chain

  5. Get transfer status repeatedly to check whether the mint is complete.

Last updated