Commit Graph

358 Commits

Author SHA1 Message Date
Linkie Link
6415b55cd6
post update hotfixes (#580)
* fix: fixed showing 0 on farm page if no desposited vaults

* fix: chnage USDC’s name to Noble
2023-10-24 17:22:50 +02:00
Linkie Link
3dc1752ae2
v2.0.1 (#579)
* Build(deps): bump @splinetool/runtime from 0.9.477 to 0.9.482 (#544)

Bumps @splinetool/runtime from 0.9.477 to 0.9.482.

---
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>

* Build(deps-dev): bump @types/node from 20.7.0 to 20.8.6 (#548)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.7.0 to 20.8.6.
- [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>

* Build(deps): bump @sentry/nextjs from 7.73.0 to 7.74.0 (#545)

Bumps [@sentry/nextjs](https://github.com/getsentry/sentry-javascript) from 7.73.0 to 7.74.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.73.0...7.74.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>

* Mp 3245 usehlsvaults hook (#541)

*  routing and pages for HLS

*  create hooks for fetching HLS vaults and Strategies

* Share accounts (#539)

* feat: do not redirect to wallet on portfolio page

* fix: use connected wallet for AccountMenu

* fix: fixed ghost AccountDetails

* feat: created ShareBar and share functionality

* fix: don’t show shareBar if no address is present

* fix: stupid 'next/navigation'

* tidy: format

* fix: fixed tests

*  routing and pages for HLS (#538)

* 🐛 use useAccountIds

* fix: fixed the tests

* fix: accountIds is now a suspense

---------

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

* 🐛 fix build

---------

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

* Mp 2837 pre commit hook (#549)

* MP-2837: added husys and lint-staged

* MP-2837: enabled lint-staged

* MP-2837: setup .prettierignore

* MP-2837: setup .prettierignore

* MP-3483: all Depo. Caps are now % filled (#551)

* MP-3487: changed the copy of the bridging intro screen (#553)

* MP-3482: replaced Max LTV with Max. Leverage (#550)

* added hatched health masks (#552)

* added hatched health masks

* Mp 2837 pre commit hook (#549)

* MP-2837: added husys and lint-staged

* MP-2837: enabled lint-staged

* MP-2837: setup .prettierignore

* MP-2837: setup .prettierignore

* MP-3483: all Depo. Caps are now % filled (#551)

* MP-3487: changed the copy of the bridging intro screen (#553)

* MP-3482: replaced Max LTV with Max. Leverage (#550)

* sneak: change filled to used

* fix: fixed the foregroundColor on increase and my ocd

* ♻️ refactor table (Farm) (#555)

* ♻️ refactor table (Farm)

* 🧽 clean up PR

* 🧽 clean up PR

* Build(deps): bump @babel/traverse from 7.21.2 to 7.23.2 (#554)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.2 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

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

* fix: rename withdraw to unlend (#557)

* Full refactor tables (#556)

* 📈 Improve structure generic Table component

* ♻️ Update Borrow Table and overall structure of Table comp

* ♻️ Update Lend table

*  add loading state for lend table

* 🧪 Fix unit tests

*  Add available HLS Vaults page (#558)

* Table updates (#559)

* fix: adjusted table colors and hover interactions

* fix: added actionButtons back and changed lend to APY

* fix: build update

* tidy: fixed the CircularProgress indicators on the loading  modals

* fix: relative import

* env: updated shuttle, keplr and version (#566)

* fix: fixed dust left when trying to buy max amount without leverage (#565)

* feat: added squidrouter to the bridges (#561)

* feat: added squidrouter to the bridges

* fix: copy update

* MP-3521: updated the APR calculation (#572)

* Table fixes (#563)

* fix: fixed the sorting of the tables

* fix: added sorting functions

* fix: farm sorting for deposit cap

* fix: fixed Row types

* Build(deps-dev): bump prettier-plugin-tailwindcss from 0.5.5 to 0.5.6 (#567)

Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.5.5 to 0.5.6.
- [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.5.5...v0.5.6)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  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 react-router-dom from 6.16.0 to 6.17.0 (#571)

Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.16.0 to 6.17.0.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.17.0/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  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>

*  HLS: Add info modal (#573)

* MP-3484: remember summaryAccount tabs and auto expand both (#574)

* User feedback (#575)

* feat: added debt indicator and adjusted the borrowModal

* fix: wallet interaction fix

* Add usdc noble (#576)

* env: added USDC.n

* env: updated usdc noble variables

* fix: fixed the pool on USDC for devnet purposes

* 🐛 Fix initial status of chart (#577)

* Mp 3480 persist last trading pair (#578)

* MP-3480: remove favourite asset and prepare localStore

* env: updated shuttle, keplr and version (#566)

* fix: fixed dust left when trying to buy max amount without leverage (#565)

* feat: added squidrouter to the bridges (#561)

* feat: added squidrouter to the bridges

* fix: copy update

* MP-3521: updated the APR calculation (#572)

* Table fixes (#563)

* fix: fixed the sorting of the tables

* fix: added sorting functions

* fix: farm sorting for deposit cap

* fix: fixed Row types

* Build(deps-dev): bump prettier-plugin-tailwindcss from 0.5.5 to 0.5.6 (#567)

Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.5.5 to 0.5.6.
- [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.5.5...v0.5.6)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  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 react-router-dom from 6.16.0 to 6.17.0 (#571)

Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.16.0 to 6.17.0.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.17.0/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  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>

*  HLS: Add info modal (#573)

* MP-3484: remember summaryAccount tabs and auto expand both (#574)

* User feedback (#575)

* feat: added debt indicator and adjusted the borrowModal

* fix: wallet interaction fix

* Add usdc noble (#576)

* env: added USDC.n

* env: updated usdc noble variables

* fix: fixed the pool on USDC for devnet purposes

* 🐛 Fix initial status of chart (#577)

* MP-3480: persist trading pair

* fix: updated according to feedback

* fix:  remove pair from Trading View header

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-10-24 16:41:40 +02:00
Linkie Link
abd36bc502
Mp 3480 persist last trading pair (#578)
* MP-3480: remove favourite asset and prepare localStore

* env: updated shuttle, keplr and version (#566)

* fix: fixed dust left when trying to buy max amount without leverage (#565)

* feat: added squidrouter to the bridges (#561)

* feat: added squidrouter to the bridges

* fix: copy update

* MP-3521: updated the APR calculation (#572)

* Table fixes (#563)

* fix: fixed the sorting of the tables

* fix: added sorting functions

* fix: farm sorting for deposit cap

* fix: fixed Row types

* Build(deps-dev): bump prettier-plugin-tailwindcss from 0.5.5 to 0.5.6 (#567)

Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.5.5 to 0.5.6.
- [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.5.5...v0.5.6)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  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 react-router-dom from 6.16.0 to 6.17.0 (#571)

Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.16.0 to 6.17.0.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.17.0/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  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>

*  HLS: Add info modal (#573)

* MP-3484: remember summaryAccount tabs and auto expand both (#574)

* User feedback (#575)

* feat: added debt indicator and adjusted the borrowModal

* fix: wallet interaction fix

* Add usdc noble (#576)

* env: added USDC.n

* env: updated usdc noble variables

* fix: fixed the pool on USDC for devnet purposes

* 🐛 Fix initial status of chart (#577)

* MP-3480: persist trading pair

* fix: updated according to feedback

* fix:  remove pair from Trading View header

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-10-24 16:36:06 +02:00
Bob van der Helm
ae77e96df4
🐛 Fix initial status of chart (#577) 2023-10-24 11:49:20 +02:00
Linkie Link
901a268bff
Add usdc noble (#576)
* env: added USDC.n

* env: updated usdc noble variables

* fix: fixed the pool on USDC for devnet purposes
2023-10-24 09:20:51 +02:00
Linkie Link
d0d87e75e2
User feedback (#575)
* feat: added debt indicator and adjusted the borrowModal

* fix: wallet interaction fix
2023-10-24 09:18:23 +02:00
Linkie Link
29169f14f9
MP-3484: remember summaryAccount tabs and auto expand both (#574) 2023-10-23 15:04:33 +02:00
Bob van der Helm
bcd840150d
HLS: Add info modal (#573) 2023-10-23 14:04:17 +02:00
Linkie Link
7771f47f2a
Table fixes (#563)
* fix: fixed the sorting of the tables

* fix: added sorting functions

* fix: farm sorting for deposit cap

* fix: fixed Row types
2023-10-23 12:00:22 +02:00
Linkie Link
013bfcaa15
MP-3521: updated the APR calculation (#572) 2023-10-23 12:00:07 +02:00
Linkie Link
70e27ea8fa
feat: added squidrouter to the bridges (#561)
* feat: added squidrouter to the bridges

* fix: copy update
2023-10-21 11:12:02 +02:00
Linkie Link
40c2e8039a
fix: fixed dust left when trying to buy max amount without leverage (#565) 2023-10-21 11:11:40 +02:00
Linkie Link
66f5ce42a4
Table updates (#559)
* fix: adjusted table colors and hover interactions

* fix: added actionButtons back and changed lend to APY

* fix: build update

* tidy: fixed the CircularProgress indicators on the loading  modals

* fix: relative import
2023-10-19 08:49:03 +02:00
Bob van der Helm
63994ba87b
Add available HLS Vaults page (#558) 2023-10-18 12:23:47 +02:00
Bob van der Helm
ccc4a42354
Full refactor tables (#556)
* 📈 Improve structure generic Table component

* ♻️ Update Borrow Table and overall structure of Table comp

* ♻️ Update Lend table

*  add loading state for lend table

* 🧪 Fix unit tests
2023-10-18 09:38:24 +02:00
Linkie Link
7917d24134
fix: rename withdraw to unlend (#557) 2023-10-18 09:32:48 +02:00
Bob van der Helm
9e5f88ac83
♻️ refactor table (Farm) (#555)
* ♻️ refactor table (Farm)

* 🧽 clean up PR

* 🧽 clean up PR
2023-10-17 12:42:25 +02:00
Linkie Link
96ab3f64c0
added hatched health masks (#552)
* added hatched health masks

* Mp 2837 pre commit hook (#549)

* MP-2837: added husys and lint-staged

* MP-2837: enabled lint-staged

* MP-2837: setup .prettierignore

* MP-2837: setup .prettierignore

* MP-3483: all Depo. Caps are now % filled (#551)

* MP-3487: changed the copy of the bridging intro screen (#553)

* MP-3482: replaced Max LTV with Max. Leverage (#550)

* sneak: change filled to used

* fix: fixed the foregroundColor on increase and my ocd
2023-10-17 12:19:37 +02:00
Linkie Link
daa88ee548
MP-3482: replaced Max LTV with Max. Leverage (#550) 2023-10-17 09:09:48 +02:00
Linkie Link
759f2931d8
MP-3487: changed the copy of the bridging intro screen (#553) 2023-10-17 09:08:53 +02:00
Linkie Link
623bbe8854
MP-3483: all Depo. Caps are now % filled (#551) 2023-10-17 09:08:25 +02:00
Bob van der Helm
5392a4717c
Mp 3245 usehlsvaults hook (#541)
*  routing and pages for HLS

*  create hooks for fetching HLS vaults and Strategies

* Share accounts (#539)

* feat: do not redirect to wallet on portfolio page

* fix: use connected wallet for AccountMenu

* fix: fixed ghost AccountDetails

* feat: created ShareBar and share functionality

* fix: don’t show shareBar if no address is present

* fix: stupid 'next/navigation'

* tidy: format

* fix: fixed tests

*  routing and pages for HLS (#538)

* 🐛 use useAccountIds

* fix: fixed the tests

* fix: accountIds is now a suspense

---------

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

* 🐛 fix build

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-10-16 10:45:57 +02:00
Linkie Link
a507e9060c
Merge branch 'main' of https://github.com/mars-protocol/mars-v2-frontend into develop
# Conflicts:
#	src/components/Trade/TradeChart/OsmosisTheGraphDataFeed.ts
2023-10-14 18:09:22 +02:00
Linkie Link
ea614997a7
Share accounts (#539)
* feat: do not redirect to wallet on portfolio page

* fix: use connected wallet for AccountMenu

* fix: fixed ghost AccountDetails

* feat: created ShareBar and share functionality

* fix: don’t show shareBar if no address is present

* fix: stupid 'next/navigation'

* tidy: format

* fix: fixed tests

*  routing and pages for HLS (#538)

* 🐛 use useAccountIds

* fix: fixed the tests

* fix: accountIds is now a suspense

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-10-13 13:49:38 +02:00
Bob van der Helm
4915729ed5
routing and pages for HLS (#538) 2023-10-12 14:40:40 +02:00
Linkie Link
5da0ab009f
post launch fixes (#536) 2023-10-11 16:32:30 +02:00
Linkie Link
3fce7f5851
Fix utilization rate (#537) 2023-10-11 16:08:31 +02:00
Linkie Link
db1048bf4c
various fixes (#535)
* fix: fixed autoConnect

* tidy: Credit Account

* fix: fallback timer

* fix: clearTimer

* fix: fixed v1 links

* fix: changed the farm columns

* fix: updated doc urls according to Dino (#531)

* fix: updated doc urls according to Dino

* fix: updated the v1 url

* Build(deps-dev): bump @types/react from 18.2.23 to 18.2.27 (#530)

Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.23 to 18.2.27.
- [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>

* 🐛stAtom chart data (#533)

* env: update

* env: tidy

* fix: fixed v1 links

* fix: no need for camelcase in keywords

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-10-11 12:56:13 +02:00
Bob van der Helm
b175ee3e0e
add 4h and 1D intervals (#534) 2023-10-11 12:45:59 +02:00
Bob van der Helm
7fac73b4dd
🐛stAtom chart data (#533) 2023-10-11 11:07:56 +02:00
Linkie Link
2c5e919504
fix: updated doc urls according to Dino (#531)
* fix: updated doc urls according to Dino

* fix: updated the v1 url
2023-10-10 11:47:48 +02:00
Linkie Link
17f13b6d7c
Mp 3442 sage feedback pre mars v 2 trade page (#520)
* MP-3442: set autolend to true by default

* MP-3442: remember margin setting and toggle it on by default

* MP-3442: add balances to AssetSelector

* MP-3442: close assetOverlay on clickAway

* fix: fixed TradeModule z-index

* MP-3442: set priority of balance and cap

* fix: overlayState

* fix: adjusted to comments
2023-10-05 09:15:32 +02:00
Linkie Link
8a71f4664a
fix: fixed the rewards center (#524) 2023-10-03 15:54:22 +02:00
Linkie Link
7864b579cf
Mp 3443 sage feedback pre mars v 2 credit manager (#522) 2023-10-03 15:54:11 +02:00
Linkie Link
7056e8240e
MP-3445: added leverage change to AccountSummary (#521) 2023-10-03 15:53:56 +02:00
Bob van der Helm
fe9040b29f
added caching for api requests (#513) 2023-10-01 14:56:22 +02:00
Bob van der Helm
44196f1a10
added portfolio summary for all accounts (#512) 2023-09-30 09:56:11 +02:00
Linkie Link
fac07787c5
fix: apys and aprs (#514)
* fix: fixed aprs

* fix: apy and apr

* fix: fixed build
2023-09-30 09:25:56 +03:00
Linkie Link
f20ae553d9
fix: replaced apollo vault APR api with true APR api (#511) 2023-09-28 09:11:45 +02:00
Linkie Link
5bbb59d5dc
fix: fixed the loading issue by adding a suspense (#510) 2023-09-27 14:57:10 +02:00
Linkie Link
4630426ae7
fix: height to maxHeight (#508) 2023-09-27 10:16:49 +02:00
Linkie Link
5f83570a4a
Env update (#509)
* env: updated dependencies

* linter: fixed format issue

* env: updated yarn.lock
2023-09-27 10:16:41 +02:00
Bob van der Helm
d11cf0ec03
🐛 Fix flickering of tutorial and migrationbanner (#507) 2023-09-26 14:07:04 +02:00
Linkie Link
cfd7fb3073
Pre migration adjustments (#506)
* fix: added close button to accountDetails

* fix: fixed the AccountList to load async

* fix: fixed the heart size on the AccountStats

* fix: added AccountDetails loading state

* feat: added migration banner

* fix: fixed tests
2023-09-25 20:17:43 +02:00
Bob van der Helm
d0ce3eea45
🐛 Allow > 10 accounts (#505) 2023-09-25 16:52:01 +02:00
Linkie Link
308ec7dba4
fix: fixed account change and refresh issues (#498) 2023-09-24 12:29:49 +02:00
Linkie Link
8bb308c3e0
MP-3436: sort accounts by id (#499) 2023-09-24 12:29:35 +02:00
Linkie Link
b9f5b1b7b2
feat: docs update (#496) 2023-09-21 12:53:27 +02:00
Bob van der Helm
851aeac233
Remove Pyth for testnet/devnet (#495)
* vaults: multiple bug fixes

* fixed relative import
2023-09-21 12:53:08 +02:00
Linkie Link
6c193c1a9b
fix: applied design feedback (#494) 2023-09-21 09:42:50 +02:00
Bob van der Helm
653227921a
vaults: multiple bug fixes (#493)
* vaults: multiple bug fixes

* Update src/components/Account/AccountComposition.tsx

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

* Update src/components/Account/AccountComposition.tsx

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

* Update src/components/Portfolio/Account/Summary.tsx

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

* Update src/components/Account/AccountComposition.tsx

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

* Update src/components/Portfolio/Account/Summary.tsx

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

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-09-20 19:05:17 +02:00
Linkie Link
5bf46d4da0
fix: all your codebase belongs to us (#492) 2023-09-20 15:53:33 +02:00
Linkie Link
574dedec23
fix: fixed accountId usage (#491)
* fix: fixed accountId usage

* fix: fixed rewards center

* fix: copy fix
2023-09-20 15:53:24 +02:00
Linkie Link
2ba18d2f05
Max margin trade fix (#490)
* fix: margin trading fix

* fix: accountsBalancesTable fix

* fix: show detailed APR where we have the space

* fix: smallerThan not biggerThan

* fix: be more precise on the decimals

* tidy: refactor
2023-09-20 11:16:47 +02:00
Linkie Link
9a3fe4dd1e
Tutorial updates (#489)
* fix: remove headline of Portfolio

* feat: added multiple backgrounds and new intro props
2023-09-20 10:26:14 +02:00
Linkie Link
ca5e424700
fix: fixed Borrow infinite render (#488)
* fix: fixed Borrow infinite render

* feat: added a Repay not available info

* tidy: updated wording
2023-09-19 17:02:56 +02:00
Linkie Link
9ced4ab6c9
fix: vault calculation of assets (#486) 2023-09-19 15:39:28 +02:00
Bob van der Helm
50fd39e926
Mp 3412 (#487)
* first iteration

* finish implementation

* finish

* fix pr comments

* fix: added Card Title to Overview

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-09-19 15:39:14 +02:00
Linkie Link
f87403eb4d
Various fixes (#485)
* fix: fixed info icon

* fix: remove margin trading on asset select

* fix: force abbreviated values larger than 1_000 to be max two decimals

* fix: added AssetRate to Select Option

* fix: fixed reduceMotion default setting on resetSettings

* fix: disable autoLend on AXL and stATOM

* Build(deps): bump @splinetool/runtime from 0.9.443 to 0.9.452 (#484)

Bumps @splinetool/runtime from 0.9.443 to 0.9.452.

---
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>

* Build(deps-dev): bump prettier from 3.0.2 to 3.0.3 (#483)

Bumps [prettier](https://github.com/prettier/prettier) from 3.0.2 to 3.0.3.
- [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.2...3.0.3)

---
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>

* Build(deps-dev): bump prettier-plugin-tailwindcss from 0.5.3 to 0.5.4 (#481)

Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.5.3 to 0.5.4.
- [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.5.3...v0.5.4)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  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>
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>

* Build(deps): bump @tanstack/react-table from 8.9.3 to 8.10.0 (#482)

Bumps [@tanstack/react-table](https://github.com/tanstack/table) from 8.9.3 to 8.10.0.
- [Release notes](https://github.com/tanstack/table/releases)
- [Commits](https://github.com/tanstack/table/compare/v8.9.3...v8.10.0)

---
updated-dependencies:
- dependency-name: "@tanstack/react-table"
  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>
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>

* fix: get the info icon out of the users FACE

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-19 11:32:47 +02:00
Linkie Link
74127213aa
Mp 3413 pending tx toasts (#478)
* MP-3413: added pending transaction toast

* fix: removed txLoader/broadcastInitialized

* fix: replace the toast instead of closing the previous

* fix: fixed the build

* MP-3413: added transition on update and success checkmark

* fix: changed Search for ChevronDown
2023-09-18 16:54:36 +02:00
Linkie Link
b04f244d3e
MP-3414: support unborrowable assets (#479)
* MP-3414: support unborrowable assets

* tidy: refactor

* MP-3414: added Rate Tooltip to BalancesTable
2023-09-18 16:24:16 +02:00
Linkie Link
dc9a757224
MP-3391: make sure locked and unlocking is taken into account (#477)
* MP-3391: make sure locked and unlocking is taken into account

* fix: accounts was missing unlocked and locked value

* fix: fixed small layout bug

* fix: rebuild the addValueToVaults function

* tidy: refactor

* fix: unwrapped BN on BigNumber values from

* fix: removed the refreshInterval from accounts
2023-09-18 16:22:11 +02:00
Bob van der Helm
1d5595d687
🐛change BUFFER to slippage for Vault enter value (#476) 2023-09-15 11:03:42 +02:00
Linkie Link
b12f5d3583
Account detail finetuning (#474)
* fix: fixed the position of extended AccountDetails

* feat: shrink full screen content on expansion

* fix: fixed the overlap
2023-09-15 10:44:05 +02:00
Linkie Link
419f2c04b7
Portfolio access (#475)
* feat: view other users portfolio

* fix: remove intro for unconnected users

* fix: added empty wallet to prevent infinite pause

* fix: changed useAccounts to have fallbackData
2023-09-15 10:43:58 +02:00
Bob van der Helm
d7b91f4115
🐛fix prices passed to HC and formatting (#473) 2023-09-14 15:00:56 +02:00
Linkie Link
8a87329c90
Balance table formatting (#472)
* fix: fixed the balances formatting

* fix: prevent flicker

* tidy: refactor
2023-09-14 14:26:26 +02:00
Bob van der Helm
d0095484fd
🐛add pagination for asset params (#471) 2023-09-14 12:00:46 +02:00
Bob van der Helm
6802008f75
Chart fixes (#470)
* 🐛add pools back

* 🐛fetch latest prices + fix decimal issue
2023-09-14 11:58:31 +02:00
Linkie Link
976d76a7f4
fix: fixed metamask snap (#467) 2023-09-13 20:27:43 +02:00
Bob van der Helm
433fa717a0
Hide APR for non-borrowable assets in Lend Table (#468)
* 🐛Hide APR in lend table for non-borrowable assets

* 🐛Hide APR in lend table for non-borrowable assets
2023-09-13 20:27:34 +02:00
Bob van der Helm
2f9f0f4b02
Add / update slippage for Vault Messages (#469)
* replaced minLpToReceive with slippage

* Re-lend assets after entering vault

* 🐛Fix vault unlock bug
2023-09-13 20:27:17 +02:00
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
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
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
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
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
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
Bob van der Helm
9b6ea6b1cc
[bugfix] add try catch for health calls (#382) 2023-08-21 14:02:44 +03:00
Bob van der Helm
e76a5dfc96
[task] add LTV to vault tables (#381) 2023-08-21 14:02:32 +03:00
Bob van der Helm
179400fe08
[bugfix] re-ordering of fund inputs (#380) 2023-08-21 14:02:20 +03:00
Bob van der Helm
5ee2b17b4c
[bugfix] APY display improvement vault (#383) 2023-08-21 14:02:09 +03:00
Yusuf Seyrek
88a2c68ed5
feat(auto-lend): implemented to swaps (#378)
* feat(auto-lend): implemented to swaps

* chore: remove unused import
2023-08-17 15:30:36 +03:00
Yusuf Seyrek
8e15ed7a19
feat(auto-lend): implemented to borrow (#379) 2023-08-17 15:30:27 +03:00
Yusuf Seyrek
d63c7f100a
fix(swap response): parsing token out (#377) 2023-08-17 12:56:42 +03:00
Yusuf Seyrek
13d153de69
Mp 3007 implement auto lend on account funding (#375)
* fix(deposit): formatting

* feat(deposit): auto lend on account funding

* add missing file

* feat(auto-lend): filter out feature disabled assets
2023-08-17 12:56:32 +03:00
Bob van der Helm
9712573b00
[bugfix] fix leverage and implement buffer for health (#374)
* [bugfix] fix leverage and implement buffer for health

* [bugfix] properly remove council page from nav

* [bugfix] ensure integer values for HC

* [bugfix] infinite rerender withdraw + negative values
2023-08-15 16:34:01 +03:00
Yusuf Seyrek
de185bf823
Mp 3237 handle multiple active incentives (#372) 2023-08-15 15:25:53 +03:00
Yusuf Seyrek
8df8aa6a12
fix(TitleAndSubCell): Text components' tag props are set to span to prevent <p> in <p> (#373) 2023-08-15 09:21:38 -03:00
Bob van der Helm
9c3a6a0482
[bugfixes] health percentage, trade slider, animation ++ (#369)
* [bugfixes] health percentage, trade slider, animation ++

* Update src/hooks/useHealthComputer.tsx

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

---------

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
2023-08-15 08:19:37 -03:00
Bob van der Helm
4c18575b64
[bugfixes] change threshold to LTV (#370) 2023-08-14 22:25:27 -03:00
Bob van der Helm
5e075ae69f
[bugfix] remove APY from borrowRate column (#371) 2023-08-14 21:58:16 -03:00
Bob van der Helm
f9318dfe6e
[CM details] support changes (#359)
* [CM details] support changes

* Update src/components/Trade/TradeModule/SwapForm/index.tsx

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

* Update src/components/Trade/TradeModule/SwapForm/index.tsx

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

* [HC] update to bncoin.from

---------

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
2023-08-14 09:55:53 -03:00
Yusuf Seyrek
5358b8c39e
feat(vaults constant): updated (#368)
* feat(vaults constant): updated

* fix: timeframe
2023-08-14 09:05:35 -03:00
Linkie Link
fe70b50c77
fix: remove header on non desktop devices (#366) 2023-08-14 11:02:48 +02:00