* 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
* 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
* 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: 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>
* 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>
* 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
* 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>
* 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>
* [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>
* [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
* 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
* 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
* feat: inputs are disabled on swap form when executing the transaction
* feat: disabled borrow, lend, vault, deposit, withdraw form inputs when executing transaction
* 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
* 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>
* 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
* 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>
* 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>
* Refactor TokenInput
* add TokenInput test + warning
* change title assigned select
* add unit tests for Card
* remove marketAssets from broadcast store
* 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
* tidy: refactor text
* tidy: refactor text
* fix display of vaults table
* feat: added unstyled select
* tidy: useToggle
* tidy: useToggle
* add vaults to types
* MP-2344: first unstyled version of Select
* fix: fixed the build
* MP-2344: progress on the Select
* MP-2344: almost finished the Select
* implement basic vault modal (no logic)
* 🍱 max + displaycur for token input
* Convert to BN for TokenInputs
* env: update wallet-connector
* fix: fixed build errors and relative imports
* fix: updated TokenInput
* tidy: format
* fix: BN instead of new BigNumber
---------
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
* MP-2344: first draft for the fund account flow
* tidy: refactor
* fix: fixed the callback functions
* fix: fixed the toast message for funding
* fix: some logic fixes
* feat: enabled closing of “fund account”
* fix: z-1 to isolate
use isolate to create a stacking context
* tidy: deleted icons
* MP-2344: updated the tooltip
* MP-2344: new create and funding logic
* MP-2344: finished AccountList UI
* tidy: svg icon updates
* chore: updated dependencies
* feat: convert inputValues to amounts and amounts to inputValues
* fix: build fix
* fix: fixed imports
* fix: pr updated
* fix: fixed the SWR queries to not override themselves
* tidy: refactor
* feat: added TokenInputWithSlider
* tidy: refactor TokenInputWithSlider
* feat: preparations for the accountBalance calculations
* fix: removed formatCurrency from store
* feat: added global Coin type
* tidy: refactor delete and create credit account
* add useCallback to FundAccount
* update api + swr
* refactor naming, ssr accounts menu
* wip: added static params and href to DesktopNavigation
* fix: added TODO statement
* add middleware to get url
* feat: added scrolling to the active account
* tidy: UX improvement on the accounts list
* fix: updated the page params
* fix: fixed the navigation
* fix: fixed the getRouteParams
* fix: some logic updates
* fix: fixed the accountMenu view
* Keep page when selecting new account
* fix: fixed useParams
* fix: navigation update
* fix pr comments
* fixed build
---------
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
* tidy: UI updates to the borrow tables
* feat: styled the toasts
* tidy: format
* fix: removed peer
* fix: fixed the svgs
* fix: stupid svgs
* rename: X to Cross
* tidy: wrap up the logic
* MP-2436: added Settings menu
* tidy: refactor
* fix: react to server side rendering
* fix: fixed the background animations
* fix: enableAnimations for bg classes
* small merge fix
* fix: fixed the animation less circular progress
---------
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
* fix: added current SCs
* fix: fixed disabled buttons
* chore: updated all packages
* tidy: cleanup
---------
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
* env: updated env structure to make the vercel deployment work
* env: updated the URL_API to be compatible with vercel
* feat: add vercel.json
* env: vercel protection bypass
* env: adding bypass logic
* fix: changed 127.0.0.1 back to localhost
* env: readded cors
* env: delete vercel.json
* env: update headers
* env: moved cors back to vercel.json
* env: allow all headers
* env: switched from headers to query variables
* env: still need CORS
* env: ignore cookie
* env: tidy
* tidy: cleanup