Commit Graph

215 Commits

Author SHA1 Message Date
saml33 f1e0770106
Merge pull request #210 from blockworks-foundation/markets-api-data
use markets api data
2023-07-25 08:19:42 +10:00
Adrian Brzeziński fe1ca08cc8
nft market (#173)
* poc wip

* devnet temp setup

* fix

* list item modal

* fix

* bid asset

* my bids modal

* mybids

* bids

* asset bids accept

* fixes

* nft market

* transaltions

* pagination

* bids without lisings

* list of bids

* fix

* add desktop ui styling

* yarn setup

* bring back mainnet

* mainnet setup

* only for whitelisted users

* fix pr

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-07-24 20:17:07 +02:00
saml33 3c492c893e sort markets by volume 2023-07-24 22:14:45 +10:00
saml33 84ecc51d87 merge main 2023-07-24 08:15:46 +10:00
tjs 271cc03d78 prettier 2023-07-22 16:44:43 -04:00
Adrian Brzeziński 2ee8b708ee
fix trustless registers + prettier fix (#215) 2023-07-22 14:36:22 +02:00
tjs abc5984647 use latest next-themes 2023-07-21 14:50:06 -04:00
tjs 3d8588d434 use latest prettier 2023-07-21 14:47:53 -04:00
saml33 eb8b06afcc use markets api data 2023-07-21 22:03:44 +10:00
tjs eab9a0a587 new network hook 2023-07-20 21:40:37 -04:00
saml33 8cf597c63f merge main 2023-07-18 21:03:45 +10:00
saml33 d22c659541 add collateral value to balance tables 2023-07-18 12:58:20 +10:00
saml33 dc9e7a8e6b merge main 2023-07-17 20:08:52 +10:00
tjs ba644e867d fix 24h change 2023-07-17 02:13:13 -04:00
saml33 ebde7f4402 merge main 2023-07-17 08:32:43 +10:00
saml33 2b8043baca fix 24h spot change 2023-07-14 15:47:05 +10:00
Adrian Brzeziński 3eda6ba06e Merge branch 'main' into mango-mints 2023-07-12 00:30:14 +02:00
saml33 d5d58626fc give account views a url 2023-07-11 23:14:44 +10:00
saml33 920a901a66 fix trade form logos 2023-07-10 11:33:09 +10:00
tjs cea9a8908e refactor data fetching out of account page into hooks 2023-07-08 19:50:40 -04:00
Adrian Brzeziński d69378a960 white list api 2023-07-07 01:12:38 +02:00
saml33 1de717f74c update perp logos 2023-07-03 11:52:51 +10:00
saml33 2c4a1cf772 fix ROE and update client 2023-06-28 20:50:27 +10:00
saml33 febb6a7ad3 calc liq price outside of the positions table 2023-06-28 12:10:47 +10:00
Riordan Panayides fee6d002d4 Prevent empty birdeye response breaking all price changes 2023-06-23 13:02:06 +01:00
saml33 a33fdcea62 add buffer when withdrawing with open positions 2023-06-22 12:58:47 +10:00
saml33 337f11ad3d fix dust borrows display 2023-05-22 20:19:23 +10:00
saml33 e6e86bcf96 add/update copy 2023-05-01 20:55:22 +10:00
saml33 5167ac1768 add oracle provider to token/perp stats settings tables 2023-05-01 15:24:21 +10:00
saml33 cf0a5e7e59 add oracle provider to market details modals 2023-05-01 14:42:29 +10:00
saml33 53369f741f merge main 2023-04-29 13:21:54 +10:00
Adrian Brzeziński 06bda068f7 left over commit from notifications pr 2023-04-29 00:01:06 +02:00
Adrian Brzeziński 1f2e90bdf8
notifications settings + websockets (#139)
* notification settings

* fix

* websockets

* fix url

* websockets

* fix

* fix

* fix api url

* fix hook

* reconnect sockets

* fix url

* fix double connection move back hooks to btn

* fix

* fix dependncy array
2023-04-28 23:36:24 +02:00
saml33 2c2544dbb0 fix bonk/sol ui issues 2023-04-25 22:41:23 +10:00
saml33 5b8d3eb90b merge main 2023-04-24 21:35:55 +10:00
Adrian Brzeziński d390447659
ui notifications (#127)
* notifications modal

* fix

* refetch, notify, mark as seen

* fix

* fix

* set secure cookie

* add ui

* more ui details and translations

* fix errors handling

* add remove all function to button

* pr fixes

* rename notifications toast

* add catch

* rename notifications prop in mango store

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-04-21 16:23:27 +02:00
saml33 a8b1acc502 export account history to csv 2023-04-20 20:55:52 +10:00
saml33 57bcfb42b8 fix trade history type 2023-04-18 09:45:27 +10:00
saml33 51aed56b88 merge main and update tooltip 2023-04-17 12:13:50 +10:00
saml33 e141233d79 show trade executions on tv charts 2023-04-13 21:25:58 +10:00
tlrsssss 938b3d70c3
Merge pull request #90 from blockworks-foundation/share-positions
add share positions to twitter
2023-04-10 20:58:38 -04:00
tlrsssss 3d2b485cf7
Merge pull request #114 from blockworks-foundation/use-birdeye-prices
Use birdeye prices
2023-04-07 16:41:32 -04:00
saml33 a67dccd3bd implement pr feedback 2023-04-06 10:22:20 +10:00
saml33 b0a4162d95 merge main 2023-04-06 09:19:58 +10:00
Adrian Brzeziński 3bf2a7d470
list tokens from ui (#107)
* governance wip

* governance store + helpers wip

* get voter weight

* on boarding realms component

* token list wip

* pyth oracle get

* adv fields

* hidden adv fields

* create proposal fcn + mangolana

* register market wip

* list market fixes wip

* translations

* register to register trustless + layout changes

* fix layout

* match switchboard oracle

* loaders

* validation

* style components

* change icon

* copy update

* translations keys

* fix translation

* fix warning create open book market

* fix

* fix transaltion

* fix

* fix

* fix pr

* fix onboarding translation

* fix token owner record error in console

* remove axios

* generic vsr idl

* fix pr

* remove mangolana

* small folder ref

* additional prop in onboarding component

* fix translation

* fix navbar

* change order of governance in navbar

* fix proposal index

* fix pr

* remove link without href for mint

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-04-05 23:59:30 +02:00
saml33 fdf10af082 use birdeye for token stats price chart 2023-04-04 11:37:03 +10:00
saml33 a5f310c07c use birdeye for spot market change 2023-04-04 09:20:59 +10:00
saml33 3aa5b46e8d use birdeye for spot markets table 2023-04-03 21:01:17 +10:00
saml33 d2e50e51ec fix roi and merge main 2023-03-29 21:38:26 +11:00
tjs 505e8150a3 use react query for trade history 2023-03-25 17:16:42 -04:00
tjs 3f0044ebd7 prompt for refresh on new build 2023-03-05 15:33:57 -05:00
tjs fd061dcdbf move delegate checks into useUnownedAccount hook 2023-03-04 14:17:34 -05:00
tjs 917080ac09 add warning for delegate accounts 2023-03-04 13:42:46 -05:00
saml33 49c0d5517c merge main 2023-03-03 22:29:34 +11:00
tjs 8d28ab1cb6 restore last viewed acct functionality 2023-03-02 20:19:08 -05:00
saml33 6220907b0c remove unused icon 2023-03-01 09:45:39 +11:00
saml33 5770720b5f add share positions to twitter 2023-03-01 09:45:39 +11:00
tjs 3bed60af56 turn on lint errors for typescript any 2023-02-28 02:20:11 -05:00
tjs 1a763c8c9d fix stable price line updates 2023-02-26 20:04:02 -05:00
tjs abb408678e replace any type with more defined types 2023-02-25 19:22:39 -05:00
tjs ebb0d546b7 useCallback to reduce trading view rerenders and memory leaks 2023-02-25 14:59:35 -05:00
tjs d8f6153eab more improvements to open orders displayed in orderbook 2023-02-21 23:29:25 -05:00
tjs 02775cab56 fix unsettled perp positions rerender 2023-02-16 14:17:03 -05:00
tjs 142aac7d9c revert commit 2023-02-15 17:23:58 -05:00
Adrian Brzeziński d9fc7f11ac
Feature/kline perp stats (#88)
* kline perp wip

* fix

* make data more common with trading view

* datafeeds

* fixes

* fixes

* fix

* fix error

* better logging
2023-02-15 23:17:58 +01:00
tjs 2c8da6f1a7 improve trade history typing and trading view order lines colors 2023-02-15 16:49:56 -05:00
saml33 c9735cf548 use selectedmarket to update stable price 2023-02-15 16:09:11 +11:00
saml33 066fd9b364 merge main 2023-02-15 10:41:47 +11:00
saml33 6a05e60376 hide action buttons for unowned accounts 2023-02-13 13:46:41 +11:00
saml33 b45165079f update perp market stable price 2023-02-10 16:19:48 +11:00
saml33 c3d8f0af68 Merge branch 'main' into stable-price-tv-line 2023-02-10 16:09:02 +11:00
tjs 6277984325 use latest client 2023-02-09 16:23:44 -05:00
saml33 9c0cb6e6c1 add stable price line to tv chart 2023-02-09 22:41:15 +11:00
saml33 bb35da1434 fix perp positions count 2023-02-09 12:23:21 +11:00
tylersssss 971533009d
Merge branch 'main' into update-tab-count 2023-02-07 13:54:47 -05:00
saml33 b5e9229d65 update tab count on disconnect 2023-02-01 15:49:37 +11:00
saml33 d8970b02c6 add hook for banks and balances 2023-01-30 15:13:38 +11:00
tjs 63909e2bb7 improve use query config options 2023-01-20 11:13:03 -05:00
saml33 9d8f804b75 fix token logo symbol matching 2023-01-18 22:18:57 +11:00
tjs e5dff1c8c3 use latest client; update perp positions table with new pnl calcs 2023-01-17 18:31:58 -05:00
tjs 58a113b7cc handle use margin checkbox for serum trade form 2023-01-15 00:52:22 -05:00
tjs 38a3db06df refactor to use hook useSelectedMarket 2023-01-15 00:01:30 -05:00
tjs 9865e85116 add mango account pk and address to hook 2023-01-05 23:01:03 -05:00
saml33 9e45571b51 add swap to token list actions 2023-01-05 13:50:36 +11:00
Adrian Brzeziński c23628ef41 remove console log 2023-01-02 21:42:52 +01:00
tjs 09c4d817e7 improve slippage calc for spot trades 2023-01-02 14:51:09 -05:00
tjs 3bf6ace4bf fetch open orders after mango account websocket update 2022-12-26 16:04:15 -05:00
tjs 6e84168b2e add logos 2022-12-19 22:53:00 -05:00
tjs f3080cb27f add geo check to trade forms 2022-12-19 16:58:29 -05:00
tjs 9ef197d772 add useIpAddress hook 2022-12-18 15:26:38 -05:00
tjs 06ccb7c3c2 only show in unsettled if perp position has pnl 2022-12-12 01:01:49 -05:00
saml33 07e8b1a62a round oracle price to tick size 2022-12-12 15:38:52 +11:00
saml33 7a736158f7 replace sol logo 2022-12-08 10:03:56 +11:00
saml33 f9f86b529d add slippage to trade form 2022-11-25 21:10:23 +11:00
saml33 0447fc5d61 better sound support and fix settings 2022-11-23 23:40:38 +11:00
saml33 f52cb54008 sound support and settings 2022-11-23 16:38:31 +11:00
tjs ef144b672f fixup recent trades decimals 2022-11-20 23:52:08 -05:00
tjs 777d44860a use event queue for recent trades until api is ready 2022-11-20 23:16:11 -05:00
tjs eb3d915916 wip: add unsettled perp 2022-11-20 21:29:54 -05:00
tjs cb0b90dfb5 refactor to use mango group hook 2022-11-20 15:32:38 -05:00
tjs 2608a661e5 refactor to use selected market hook 2022-11-20 15:20:27 -05:00
tjs 6b4c1d9f7e improve advanced trade sliders 2022-11-19 20:40:06 -05:00
tjs 7036df7e69 add network offline warning 2022-11-19 13:33:12 -05:00
saml33 f2bdd7a54b show sol balance warning when connected 2022-11-19 20:18:01 +11:00
tjs 203c571bc5 use jupiter api and hooks 2022-11-18 18:19:04 -05:00
tjs 5727d0bc7f add a useMangoAccount hook 2022-11-18 12:09:39 -05:00
saml33 777e020648 add low sol balance warnings 2022-11-18 15:43:23 +11:00
saml33 177b5f0429 use oracle price for rolling change 2022-11-17 23:53:42 +11:00
saml33 903884b732 add sol balance hook 2022-11-17 12:53:33 +11:00
microwavedcola1 72e4808141 match mango-v4 dev branch
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-10-07 14:27:42 +02:00
saml33 1bcde660b3 account, swap and trade tabs 2022-10-07 14:16:11 +11:00
tjs 84728b580b serum spot trade page 2022-09-14 02:24:44 -04:00
tjs 1257c73662 fix connect account; add feature to remember last selected 2022-08-19 17:17:30 -04:00
saml33 db1f52f452 add settings page 2022-07-19 13:58:21 +10:00
saml33 58292c9505 add layout and nav pattern 2022-07-15 09:36:31 +10:00