Commit Graph

394 Commits

Author SHA1 Message Date
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
Linkie Link
6efe2c71a0
Mp 2784 mobile not supported screen (#358)
* MP-2784: first itteration of the mobile support screen

* fix: fixed the AccountSummary

* MP-2784: mobile not supported

* fix: v1 is not v1.0

* fix: fixed according to feedback

* fix: created a standalone mobile page
2023-08-14 10:32:49 +02:00
Bob van der Helm
2d6ef1a4a0
[HC] update wasm files and types (#360) 2023-08-11 15:46:35 -03:00
Yusuf Seyrek
1af857fcb0
feat: update contracts (#307)
* feat: update contract addresses

* feat(contracts): generated types updated & incenvite changes

* feat(smart contract client update): made the app working with new smart contracts

* addressed to PR comments
2023-08-11 00:31:27 +03:00
Yusuf Seyrek
d1db7ee6c1
logging(tx simulation): remove error log (#357) 2023-08-09 16:47:22 +03:00
Linkie Link
e6926dbd17
fix: fixed the UI not being disabled on transaction (#356)
* fix: fixed the UI not being disabled on transaction

* fix: borrow modal repay toggle
2023-08-09 15:29:28 +02:00
Yusuf Seyrek
85bdb4b267
fix(margin trading): response parsing (#354) 2023-08-09 15:53:32 +03:00
Linkie Link
be671efd64
fix: fixed the autoconnect (#355) 2023-08-09 14:51:46 +02:00
Yusuf Seyrek
9d31122636
feat(transaction broadcasting layer): added on the fly fee estimation functionality to all of the transactions (#352) 2023-08-09 11:09:42 +03:00
Linkie Link
d494bce26a
MP-2802: created get started overlay (#351) 2023-08-08 21:50:07 +02:00
Linkie Link
f4fc2dcfcc
MP-2803: created fund already funded account flow (#350) 2023-08-08 15:57:53 +02:00
Yusuf Seyrek
dca3f8a236
feat(Trade page): account details card (#348)
* feat(Trade page): account details card

* feat(account details): dont display the card when account has no deposits
2023-08-08 12:12:52 +03:00
Bob van der Helm
b35c743286
MP-2912 Margin trading implementation (#342)
* fix(useSWR): request hooks revalidation on focus disabled

* [trade] add margin

* [trade] include borrow rate in receipt

* [trade] add tooltip margin and pr comments

* updated regardign comments

---------

Co-authored-by: Yusuf Seyrek <yusuf@delphilabs.io>
2023-08-07 13:51:52 +03:00
Yusuf Seyrek
c25d8607e8
fix(useSWR): request hooks revalidation on focus disabled (#340) 2023-08-05 11:52:11 +02:00
Linkie Link
cec9e50955
fix: fixed the wallet auto connection (#341)
* fix: fixed the wallet auto connection

* tidy: refactor

* fix: re-enabled account change support

* tidy: refactor
2023-08-05 11:11:07 +02:00
Linkie Link
267b968c4a
MP-2894: withdraw from account (#339) 2023-08-04 15:10:30 +02:00
Bob van der Helm
103c8bed9a
[vault modal] add borrow max calcs (#337)
* [vault modal] add borrow max calcs

* fixed test
2023-08-03 12:03:03 +02:00
Linkie Link
1a55d8bd39
Mp 3104 delete account (#336)
* MP-3104: added deleteAccount and alerts for vaults and debts

* MP-3104: added Borrow and Farm links to the AlertDialog

* MP-3104: finished delete flow

* fix: adjusted according to feedback

* refactor: tidy
2023-08-03 11:45:32 +02:00
Yusuf Seyrek
69dece2600
Mp 3220 prevent making unnecessary calls from SwapForm (#338) 2023-08-03 10:46:15 +03:00
Bob van der Helm
b6be254804
[trade] implement max swap from health computer (#335) 2023-08-02 11:38:41 +02:00
Yusuf Seyrek
947777fbe7
fix(TradingView Charts): resolveSymbol callback arguments (#334) 2023-08-01 10:43:50 +03:00
Yusuf Seyrek
fef4608681
feat(swap form): disable range input when balance is zero (#333) 2023-08-01 10:43:38 +03:00
Yusuf Seyrek
1b34cb77eb
fix: wrong asset selector state on overlay close (#332) 2023-07-31 16:23:54 +03:00
Yusuf Seyrek
2611291028
Mp 3192 disable inputs on transaction initialization (#326)
* feat: inputs are disabled on swap form when executing the transaction

* feat: disabled borrow, lend, vault, deposit, withdraw form inputs when executing transaction
2023-07-31 10:57:38 +03:00
Linkie Link
1eec100907
fix: updated the account balances and added debts (#325) 2023-07-28 21:37:54 +02:00
Linkie Link
fec03d030f
MP-3128: added conditional ActionButtons (#324)
* MP-3128: added conditional ActionButtons

* feat: added Create Account button

* fix: simplified the ActionsButton according to feedback

* fix: moved the onClick handler to the card of an account summary instead of the title

* fix: fixed the health and balance display bug

* fix: remove Leverage static number

* fix: small style fix
2023-07-28 11:25:09 +02:00
Yusuf Seyrek
bd07c20e47
feat: vault modal header (#323)
* feat: vault modal header

* fix: displaying zero values

* feat: code comments
2023-07-28 12:12:13 +03:00
Linkie Link
184a27e987
MP-2891 and MP-2801 (#321)
* MP-2801: fund new credit account

* tidy: cleanup

* tidy: refactor

* feat: replaced all possible BN(0) & BN(1) occurrences with constants

* fix: adjusted according to feedback

* fix: adjustments according to feedback

* fix: PR comment updates

* fix: reduced complexity

* feat: animated the wallet balance for the demo

* fix: enhanced wallet connection to select first account

* fix: adjusted the calculations and added USD as displayCurrency

* fix: adjusted according to feedback

* feat: added TFM bridge

* fix: changed forceFetchPrice

---------

Co-authored-by: Yusuf Seyrek <yusuf@delphilabs.io>
2023-07-27 11:26:32 +02:00
Yusuf Seyrek
bb6a9b99e3
feat: swap form fixes & improvements (#322) 2023-07-26 14:55:30 +03:00
Yusuf Seyrek
d4a2f19db2
feat: replaced all possible BN(0) & BN(1) occurrences with constants (#320) 2023-07-26 12:19:19 +03:00
Yusuf Seyrek
e09c2f9d53
feat: swap functionality (#319) 2023-07-26 09:23:30 +03:00
Bob van der Helm
fef9227a0d
[Health Computer]: update wasm + support borrow to wallet (#318)
* [Health Computer]: update wasm + support borrow to wallet

* [test]: fixed tests for account details
2023-07-25 17:09:08 +02:00
Linkie Link
0aa3bb0c5f
MP-2798, MP-2799, MP-2902, MP-2893, MP-2895, MP-2896, MP-2898 (#312) 2023-07-25 09:48:59 +02:00
Bob van der Helm
3413203ca7
Mp 2949 implemet health computer for borrow (#311)
* implemented max borrow for borrow page

setup basic useHealthComputer

* finish up healthcomputer

* updated tests
2023-07-24 09:44:45 +02:00
Linkie Link
ac0658224e
Mp 2881 finalize the borrow flow table (#308)
* MP-2881: fixed the buttons and adjusted the marketDetails

* MP-2881: finished the borrow to wallet functionatlity

* fix: renamed withdraw to borrowToWallet

* fix: moved the useMemo return into functions

* tidy: refactor

* tidy: refactor
2023-07-19 12:10:23 +02:00
Yusuf Seyrek
49e7778b1e
Mp 2836 implement pagination to the batched smart contract queries (#301)
* feat: batch and paginate oracle prices

* fixes and improvements

* feat: complete batching mechanism and its implementation

* fix: getVaultConfigs usage

* fix: linting

* feat: remove hardcoded mars decimals
2023-07-17 12:01:00 +03:00
Linkie Link
48d07173fb
Mp 2591 add terms of service (#300) 2023-07-14 16:39:12 +02:00
Yusuf Seyrek
d949cc84b7
feat: multi price source implementation (#299) 2023-07-14 14:49:33 +03:00
Bob van der Helm
4aec1bee67
WIP: Tradingview charts (#296)
* almost finished custom styling for TV

add basic chart

intermittent update

finished basic route pairing datafeed

update datafeed

fix relative import

* finish shell script

add shell script for charting_library

* remove wrong line in shell

* fixed pr comments

* fixed pr comments

* fix config for TV CHart

* add example for thegraph api

* update favorite assets

* add + to boolean operation

* remove usecallback
2023-07-13 09:02:38 +02:00
Yusuf Seyrek
380bfb7189
feat: fixes and improvements on account creation (#295) 2023-07-12 16:49:38 +03:00
Linkie Link
df6d7a3ba2
overall cleanup and refactoring + SettingsModal (#286) 2023-07-11 21:01:14 +02:00
Yusuf Seyrek
ffe86a440c
fix: range input disabled state (#294) 2023-07-10 10:34:41 +01:00
Yusuf Seyrek
c0d62cd8f0
feat: trade range input implementation (#287) 2023-07-07 18:19:00 +03:00
Yusuf Seyrek
0123685f79
feat: auto-lend foundation (#283) 2023-07-05 17:43:11 +03:00
Linkie Link
21c8d04824
fix: fixes some minor stuff (#285)
* fix: fixes some minor stuff

* fix: used the right icon for lend
2023-07-05 15:09:15 +02:00
Linkie Link
cd8fa35b76
Mp 2821 unlocked positions (#284)
* feat: added unlock flow to the deposited farm row

* feat: added first itteration of unlocking/unlocked logic

* feat: introduce getVaultPositionStatus

* feat: added animated unlock label

* fix: size fix

* MP-2821: created the VaultUnlockBanner

* MP-2821: finished single vault withdraw

* MP-2821: finished vault unlock integration

* fix: implemented feedback

* tidy: refactor isWaiting > isConfirming

* fix: updated according to feedback

* fix: updated according to feedback

* fix: added useMemo for multiple values

* tidy: fixed some format issues

* tidy: updated svg icon implementation

* fix: fixed Bob’s glas-border issues

* fix: refactor modal max-widths

* MP-3031: moved deposit button into the table row
:

* fix: cleanup and adjustment to the button (according to layout)

* fix: added nested groups and finalized the label animation

* tidy: cleanup
2023-07-05 14:28:39 +02:00
Linkie Link
3c3e722c49
Mp 2821 unlocked positions (#276) 2023-07-04 16:15:36 +02:00
Yusuf Seyrek
85e36897a6
Use generated types in message execution function (#282)
* fix: lend transaction message

* feat: use generated types
2023-07-03 18:49:22 +03:00
Bob van der Helm
39e745b210
Mp 2713 asset selector (#275)
* added dumb asset selector

* fix table layouts borrow and farm

* 🍱 added basic overlay, esc btn

* finish asset selector

* Update tailwind configf to include button styles
2023-07-03 09:39:34 +02:00
Bob van der Helm
789a0d7b47
added full width layout for trade page (#274) 2023-06-29 17:35:45 +02:00
Bob van der Helm
999bad4059
Mp 2880 modifying farm position (#272)
* added correct resolving of account positions

* solve rendering bug for lp amount

* bugfix: add slippage to minlpamount

* fix DisplayCurrency to accept only BNCoin

* bugfix: remove prices from store

* add basic depostied vaults table

* Farm: Added deposited table

* finish deposited table, remove featured vaults:

* enable deposit more for vaults

* use controller for vault modal

* small fixes and polishing of add deposit

* fix tests, run format

* removed empty deposited table

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-06-29 13:12:11 +02:00
Bob van der Helm
697e83b7cb
Mp depostied vaults table (#271)
* added correct resolving of account positions

* solve rendering bug for lp amount

* bugfix: add slippage to minlpamount

* fix DisplayCurrency to accept only BNCoin

* bugfix: remove prices from store

* add basic depostied vaults table

* Farm: Added deposited table

* finish deposited table, remove featured vaults:
2023-06-29 12:55:47 +02:00
Bob van der Helm
9007e31707
added correct resolving of account positions (#270) 2023-06-26 15:13:21 +02:00
Bob van der Helm
415da05b8d
Mp 2548 deposit into vault (#264)
* Implement vault deposit message

* Merge custom Coin into BNCoin

* Fix build errors

* fixed tests
2023-06-26 10:08:45 +02:00
Yusuf Seyrek
7fda98aeea
Mp 3004 implement account balance amount when withdrawing 100 of lent asset (#263) 2023-06-23 18:52:49 +03:00
Yusuf Seyrek
2c399a2f16
feat: lend and withdraw modals (#257)
* feat: lend/withdraw functionality

* feat: addressed to pr discussions

* rename: data hook members
2023-06-23 13:30:08 +03:00
Yusuf Seyrek
db9f222732
Mp 2993 update smart contracts (#262)
* feat: update contract addresses and types

* feat: add account type

* feat: comment out old contract vaults

* tests: disable vaults test suite

* instantiate contract-specfiic clients

* fix build

* rebase and fix test

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-06-21 00:20:42 +02:00
Bob van der Helm
0037c3dedf
Mp 2547 unlocking modal (#256)
* add modal

* add tests and update naming

* fix pr comments
2023-06-19 20:46:32 +02:00
Yusuf Seyrek
878434dfec
feat: lending page and tables (#248) 2023-06-15 15:34:12 +03:00
Bob van der Helm
7b5d4c3255
Mp 2546 borrow asset modal (#255)
* Refactor Modal folder and setup basic addassetsmodal

* basic tables

* Update basic logic

* small fixes

* Update closing for modals

* fix slider update bug and set borrowing subtitle

* fix store

* add missing dependency

* fix tests for VaultBorrowings

* Add DisplayCurrency test for VaultBorrowings

* trigger updated

* update borrowModal import path

* update imports for modals

* updating paths again

* update structure of modals directory

* fix all file naming and relative imports

* fix icon spacing button and jest.mocked import

* fix icon classes for button

* change Map to array and add BNCoin

* add AssetImage

* update logic for selecting borrow denoms
2023-06-15 13:00:46 +02:00
Bob van der Helm
0f8e656651
Mp 2543 farm adv borrow (#247)
* add calculation for max borrowings

* implement borrow side for modal

* add test and resolve comments
2023-06-07 16:22:13 +02:00
Yusuf Seyrek
2c149fabcf
tests: fix, improve utility, separate workflows (#241) 2023-06-05 08:47:42 +02:00
Yusuf Seyrek
2156431355
Mp 2565 api for active vaults (#239)
* feat: get deposited vaults functions

* feat: functional improvements

* cleanup: logging

* cleanup: remove unused import

* update: naming conventions
2023-06-05 08:31:46 +02:00
Bob van der Helm
9d09ebdf77
Mp 2544 Vault deposit (#240)
* Show guages on deposit

* Finish VaultDeposit

* resolve PR comments
2023-06-01 15:55:42 +02:00
Bob van der Helm
ac7e82b0a4
Mp 2758 updated tooltip component (#238)
* update tooltip styling

* refactor Tooltip and fix build

*  add Tooltip unit tests

* remove width and height

* update tests and yarn format script

* Apply suggestions from code review

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

---------

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
2023-05-31 10:34:26 +02:00