Commit Graph

326 Commits

Author SHA1 Message Date
saml33 f13acf6bd0 add tv chart meme and support changing fonts 2023-06-07 22:45:09 +10:00
saml33 9ffd337fe0 use themeData for vars 2023-06-07 15:00:59 +10:00
saml33 6173d28e46 play animation on sidenav image click 2023-06-06 12:49:51 +10:00
Adrian Brzeziński 79b6fd6cc7
create switchboard oracle from ui (#162)
* wip create oracle

* wip

* wip

* wi[

* switchboard oracle wip

* switchboard oracle

* switchboard authority

* deduplicate

* fix cfg
2023-06-05 17:29:04 +02:00
saml33 166d7eafe1 remove stable price from tv chart 2023-05-24 13:32:02 +10:00
tjs ff471e6283 fix nan on risk dashboard 2023-05-22 10:50:44 -04:00
Adrian Brzeziński b9f9636bd6
governance delegate select (#151)
* delegate modal

* delegate wip

* fix

* translations

* fix
2023-05-15 19:14:50 +02:00
saml33 79d7c9b03e format mango stats outside of component 2023-05-02 10:52:32 +10:00
saml33 53369f741f merge main 2023-04-29 13:21:54 +10: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 5b8d3eb90b merge main 2023-04-24 21:35:55 +10:00
saml33 302dadd35b merge main and show swaps by default 2023-04-24 11:29:36 +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
tlrsssss 80fffadd8b
Merge pull request #121 from blockworks-foundation/show-trade-executions
show trade executions on tv charts
2023-04-18 18:06:02 -04:00
saml33 51aed56b88 merge main and update tooltip 2023-04-17 12:13:50 +10:00
saml33 fea60efbbb change swap history points to use arrows 2023-04-15 23:56:50 +10:00
Adrian Brzeziński 3e0f66f063 fix spl token class import for gov 2023-04-14 21:13:10 +02:00
Adrian Brzeziński 453b62fdd7
governance active proposal voting (#117)
* 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

* voting wip

* code fix

* menu

* fix

* additional prop in onboarding component

* fix translation

* fix transaltion

* voting fixes

* add basic styling

* fix merge

* fix files

* fix

* fix loaders

* fix

* fix loading voteRecord

* fix voter state without wallet

* fix

* translations

* fix translation

* dynamic imports

* copy updates, show vote weight and current vote

* fix

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-04-14 21:05:27 +02:00
saml33 840084433c load nfts from metaplex 2023-04-14 21:48:09 +10:00
saml33 707205eabe show swap history on swap chart 2023-04-14 15:22:39 +10:00
saml33 e141233d79 show trade executions on tv charts 2023-04-13 21:25:58 +10: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
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 b5a30fbe89 merge main 2023-04-04 13:49:28 +10:00
tjs f7e8e2cbdf make unsettled spot show up after order 2023-03-31 16:02:57 -04:00
saml33 96056c7ebd remove failed to load profile notification 2023-03-29 20:40:28 +11:00
tjs 505e8150a3 use react query for trade history 2023-03-25 17:16:42 -04:00
tjs 89364cb76d improve open orders display 2023-03-08 19:34:13 -05:00
tjs 55db739d76 revert change to load last account and bump local storage key version 2023-03-08 12:53:48 -05:00
saml33 79ff66df10 fix loading last viewed account 2023-03-08 11:05:15 +11:00
saml33 0e4d180131 fix perp market stats 2023-03-08 10:12:40 +11:00
tjs dcace3ee92 load delegate accounts 2023-03-04 12:06:27 -05:00
tjs 8d28ab1cb6 restore last viewed acct functionality 2023-03-02 20:19:08 -05:00
tjs 3bed60af56 turn on lint errors for typescript any 2023-02-28 02:20:11 -05:00
tjs ebb0d546b7 useCallback to reduce trading view rerenders and memory leaks 2023-02-25 14:59:35 -05:00
tjs a437909af9 fix api call guards 2023-02-23 21:22:24 -05:00
tjs 09133bf7b2 more refactoring for type safety 2023-02-23 19:28:49 -05:00
tjs 09852aa007 improve typing to fix errors with recent trades and history 2023-02-23 16:44:54 -05:00
tjs f80144640f add more types to api calls 2023-02-23 12:28:09 -05:00
tjs 58b7fd708c update wallet balances when opening deposit or repay modal 2023-02-22 14:20:36 -05:00
tjs d8f6153eab more improvements to open orders displayed in orderbook 2023-02-21 23:29:25 -05:00
tjs d2540c8be5 improved open order loading 2023-02-21 21:25:00 -05:00
tjs 704018c616 improve open orders display on orderbook 2023-02-21 16:07:47 -05:00
saml33 6be31bc016 Merge branch 'main' into stable-price-tv-line 2023-02-15 16:03:14 +11:00
tjs d304045b16 update selectedMarket on group reload 2023-02-14 22:56:44 -05:00
saml33 066fd9b364 merge main 2023-02-15 10:41:47 +11:00
tjs 57f927fc15 improve speed of updating open orders after websocket change 2023-02-13 22:38:57 -05:00
saml33 42d660b2be merge main 2023-02-12 20:40:26 +11:00
saml33 93956ca44f merge main 2023-02-12 20:33:50 +11:00
saml33 508c4213a1 fix account performance data 2023-02-11 23:40:23 +11:00
saml33 c3d8f0af68 Merge branch 'main' into stable-price-tv-line 2023-02-10 16:09:02 +11:00
saml33 49f203f7e7 fix market change values 2023-02-10 14:20:46 +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 21896ca2c3 add order lines to tv chart 2023-02-08 20:58:03 +11:00
tylersssss 7d08b80b1e
Merge branch 'main' into combine-history-tabs 2023-02-07 13:57:30 -05:00
tjs eabc10d2d3 remove mngo from stats page 2023-02-07 09:18:10 -05:00
saml33 581a7a9cb1 merge main 2023-02-06 10:10:23 +11:00
tjs 5e05e92101 keep the order of mango account list static 2023-02-03 16:27:31 -05:00
tjs 830e944884 fix default priority fee 2023-02-03 16:23:36 -05:00
saml33 240556291b combine account tabs for history 2023-02-03 19:58:15 +11:00
tjs 9c8ef98cfd remove console logs 2023-01-20 08:53:15 -05:00
tjs 3f431676ef fix trade history when swapping mango accounts 2023-01-19 22:44:53 -05:00
tjs 39bbe69ffb add priority fee to settings 2023-01-19 15:31:45 -05:00
tylersssss 1513fb0372
Merge pull request #69 from blockworks-foundation/paginate-swap-history
paginate swap history
2023-01-19 00:23:23 -05:00
tjs e7fa818e65 fix recent trades for perp markets 2023-01-19 00:18:06 -05:00
tjs a0c24f11c5 fix trade history 2023-01-18 23:35:57 -05:00
saml33 9f3d10d4ae merge main 2023-01-19 15:33:51 +11:00
tjs b8ca0a40c7 fix type error from merge 2023-01-18 19:19:46 -05:00
tylersssss e9a284619b
Merge branch 'main' into pan/change-transaction-log-url 2023-01-18 19:11:02 -05:00
tylersssss f0db2495fe
Merge branch 'main' into daily-pnl-history 2023-01-18 19:05:21 -05:00
tylersssss 3c83103b30
Merge pull request #62 from blockworks-foundation/paginate-trade-history
paginate trade history
2023-01-18 18:58:35 -05:00
Riordan Panayides 4d5230cf05 Replace references to mango-transaction-log 2023-01-18 13:21:01 +00:00
saml33 7fab02c1ba merge main 2023-01-18 21:56:06 +11:00
saml33 adeb08daeb finish swap history pagination 2023-01-18 21:36:45 +11:00
tjs 41e8172581 add reduce only to perp trade form 2023-01-16 23:00:42 -05:00
tjs 23fc84b202 fix reduce only bug; better acct loading; increase ob depth 2023-01-16 16:09:21 -05:00
saml33 2c12f5c5ea add daily pnl history 2023-01-16 16:13:34 +11:00
saml33 bdd03b0e0c merge main 2023-01-15 20:58:07 +11:00
tjs 1ce76d3924 sync accounts list with selected mango account 2023-01-14 16:51:06 -05:00
tjs c1526a82bd improve loading of mango accounts 2023-01-14 15:02:15 -05:00
saml33 9d94828aac paginate trade history 2023-01-13 11:16:10 +11:00
saml33 badb6931bc add swap history pagination 2023-01-12 14:21:23 +11:00
tylersssss c3f107820e
Merge branch 'main' into trade-success-animation 2023-01-11 13:11:03 -05:00
tjs 3019a1d555 add perp trade history 2023-01-10 12:36:29 -05:00
tjs 8884381618 use latest client 2023-01-07 17:40:36 -05:00
tjs 59b724e431 add openbook history 2023-01-06 19:26:06 -05:00
tjs 374350adff remove console logs 2023-01-06 14:41:03 -05:00
saml33 c5c0a6f493 only show swap history loader on initial load 2023-01-06 12:56:03 +11:00
tjs 8a04998374 show slippage msg in notifications 2023-01-05 19:44:37 -05:00
tjs 9f011f2249 add back prioritization fee 2023-01-04 16:23:55 -05:00
tjs e69dc91d0e remove prio fee 2023-01-03 20:58:30 -05:00
tjs de80d92b9a use constant for connection commitment 2023-01-02 17:21:41 -05:00
saml33 3c91bbf1ef add swap success animation to trade 2023-01-02 23:19:30 +11:00
saml33 0674ebaf8f merge main 2022-12-30 19:40:05 +11:00
tjs b945b62a7a more custom rpc fixes 2022-12-27 16:34:05 -05:00
tjs 0bc6593aa3 fix rpc custom connection 2022-12-27 16:13:15 -05:00
tylersssss 30153160ae
Merge branch 'main' into rpc-settings 2022-12-27 13:58:22 -05:00
tjs 99b8a4f812 move api call error messages to console warning 2022-12-24 11:54:04 -05:00
tjs 5d53090a1c fix stats page issues 2022-12-24 11:38:25 -05:00
saml33 f49d4dd56a fix edit profile pic 2022-12-24 11:12:32 +11:00
saml33 c0332aa489 prevent duplicates on activity feed 2022-12-20 20:32:17 +11:00
tjs 19a7ddc04c fix duplicate activity feed 2022-12-20 00:33:43 -05:00
saml33 3d317e4532 merge main 2022-12-20 11:00:15 +11:00
tjs da50977eac better swap history fetching 2022-12-19 14:42:28 -05:00
saml33 a0ab23a596 account actions button component 2022-12-19 12:47:01 +11:00
saml33 de69a19ade update connection/client 2022-12-16 13:19:11 +11:00
Adrian Brzeziński 279e521918 fix openOrders reload 2022-12-15 02:07:48 +01:00
tjs 49001d5ae8 handle updating price for tradeForm when on limit vs market order 2022-12-14 15:54:30 -05:00
tjs 84f813b84c use L2 in type name to distinguish orderbook types 2022-12-14 15:54:30 -05:00
tjs 1cb810a2f4 update unsettled balances when open orders are updated 2022-12-14 13:46:01 -05:00
tjs a74771d337 catch warnings on refreshing group 2022-12-14 10:47:47 -05:00
saml33 bed8540a56 merge main 2022-12-14 15:52:57 +11:00
tjs acc02b3a4c use env var for rpc endpoint 2022-12-12 14:09:10 -05:00
saml33 fda8dac2b2 handle empty token/stats api data 2022-12-11 21:10:11 +11:00
tjs b03b6fb9a8 update to latest group 2022-12-08 14:58:54 -05:00
saml33 6836974fda fetch perp stats 2022-12-08 12:31:50 +11:00
tjs 41223e846c allow setting the amount out in jupiter swap 2022-12-07 16:33:38 -05:00
saml33 5102129a49 add total deposit/borrow value charts 2022-12-06 14:23:22 +11:00
saml33 9d0bdf4c1a fix calling activity feed when mango account changes 2022-12-05 14:46:31 +11:00
tjs 23d406ec47 remove unnecessary group refetching; faster sub account switching 2022-12-03 16:56:22 -05:00
tjs 4ec95495d5 console error when performance data doesn't load 2022-12-02 18:27:08 -05:00
saml33 a9526cff9e merge main 2022-12-02 10:14:10 +11:00
tjs 0757af2213 perp funding rate 2022-11-30 10:51:38 -05:00
saml33 f9f86b529d add slippage to trade form 2022-11-25 21:10:23 +11:00
tjs 0808c900bc enable linking to market pages 2022-11-21 22:57:00 -05:00
saml33 365f06ae87 swap success animation 2022-11-22 14:23:54 +11:00
tjs 777d44860a use event queue for recent trades until api is ready 2022-11-20 23:16:11 -05:00
tjs 6b4c1d9f7e improve advanced trade sliders 2022-11-19 20:40:06 -05:00
saml33 982662c5f5 pnl and interest change 2022-11-19 22:28:06 +11:00
tjs 203c571bc5 use jupiter api and hooks 2022-11-18 18:19:04 -05:00
tjs 185ab4748b revert to coingecko for swap and prices.
we'll use birdeye only for candles
2022-11-18 11:29:37 -05:00
tylersssss f78ebae5c8
Merge branch 'main' into use-birdeye-api 2022-11-14 19:59:21 -05:00
saml33 28c0fed1c7 use birdeye for serum market price history 2022-11-05 18:13:24 +00:00
Adrian Brzeziński 8613fa5bb4 mango accounts reaload on wallet change 2022-11-03 16:59:21 +00:00
saml33 83e59b2bff use jupiter tokens for coingecko ids 2022-11-02 10:03:50 +04:00
tjs 9e885f10bb show users order in orderbook 2022-11-01 18:13:02 +00:00
tjs b62ff845a9 perp positions table 2022-11-01 13:10:08 +00:00
tjs 7f1461123d show perp open orders 2022-10-31 18:26:17 +00:00
tjs 7c34ed0bcb use last slot when updating mango account 2022-10-29 21:17:14 -04:00
saml33 bb62181a1b prevent activity feed double load 2022-10-28 23:23:28 +11:00
tjs a8b2670a84 fix errors with loading serum oo accounts 2022-10-27 14:39:43 -04:00
tjs 679e44cd63 remove console.log 2022-10-27 14:30:23 -04:00
tylersssss bb3c9b2b54
Merge branch 'main' into mango-accounts-modal 2022-10-24 17:34:13 -04:00
tjs 7c75d04d52 load perp market 2022-10-10 22:16:41 -04:00
tjs a6aca2a30d use dynamic imports for recharts 2022-10-10 22:16:41 -04:00
tjs f7d5bf8216 use gPA for accounts until ids service is updated 2022-10-10 15:02:57 -04:00
tjs d5870391e6 use tokenless rpc 2022-10-07 14:57:20 -04:00