DeFi Bridge
In this article, we want to highlight the decentralized nature of the blockchain and how we also do our best to build our apps in a decentralized way. Because we genuinely believe to our core that decentralization is the future. There’s a good reason why we call it Web 3.0.
The farm started at a whopping 600% APR, and within a day, it dropped to 60% APR. So make sure that you are there on time when the next farm comes around. Swap your tokens and start farming your EFX now at: https://bridge.effect.network.
Not only can you interact with the smart contract directly yourself via a blockchain scan website such as https://bscscan.com, but you can also download the frontend Vue app we built and interact with it yourself.
So come along and join us on this little tutorial. See how you can host the bridge yourself. Start participating with us on our GitHub, submit a pull request, create an issue, and let’s build out this decentralized future.
But before we go there, what’s DeFi?
DeFi is this little thing that has been booming for the past two years within the blockchain world, and it’s short for Decentralized Finance. DeFi is an umbrella term for financial smart contracts that operate on Ethereum-like blockchains. With the advent of programmable money on smart contracts, exciting features can be built with these smart contracts.
You can now let your EFX tokens generate more value by locking them up in a DEX (Decentralized Exchanges). Effect Network has been hard at work this year to bring EFX to other blockchains, starting with the Binance Smart Chain. That means that we can now begin using DeFi services such as Pancake Swap.
Now let’s take a look at running the bridge.
Requirements
Before we can get started, we will need to install some software, namely NodeJS.
Command Line
You’ll need to brush up on your command line knowledge, macOS comes equipped with the Terminal while Windows has
Installing Node
This dApp is made using Vue, but we’ll need NodeJS to serve the files after building them. At the time of writing, we’ll need to use node v16 to run this. Currently, v16 isn’t in its Long Term Support yet, but it will be next week. If you are reading this article a year from now, please check the GitHub repo for the latest information on installing this dApp.
Use one of the following installers at this link for your operating system. Make sure you download the Node version: v16.xx.yy
.
After downloading and installing NodeJS, you should issue the following command in your terminal and get a response
node --version #v16.10.0
Installing Git (optional)
Git isn’t necessary to get started, but it will make the whole process easier. It is available by default on macOS and Linux distributions but needs to be installed on Windows machines. Get it at the following link: Git Guides — install Git.
Get the bridge
The bridge can be found at our GitHub: https://github.com/effectai/bridge-frontend
While you’re there, don’t forget to give us a star ✨. If you are familiar with Git, you can easily download the repository by issuing the following command in your command line.
git clone <https://github.com/effectai/bridge-frontend.git>
Afterward, we’ll need to cd
into the newly created folder to find the code.
cd bridge-front
Now we should be in the folder containing all the code. All that is needed now is to install the requirements for Node, generate the static site, and serve the static site locally.
npm install && npm run generate && npm run start
If everything went well, you should see the following output in your terminal:
╭──────────────────────────────────────────╮
│ │
│ Nuxt @ v2.15.8 │
│ │
│ ▸ Environment: production │
│ ▸ Rendering: client-side │
│ ▸ Target: static │
│ │
│ Listening: <http://192.168.1.2:3000/> │
│ │
╰──────────────────────────────────────────╯
Now open up your favorite browser and navigate to http://localhost:3000, and you’ll find the bridge running locally on your machine! You’ll be able to connect your wallet, swap your tokens, and farm EFX.
Conclusion
Not only can you farm EFX at https://bridge.effect.network, but you can also get rewards by becoming an EffectDAO member. You can learn more about EffectDAO and sign up at the following link: https://dao.effect.network/