Go to file
Linkie Link f1ee4bd7f3
Mp 3330 compare accounts via use updated account for vaults (#415)
* feat: added simulateTrade

* MP-3330: added vault positions to the useUpdated Account

* tidy: format

* tidy: refactor

* Health indicator change preview (#410)

* fix: adjusted the AccountDetail width

* feat: added health indicator updates

* Update src/components/Account/AccountDetails.tsx

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>

* fix: created a function for the back- and foregroundColors

* fix: updated tailwind conf

* fix: fixed the useHealthColorAndLabel function

---------

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>

* fix: added updatedAccount to AccountSummary (#414)

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>

* fix: added a new way of calulating values to vaults

* fix: refactored the displayCurrency

* fix: fixed the subtitles, to not nest <p> tags

* MP-3330: added comparison to the vault mechanics

* fix: fixed tests

* fix: updated the borrow slider percentage on vaults

* fix: addressed change request

* update displayValue stuff

* fixed wrong display conversions

* fix: fixed the display price and renamed getDepositsAndLendsAfterCoinSpent

* fix test and update DisplayCurrency

* tidy: refactor

* tidy: rename method

---------

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-09-05 09:25:57 +02:00
__mocks__ tests: fix, improve utility, separate workflows (#241) 2023-06-05 08:47:42 +02:00
__tests__ Mp 3330 compare accounts via use updated account for vaults (#415) 2023-09-05 09:25:57 +02:00
.github tests: fix, improve utility, separate workflows (#241) 2023-06-05 08:47:42 +02:00
.vscode Upgrade next (#100) 2023-02-24 09:47:27 +01:00
public MP-2891 and MP-2801 (#321) 2023-07-27 11:26:32 +02:00
src Mp 3330 compare accounts via use updated account for vaults (#415) 2023-09-05 09:25:57 +02:00
.env.example feat: update contracts (#307) 2023-08-11 00:31:27 +03:00
.eslintignore [task] add LTV to vault tables (#381) 2023-08-21 14:02:32 +03:00
.eslintrc.json Linter and prettier adjustments (#50) 2022-11-09 10:04:06 +01:00
.gitignore [CM details] support changes (#359) 2023-08-14 09:55:53 -03:00
.prettierignore [task] add LTV to vault tables (#381) 2023-08-21 14:02:32 +03:00
.prettierrc Linter and prettier adjustments (#50) 2022-11-09 10:04:06 +01:00
Dockerfile Upgrade next (#100) 2023-02-24 09:47:27 +01:00
generate_types.sh Withdraw assets from account (#43) 2022-11-07 16:36:12 +00:00
install_charting_library.js add scripts for installing charting_library + update readme (#298) 2023-07-13 14:38:08 +02:00
install_charting_library.sh add scripts for installing charting_library + update readme (#298) 2023-07-13 14:38:08 +02:00
jest.config.js Mp 2949 implemet health computer for borrow (#311) 2023-07-24 09:44:45 +02:00
jest.setup.js tests: fix, improve utility, separate workflows (#241) 2023-06-05 08:47:42 +02:00
next.config.js feat(nextjs config): enable production browser sourcemaps (#367) 2023-08-14 13:59:29 +03:00
package.json Build(deps): bump recharts from 2.7.2 to 2.8.0 (#418) 2023-09-04 19:00:19 +02:00
postcss.config.js initial setup wip 2022-09-02 15:30:58 +01:00
README.md add scripts for installing charting_library + update readme (#298) 2023-07-13 14:38:08 +02:00
sentry.client.config.js WIP (#12) 2022-09-29 20:21:31 +01:00
sentry.properties sentry setup 2022-09-02 22:29:22 +01:00
sentry.server.config.js WIP (#12) 2022-09-29 20:21:31 +01:00
tailwind.config.js Health indicator change preview (#410) 2023-09-01 11:04:40 +02:00
tsconfig.json Mp 2344 fund credit account flow (#179) 2023-05-08 12:18:33 +02:00
validate-env.js Mp 2836 implement pagination to the batched smart contract queries (#301) 2023-07-17 12:01:00 +03:00
vercel.json Env update (#113) 2023-03-09 10:26:16 +01:00
yarn.lock Build(deps): bump recharts from 2.7.2 to 2.8.0 (#418) 2023-09-04 19:00:19 +02:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, install the dependencies:

yarn install

Then, run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

Trading charts

The trade charts are sourced with the TradingView charting_library. In order to enable the charts, request has to be requested from TradingView. This allows the charting_library package to be pulled-in during the application build process. For this, it is recommended to do the following:

  1. Request access to the TradingView repository
  2. Create a private fork
  3. Generate a Personal Access Token from Github
  4. Add the following to the environment variables: a. CHARTING_LIBRARY_USERNAME -> the username of the account with access b. CHARTING_LIBRARY_ACCESS_TOKEN -> the access token c. CHARTING_LIBRARY_REPOSITORY -> the URI of the Github repository
  5. Build the application by executing the install_charting_library.sh script prior.

For development on localhost, run yarn install-charting-library. Ensure that you have a .env.local file defined with the variables mentioned above.