Burn Refund

Once the user's previous transfer status is TRANSFER_TO_BE_REFUNDED, FE(front-end) needs to handle as follows to bring back user's assets to his/her wallet:
  1. 2.
    Submit on-chain mint request to cBridge PeggedTokenBridge contract with information provided by cBridge gateway in getTransferStatus response
  2. 3.
    Get transfer status repeatedly to check whether the transfer refund is complete.
If burn flow failed, it means the canonical tokens have been burnt. To bring them back, you should tell cBridge PeggedTokenBridge contract to mint corresponding tokens.
You should submit transaction to PeggedTokenBridgeV2 if you interact with PeggedTokenBridgeV2 for the previous transfer