Commit Graph

128 Commits

Author SHA1 Message Date
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