GithubHelp home page GithubHelp logo

albertov19 / balancer-exchange-moonbeam Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 11.21 MB

Balancer Exchange integrated to Moonbeam

License: GNU General Public License v3.0

Shell 0.48% JavaScript 30.96% HTML 0.59% CSS 0.60% TypeScript 67.12% SCSS 0.25%

balancer-exchange-moonbeam's Introduction

Balancer Exchange for Moonbeam

This is forked from the original balancer-exchange repository. It was adapted so it works with Moonbase Alpha and a Moonbeam Standalone Node

Getting Started

Copy the .env.example file:

cp .env.example .env

Double check the data on the file and modify accordingly (port for standalone for example). Configure supported network (by default was set to Moonbase Alpha)

# Supported Network ID (e.g. mainnet = 1, rinkeby = 4, kovan = 42)
REACT_APP_SUPPORTED_NETWORK_ID="1287"

Depending on the Network you selected you need to rename the allPublicPools*.json file located in ./src to the one of the network you are trying to run. (Once Moonbeam supports TheGraph and there is a Balancer SubGraph running, this should not be necessary)

Install packages:

yarn install

Build and/or run locally

yarn build
yarn start

Adding Custom Tokens to the Default List

If you want to deploy your own ERC-20 Tokens you can do so. You need to modify the following files located in the ./node_modules/@balancer-labs/assets/generated/dex - In there, modify the file in accordance to the network you want to add the ERC20 tokens to, following the same structure as for other tokens there.

Also, add the tokens to the listed.tokenlist.json and vetted.tokenlist.json files (it is not used in this repo but it might be used in other balancer repos)

Adding your Custom Pools

While TheGraph is not supported, we work with the allPublicPools JSON file described before. Add the pools you deploy to that file and restart the front end.


Have fun :)

balancer-exchange-moonbeam's People

Contributors

albertov19 avatar bonustrack avatar fernandomartinelli avatar johngrantuk avatar jpkcambridge avatar mikemcdonald avatar tomafrench avatar tspoff avatar xela101 avatar

Watchers

 avatar

Forkers

fotescodev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.