Mechanism
Last updated
Last updated
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.
A user requests the bridge to convert tBORA to pBORA on the Bora network.
When this request is accepted, tBORA is locked in the VaultContract
.
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/).
On the Polygon network, the information from sent message is recorded by MelterContract
.
Based on this record, the MelterContract
asks the AutoRequestContract
to mint pBORA.
When the request is accepted, pBORA is minted and sent to the user’s wallet.
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.
A user requests the bridge to convert pBORA to tBORA on the Polygon network.
When this request is accepted, pBORA is burned by the AutoRequestContract
, and a record of this is modified in the MelterContract
.
Purple Bridge sends the message containing information of burned assets including timestamp, amount and wallet address to the Bora network.
On the Bora network, the information from sent message is delievered to VaultContract
.
When the request is accepted, tBORA is released and sent to the user’s wallet.
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.