Commit Graph
428 Commits
Author SHA1 Message Date
Linkie Link ea07d5f11e tidy: cleanup 2024-02-14 11:47:42 +01:00
Linkie Link dae929d851 fix: fixed the docker build 2024-02-14 11:41:51 +01:00
Linkie Link 3f28ccd09c feat: handle URLs with or without trailing slash (#803)
* feat: handle URLs with or without trailing slash

* tidy: cleanup slashes
2024-02-14 09:26:10 +01:00
Linkie LinkandBob van der Helm 0bc3dcc687 Main update (#801)
* fix: fixed transaction messages (#792)

* Open Source + Docker image (#793)

* feat: added dummy charting library

* feat: added docker workflow

* feat: remove tests and code-coverage

* feat: added final TradingView fallback

* env: set private to false

* fix: added production env

* env: added README and LICENSE

* env: cleanup variables

* env: add license field

* env: finish docker setup

* fix: updated the description of the dummy data

* docker: update actions to node 20 (#796)

* docker: added v2 prefix to tags

* perps: trading fee + expected price (#800)

* env: updated dependencies (#799)

* update docker CI to node 20 (#797)

* fix: fixed transaction messages (#792)

* Open Source + Docker image (#793)

* feat: added dummy charting library

* feat: added docker workflow

* feat: remove tests and code-coverage

* feat: added final TradingView fallback

* env: set private to false

* fix: added production env

* env: added README and LICENSE

* env: cleanup variables

* env: add license field

* env: finish docker setup

* fix: updated the description of the dummy data

* docker: update actions to node 20 (#796)

* docker: added v2 prefix to tags

* env: updated dependencies

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2024-02-13 17:30:04 +01:00
Linkie Link 71d8e49a3d v2.2.2 OS (#794)
* fix: fixed transaction messages (#792)

* Open Source + Docker image (#793)

* feat: added dummy charting library

* feat: added docker workflow

* feat: remove tests and code-coverage

* feat: added final TradingView fallback

* env: set private to false

* fix: added production env

* env: added README and LICENSE

* env: cleanup variables

* env: add license field

* env: finish docker setup

* fix: updated the description of the dummy data
2024-02-13 11:33:13 +01:00
Linkie Link ffa5abb55b fix: fixed high gas prices (#788)
* fix: fixed high gas prices

* env: remove sentry
2024-02-09 14:36:44 +01:00
Bob van der Helm ba8758aa91 perps: add tradingfee percentage tooltip (#787) 2024-02-09 10:35:09 +01:00
Linkie Link 8283097262 hotfix: fixed loading non perps accounts 2024-02-09 09:08:11 +01:00
Linkie Link 413f8c43c8 Mp 2227 assetselect search (#782)
* feat: split perps into active and non active positions

* fix: fixed the search of assets selector

* fix: according to feedback
2024-02-09 08:42:37 +01:00
Linkie Link 6ac7708ca5 feat: debounce input sliders (#784)
* feat: debounce input sliders

* fix: fixed the debounce function
2024-02-09 08:29:26 +01:00
Bob van der Helm 6d5e7c7325 perps: modify perps, update contracts, interest, realized profits (#783) 2024-02-08 15:25:41 +01:00
Linkie Link 9762aa7cd0 feat: split perps into active and non active positions (#780) 2024-02-08 11:05:39 +01:00
Linkie Link 12a11a2ffc fix: fixed a dependency 2024-02-07 11:23:12 +01:00
Linkie Link 9c6f5bcc94 fix: update account health on modal close (#776) 2024-02-07 11:00:50 +01:00
Bob van der Helm b2b8f93bc3 vault: separate aprs (#777) 2024-02-07 10:59:54 +01:00
Bob van der Helm ef9c353b6b Mp 2193 pnl breakdown (#775)
* perps: add additional pnl info

* perps: make realized / unrealized coins
2024-02-06 15:12:55 +01:00
Linkie Link 9ccb32b743 fix: filled the empty space below collapsed content (#773)
* fix: filled the empty space below collapsed content

* fix: fixed timings
2024-02-06 13:48:41 +01:00
Linkie Link 388dbe7c6e fix: fixed a dependency 2024-02-06 11:12:50 +01:00
Linkie Link 0acfe49815 feat: preperations for open sourcing the repo (#771)
* feat: preperations for open sourcing the repo

* fix: don’t use an apikey if there is none set
2024-02-06 10:27:58 +01:00
Linkie Link 3c280518e8 Morph summary (#763)
* fix: fixed mobile issues with SVGs

* feat: first morphing AccountDetails

* tidy: composition refresh

* tidy: fine adjusting

* fix: svg fixes

* feat: updated summary structure

* feat: overall layout adjustments

* fix: fixed svg adjustments

* feat: finished AccountSummary update

* fix: fixed build

* tidy: refactor

* fix: fix enourmous APYs

* fix: don’t abbreviate APYs

* tidy: console.log

* fix: fix borrow Rate sorting

* fix: fixed scrollbars

* fix: hide scrollbars

* fix: resolved feedback

* fix: amount not size

* feat: only show credit account number outside of modals

* fix: added missing Strategies to PortfolioAccount

* fix: save some space
2024-02-06 10:05:42 +01:00
Linkie Link bae3d7388f fix: fixed favorite asset select (#770) 2024-02-05 12:53:55 +01:00
Linkie Link 119ed5b35b feat: use the chartView LocalStore to load the last set resolution (#769) 2024-02-05 12:53:23 +01:00
Bob van der Helm 19d4d1691d perps: remove modify module and adjust main module (#761)
* perps: remove modify module and adjust main module

* fix build
2024-02-02 14:05:40 +01:00
Bob van der Helm 98ab2c635a update osmosis nodes to Rhino (#762) 2024-02-02 14:05:00 +01:00
Linkie Link a20c52df7a fix: fixed the useSWR key for vaults 2024-01-31 15:37:11 +01:00
Linkie Link a6122534b7 Merge branch 'develop' of https://github.com/mars-protocol/mars-v2-frontend into develop 2024-01-31 14:45:37 +01:00
Linkie Link b9bc21fd4c fix: fixed merge errors 2024-01-31 14:45:25 +01:00
Linkie Link 2d5efec4cb List milkTIA (#757)
* tidy: update svgs

* feat: list milkTIA

* env: updated the version

* fix: fixed null return of RedBank

* fix: useMarketEnabledAssets
2024-01-31 14:37:31 +01:00
Linkie Link 0dc17e3263 Merge branch 'main' of https://github.com/mars-protocol/mars-v2-frontend into develop
# Conflicts:
#	package.json
#	src/api/cosmwasm-client.ts
#	src/api/incentives/calculateAssetIncentivesApy.ts
#	src/api/incentives/getTotalActiveEmissionValue.ts
#	src/api/incentives/getUnclaimedRewards.ts
#	src/api/markets/getMarket.ts
#	src/api/markets/getMarketBorrowings.ts
#	src/api/markets/getMarketDebts.ts
#	src/api/markets/getMarketDeposits.ts
#	src/api/markets/getMarketLiquidities.ts
#	src/api/markets/getMarketUnderlyingLiquidityAmount.ts
#	src/api/markets/getMarkets.ts
#	src/api/wallets/getICNS.ts
#	src/api/wallets/getWalletBalances.ts
#	src/components/Modals/AddVaultAssets/AddVaultBorrowAssetsModalContent.tsx
#	src/components/Modals/AssetsSelect/index.tsx
#	src/components/Modals/BorrowModal.tsx
#	src/components/Modals/FundWithdraw/WithdrawFromAccount.tsx
#	src/components/Modals/HLS/Deposit/Leverage.tsx
#	src/components/Modals/HLS/Deposit/LeverageSummary.tsx
#	src/components/Modals/HLS/Deposit/useAccordionItems.tsx
#	src/components/Modals/HLS/Manage/ChangeLeverage.tsx
#	src/components/Modals/HLS/Manage/Deposit.tsx
#	src/components/Modals/HLS/Manage/Repay.tsx
#	src/components/Modals/HLS/Manage/index.tsx
#	src/components/Modals/HLS/index.tsx
#	src/components/Modals/ModalContentWithSummary.tsx
#	src/components/Modals/Vault/VaultBorrowings.tsx
#	src/components/Wallet/RecentTransactions.tsx
#	src/components/Wallet/WalletBridges.tsx
#	src/components/Wallet/WalletConnectedButton.tsx
#	src/components/Wallet/WalletConnecting.tsx
#	src/components/Wallet/WalletSelect.tsx
#	src/components/account/AccountBalancesTable/Columns/Apy.tsx
#	src/components/account/AccountBalancesTable/Columns/useAccountBalancesColumns.tsx
#	src/components/account/AccountBalancesTable/functions.ts
#	src/components/account/AccountBalancesTable/useAccountBalanceData.tsx
#	src/components/account/AccountComposition.tsx
#	src/components/account/AccountDetails/index.tsx
#	src/components/account/AccountFund/AccountFundContent.tsx
#	src/components/account/AccountList/AccountStats.tsx
#	src/components/account/AccountPerpPositionTable/Columns/Asset.tsx
#	src/components/account/AccountSummary.tsx
#	src/components/borrow/Borrowings.tsx
#	src/components/borrow/Table/Columns/Debt.tsx
#	src/components/common/DisplayCurrency.tsx
#	src/components/common/Select/Option.tsx
#	src/components/common/Toaster/index.tsx
#	src/components/earn/farm/Vaults.tsx
#	src/components/earn/lend/Lends.tsx
#	src/components/header/DesktopHeader.tsx
#	src/components/header/navigation/DesktopNavigation.tsx
#	src/components/header/navigation/Routes.tsx
#	src/components/hls/Farm/AvailableHLSVaults.tsx
#	src/components/hls/Farm/Table/Columns/APY.tsx
#	src/components/hls/Staking/Table/Columns/ActiveApy.tsx
#	src/components/hls/Staking/Table/Columns/ApyRange.tsx
#	src/components/perps/BalancesTable/Columns/TradeDirection.tsx
#	src/components/perps/Module/PerpsManageModule/index.tsx
#	src/components/perps/Module/PerpsModule.tsx
#	src/components/portfolio/Account/Balances.tsx
#	src/components/portfolio/Account/Summary.tsx
#	src/components/portfolio/Card/index.tsx
#	src/components/portfolio/Overview/Summary.tsx
#	src/components/trade/AccountDetailsCard.tsx
#	src/components/trade/TradeModule/AssetSelector/AssetList.tsx
#	src/components/trade/TradeModule/AssetSelector/PairsList.tsx
#	src/components/trade/TradeModule/SwapForm/index.tsx
#	src/configs/chains/osmosis/devnet.ts
#	src/hooks/accounts/useAccountIds.tsx
#	src/hooks/accounts/useAccounts.tsx
#	src/hooks/assets/useAllAssets.ts
#	src/hooks/assets/useBasetAsset.ts
#	src/hooks/assets/useBorrowEnabledAssets.ts
#	src/hooks/assets/useDisplayCurrencyAssets.ts
#	src/hooks/assets/useMarketEnabledAssets.ts
#	src/hooks/assets/usePerpsEnabledAssets.ts
#	src/hooks/markets/useMarketDeposits.ts
#	src/hooks/perps/useOpeningFee.ts
#	src/hooks/useAssetIncentiveApy.ts
#	src/hooks/useBorrowAsset.ts
#	src/hooks/useBorrowEnabledMarkets.ts
#	src/hooks/useBorrowMarketAssetsTableData.ts
#	src/hooks/useClients.ts
#	src/hooks/useDepositEnabledMarkets.ts
#	src/hooks/useHLSStakingAssets.ts
#	src/hooks/useICNSDomain.tsx
#	src/hooks/useLendingMarketAssetsTableData.ts
#	src/hooks/useUnclaimedRewards.tsx
#	src/hooks/useUpdatedAccount/index.ts
#	src/hooks/useVaults.tsx
#	src/hooks/useWalletBalances.tsx
#	src/pages/LendPage.tsx
#	src/pages/PortfolioAccountPage.tsx
#	src/pages/_layout.tsx
#	src/types/interfaces/asset.d.ts
#	src/types/interfaces/chain.d.ts
#	src/utils/accounts.ts
#	yarn.lock
2024-01-31 13:22:26 +01:00
Bob van der Helm e763203d15 Mp 2182 convert api folder to swr hooks (#758)
* moved api/openingFee to hook

* moved api/icns and api/balances to hooks

* moved api/assetIncentivesApy to hooks

* moved api/incentives to hooks

* fix relative import
2024-01-31 09:17:13 +01:00
Linkie Link c4a2a7d913 Perps account preview (#750)
* fix: fixed the Liquidation Price inside the TradeSummary

* feat: added account preview

* tidy: refactor

* feat: added HLS intro

* fix: closing the wallet select focusComponent

* fix: added perps position update to edit as well

* fix: fix update perp

* fix: fail catch

* fix: implemented suggest changes

* tidy: fix

* fix: unfix

* fix: created helper function

* tidy: console.log
2024-01-30 16:18:54 +01:00
Linkie Link 3123220fee Withdraw and fund fix (#756)
* fix: fixed markets.find(byDenom())

* fix: fixed the account Summary in modals

* fix: fixed the withdraw lent assets logic
2024-01-30 13:51:23 +01:00
Linkie Link d1ed6e542e fix: replaces the store with useChainConfig (#755) 2024-01-30 09:19:51 +01:00
Bob van der Helm a00c8e391b Moved Markets data to SWR (#749) 2024-01-26 16:55:45 +01:00
Linkie Link f6f46d3372 v2.2.0 (#746) 2024-01-25 14:30:01 +01:00
Linkie Link 7cfe05ebb7 tidy: refactor 2024-01-24 17:20:51 +01:00
Linkie Link 11dac403a0 fix: hide Perp Positions on Osmosis 2024-01-24 17:15:43 +01:00
Linkie Link 8a61d5413e fix: fixed merge issues 2024-01-24 17:08:53 +01:00
Bob van der HelmandLinkie Link 74c9a41a8b fixed refetchgin of account data (#747)
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2024-01-24 17:06:12 +01:00
Linkie Link 957b44a153 tidy: remove console.log 2024-01-24 09:15:28 +01:00
Linkie Link 2997d7440e Merge branch 'main' of https://github.com/mars-protocol/mars-v2-frontend into develop
# Conflicts:
#	src/components/Icons/index.ts
#	src/components/Trade/TradeChart/TVChartContainer.tsx
#	src/components/Trade/TradeChart/index.tsx
#	src/components/common/Icons/PythLogoType.svg
#	src/components/common/Toaster/index.tsx
#	src/components/header/DesktopHeader.tsx
#	src/components/trade/TradeChart/PoweredByPyth.tsx
#	src/store/slices/broadcast.ts
2024-01-24 08:53:44 +01:00
Linkie Link 0ccb29154a feat: created AccountPerpsPositions for the AccountDetails component (#745)
* feat: created AccountPerpsPositions for the AccountDetails component

* fix: type fixing

* feat: added ToolTip

* tidy: refactor

* fix: added unrealized PnL placeholder

* tidy: finetune on the border color

* fix: fixed tables

* fix: adjustments according to feedback

* fix: fixed lent assets table

* fix: fixed typing

* refactor: streamline size to amount
2024-01-23 15:14:48 +01:00
Bob van der Helm 254df8cd6e add hooks to fetch route (#739)
* add hooks to fetch route

* add missing routes endpoint for pion1
2024-01-23 13:55:34 +01:00
Linkie Link 5c45491497 feat: added external links and marked them accordingly (#740) 2024-01-22 15:02:37 +01:00
Bob van der Helm fa4e0530c5 change labels for leverage slider (#738) 2024-01-22 15:02:12 +01:00
Linkie Link 000aa71e06 Miscellaneous (#737)
* fix: sorted assets by value

* tidy: refactored AssetsSelectTable

* fix: fixed the multipleVaultWithdraw Modal
2024-01-18 09:36:26 +01:00
Linkie Link fd924c885e Custom Pyth Endpoint & Price Data on Tx's (#736)
* env: remove testing library

* fix: use pyth over oracle

* fix: fix the endpoints

* fix: fix build

* tidy: refactor

* fix: fixed account fetching

* fix: made all queries chain agnostic

* fix: fixed the chart position

* feat: added basic auth

* fix: added env validation

* fix: added ‘no-cors’ and included credentials

* fix: removed ‘no-cors’ mode

* fix: change the isLessThanACent logic

* tidy: console log

* fix: added fallback api

* feat: progress on pythVaas

* fix: getting prices

* fix: try catch

* feat: add pythPriceData to transactions based on setting

* fix: disable Pyth Update when user uses Ledger

* tidy: copy
2024-01-18 09:03:32 +01:00
Linkie Link 68206ae14c Deposit cap highlighting (#735)
* feat: added depositCap highlighting

* feat: added depositCap highlighting
2024-01-17 10:49:17 +01:00
Bob van der Helm ab0e184a39 refactor components folder (#734)
* refactor components folder

* create leverage slider variants
2024-01-16 15:35:18 +01:00
Bob van der Helm 7629e2442f add functional funding rate + selector (#729)
* add functional funding rate + selector

* Edit perps position (#728)
2024-01-12 12:10:26 +01:00