Purple Bridge
Search
K

Mechanism

PurpleBridge Mechanism

Bridge

Lock and Mint

Users can bridge their assets from source chain to destination chain utilizing Purple Bridge.
In this section, mechanism of Purple Bridge is explained by detailed steps of bridging tBORA Token to the Polygon network.
  1. 1.
    A user requests the bridge to convert tBORA to pBORA on the Bora network.
  2. 2.
    When this request is accepted, tBORA is locked in the VaultContract.
  3. 3.
    Purple Bridge sends the message containing information of locked assets including timestamp, amount and wallet address to the Polygon network via C2CC, omnichain messaging protocol(https://c2cc.xyz/).
  4. 4.
    On the Polygon network, the information from sent message is recorded by MelterContract.
  5. 5.
    Based on this record, the MelterContract asks the AutoRequestContract to mint pBORA.
  6. 6.
    When the request is accepted, pBORA is minted and sent to the user’s wallet.

Burn and Release

In the following section, mechanism of ‘Burn and Release’ is explained by detailed steps of bridging pBORA to the Bora network.
This process is similar to the reverse of the Lock and Mint process, but with some differences.
  1. 1.
    A user requests the bridge to convert pBORA to tBORA on the Polygon network.
  2. 2.
    When this request is accepted, pBORA is burned by the AutoRequestContract, and a record of this is modified in the MelterContract.
  3. 3.
    Purple Bridge sends the message containing information of burned assets including timestamp, amount and wallet address to the Bora network.
  4. 4.
    On the Bora network, the information from sent message is delievered to VaultContract.
  5. 5.
    When the request is accepted, tBORA is released and sent to the user’s wallet.

DEX

Purple Bridge supports MiniDEX functionality for pBORA and USDC on the Polygon network. Users can swap on MiniDEX and also earn rewards through providing liquidity.