GithubHelp home page GithubHelp logo

vigor-app's Introduction

Netlify Status

Vigor-App

vig.netlify.com/

This repo manages the standalone React frontend for the Vigor stablecoin app. (The frontend integrated into the eosDAC memberclient can be found here.)

Development

The master branch acts as the stablebranch that will be deployed and any feature development should branch off dev.

This project was bootstrapped with Create React App.

Setup

Local development:

yarn
yarn start

Production build:

yarn
yarn build

Translations

This project uses react-intl for internationaliztion with react-intl.macro for automatically extracting and updating translation files.

More Info

Every text that should be translated needs to be wrapped in a FormattedMessage imported from react-intl.macro for the automatic string extraction to work.

import { FormattedMessage } from 'react-intl.macro';
<FormattedMessage id="uniqueId" defaultMessage="Default message in English" />

The JSON translation files can be found in src/modules/i18n/translations. To extract strings and update these translation files with new IDs you run this script:

yarn run i18n:extract

You can then pass these translation files to a translator.

vigor-app's People

Contributors

gartox avatar mrtoph avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vigor-app's Issues

Display an estimate of the premium that a potential borrower would pay to purchase loan insurance

From the telegram conversation:

Our VIGOR stablecoin project has an important request here for a function written in nodejs. Here's what we need:

We need to display in the UI an estimate of the premium that a potential borrower would pay to purchase loan insurance. In other words, the change in premium for a change in debt level (I don't wanna use delta, because I want estimates for large changes in debt level) We can query the state to gather all of the inputs (along with one additional input given by the potential borrower i.e. how much VIGOR debt they want to borrow). Given those inputs we can implement our pricing function (see below) off-chain in nodejs to provide an estimate. so there can be like a slider for debt amount that is immediately responsive.

Pricing model to be implemented in nodejs and callable from the UI is here:
https://github.com/vigorstablecoin/vigor/blob/master/contracts/vigor/src/vigor.cpp#L558

Also note that the estimate will also be useful for users that want to adjust the amount of debt they have, up or down.

Estimating change in premium for a change in collateral level can also be done, in a simplified way so as not to have a need to replicate stress testing off chain. I can share details later. it's simple. basically user.volcol and user.valueofcol will be adjusted.

someone started writing a solution for this in nodejs: https://github.com/decentrawise/vigor-pricing

Add referral system, portion of insurance premium to referrer

Add referral link capability that allows projects/users to share. The person using the link will have the referrer account linked to their user account forever and a small portion of their insurance premiums will go to the referrer for life. This is a very good method for advertising

Add Footer

We should have a footer with social media links and links to other relevant websites:

On the left:

  • Link to vigorstablecoin.com
  • Link to Vigor DAC Member client

On the right:

  • Link Telegram group
  • Any other social media we are on

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.