* 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>
* 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
* 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>
* 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
* 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>
* feat: inputs are disabled on swap form when executing the transaction
* feat: disabled borrow, lend, vault, deposit, withdraw form inputs when executing transaction
* 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
* feat: move app to pages features
* feat: route changes
* Use React Router, Remove SSR
* Fix account menu
* Remove app folder
* remove old useParams
* Moved pages back to pages and refactor names
* add layout to route
* clean up
* create hooks for api fetching
* fix refetch of all data on tx complete
* formatting
* fix: fixed the wallet-connector race condition
* remove cosmjs/stargate (#202)
* remove cosmjs/stargate
* add Yusuf as code-orwner
* Singleton client (#203)
* remove cosmjs/stargate
* add Yusuf as code-orwner
* create signleton client and refactor vaults api
* update client name, add apollo apr env
* Setup validate-env and remove checking from apis
* uncomment vaults
* Resolve comments
* fix: html templating, add checks for hydration&window object, reduce bundle size (#204)
* fix: tests
* Fix routing and wallet client (#205)
* Add header to router (as layout)
* Refactor Wallet component
* Remove server fallback packages webpack
* add missing dependency for useeffect
---------
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
* feat: connected borrowModal to the new components
* fix: fixed the introduced issues
* Update src/components/Modals/BorrowModal.tsx
as suggested
Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
* Update src/components/Modals/BorrowModal.tsx
Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
* Update src/components/Modals/BorrowModal.tsx
Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
---------
Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
* MP-2681: fixed and simplified fund and withdraw
;.
:
* MP-2352: created the CreditAccountComposition
* fix: adjusted according to feedback
* fix: fixed funding account max
* fix: fix portfolio