GithubHelp home page GithubHelp logo

curve-frontend's Introduction

curve-dapp

Curve-dapp is a NextJs user-interface application designed to connect to Curve's deployment of smart contracts. This UI application is designed for both the crvUSD and Curve dapps, and utilizes curve-js and curve-stablecoin-api to communicate with the blockchain.

Prerequisites

Before you begin, ensure you have met the following requirements:

Installation

To install curve-dapp, follow these steps:

git clone https://github.com/curvefi/curve-dapp.git
cd curve-dapp
yarn install

Usage

  1. Copy .env.sample from /apps/(loan|main) and update environment variables:
cp apps/loan/.env.sample apps/loan/.env.development.local
cp apps/main/.env.sample apps/main/.env.development.local
  1. Start development:
yarn dev

Access the application in a web browser:

Forked Mainnet

To develop against a forked mainnet, connect your wallet to the RPC URL: http://localhost:8545 or whichever port your forked mainnet is using.

Folder Structure

This repository is organized as follows:

  • /apps/main: This application manages router swaps, pool-specific functions (deposit, withdraw, swap), and pool creation React application.
  • /apps/loan: crvUSD React application.
  • /packages/ui: Shared CSS styled components using styled-components.
  • /packages/onboard-helpers: Shared wallet connection using Blocknative's Onboard.

Troubleshooting

If you have any questions, please contact the dev channel on the Curve Discord

You may also submit an issue on our GitHub Issue Tracker.

Contributing

To contribute to curve-dapp, follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to the original branch: git push origin <project_name>/<location>
  5. Create the pull request.

Alternatively see the GitHub documentation on creating a pull request.

License

This project is licensed under the MIT license.

curve-frontend's People

Contributors

amytsang avatar onlyjousting avatar mo-anon avatar philippe-git avatar

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.