Code Monkey home page Code Monkey logo

basiscash-frontend's Introduction

Basis Cash Title Image

Basis Cash Interface

This is front-end repository of the basis.cash.

๐Ÿ’ป Set Up Environment

To begin, you need to install dependencies with Yarn.

 $ yarn

You should update default provider URL because our production provider URL is limited by CORS for security. On src/config.ts, please replace it:

- defaultProvider: 'https://mainnet.infura.io/v3/OLD_PROVIDER_URL',
+ defaultProvider: 'https://mainnet.infura.io/v3/YOUR_PROVIDER_URL',

After it, you can launch the development server with following command.

 $ yarn start

๐Ÿ‘ฉโ€๐ŸŒพ If You Want to Bring Your Own Contract...

If you want to use different contract deployment on development, please build basiscash-protocol and copy-n-paste the deployment information generated on build/deployment.<network>.json into this project's deployment directory, which is src/basis-cash/deployments.

Then, you need to change the deployment reference into yours. Suppose that the new deployment file is named deployments.local.json:

- deployments: require('./basis-cash/deployments/deployments.mainnet.json'),
+ deployments: require('./basis-cash/deployments/deployments.local.json'),

โš’ Contributions

Contributions are welcome! Since we don't have any contribution guide / issue templates yet, please feel free to send PRs to the basiscash-frontend.

LICENSE: MIT

basiscash-frontend's People

Contributors

bill-95 avatar byeongsu-hong avatar defibeth avatar randomcomposition avatar summersmooth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

basiscash-frontend's Issues

Error in TWAP calculation

The TWAP calculation currently uses the Date.now() as the current timestamp when calculating elapsedTime.

It should be using the uniswap timestamp from the latest block.

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.