Commit Graph

529 Commits

Author SHA1 Message Date
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
Bob van der Helm
28ccf8ba84
show mainnet charts on testnet (#417) 2023-09-03 21:32:20 +02:00
Linkie Link
5a1d02393d
fix: added updatedAccount to AccountSummary (#414)
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-09-01 11:08:57 +02:00
Linkie Link
fbb4207f93
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>
2023-09-01 11:04:40 +02:00
Linkie Link
23fe839229
feat: added simulateTrade (#413) 2023-09-01 10:18:09 +02:00
Bob van der Helm
3c128e90f9
Allow margin swapping with no sell asset (#412) 2023-08-31 10:08:39 +02:00
dependabot[bot]
e3b126b2f7
Build(deps): bump @adobe/css-tools from 4.2.0 to 4.3.1 (#411)
Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.2.0 to 4.3.1.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-31 10:08:31 +02:00
Bob van der Helm
27138f0176
always add vaultConfigs to HC (#408) 2023-08-30 08:43:53 -03:00
Yusuf Seyrek
1923b8e7d7
feat(SC update): added contract types and fixed breaking changes (#409) 2023-08-30 11:24:03 +03:00
Linkie Link
22830289cf
Mp 3328 compare accounts via use updated account for withdraw (#407)
* Compare Accounts via useUpdatedAccount for withdraw

* fix: onChangeAsset fixed

* Mp 3250 update health bars (#403)

* [Story] Add HealthBar

* Update tooltip

* Fixes after rebase

* Fixes after rebase

* Fixes after rebase

* Finish health bar + gauge

* Finish health bar + gauge

* Finish health bar + gauge

* feat: added an svg mask to the HealthBar

* fix: added transitions

* tidy: value sanity

* fix: fixed the AccountStats

* tidy: design update

* fix: div adjustments

* update healthguagepercentage function

* make tooltiparrow responsive

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>

* Compare Accounts via useUpdatedAccount for withdraw

* Mp 3250 update health bars (#403)

* [Story] Add HealthBar

* Update tooltip

* Fixes after rebase

* Fixes after rebase

* Fixes after rebase

* Finish health bar + gauge

* Finish health bar + gauge

* Finish health bar + gauge

* feat: added an svg mask to the HealthBar

* fix: added transitions

* tidy: value sanity

* fix: fixed the AccountStats

* tidy: design update

* fix: div adjustments

* update healthguagepercentage function

* make tooltiparrow responsive

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>

* Mp 3250 update health bars (#403)

* [Story] Add HealthBar

* Update tooltip

* Fixes after rebase

* Fixes after rebase

* Fixes after rebase

* Finish health bar + gauge

* Finish health bar + gauge

* Finish health bar + gauge

* feat: added an svg mask to the HealthBar

* fix: added transitions

* tidy: value sanity

* fix: fixed the AccountStats

* tidy: design update

* fix: div adjustments

* update healthguagepercentage function

* make tooltiparrow responsive

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>

* fix: merge error

---------

Co-authored-by: Yusuf Seyrek <yusuf@delphilabs.io>
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-08-29 17:25:11 +02:00
Bob van der Helm
e15de26efd
Mp 3250 update health bars (#403)
* [Story] Add HealthBar

* Update tooltip

* Fixes after rebase

* Fixes after rebase

* Fixes after rebase

* Finish health bar + gauge

* Finish health bar + gauge

* Finish health bar + gauge

* feat: added an svg mask to the HealthBar

* fix: added transitions

* tidy: value sanity

* fix: fixed the AccountStats

* tidy: design update

* fix: div adjustments

* update healthguagepercentage function

* make tooltiparrow responsive

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-08-29 16:17:31 +02:00
Yusuf Seyrek
f64d2a78ff
feat(auto-unlend): implemented to the withdraws (#406) 2023-08-29 16:38:17 +03:00
Yusuf Seyrek
8ec4d61d31
fix(swap leftover amounts): use account_balance as sell amount on swaps (#405) 2023-08-29 00:26:28 +03:00
Yusuf Seyrek
44d5d5e42c
feat(vaults): implement auto-lend to withdrawals (#402) 2023-08-29 00:26:06 +03:00
Bob van der Helm
69af852491
[HC] Include lends for max calc swap + withdraw (#404) 2023-08-28 19:45:12 +03:00
dependabot[bot]
28f625820c
Build(deps): bump @sentry/nextjs from 7.63.0 to 7.64.0 (#400)
Bumps [@sentry/nextjs](https://github.com/getsentry/sentry-javascript) from 7.63.0 to 7.64.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/7.63.0...7.64.0)

---
updated-dependencies:
- dependency-name: "@sentry/nextjs"
  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-08-28 13:29:54 +03:00
dependabot[bot]
356f1d8785
Build(deps-dev): bump dotenv-cli from 7.2.1 to 7.3.0 (#401)
Bumps [dotenv-cli](https://github.com/entropitor/dotenv-cli) from 7.2.1 to 7.3.0.
- [Release notes](https://github.com/entropitor/dotenv-cli/releases)
- [Commits](https://github.com/entropitor/dotenv-cli/compare/v7.2.1...v7.3.0)

---
updated-dependencies:
- dependency-name: dotenv-cli
  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-08-28 13:29:35 +03:00
dependabot[bot]
e03c54c5f3
Build(deps): bump @cosmjs/cosmwasm-stargate from 0.31.0 to 0.31.1 (#399)
Bumps [@cosmjs/cosmwasm-stargate](https://github.com/cosmos/cosmjs) from 0.31.0 to 0.31.1.
- [Changelog](https://github.com/cosmos/cosmjs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/cosmos/cosmjs/compare/v0.31.0...v0.31.1)

---
updated-dependencies:
- dependency-name: "@cosmjs/cosmwasm-stargate"
  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-08-28 13:28:48 +03:00
dependabot[bot]
bec41940ef
Build(deps-dev): bump jest-environment-jsdom from 29.6.2 to 29.6.4 (#398)
Bumps [jest-environment-jsdom](https://github.com/jestjs/jest/tree/HEAD/packages/jest-environment-jsdom) 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/jest-environment-jsdom)

---
updated-dependencies:
- dependency-name: jest-environment-jsdom
  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-08-28 13:28:14 +03:00
dependabot[bot]
fcbc410125
Build(deps-dev): bump @svgr/webpack from 8.0.1 to 8.1.0 (#397)
Bumps [@svgr/webpack](https://github.com/gregberge/svgr) from 8.0.1 to 8.1.0.
- [Release notes](https://github.com/gregberge/svgr/releases)
- [Changelog](https://github.com/gregberge/svgr/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gregberge/svgr/compare/v8.0.1...v8.1.0)

---
updated-dependencies:
- dependency-name: "@svgr/webpack"
  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-08-28 13:27:53 +03:00
Linkie Link
2d146449ca
Mp 3260 finalize account summary (#395) 2023-08-26 10:30:56 +02:00
Bob van der Helm
6d4c09981f
🐛 Fix HC unreachable code (#396) 2023-08-25 21:01:01 +02:00
Yusuf Seyrek
63aba423b2
feat(vaults): included auto-lent amounts to the account balances (#394) 2023-08-24 20:44:00 +03:00
Linkie Link
eeb49ba2ab
feat: added account details and fund account button to empty accounts (#393) 2023-08-24 18:30:54 +02:00
Yusuf Seyrek
50f365044c
feat(swap): reflect buy side amounts onto range input (#392) 2023-08-24 13:59:41 +03:00
Yusuf Seyrek
6dcc13affb
feat(lend): useUpdatedAccount implementation (#390)
* feat(lend): useUpdatedAccount implementation

* feat(lend): addressed to PR comment
2023-08-24 13:59:26 +03:00
Linkie Link
997171a185
Mp 3214 calculating account apr (#391) 2023-08-23 18:43:40 +02:00
Linkie Link
160f8da6aa
Mp 3105 build rewards center for v 2 (#389)
* MP-3105: finished rewards center

* tidy: refactor

* fix: rerolled generated types

* fix: revert types to before

* refactor: addressed feedback
2023-08-21 17:31:47 +02:00
dependabot[bot]
78bf3068b4
Build(deps-dev): bump prettier-plugin-tailwindcss from 0.4.1 to 0.5.3 (#388)
Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.4.1 to 0.5.3.
- [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/compare/v0.4.1...v0.5.3)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  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-08-21 14:16:10 +03:00
dependabot[bot]
e4ed197cf7
Build(deps-dev): bump eslint-config-next from 13.4.13 to 13.4.19 (#385)
Bumps [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) from 13.4.13 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/commits/v13.4.19/packages/eslint-config-next)

---
updated-dependencies:
- dependency-name: eslint-config-next
  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-08-21 14:04:41 +03:00
dependabot[bot]
9a17c44dbe
Build(deps-dev): bump prettier from 3.0.1 to 3.0.2 (#384)
Bumps [prettier](https://github.com/prettier/prettier) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.0.1...3.0.2)

---
updated-dependencies:
- dependency-name: prettier
  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-08-21 14:03:10 +03:00
Bob van der Helm
9b6ea6b1cc
[bugfix] add try catch for health calls (#382) 2023-08-21 14:02:44 +03:00