Inspiration

We see the blockchain world increasingly becoming a multi chain world. We believe that there will not be one completely dominant chain, but rather a collection of many chains. To this end, we wanted to help contribute to the cross chain infrastructure that is severely lacking in the space. We are working to develop the Prism Bridge to become a universal bridge that connects all chains and allows for building additional cross chain functionality on top of.

What it does

EmpireDEX and Prism Network are sister projects run by the same developer team. For this hackathon we are a submitting our Prism Bridge for OEC, which allows for $PRISM to be bridged to/from OEC to all the chains supported by Prism Network (currently Ethereum, BSC, Polygon, Fantom, Avalanche, xDai & Cronos with more coming). This Prism Bridge is also foundational for later implementation of features for EmpireDEX such as the Cross Chain Swaps.

The Prism Bridge utilises a lock, burn & mint model. PRISM is native to Ethereum. When bridging to another chain such as OEC, PRISM is locked on Ethereum and then minted on the chain being bridged to. So:

  • PRISM locked on Ethereum
  • okPRISM minted on OEC

Then when bridging back:

  • okPRISM burned on OEC
  • PRISM unlocked on Ethereum

Bridging requires confirmation on both chains to ensure that the token supply always remains the same across the multiple chains that utilise the Prism Bridge.

We have also provided links below for our EmpireDEX contracts for the DEX itself. Within this, we have integrated the Sweeping feature from ERC-31337 into the DEX contracts themselves, which allows for our 'Weaponised Liquidty' feature. For more info on this please consult: https://medium.com/@EmpireDEX.org/what-is-weaponised-liquidity-738545d44e9f.

On each chain we connect to with EmpireDEX, we launch a separate DEX token (ADEX on Avalanche, FDEX on Fantom, OKDEX on OEC etc.). This is done through a Liquidity Generation Event (LGE), which is somewhat like a pre-sale except participants receive primarily LP tokens rather than the underlying token being launched. This system was first pioneered by Core Vault and more info can be found at this link: https://help.cvault.finance/products/lge.

okPRISM: https://www.oklink.com/okexchain/address/0x4cae9482bd041e7066976370a0195d3150109151

okBRIDGE: https://www.oklink.com/okexchain/address/0xc4682e106f76b9a99dae0f971704eea60f5cf9af

OEC EMPIREDEX: Factory address: 0xd674b01E778CF43D3E6544985F893355F46A74A5 wOEC address: 0x8f8526dbfd6e38e3d8307702ca8469bae6c56c15 Router address: 0xe7A504316BebbE540496E29798187c9ECAD6ef4F Escrow address: 0x9fF555DDEbD500C0F1fa7C898dCbdb7CCa6809FC

OKDEX LGE address: 0x2302f393690487a4Fc5927bBeF63ff113E0c479d

How we built it

We built the OEC extension to the PRISM ecosystem by first creating the okPRISM token as well as the okBRIDGE satellite contract. Post creating these contracts and whitelisting the network we were able to then bridge bPRISM to okPRISM for example eg: https://www.oklink.com/oec/tx/0x5e4562c4888d285b49744c66d1edd463889c93e39f5682552f6ddb75fa9d8091

Once the bridge was complete we deployed our Factory, Router and Escrow contracts. This then allowed us to deploy the weaponsized OKDEX liquidity generation event.

Challenges we ran into

  • Working with a new explorer had its difficulties! Also working with such a low gwei amount threw us off for a little while.

Accomplishments that we're proud of

Sticking to connecting to a new chain for the Prism Bridge at a rate of ~1 network/per week! While deadlines in crypto can be hard to stick to, we've managed it so far! We are also super happy to be contributing to the overall state of cross chain infrastructure for crypto. The more bridges/projects that are helping build this cross chain infrastructure, the healthier the overall space will be for both developers and users.

What we learned

  • Bridging to new networks is both enjoyable and challenging.

What's next for EmpireDEX

We will continue to connect as many chains as we can! We are looking to expand to Harmony, Arbitrum and Optimism shortly with many, many more chains to be connected afterwards. We will also continue to work on our core features for EmpireDEX/Prism Network, such as:

Cross Chain Swaps

  • Will allow users to trade tokens directly between any EmpireDEX on any chain. So a user could sell CAKE on BSC for OKT on OEC, via routing through the Prism Bridge. With the integration of DEX aggregators, this could allow for any token on any chain being tradeable for any token on any other chain.

Bridge Factory

  • Will allow developers to build their own bridge (similar to the Prism Bridge), allowing them to split their token supply across any chain that is supported by Prism Network. Devs are in control of their own bridge, owning their own key and being responsible for maintaining the infrastructure for it, so that Prism Network/EmpireDEX does not have any centralised control over these bridges.

NFT Bridge

  • Will allow NFT's to be bridged between chains supported by Prism Network, utilising a similar mechanism that the Prism Bridge uses.

(NOTE: Video demo link outlines a bridge from Ethereum to BSC, but fundamentally the same process is used for bridging to/from OEC.)

Built With

Share this project:

Updates