Commit Graph

92 Commits

Author SHA1 Message Date
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
Yusuf Seyrek
e651e9c797
feat: store and component mocks setup (#237)
* feat: store and component mocks setup

* feat: more examples
2023-05-30 11:16:13 +02:00
Yusuf Seyrek
0c959d5097
feat: replace graphql requests with cosmwasm queries (#225)
* feat: replace graphql requests with cosmwasm queries

* feat: concurent price and market fetching
2023-05-30 11:16:03 +02:00