Commit Graph

560 Commits

Author SHA1 Message Date
Linkie Link
141b522c56
Mp 3399 metamask integration (#462)
* MP-3399: added Metamask and refactored the wallet flow

:

* fix: updated station image

* fix: updated keplr image
2023-09-13 12:51:51 +02:00
Bob van der Helm
858da84777
Devnet (#466)
* feat: deployed on devnet

* fix: add the faucet

* updated vault deposit toast message (#460)

* Post demo fixes (#458)

* fix: show precission

* fix: fixed borrow to wallet

* fix: fixed autoLend on funding

* fix: adjusted according to feedback

* fix: typo

* fix: typo

* fix: fixed the asset truncation for WETH and WBTC (#461)

* wallets: support update

* fix: fixed AXL

* fix: adjusted assets

* fix: asset adjustments

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-09-13 12:49:37 +02:00
Linkie Link
8cf3eec143
fix: implemented Raffas feedback (#465) 2023-09-13 11:45:07 +02:00
Linkie Link
2a06d896ca
Mp 2442 tab and alignment fixes (#464)
* fix: fixed the margins and paddings of the layout

* fix: fixed the gap
2023-09-13 11:44:33 +02:00
Bob van der Helm
38ae904959
🐛Corrected used deposit cap for Lend (#463) 2023-09-13 11:20:18 +02:00
Linkie Link
473e01de63
fix: fixed the asset truncation for WETH and WBTC (#461) 2023-09-12 19:13:28 +02:00
Linkie Link
81306b501c
Post demo fixes (#458)
* fix: show precission

* fix: fixed borrow to wallet

* fix: fixed autoLend on funding

* fix: adjusted according to feedback

* fix: typo

* fix: typo
2023-09-12 19:13:18 +02:00
Bob van der Helm
5a5d86f17c
updated vault deposit toast message (#460) 2023-09-12 17:42:43 +02:00
Bob van der Helm
ccde9dbe1e
🐛vault deposit: add buffer to prevent over providing (#459) 2023-09-12 15:57:56 +02:00
Bob van der Helm
00da894375
Added leverage change to Trade (#457) 2023-09-12 09:37:28 +02:00
Linkie Link
f517a94b92
fix: hide loader on unlock modal (#456) 2023-09-11 17:58:18 +02:00
Linkie Link
83e02eeeaa
fix: fixed p can’t be an assendence of p (#455) 2023-09-11 17:23:39 +02:00
Linkie Link
dade91f67e
Autolend fix (#454)
* fix: abbreviate the wallet amount

* fix: autolending setting
2023-09-11 17:23:24 +02:00
Linkie Link
46b2634993
fix: fixed the account_balance bug (#453)
* fix: fixed the `account_balance` bug

* fix: simplified the logic

* fix: formatting

* separate function for borrow + interest

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-09-11 17:15:04 +02:00
Linkie Link
1bf93670a3
Transaction loader component (#449)
* feat: added transaction loader screen to modals

* tidy: refactor

* 🐛 fix: borrow not updating vault values (#436)

*  Merge FundAccount and AccountFund (#431)

*  Merge FundAccount and AccountFund

* fix build

* 🐛 fundAccount not showing, small typos/text corrections

* MP-3376: overpay on repay (#438)

* MP-3376: overpay on repay

* fix: remove Buffer and fix NaN on useSpring

* feat: added transaction loader screen to modals

* fix: updated AccountFundContent

* fix: fixed the animated-loader issues

* 🐛 UNSAFE_COMPONENT error (#439)

* 🐛 UNSAFE_COMPONENT error

* 🐛 fix unit tests for react-helmet-async

* Small text fixes (#440)

* 🐛 text fix on fund for new account

* 🐛 make toggle account-wide lending on new-account

* Styling alert dialog (#441)

* 🐛 text fix on fund for new account

* 🐛 make toggle account-wide lending on new-account

* 💅🏼Update styling of alertDialogs

* Fixes bob (#443)

* 🐛 Trading chart title

* 🐛 Trading chart title

* 🐛 fix incorrect vault deposit amounts

* 🐛 fix incorrect vault borrow calc

* 🧽 run format

* 🧽 fix comments

* 🧽 update code owners

* Build(deps): bump bignumber.js from 9.1.1 to 9.1.2 (#444)

Bumps [bignumber.js](https://github.com/MikeMcl/bignumber.js) from 9.1.1 to 9.1.2.
- [Release notes](https://github.com/MikeMcl/bignumber.js/releases)
- [Changelog](https://github.com/MikeMcl/bignumber.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/MikeMcl/bignumber.js/compare/v9.1.1...v9.1.2)

---
updated-dependencies:
- dependency-name: bignumber.js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps-dev): bump @types/react from 18.2.19 to 18.2.21 (#448)

Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.19 to 18.2.21.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps): bump next from 13.4.9 to 13.4.19 (#446)

Bumps [next](https://github.com/vercel/next.js) from 13.4.9 to 13.4.19.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v13.4.9...v13.4.19)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Build(deps-dev): bump @types/node from 20.4.8 to 20.6.0 (#447)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.4.8 to 20.6.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>

* feat: refactored the toast responses (#442)

* feat: refactored the toast responses

* fix: fixed the map return

* feat: added a recent transaction center

* tidy: removed logs

* fix: fixed autolend

* feat: added global lending on first account funding

* fix: added endOfLine setting

* feat: added eslint warnings for lineEnds

* fix: made the vault message generic

* feat: added transaction loader screen to modals

* 🐛 fix: borrow not updating vault values (#436)

*  Merge FundAccount and AccountFund (#431)

*  Merge FundAccount and AccountFund

* fix build

* 🐛 fundAccount not showing, small typos/text corrections

* feat: added transaction loader screen to modals

* fix: updated AccountFundContent

* fix: fixed the animated-loader issues

* tidy: refactor

* fix: set pendingTransaction inside the broadcast slice

* fix: fixed the pipeline

* fix: setting showTxLoader

* fix: fixed the pipeline

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 12:51:44 +02:00
Bob van der Helm
7547f9e148
🐛lend utilization rate (#452) 2023-09-11 12:50:59 +02:00
Bob van der Helm
4538bdabfd
🐛vault swap message (#451) 2023-09-11 11:40:42 +02:00
Linkie Link
f61dd3e4e7
fix: added isCreate flag to the vaultModal (#450) 2023-09-11 11:34:30 +02:00
dependabot[bot]
9f359bb6d0
Build(deps): bump @splinetool/runtime from 0.9.414 to 0.9.443 (#445)
Bumps @splinetool/runtime from 0.9.414 to 0.9.443.

---
updated-dependencies:
- dependency-name: "@splinetool/runtime"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 11:26:21 +02:00
Linkie Link
609be9eb64
feat: refactored the toast responses (#442)
* feat: refactored the toast responses

* fix: fixed the map return

* feat: added a recent transaction center

* tidy: removed logs

* fix: fixed autolend

* feat: added global lending on first account funding

* fix: added endOfLine setting

* feat: added eslint warnings for lineEnds

* fix: made the vault message generic
2023-09-11 10:35:13 +02:00
dependabot[bot]
7b7c25a07a
Build(deps-dev): bump @types/node from 20.4.8 to 20.6.0 (#447)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.4.8 to 20.6.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-09-11 10:30:20 +02:00
dependabot[bot]
f2ad671b54
Build(deps): bump next from 13.4.9 to 13.4.19 (#446)
Bumps [next](https://github.com/vercel/next.js) from 13.4.9 to 13.4.19.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v13.4.9...v13.4.19)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 10:29:26 +02:00
dependabot[bot]
c874befd57
Build(deps-dev): bump @types/react from 18.2.19 to 18.2.21 (#448)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.19 to 18.2.21.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 10:20:10 +02:00
dependabot[bot]
27d6c2584c
Build(deps): bump bignumber.js from 9.1.1 to 9.1.2 (#444)
Bumps [bignumber.js](https://github.com/MikeMcl/bignumber.js) from 9.1.1 to 9.1.2.
- [Release notes](https://github.com/MikeMcl/bignumber.js/releases)
- [Changelog](https://github.com/MikeMcl/bignumber.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/MikeMcl/bignumber.js/compare/v9.1.1...v9.1.2)

---
updated-dependencies:
- dependency-name: bignumber.js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 10:19:43 +02:00
Bob van der Helm
d052c91abd
Fixes bob (#443)
* 🐛 Trading chart title

* 🐛 Trading chart title

* 🐛 fix incorrect vault deposit amounts

* 🐛 fix incorrect vault borrow calc

* 🧽 run format

* 🧽 fix comments

* 🧽 update code owners
2023-09-11 10:14:40 +02:00
Bob van der Helm
6300af5b35
Styling alert dialog (#441)
* 🐛 text fix on fund for new account

* 🐛 make toggle account-wide lending on new-account

* 💅🏼Update styling of alertDialogs
2023-09-08 09:43:42 +02:00
Bob van der Helm
eb5425ee4c
Small text fixes (#440)
* 🐛 text fix on fund for new account

* 🐛 make toggle account-wide lending on new-account
2023-09-07 12:01:42 +02:00
Bob van der Helm
dee7f5936b
🐛 UNSAFE_COMPONENT error (#439)
* 🐛 UNSAFE_COMPONENT error

* 🐛 fix unit tests for react-helmet-async
2023-09-07 10:37:49 +02:00
Linkie Link
1e4fd898df
MP-3376: overpay on repay (#438)
* MP-3376: overpay on repay

* fix: remove Buffer and fix NaN on useSpring
2023-09-07 10:28:57 +02:00
Bob van der Helm
93e725fc59
Merge FundAccount and AccountFund (#431)
*  Merge FundAccount and AccountFund

* fix build

* 🐛 fundAccount not showing, small typos/text corrections
2023-09-07 10:20:19 +02:00
Bob van der Helm
d3c73303c5
🐛 fix: borrow not updating vault values (#436) 2023-09-07 09:46:19 +02:00
Linkie Link
f7917c1660
Various bug fixes (#435)
* fix: fixed the TxMessages issue

* fix: don’t show RewardsCenter if not connected

* fix: change deleteAccount message

* undo: rewert delete account fix
2023-09-06 19:40:36 +02:00
Linkie Link
0e62045031
fix: fixed rejected by user message (#432) 2023-09-06 15:06:02 +02:00
Linkie Link
5ff848bca7
fix: highlighting new positions on balances table (#433)
* fix: highlighting new positions on balances table

* Update src/components/Account/AccountBalancesTable/useAccountBalanceData.tsx

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

* fix: according to comments

---------

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
2023-09-06 14:57:28 +02:00
Linkie Link
f0f400d8f7
fix: added portfolio cases for not having an account (#434) 2023-09-06 14:33:54 +02:00
Linkie Link
74e7c7e6a9
MP-3362: added Toaster explorer link (#430) 2023-09-06 12:13:29 +02:00
Bob van der Helm
5bb87b6d27
🐛 reclaim lent assets for trade (#429) 2023-09-06 10:28:12 +02:00
Linkie Link
b0b957a5b3
MP-3338: added highlight to changed data in AccountBalancesTable (#424)
* MP-3338: added highlight to changed data in AccountBalancesTable

# Conflicts:
#	src/components/Account/AccountBalancesTable.tsx

* tidy: refactor

* refactor accountBalancesTable components

* MP-3357: created the Intro component (#427)

* MP-3338: added highlight to changed data in AccountBalancesTable

* refactor accountBalancesTable components

* MP-3338: added highlight to changed data in AccountBalancesTable

* refactor accountBalancesTable components

* refactor accountBalancesTable components

* refactor accountBalancesTable components

* MP-3338: added highlight to changed data in AccountBalancesTable

* refactor accountBalancesTable components

* refactor accountBalancesTable components

* fix test

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-09-06 09:17:57 +02:00
Yusuf Seyrek
a3737ce584
fix: token swap event parser (#428) 2023-09-06 09:08:16 +02:00
Linkie Link
4cc0fddada
MP-3357: created the Intro component (#427) 2023-09-05 19:42:53 +02:00
Bob van der Helm
46d4113d98
Scope Funding to actions, enable fund for USDC (and others) (#426)
* fix vault test and vaulttable pos value

* fix vault test and vaulttable pos value updated

* Scope lend for deposit to action only

* fix build error

* fix build error
2023-09-05 12:45:55 +02:00
Linkie Link
19e06aa7d4
Fix auto lend setting (#425)
* fix: fixed the auto-lend setting impact

* fix: fixed trade layout and autoLend
2023-09-05 12:38:20 +02:00
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
Yusuf Seyrek
b7019023f0
fix(repay): transaction message when selecting max amount & unused vars (#423) 2023-09-04 21:02:57 +02:00
dependabot[bot]
270f2e1c58
Build(deps): bump recharts from 2.7.2 to 2.8.0 (#418)
Bumps [recharts](https://github.com/recharts/recharts) from 2.7.2 to 2.8.0.
- [Release notes](https://github.com/recharts/recharts/releases)
- [Changelog](https://github.com/recharts/recharts/blob/master/CHANGELOG.md)
- [Commits](https://github.com/recharts/recharts/compare/v2.7.2...v2.8.0)

---
updated-dependencies:
- dependency-name: recharts
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 19:00:19 +02:00
dependabot[bot]
353ceddaef
Build(deps-dev): bump typescript from 5.1.6 to 5.2.2 (#421)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.1.6 to 5.2.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.1.6...v5.2.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 18:59:57 +02:00
dependabot[bot]
c55b455619
Build(deps-dev): bump babel-jest from 29.6.2 to 29.6.4 (#422)
Bumps [babel-jest](https://github.com/jestjs/jest/tree/HEAD/packages/babel-jest) from 29.6.2 to 29.6.4.
- [Release notes](https://github.com/jestjs/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jestjs/jest/commits/v29.6.4/packages/babel-jest)

---
updated-dependencies:
- dependency-name: babel-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 18:59:38 +02:00
dependabot[bot]
786f81eaaf
Build(deps-dev): bump eslint-plugin-import from 2.28.0 to 2.28.1 (#420)
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.28.0 to 2.28.1.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.28.0...v2.28.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 18:59:14 +02:00
dependabot[bot]
85f4657c55
Build(deps): bump @delphi-labs/shuttle-react from 3.7.0 to 3.8.0 (#419)
Bumps [@delphi-labs/shuttle-react](https://github.com/delphi-labs/shuttle/tree/HEAD/packages/react) from 3.7.0 to 3.8.0.
- [Release notes](https://github.com/delphi-labs/shuttle/releases)
- [Commits](https://github.com/delphi-labs/shuttle/commits/v.3.8.0/packages/react)

---
updated-dependencies:
- dependency-name: "@delphi-labs/shuttle-react"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 18:58:33 +02:00
Bob van der Helm
d87fbd2a15
Mp 3270 deposit cap messages (#416)
* Add Deposit cap for AssetSelector

* Add DepositCap component for Trade

* DepositCap to Vault and Fund

* DepositCap to Vault and Fund

* Small bugixes

* formatting fixes

* formatting fixes

* formatting fixes

* formatting fixes

* run format
2023-09-04 09:46:13 +02:00