Commit Graph

444 Commits

Author SHA1 Message Date
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
dependabot[bot]
606442bb32
Build(deps): bump graphql from 16.6.0 to 16.8.1 (#497)
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to 16.8.1.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v16.6.0...v16.8.1)

---
updated-dependencies:
- dependency-name: graphql
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-23 22:06:12 +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
dependabot[bot]
4a8d511499
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>
2023-09-18 17:03:33 +02:00
dependabot[bot]
29beee0fe2
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>
2023-09-18 17:03:25 +02:00
dependabot[bot]
0102c09fb8
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>
2023-09-18 16:59:56 +02:00
dependabot[bot]
e6d4ef2a2e
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>
2023-09-18 16:59:24 +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