Commit Graph

2678 Commits

Author SHA1 Message Date
Adrian Brzeziński a037963335 fix token listing 2023-07-21 14:53:40 +02:00
saml33 1c5060d007 add 0 values when no change 2023-07-21 22:20:12 +10:00
saml33 eb8b06afcc use markets api data 2023-07-21 22:03:44 +10:00
saml33 226d610bbf
Merge pull request #193 from blockworks-foundation/depth-chart
orderbook depth chart
2023-07-21 20:01:41 +10:00
tjs b797f2816f fix i18n; tab value more visible; remove in orders from balance 2023-07-21 02:42:37 -04:00
tjs 8bdbd445dc tweak wallet switching 2023-07-21 00:30:43 -04:00
saml33 5929ebbbbf
Merge pull request #208 from blockworks-foundation/improve-swap-history-chart
improve swap history indicators on swap chart
2023-07-21 12:20:15 +10:00
saml33 f2cfb98fb4 use hook for health contributions 2023-07-21 12:08:34 +10:00
tjs eab9a0a587 new network hook 2023-07-20 21:40:37 -04:00
saml33 588433f19a add callbacks 2023-07-21 10:45:03 +10:00
tjs 4f4ef23ec3 update interval based on connection 2023-07-20 20:20:59 -04:00
saml33 f0bf8f2aa1 fixes and show on mobile 2023-07-21 10:09:34 +10:00
tjs 07b0c80e6a only show detected wallets in dropdown 2023-07-20 19:48:43 -04:00
tjs dfa08ab441 prevent rerenders from extending time to hide notifs 2023-07-20 19:46:23 -04:00
tjs 4bb2c0016e migrate to wallet-adapter only; use autoconnect 2023-07-20 19:08:04 -04:00
tjs 220c5ff37a better imports 2023-07-20 19:08:04 -04:00
tlrsssss 0605872a56
Merge pull request #204 from blockworks-foundation/balance-collateral-value
balance collateral value
2023-07-20 10:49:33 -04:00
tlrsssss cb9124b64c
Merge pull request #209 from blockworks-foundation/filter-swap-token-list
filter swap token list input
2023-07-20 10:48:55 -04:00
tlrsssss 93249bbdca
Merge pull request #203 from blockworks-foundation/ts/trade-pg-jup
Use jupiter on trade page
2023-07-20 10:48:00 -04:00
saml33 6954082b0b remaining fixes 2023-07-20 20:40:27 +10:00
saml33 35b5ba1f71 partially fix layout 2023-07-20 15:30:35 +10:00
saml33 8169aeef95 merge main 2023-07-20 13:52:07 +10:00
saml33 b271793f66 filter swap token list input 2023-07-20 13:19:03 +10:00
saml33 c5a0efa781 improve swap history indicators on swap chart 2023-07-20 11:26:13 +10:00
tlrsssss fa83167f58
Merge pull request #207 from blockworks-foundation/perp-volume-stats
add total perp volume to mango stats
2023-07-19 13:09:44 -04:00
saml33 960e90393b merge main 2023-07-19 13:53:28 +10:00
saml33 02cf848587 add link to risks doc 2023-07-19 13:04:22 +10:00
saml33 1c09280baf use quote for perp stats details open interest 2023-07-19 12:28:41 +10:00
saml33 27f03bfd66 add total perp volume to mango stats 2023-07-19 10:48:49 +10:00
tjs 848286d947 add trade page swap summary details 2023-07-18 14:55:13 -04:00
tjs e5945b60e2 Merge branch 'main' into ts/trade-pg-jup 2023-07-18 13:23:07 -04:00
tjs 31e1e3f597 useMemo in market close modal 2023-07-18 13:01:14 -04:00
tlrsssss dc9369e418
Merge pull request #205 from blockworks-foundation/repay-swap
add repay amount to swap output token
2023-07-18 12:59:48 -04:00
saml33 e8cdbd0437 checkout orderbook liquidity before market close 2023-07-18 22:13:08 +10:00
saml33 8cf597c63f merge main 2023-07-18 21:03:45 +10:00
saml33 432a9fc08d fix usdc 2023-07-18 20:53:43 +10:00
saml33 c38dcb5428 merge main 2023-07-18 20:32:00 +10:00
saml33 d1cbec6196 add repay amount to swap output token 2023-07-18 15:22:13 +10:00
saml33 48f8f93f4b fix swap form balance click 2023-07-18 14:40:24 +10:00
saml33 5505647524 use scaled weight and fix rounding 2023-07-18 13:09:57 +10:00
saml33 d22c659541 add collateral value to balance tables 2023-07-18 12:58:20 +10:00
saml33 d8be43ee7a merge main 2023-07-18 11:24:13 +10:00
saml33 a1fbe18bf1 remove orderbook subscription hook and other fixes 2023-07-18 11:18:01 +10:00
microwavedcola1 eecfd8c5e2 make consistent with other sim health ration function usages
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-07-17 15:25:46 +02:00
saml33 dc9e7a8e6b merge main 2023-07-17 20:08:52 +10:00
saml33 1efc4cab83 hide perp markets from charts 2023-07-17 20:05:23 +10:00
tjs 83f9f121fc increase intervals for buildid and loading fills 2023-07-17 01:18:33 -04:00
tjs e478d6405a use jupiter on trade page 2023-07-16 23:41:13 -04:00
saml33 2f92c0f3a5 hide feedback survey 2023-07-17 11:55:14 +10:00
saml33 3f6b1908a4
Merge pull request #157 from blockworks-foundation/feedback-survey
add link to feedback survey
2023-07-17 09:31:57 +10:00
saml33 3a97619935 move survey link to more menu 2023-07-17 08:49:16 +10:00
saml33 42e89eeb79 Merge branch 'main' into feedback-survey 2023-07-17 08:33:49 +10:00
saml33 ebde7f4402 merge main 2023-07-17 08:32:43 +10:00
saml33 2c3f6208fe
Merge pull request #202 from blockworks-foundation/fix-24h-change
fix 24h spot change
2023-07-17 08:28:58 +10:00
tjs d2a6b1e616 new accts support more token accts by default 2023-07-16 17:58:49 -04:00
tjs c5080c6132 dont recreate TV chart on every mkt change 2023-07-14 10:58:53 -04:00
saml33 7074a28583 merge main 2023-07-14 23:52:17 +10:00
saml33 c91602bbed fix chart and spot markets 2023-07-14 23:47:28 +10:00
saml33 a3e21ec0d0 handle perp markets 2023-07-14 23:34:09 +10:00
saml33 2b8043baca fix 24h spot change 2023-07-14 15:47:05 +10:00
saml33 f3e22be038 address feedback 2023-07-14 11:28:16 +10:00
saml33 c2aa4676b0 more labels 2023-07-14 08:53:50 +10:00
saml33 6796e04f3a adjust layouts 2023-07-13 20:37:41 +10:00
saml33 987f4f6fa1 reference labels 2023-07-13 13:59:03 +10:00
tjs dac65622ee fix env var name 2023-07-12 21:22:47 -04:00
saml33 955b4f2488 reference lines 2023-07-13 10:32:22 +10:00
saml33 81d007f8a5 show swap chart unavailable when data.length < 2 2023-07-13 08:17:20 +10:00
tlrsssss 2fe9ab4830
Merge pull request #200 from blockworks-foundation/ts/glitch-tip
Add glitch tip
2023-07-12 15:35:47 -04:00
Riordan Panayides 4df85997a1 Disable orderbook feed 2023-07-12 19:01:29 +01:00
tjs eca8ae6638 capture trade page exceptions 2023-07-12 12:32:12 -04:00
tjs 3e6f6aa4d2 capture swap exceptions 2023-07-12 12:31:08 -04:00
saml33 3abd612b47 zoom, reference lines, layout 2023-07-13 00:37:18 +10:00
saml33 23c038facc conflicts 2023-07-12 10:49:36 +10:00
saml33 57b7045d5a update recharts 2023-07-12 10:26:37 +10:00
Adrian Brzeziński f8d19ea319 feature switch for nonwhitelisted users 2023-07-12 00:48:05 +02: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 a35d8e3610 account view component 2023-07-11 22:00:23 +10:00
saml33 21202ed274 table components 2023-07-11 21:00:06 +10:00
saml33 c962cbf6ab mobile, colors, more mouse events 2023-07-11 16:01:22 +10:00
tjs 94b8aec4d9 order exactout swap amounts correctly 2023-07-10 13:15:32 -04:00
Adrian Brzeziński ebbbff6e72
adjust listing preset price impact calculations (#199)
* remove reduce only for liqudity adjustments

* fix
2023-07-10 18:50:54 +02:00
saml33 854fdec3b5 remove responsive container 2023-07-10 23:24:38 +10:00
saml33 0c707b2c73 filter 0 value markets 2023-07-10 23:02:29 +10:00
saml33 9e76fcce3e fix weights 2023-07-10 22:49:38 +10:00
saml33 4a2baa25e5 fix table values 2023-07-10 22:39:50 +10:00
saml33 0ec955cf25 add health view 2023-07-10 22:00:53 +10:00
saml33 758dda303c add health contributions to token list 2023-07-10 12:53:21 +10:00
saml33 0dea0dd7b7 whitelisted ui 2023-07-10 10:03:19 +10:00
saml33 6f04ac55a7 align mobile balance table styles and fix eth interest 2023-07-09 22:24:00 +10:00
saml33 b053906c64 add notional value to mobile open orders 2023-07-09 20:41:20 +10:00
saml33 da346e2271 add notional value to perp unexpanded mobile view 2023-07-09 20:06:17 +10:00
saml33 f6b3d2c5e7
Merge pull request #182 from blockworks-foundation/trade-hot-keys
Trade Hot Keys
2023-07-09 11:37:42 +10:00
tjs cea9a8908e refactor data fetching out of account page into hooks 2023-07-08 19:50:40 -04:00
tlrsssss 4675b94999
Merge pull request #196 from blockworks-foundation/account-page-components
split account page into more components
2023-07-08 19:26:36 -04:00
saml33 9221c2c8d5 disable account action buttons disallowed for delegates 2023-07-08 21:42:03 +10:00
saml33 7d42a02def remove current borrow value tooltip 2023-07-07 23:39:48 +10:00
saml33 e00af21276 split account page into more components 2023-07-07 22:34:49 +10:00
saml33 9a7304acaa move account data fetching functions out of component 2023-07-07 20:25:26 +10:00
saml33 aa7b9fc45b fix pnl change today 2023-07-07 16:00:17 +10:00
saml33 fc03c5705b use usequery for account performance 2023-07-07 15:01:47 +10:00
saml33 07472248f9 health pie chart 2023-07-07 13:45:32 +10:00
Adrian Brzeziński d69378a960 white list api 2023-07-07 01:12:38 +02:00
Adrian Brzeziński c7dcbc7836 Merge branch 'main' into mango-mints 2023-07-07 00:57:51 +02:00
Adrian Brzeziński b07aa77f1d
fix (#195) 2023-07-06 16:24:07 +02:00
saml33 a34103ee2b fix manual refresh mobile padding 2023-07-06 23:16:19 +10:00
saml33 9b2b84a162 token logo backgrounds 2023-07-06 22:08:10 +10:00
saml33 9b3fd3a454 allow view account charts when no data 2023-07-06 21:00:47 +10:00
saml33 675cc6d274 load oo account for settle candidates 2023-07-06 19:49:16 +10:00
saml33 a3db18d6e1 Merge branch 'main' into depth-chart 2023-07-06 08:35:14 +10:00
saml33 3f59a23377
Merge pull request #192 from blockworks-foundation/account-volume-stats
account volume stats
2023-07-06 08:26:09 +10:00
saml33 866afe27f8
Merge pull request #194 from blockworks-foundation/custom-token-logos
add custom icons
2023-07-06 08:24:59 +10:00
tlrsssss 75fce54638
Merge pull request #191 from blockworks-foundation/positions-stats
add largest positions and closest to liquidation
2023-07-05 12:20:41 -04:00
tlrsssss 77ecc92987
Merge pull request #189 from blockworks-foundation/improve-market-loading
improve market loading on trade page
2023-07-05 12:13:10 -04:00
tlrsssss e444490b81
Merge pull request #190 from blockworks-foundation/preview-entry-price
show avg entry price in perp trade summary
2023-07-05 12:12:32 -04:00
saml33 7f29bcd93f bump client 2023-07-05 15:49:12 +10:00
saml33 ba6799c202 show margin switch on swap form 2023-07-05 15:38:14 +10:00
saml33 462d6210d6 add custom icons 2023-07-05 14:40:47 +10:00
saml33 034ab5071e merge main 2023-07-05 10:13:19 +10:00
saml33 775f2f6ef5 bump client and mobile 2023-07-05 10:05:03 +10:00
Adrian Brzeziński ef1bdd11fe delegated governance tokens warning text 2023-07-04 13:04:41 +02:00
saml33 bbcb50f8fb add volume chart 2023-07-04 13:24:13 +10:00
saml33 24d927e156 merge main 2023-07-04 11:31:07 +10:00
saml33 6f61ec17a1 update endpoints and format data 2023-07-04 11:25:47 +10:00
saml33 fe0e6eee3d fix close perp on mobile and some styling fixes 2023-07-03 23:17:17 +10:00
saml33 a78e222110 move data fetching to store 2023-07-03 22:29:10 +10:00
saml33 aa4958f35a subscribe to orderbook for depth chart 2023-07-03 15:55:25 +10:00
saml33 b577f6fffc fix rpc url from local storage 2023-07-03 12:31:00 +10:00
saml33 89a192041e console.log connection 2023-07-03 12:17:11 +10:00
saml33 3d86ec7ca8 fix rpc settings form styling 2023-07-03 11:57:20 +10:00
saml33 1de717f74c update perp logos 2023-07-03 11:52:51 +10:00
saml33 c7031f9936 fix perp market logos 2023-07-03 11:04:46 +10:00
saml33 6d2c1bccdb fix position side 2023-07-03 10:32:22 +10:00
saml33 c48b72a79d fix tabs 2023-07-03 10:01:10 +10:00
saml33 9891734675 Merge branch 'main' into positions-stats 2023-07-03 09:56:14 +10:00
saml33 b62b414f53 add largest positions/closest to liquidation tables 2023-07-03 09:55:06 +10:00
saml33 7afcfb897b change to limit order on book price click 2023-07-01 20:28:31 +10:00
saml33 239cb1990b update trade side display in tables 2023-07-01 20:07:15 +10:00
Adrian Brzeziński 157119eea8 fix marking notifications as seen 2023-06-30 22:59:09 +02:00
Adrian Brzeziński 80050824ea small seen msgs request impro 2023-06-30 14:38:38 +02:00
saml33 1d6c5da71b show avg entry price in perp trade summary 2023-06-30 21:14:35 +10:00
saml33 50e40aee90 hide avg entry price on trade summary. calc not correct 2023-06-30 14:37:01 +10:00
saml33 fe7293dd45 improve market loading 2023-06-30 14:00:28 +10:00
saml33 03fdc2ae10 render basic chart to component 2023-06-30 13:05:41 +10:00
saml33 cd98c98e23 add avg entry price to perp trade summary 2023-06-29 21:38:32 +10:00
saml33 dca1a78073 create perp stats overview component 2023-06-29 20:15:30 +10:00
saml33 bee6b7449b add lifetime trade volume to account page 2023-06-29 14:23:49 +10:00
saml33 3c9b894841 align trade side ui to perp positions 2023-06-29 11:04:53 +10:00
Adrian Brzeziński b001df20b8 fix latest blockhash in governance feature 2023-06-29 02:25:21 +02:00
saml33 38a34fb732 merge main 2023-06-29 10:10:31 +10:00
Adrian Brzeziński d60ac284c9 small list market fix 2023-06-29 02:08:19 +02:00
Adrian Brzeziński e5273f9620
Delegate swap (#186)
* allow swap button for delegate

* restrict routes to jupiter only when using delegate

* fix

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-06-28 19:19:02 +02:00
Adrian Brzeziński 7d87d69ed4
fix refresh of voting power to fresh governance account (#188) 2023-06-28 18:44:20 +02:00
saml33 f31f099cc1 fix roe calc 2023-06-28 21:35:42 +10:00
saml33 830a7cfed7 fix label 2023-06-28 21:17:43 +10:00
saml33 82b8457f69 merge main 2023-06-28 20:53:53 +10:00
saml33 2c4a1cf772 fix ROE and update client 2023-06-28 20:50:27 +10:00
saml33 d5b9537341 copy update 2023-06-28 13:48:25 +10:00
saml33 febb6a7ad3 calc liq price outside of the positions table 2023-06-28 12:10:47 +10:00
tjs 11af68b30c fix env name 2023-06-27 19:56:09 -04:00
tjs f603c139fb use correct env var 2023-06-27 19:49:36 -04:00
tjs 2cdafd7c08 add dedicated node rpc setting 2023-06-27 19:30:50 -04:00
Riordan Panayides c12dad59e4 Fix token page links for mixed case symbols 2023-06-27 16:00:48 +01:00
saml33 b76df3c87c new layout and add liq price 2023-06-27 12:43:15 +10:00
tjs ce13f685a3 Merge branch 'main' into trade-hot-keys 2023-06-26 12:58:10 -04:00
tjs 789a38acb3 update rpc urls 2023-06-26 12:29:11 -04:00
Adrian Brzeziński b223bd0b04
propose token stats change depending on liqudity (#178)
* formmated values of bank on dashboard

* suggested values parse

* fix

* suggested values ui

* create proposal wip

* create proposal

* listing tools

* fix

* propose state change
2023-06-26 14:48:37 +02:00
saml33 c296946f30 convert trigger key to lower case 2023-06-26 11:14:28 +10:00
saml33 743fbb3c40 limit number of keys per user to 20 2023-06-26 11:11:31 +10:00
saml33 4e56e3db07 disallow hot keys already in use 2023-06-26 11:02:52 +10:00
saml33 adac0ada69 update description 2023-06-24 23:06:19 +10:00
saml33 a8fd16eb29 errors and translations 2023-06-24 22:44:15 +10:00
saml33 5144b4db12 fix eth filter in activity feed 2023-06-23 20:57:53 +10:00
saml33 6337b696e7 form validation 2023-06-23 13:37:34 +10:00
saml33 1450bfa6ef remove health tooltip scenario when no mango account 2023-06-23 10:42:51 +10:00
saml33 737a01a815
Merge pull request #181 from blockworks-foundation/show-unrealized-pnl
use unrealized as primary value for perp pnl
2023-06-23 10:16:36 +10:00
saml33 f91ae8a032
Merge pull request #180 from blockworks-foundation/withdraw-buffer
add buffer when withdrawing with open positions
2023-06-23 10:15:40 +10:00
Riordan Panayides c11025a227 Fix spot orderbook update filtering 2023-06-22 19:29:40 +01:00
saml33 a52c29f1d2 use scaled value for init asset/liab weight 2023-06-22 22:02:09 +10:00
saml33 daaa1fcfeb use unrealized as primary value for perp pnl 2023-06-22 21:17:35 +10:00
saml33 c40ead15d5 fix interest values 2023-06-22 19:48:09 +10:00
saml33 a33fdcea62 add buffer when withdrawing with open positions 2023-06-22 12:58:47 +10:00
saml33 8ed973a063 place order on hot key 2023-06-22 10:48:15 +10:00
microwavedcola1 dd7716d99a upgrade to latest mango-v4 client
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-21 15:30:45 +02:00
Lou-Kamades 64ea624972
Merge pull request #177 from blockworks-foundation/lou/update-funding-convention
Update funding sign to match smart contract
2023-06-20 22:44:44 -05:00
saml33 53a5b4e619 do not close menu on favorite click 2023-06-21 09:40:51 +10:00
saml33 9976698c67 default market dropdown category to selected market type 2023-06-21 09:30:31 +10:00
saml33 0a122c0f79 hot keys modal form 2023-06-21 09:16:58 +10:00
Lou-Kamades 969f78dc16
update funding sign to match smart contract 2023-06-20 09:41:01 -05:00
saml33 f7d77a353a handle not connected 2023-06-19 22:41:51 +10:00
saml33 0d85a6ff12 filter markets dropdown 2023-06-19 15:44:41 +10:00
saml33 51791de4bb wire up api endpoints 2023-06-19 13:47:25 +10:00
saml33 bf76285c66 better handle limit price 2023-06-17 22:22:05 +10:00
Riordan Panayides 3e5b91fb96 Fix perp sorting 2023-06-17 10:55:34 +01:00
saml33 f65305de7f merge main 2023-06-16 22:30:06 +10:00
saml33 eedc32fadb split swap and limit into two components 2023-06-16 22:23:50 +10:00
saml33 a89a042e57 add input/output notional value to swap form 2023-06-16 14:08:45 +10:00
saml33 dd3d2f52aa add input/output notional values 2023-06-16 13:58:12 +10:00
saml33 3db404d790 add max-width to market name input 2023-06-16 12:33:30 +10:00
saml33 bba4c7208b add market name conventions to list form 2023-06-16 12:28:19 +10:00
saml33 0941f431e5 fix refresh on account page 2023-06-16 09:27:49 +10:00
saml33 4f12c9e9cf fix leading period on trade form 2023-06-15 22:32:40 +10:00
saml33 2e3a0e8a2e fix order value 2023-06-15 22:18:44 +10:00
saml33 78f2544ffe fix spot price quote token display 2023-06-15 21:24:54 +10:00
saml33 2a9d74de15
Merge pull request #169 from blockworks-foundation/manual-refresh
add manual refresh button
2023-06-15 20:56:53 +10:00
saml33 42051e0ea5 add stop order ui to trade form 2023-06-15 20:45:42 +10:00
saml33 b548e7f61e ui for swap limit orders 2023-06-15 14:42:34 +10:00
saml33 2e4852e965 use soon badge on perp stats page 2023-06-15 10:49:16 +10:00
riordanp b5f6bba803
Disable trading for markets where oracle was never active (#171) 2023-06-15 00:02:40 +01:00
riordanp a229d55ed6
Add soon label to perp markets where oracle was never active (#170) 2023-06-14 18:19:39 +01:00
saml33 de567bf3e0 update image 2023-06-14 14:17:23 +10:00
saml33 e2af69ec3f only expand sidebar if breakpoint >= xl 2023-06-14 12:19:09 +10:00
saml33 5f90821a22 add manual refresh button 2023-06-14 11:12:28 +10:00
saml33 aa3b2f8adf add leaderboard view 2023-06-13 22:52:58 +10:00
saml33 0fa3271c55 add missing image properties 2023-06-13 15:53:00 +10:00
saml33 59fd4334d1 add promo banner 2023-06-13 15:33:15 +10:00
saml33 0b650e8a5e rewards tier icons 2023-06-13 14:41:59 +10:00
saml33 4faa2afc1a add how it works modal 2023-06-13 13:01:01 +10:00
saml33 96f6dfeb93 add win/loss modals 2023-06-11 22:39:48 +10:00
saml33 29a5ca8563 start claim ui 2023-06-09 22:35:36 +10:00
saml33 fc9b64bf66 add layout and some placeholders 2023-06-09 15:43:54 +10:00
saml33 1492c1b138 allow stats tabs to scroll on mobile 2023-06-09 09:59:11 +10:00
saml33 79bdec5bd1 add custom theme font support 2023-06-08 20:41:23 +10:00
Adrian Brzeziński 0b0f5970ab
add untursted tier + small refactor (#166)
* untursted tier

* small refactor

* fix
2023-06-08 11:14:46 +02:00
saml33 8bfd978661 Merge branch 'main' into bonk-theme 2023-06-08 15:38:25 +10:00
saml33 59261f95e1 fix tooltip fonts 2023-06-08 15:37:13 +10:00
saml33 b40a468451 test bonk font 2023-06-08 15:33:43 +10:00
saml33 696a89fe70 fix side nav expanding menu 2023-06-08 14:59:15 +10:00
saml33 6945707c11 merge main 2023-06-08 13:49:49 +10:00
saml33 6540396c74 fix modals 2023-06-08 12:30:56 +10:00
saml33 f13acf6bd0 add tv chart meme and support changing fonts 2023-06-07 22:45:09 +10:00
saml33 9d14bc5b8b add chart easter egg functionality 2023-06-07 16:04:38 +10:00
saml33 9ffd337fe0 use themeData for vars 2023-06-07 15:00:59 +10:00
Adrian Brzeziński 655662bf05
token listing presets (#163)
* wip create oracle

* wip

* wip

* wi[

* switchboard oracle wip

* switchboard oracle

* switchboard authority

* deduplicate

* fix cfg

* listing presets

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* small fixes

* fix insurance found prop

* more param fixes

* more sol funding to switchboard oracle

* oracle lock fix

* adjust oracle settings

* adjust params
2023-06-07 00:54:44 +02:00
saml33 a00caa6c8c fix topbar padding 2023-06-06 22:52:33 +10:00
saml33 4e0239e366 fix sidenav animation duration 2023-06-06 22:47:42 +10:00
saml33 610de84dc7 start nft theme gating and topbar buttons 2023-06-06 22:40:26 +10:00
saml33 38b04561e1 use pnl from mangoaccount.getpnl 2023-06-06 15:29:04 +10:00
saml33 527fb69801 fix spot market price chart gradient 2023-06-06 14:00:22 +10:00
saml33 6173d28e46 play animation on sidenav image click 2023-06-06 12:49:51 +10:00
saml33 258131aa5c sort perp positions by notional value 2023-06-06 09:59:45 +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
tlrsssss d8b66e390e
Merge pull request #165 from blockworks-foundation/perp-volume-chart
add volume chart to perp stats
2023-06-05 11:21:40 -04:00
saml33 70f599b6cb add side nav image placeholder 2023-06-05 22:25:10 +10:00
saml33 48ffc844e9 only show funding chart button when funding exists for account 2023-06-05 21:25:42 +10:00
saml33 0f0a7c937b calc volume from cumulative 2023-06-05 21:06:37 +10:00
saml33 7ec3fa02f0 Merge branch 'main' into perp-volume-chart 2023-06-05 11:14:19 +10:00
saml33 96f4af9288 add volume to perp stats overview table 2023-06-05 11:12:54 +10:00
saml33 53159a372b add perp volume to trade page 2023-06-05 11:06:03 +10:00
saml33 6dfca6c781 improve select option hover style 2023-06-05 10:51:49 +10:00
saml33 1a6e1d5b6d fix perp position table tize click 2023-06-05 10:19:19 +10:00
saml33 095728986c more bonk 2023-06-02 16:05:08 +10:00
saml33 ab62e89893 show if margin is enabled/disabled on swap form 2023-06-02 10:55:24 +10:00
saml33 6d04ac7378 comment out perp volume 2023-06-01 13:07:34 +10:00
saml33 1be8cd7cd7 add perp volume chart 2023-06-01 13:03:56 +10:00
saml33 a8e590514b add volume to perp stats table 2023-06-01 11:50:00 +10:00
saml33 aaa4c04adc add perp volume to trade header 2023-06-01 10:17:31 +10:00
saml33 29070b1fa4 add spot market volume to stats 2023-05-31 22:15:50 +10:00
saml33 b09b412494 Merge branch 'main' into bonk-theme 2023-05-31 15:15:22 +10:00
saml33 5d20993914 fix medal icons on light themes 2023-05-31 15:13:41 +10:00
saml33 2edd631e02 fix logo 2023-05-31 14:49:42 +10:00
saml33 97b331df27 tv styles 2023-05-31 14:38:15 +10:00
saml33 eefc1f374d add bonk theme 2023-05-31 13:03:53 +10:00
saml33 6bf3714e80
Merge pull request #159 from blockworks-foundation/24h-spot-volume
add spot market volume to trade header
2023-05-31 11:00:36 +10:00
saml33 fe5379f60a add spot market volume to trade header 2023-05-31 10:05:02 +10:00
saml33 557e79566d fix account action buttons on mobile 2023-05-30 15:49:26 +10:00
saml33 e062212347 connection lost mobile 2023-05-30 15:30:34 +10:00
saml33 0fbe2c7871 deposit/withdraw button on mobile 2023-05-30 15:21:31 +10:00
saml33 657f88241f align back button styles 2023-05-30 13:48:43 +10:00
saml33 571c372054 remove oracle link for usdc 2023-05-30 13:35:19 +10:00
saml33 ba08b0ffe1 clean up listing success 2023-05-30 13:20:37 +10:00
saml33 05d853e9af add connect wallet empty state to list page 2023-05-30 10:24:02 +10:00
tlrsssss ae5b3f1c87
Merge pull request #156 from blockworks-foundation/feature/list-market
WIP: List market
2023-05-29 20:01:28 -04:00
Adrian Brzeziński 570ab5c9c2 fix 2023-05-29 20:51:01 +02:00
Adrian Brzeziński 2f8f2ebd0e small fix 2023-05-29 20:47:58 +02:00
Adrian Brzeziński 419b6e105b usecallbacks on fcns 2023-05-29 14:37:43 +02:00
Adrian Brzeziński f0cc098202 fixes 2023-05-29 14:29:43 +02:00
saml33 9c6795e2a9 copy update 2023-05-29 20:24:41 +10:00
saml33 a249080b7b update page url 2023-05-29 19:41:39 +10:00
saml33 37182855c2 round corners more 2023-05-29 16:03:36 +10:00
saml33 1fb642c996 update nav and url 2023-05-29 16:02:16 +10:00
saml33 de8a2dae8b add ui 2023-05-29 15:43:01 +10:00
Adrian Brzeziński c46ac29a89 fix 2023-05-28 22:44:26 +02:00
Adrian Brzeziński 0f32b5b89e more fixes 2023-05-28 14:45:19 +02:00
Adrian Brzeziński 7aad91bd95 create market list proposal 2023-05-28 12:50:27 +02:00
Adrian Brzeziński 1dfb23cb8e fix 2023-05-25 22:34:29 +02:00
Adrian Brzeziński 94637a529c fix 2023-05-25 22:17:58 +02:00
Adrian Brzeziński 941bf7acb4 cleanup 2023-05-25 22:12:50 +02:00
Adrian Brzeziński ebc0595310 fix trading params comment 2023-05-25 22:06:22 +02:00
Adrian Brzeziński 36d017f12a fix 2023-05-25 18:09:12 +02:00
Adrian Brzeziński dc129e243b merge list tok pages 2023-05-25 16:00:23 +02:00
Adrian Brzeziński acdbbe29b0 merge list token page 2023-05-25 15:59:45 +02:00
saml33 29e208177e add average duration to funding chart title 2023-05-25 19:38:17 +10:00
saml33 c088190e61 sum funding for average funding chart 2023-05-25 15:28:48 +10:00
saml33 08828e240d link to perp market stats from market details modal 2023-05-25 13:59:41 +10:00
saml33 fd16034483 add link to feedback survey 2023-05-25 12:45:03 +10:00
saml33 cfbbed612d merge main 2023-05-25 10:01:12 +10:00
Adrian Brzeziński 7303b63a7b market props json 2023-05-25 01:22:13 +02:00
Adrian Brzeziński bb45b5777b min sol 2023-05-24 16:32:49 +02:00
Adrian Brzeziński 3137b588c1 fix 2023-05-24 13:53:12 +02:00
Adrian Brzeziński 5011ea2365 calc tick and min order 2023-05-24 13:50:23 +02:00
saml33 0cf5200b2b merge main 2023-05-24 21:11:58 +10:00
saml33 25d2a68c8d add missing tooltips 2023-05-24 21:09:14 +10:00
saml33 4e90899407 fix text alignment 2023-05-24 14:41:04 +10:00
saml33 166d7eafe1 remove stable price from tv chart 2023-05-24 13:32:02 +10:00
saml33 899df83839 fix notifications count styling 2023-05-24 12:28:31 +10:00
saml33 aff58c7e70 improve order line drawing 2023-05-24 12:05:13 +10:00
saml33 846e574a71 use long/short for perp order lines 2023-05-24 11:22:09 +10:00
saml33 88614f8bd7 use perp side badge for perp open orders 2023-05-24 10:34:26 +10:00
saml33 5b4b30df0a remove time from daily average tooltip 2023-05-24 10:07:29 +10:00
tlrsssss 09e10671b4
Merge pull request #155 from blockworks-foundation/edit-tv-order-modal
add custom modal when dragging order line
2023-05-23 17:13:45 -04:00
tlrsssss f7d69b90b2
Merge pull request #153 from blockworks-foundation/align-tooltip-styles
align tooltip styles
2023-05-23 17:11:13 -04:00
Adrian Brzeziński 08cade38eb traind params and openbook market create modal 2023-05-23 22:00:02 +02:00
Adrian Brzeziński 0e424c98eb create market 2023-05-23 16:10:22 +02:00
saml33 b487c51db5 add custom modal when dragging order line 2023-05-23 21:48:26 +10:00
saml33 62054f0758 fix sell/short button 2023-05-23 13:25:03 +10:00
saml33 e22719c196 add divider to tv limit price menu item 2023-05-23 09:46:47 +10:00
Adrian Brzeziński b25b41aa2b fix tools 2023-05-23 01:39:06 +02:00
Adrian Brzeziński 313f9d4112 fix 2023-05-23 01:17:53 +02:00
Adrian Brzeziński ae509d5796 tools wip 2023-05-23 01:05:43 +02:00
Adrian Brzeziński ea392fc9f0 next view wip 2023-05-22 21:47:47 +02:00
saml33 dfd3e1b0e9 change button case to match menu 2023-05-22 23:03:21 +10:00
saml33 b6a3f47eaf use address when no account name in topbar 2023-05-22 22:56:11 +10:00
saml33 b64af38f7d set limit price from right click tv chart 2023-05-22 22:51:27 +10:00
Adrian Brzeziński 58ee6f49e0 list market page wip 2023-05-22 14:41:27 +02:00
saml33 cdd116dcb1 update onboarding image 2023-05-22 15:24:04 +10:00
saml33 88d956c5ba fix console warnings 2023-05-22 13:15:58 +10:00
saml33 842b5288d1 style governance delegate 2023-05-19 10:18:48 +10:00
saml33 7288a11840 add tooltip to unowned account with account address and wallet 2023-05-18 15:04:58 +10:00
saml33 4912950fd9 default activity filters type to empty 2023-05-18 12:03:08 +10: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 1e10d799d0 remove account modal double borders 2023-05-15 14:45:46 +10:00
saml33 8deaeccf18 remove swap form double border 2023-05-15 14:41:32 +10:00
saml33 720bf8c5a3 improve topbar back arrow button 2023-05-15 14:30:00 +10:00
saml33 b708d838d7 change to bar chart and add averaging intervals 2023-05-15 13:08:48 +10:00
tjs cfa95dfd9c update oracle component with last price after switching mkts 2023-05-14 12:43:42 -04:00
saml33 004964bde4 spot margin off by default and show borrow amount in trade summary 2023-05-14 23:07:06 +10:00
saml33 50e567b278 show borrow fee in swap review 2023-05-14 21:33:01 +10:00
saml33 c8edebc1fc format token symbols in select buttons 2023-05-13 22:17:04 +10:00
saml33 d02a96b131 fix perp slider rounding 2023-05-13 21:41:42 +10:00
saml33 ebeccd8df5 fix spot slider rounding 2023-05-13 21:25:50 +10:00
saml33 46b2e53902 fix trade summary order value 2023-05-13 20:44:22 +10:00
saml33 4ede5b9a6c align tooltip styles 2023-05-12 14:08:06 +10:00
saml33 e4b85b4d5e link to chart from funding tooltip 2023-05-12 13:46:59 +10:00
saml33 2ab60782a6 only show health tooltip scenarios when health < 100 2023-05-12 12:59:37 +10:00
saml33 dd0f89861e undo allowing delegate accounts to swap 2023-05-12 12:49:01 +10:00
saml33 e314901f27 fix max swap amounts for reduce only 2023-05-12 12:25:16 +10:00
saml33 ef383bec36 fix reduce only display in swap list 2023-05-12 11:48:30 +10:00
tjs 73322833a8 add xborder prop option to tables 2023-05-11 17:32:48 -04:00
riordanp 5b0eef685c
Use ref for Orderbook feed to prevent multiple connections, add settings tooltip (#150)
* Use ref for orderbook feed, enable if unset, prettify logs

* Add tooltip to orderbook feed setting
2023-05-10 10:53:55 +01:00
saml33 6228b80b4c fix activity filter panel width 2023-05-09 20:15:56 +10:00
saml33 0bdbb42f28 improve notification settings ux 2023-05-08 21:59:46 +10:00
riordanp 25ea31beec
Add setting to disable orderbook feed (#148)
Co-authored-by: tlrsssss <tjshipe@gmail.com>
2023-05-07 12:53:22 +01:00
tlrsssss 97fbb42588
Merge pull request #126 from blockworks-foundation/save-tv-charts
save tv charts
2023-05-05 14:20:36 -04:00
tlrsssss a1d476eeba
Merge pull request #145 from blockworks-foundation/mango-stats-loading
format mango stats outside of component
2023-05-04 13:49:34 -04:00
saml33 5b88633501 improve market select link styles 2023-05-04 11:41:18 +10:00
tjs 2494ba2022 fix datafeed crash 2023-05-03 14:26:26 -04:00
saml33 c260d7782f save tv chart drawings 2023-05-03 13:15:37 -04:00
Riordan Panayides cbb88dcbe5 Temporarily disable orderbook feed 2023-05-03 15:29:01 +01:00
saml33 daa829b589 fix padding 2023-05-03 21:52:01 +10:00
saml33 63340c6001 fix total interest value 2023-05-03 20:56:12 +10:00
saml33 5cc2cdbdf3 allow toggling chart type from account chart expanded view 2023-05-03 16:12:08 +10:00
saml33 3f0c195a1a fix account interest chart 2023-05-03 14:39:25 +10:00
saml33 2d279eb057 add insurance details to token params 2023-05-03 14:19:50 +10:00
saml33 aa6a5e75c9 add missing tooltips 2023-05-03 13:57:54 +10:00
saml33 6c0474dbc9 add perp market params to stats page 2023-05-03 13:05:23 +10:00
saml33 4ad8a29da6 transition table row hover 2023-05-03 11:03:42 +10:00
saml33 40f84f6e8d link to token/market stats page from details tables 2023-05-03 11:00:32 +10:00
saml33 78469e2dc8 fix font color 2023-05-03 10:26:32 +10:00
tjs e9ea12fdda update tooltips with links to docs 2023-05-02 13:57:53 -04:00
tjs fb1199dc83 show more details on stats table 2023-05-02 13:47:26 -04:00
tjs b866c5454b show insurance fund status 2023-05-02 13:41:55 -04:00
saml33 2b13cf8c6c Merge branch 'main' into mango-stats-loading 2023-05-02 12:06:19 +10:00
saml33 1afb2fe36c update recharts 2023-05-02 12:01:14 +10:00
saml33 a7425f7eec yarn setup 2023-05-02 11:01:55 +10:00
saml33 79d7c9b03e format mango stats outside of component 2023-05-02 10:52:32 +10:00
Riordan Panayides eb1d17df9f Reject orderbook updates not for current market 2023-05-01 17:13:37 +01:00
saml33 beeab56f6d update client to fix borrow rates 2023-05-01 23:27:21 +10:00
saml33 eacff90468 fix deposit/borrow scaling start for usdc 2023-05-01 22:42:28 +10:00
saml33 2a8dc2c283 fix net borrows value 2023-05-01 21:54:25 +10:00
saml33 e6e86bcf96 add/update copy 2023-05-01 20:55:22 +10:00
saml33 7e322520fb add tooltip to token fees collected chart 2023-05-01 16:01:46 +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 9d37cf2007 fix token/perp page bottom padding 2023-05-01 13:13:53 +10:00
saml33 f44a323aff remove border 2023-05-01 13:10:24 +10:00
saml33 9ceb264c0a add token params to token page 2023-05-01 12:16:29 +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
tjs 1f30784930 fix bug with decimal in trade form 2023-04-28 14:39:22 -04:00
saml33 506433e539 fix market header 24h change 2023-04-28 22:22:40 +10:00
saml33 3e013044ea remove console logs 2023-04-28 22:13:11 +10:00
Adrian Brzeziński b6dfb42532
fix (#143) 2023-04-27 20:27:56 +02:00
Riordan Panayides 24b2b406b7 Fix oracle warning for BONK 2023-04-27 19:01:52 +01:00
tlrsssss 8fb5c17d92
Merge pull request #137 from blockworks-foundation/pan/orderbook-feed-v2
Use websocket feed for Orderbook
2023-04-27 13:55:30 -04:00
tlrsssss 31c2169324
Merge pull request #134 from blockworks-foundation/token-fees-chart
add token fees collected chart
2023-04-27 13:48:46 -04:00
riordanp d7e74fb874
Merge branch 'main' into pan/orderbook-feed-v2 2023-04-27 18:02:42 +01:00
Riordan Panayides 177229785e Merge branch 'pan/oracle-info' of github.com:blockworks-foundation/mango-v4-ui into pan/oracle-info 2023-04-27 17:48:37 +01:00
Riordan Panayides 5104439f80 i18n 2023-04-27 17:43:36 +01:00
riordanp f54d8287a6
Merge branch 'main' into pan/oracle-info 2023-04-27 17:25:26 +01:00
Riordan Panayides c5dd4a0e82 Add warning state if oracle is stale, convert last updated to human readable format 2023-04-27 17:23:18 +01:00
saml33 4d261b61a7 add token settings table 2023-04-27 22:11:20 +10:00
saml33 e1d134408d
Merge pull request #141 from blockworks-foundation/spot-details-modal
add modal for spot market details
2023-04-27 20:31:42 +10:00
saml33 a9f333e92f comment out insurance details 2023-04-27 20:25:12 +10:00
saml33 1accd9746d fix bonk simple spot market charts 2023-04-27 15:10:04 +10:00
saml33 7e9d5fa34d fix spot market stats prices on mobile 2023-04-27 14:20:42 +10:00
saml33 727cf53d7d add modal for spot market details 2023-04-27 13:39:49 +10:00
saml33 4eea086ef6 fix file name extension 2023-04-27 12:36:52 +10:00
saml33 f62048c87b add perp market settings table 2023-04-27 12:33:03 +10:00
tlrsssss bdc341aeab
Merge pull request #138 from blockworks-foundation/orderbook-formatting
handle large and small numbers in orderbook
2023-04-26 13:14:24 -04:00
tlrsssss 78fcb8ca8c
Merge pull request #131 from blockworks-foundation/swap-review-animation
fix swap review transition
2023-04-26 13:13:27 -04:00
saml33 9609a2bd27 fix trade form icon loading position 2023-04-26 12:54:55 +10:00
saml33 d1620ced49 handle large and small numbers in orderbook 2023-04-26 10:58:33 +10:00
saml33 724680ea11 fix quote size from max size button 2023-04-26 10:23:14 +10:00
Riordan Panayides f122994874 Add info tooltip to oracle price 2023-04-25 21:36:18 +01:00
riordanp 5da195233e
Merge branch 'main' into pan/orderbook-feed-v2 2023-04-25 16:57:02 +01:00
Riordan Panayides 0c6960dd9d Remove errant logs 2023-04-25 16:40:45 +01:00
Riordan Panayides d3b08eb08d Update mango-feeds 2023-04-25 16:25:35 +01:00
saml33 2c2544dbb0 fix bonk/sol ui issues 2023-04-25 22:41:23 +10:00
saml33 3e5d96162d improve connect wallet button 2023-04-25 12:09:18 +10:00
tlrsssss 35e5a12da0
Merge pull request #122 from blockworks-foundation/plot-swap-history
show swap history on swap chart
2023-04-24 16:15:03 -04:00
tjs 15c7a5164b switch to query params for stats tabs 2023-04-24 15:25:45 -04:00
Riordan Panayides 43c3368c25 Use production url 2023-04-24 19:23:12 +01:00
Riordan Panayides f751882026 Compute funding rate from L2 data 2023-04-24 19:03:11 +01:00
saml33 b0f1619434 reduce horizontal padding in market header 2023-04-24 21:45:30 +10:00
saml33 5b8d3eb90b merge main 2023-04-24 21:35:55 +10:00
saml33 ab97ac9738 fix orderbook grouping 2023-04-24 20:17:01 +10:00
saml33 20529ac753 add token fees collected chart 2023-04-24 16:21:05 +10:00
saml33 572c6842a0 make sure total deposit/borrow values are sorted by date 2023-04-24 13:01:26 +10:00
saml33 1f335a058f use total_fees for perp fees and fix total deposits/borrows loading 2023-04-24 12:54:18 +10:00
saml33 8b53a01232 fix swap history filtering 2023-04-24 11:51:46 +10:00
saml33 302dadd35b merge main and show swaps by default 2023-04-24 11:29:36 +10:00
Riordan Panayides 56ca927c40 Use client library for orderbook 2023-04-22 18:35:57 +01: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 b960c25db4 fix swap review transition 2023-04-21 16:10:09 +10:00
saml33 1e784daa81 remove extra border 2023-04-21 15:24:20 +10:00
saml33 a89d528709 align linkbutton styles 2023-04-21 12:32:20 +10:00
saml33 a8b1acc502 export account history to csv 2023-04-20 20:55:52 +10:00
saml33 1750b865ca remove inline default-transition class 2023-04-20 11:12:45 +10:00
saml33 4eb3def93a give active tabs focus-visible state 2023-04-20 11:01:31 +10:00
saml33 228ea6d59a change focus states to use focus-visible 2023-04-20 10:43:33 +10:00
tlrsssss 66a5a2e5ea
Merge pull request #128 from blockworks-foundation/feature/resolve-proposal-description
resolve descriptions for proposals
2023-04-19 12:05:44 -04:00
microwavedcola1 da49da23c1 Revert "swaps disabled message"
This reverts commit 17ea3b2be4.
2023-04-19 08:49:16 +02:00
microwavedcola1 50c6fc0a38 Revert "fix typo"
This reverts commit a9666ffffe.
2023-04-19 08:49:09 +02:00
saml33 dc72a8cc0f show counterparty pk in activity details 2023-04-19 13:59:21 +10:00
saml33 70b1ddf8a4 fix mobile orderbook 2023-04-19 12:01:58 +10:00
saml33 d14973e246 add zero line to funding charts 2023-04-19 10:44:19 +10:00
tlrsssss ad6218ba87
Merge pull request #125 from blockworks-foundation/add-unsettled-spotmax
add unsettled balance to spot trade max
2023-04-18 18:10:51 -04:00
tlrsssss 94329f4d89
Merge pull request #124 from blockworks-foundation/foramt-swap-token-symbols
format swap token symbols
2023-04-18 18:07:13 -04: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
Adrian Brzeziński fbf91eab28 resolve descriptions for proposals 2023-04-18 22:18:03 +02:00
saml33 57bcfb42b8 fix trade history type 2023-04-18 09:45:27 +10:00
saml33 03a94d4571 merge main 2023-04-18 09:17:23 +10:00
tjs 7f70915650 add funding tooltip to stats page 2023-04-17 17:34:33 -04:00
tjs e9d3e80d24 remove commented out code 2023-04-17 17:19:05 -04:00
tjs 9ff76e4198 add language selector to settings 2023-04-17 14:03:35 -04:00
tjs ed0b6c2b17 update funding rate display 2023-04-17 12:26:05 -04:00
saml33 948c37ad59 merge main 2023-04-17 21:31:51 +10:00
saml33 90ae89154d use url param for token page 2023-04-17 14:25:21 +10:00
saml33 4dba708f6c fix activity feed explorer link 2023-04-17 13:18:51 +10:00
saml33 51aed56b88 merge main and update tooltip 2023-04-17 12:13:50 +10:00
saml33 214ece99d9 focus on modal close last in tab order 2023-04-17 11:51:53 +10:00
saml33 821cc56328 format swap token symbols 2023-04-17 11:04:13 +10:00
saml33 0ada9e231c use swap market name instead of input bank name 2023-04-17 10:38:09 +10:00
saml33 aff12ef294 only insert swap points when swap history is toggled 2023-04-17 10:17:45 +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
tlrsssss e7080c393a
Merge pull request #120 from blockworks-foundation/perp-stats-details-page
show perp stats details on a page
2023-04-14 12:51:07 -04:00
tjs 2a49dc1c5c fix bug in sorting trade history from event queue 2023-04-14 11:56:36 -04:00
Adrian Brzeziński 6660b751bb fix 2023-04-14 16:02:19 +02:00
saml33 840084433c load nfts from metaplex 2023-04-14 21:48:09 +10:00
saml33 442af25a09 remove shadow from medal icon 2023-04-14 15:53:43 +10:00
saml33 707205eabe show swap history on swap chart 2023-04-14 15:22:39 +10:00
saml33 a9666ffffe fix typo 2023-04-14 09:48:12 +10:00
saml33 17ea3b2be4 swaps disabled message 2023-04-14 09:40:20 +10:00
microwavedcola1 b09596322e Revert "Revert "settle fees along with pnl""
This reverts commit bc113df1c3.
2023-04-13 16:55:32 +02:00
saml33 144d25fc9d save show zero balance state 2023-04-13 22:35:23 +10:00
saml33 89e9834a5d use url param 2023-04-13 21:56:18 +10:00
saml33 e141233d79 show trade executions on tv charts 2023-04-13 21:25:58 +10:00
saml33 7f88073f03 fix token stats price chart x-axis 2023-04-13 10:31:22 +10:00
saml33 e0b855f6c4 show perp stats details on a page 2023-04-12 13:38:21 +10:00
saml33 207868fc82 add apr to perp funding rate display 2023-04-12 10:34:50 +10:00
saml33 0711c6088a full width notifications on mobile 2023-04-11 20:50:51 +10:00
saml33 797a7b31c6 increase mobile more menu height 2023-04-11 20:33: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 d3b9b3ab08
Merge pull request #109 from blockworks-foundation/margin-toggle-size
retain size when toggling margin
2023-04-10 20:52:11 -04:00
saml33 4aa883d093 add unsettled balance to spot trade max 2023-04-10 21:43:50 +10:00
tjs 598c29fe13 use tradeform for checkboxes 2023-04-08 13:24:21 -04:00
saml33 b52499afcb curly braces isunownedaccount 2023-04-08 20:56:39 +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 cbbc1e6a1f implement pr feedback 2023-04-06 22:54:37 +10:00
saml33 014ab321d1 fix trade form submit on button group 2023-04-06 13:49:47 +10:00
saml33 ea80f1698a implement pr feedback 2023-04-06 13:24:29 +10:00
saml33 a8a8fd9fda remove formatting from max swap amount value 2023-04-06 11:15:22 +10:00
saml33 a67dccd3bd implement pr feedback 2023-04-06 10:22:20 +10:00
saml33 4e7cfaf501 round pnl to 2dp 2023-04-06 10:07:36 +10:00
saml33 a0e4efa5bb merge main 2023-04-06 09:21:31 +10:00
saml33 b0a4162d95 merge main 2023-04-06 09:19:58 +10:00
Adrian Brzeziński 3976425d04
change listtoken url (#116) 2023-04-06 00:48:06 +02: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 55adbe7602
Merge pull request #115 from blockworks-foundation/expand-perp-activity
expand perp trade activity feed details
2023-04-05 23:47:39 +10:00
saml33 d849e34c96 make table rows expand for more details 2023-04-05 23:22:11 +10:00
saml33 ea121b34b5
Merge pull request #112 from blockworks-foundation/save-trade-checkboxes
save trade checkboxes to local storage
2023-04-05 20:51:03 +10:00
saml33 cb10276cf5 hide max size trade button when not connected 2023-04-05 15:25:25 +10:00
saml33 6aec6fd144 expand perp trade activity feed details 2023-04-05 14:21:01 +10:00
saml33 5b1589797b add fee to perp activity debit 2023-04-04 22:26:59 +10:00
saml33 86dc1580d5 convert perp activity fee to fee value 2023-04-04 21:55:24 +10:00
saml33 89f8f9fcb6 debit perp for short activity feed perp trade 2023-04-04 15:38:27 +10:00
saml33 4b86b28f19 fix perp health impact when no base size 2023-04-04 15:01:41 +10:00
saml33 b5a30fbe89 merge main 2023-04-04 13:49:28 +10:00
saml33 d34fa4a503 add change to market select dropdown 2023-04-04 12:48:31 +10:00
tlrsssss 5c03151a2e
Merge branch 'main' into perp-market-details-modal 2023-04-03 21:43:58 -04: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 dbc3cb4f57 save trade checkboxes to local storage 2023-04-03 14:51:36 +10:00
saml33 e551280fa0 remove price from swap history 2023-04-03 13:02:55 +10:00
saml33 f8d30519df assets to borrow table mobile display 2023-04-03 10:43:44 +10:00
saml33 2eb88a9ab8 your borrows table mobile display 2023-04-03 10:28:11 +10:00
saml33 4ff68b31a5 retain size when toggling margin 2023-04-03 09:52:00 +10:00
saml33 e0463a9863 fix trade max size button 2023-04-01 21:05:53 +11:00
tjs 6067dd1665 fix trade form issue with large num of decimals 2023-03-31 19:39:07 -04:00
tjs 4055ddd072 fix btc spot chart 2023-03-31 19:12:00 -04:00
tjs 7c59a1c4fa only call perp history if market is perp market 2023-03-31 16:49:33 -04:00
tjs a2b482cbe8 handle large decimals like the bonk chart 2023-03-31 16:29:06 -04:00
saml33 13d3a3d482 link to all markets from tables when not on trade page 2023-03-31 21:03:20 +11:00
tjs 2771c9be35 allow viewing total funding chart 2023-03-30 15:42:05 -04:00
tjs 582ecfa2b3 use clients settle candidate function 2023-03-30 15:42:05 -04:00
microwavedcola1 bc113df1c3 Revert "settle fees along with pnl"
This reverts commit 92792112f7.
2023-03-30 13:08:05 +02:00
microwavedcola1 92792112f7 settle fees along with pnl
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-30 10:36:02 +02:00
tjs 4d166ddd84 add back instantaneous funding chart 2023-03-29 14:22:22 -04:00
saml33 d2e50e51ec fix roi and merge main 2023-03-29 21:38:26 +11:00
saml33 0057af54c1 merge main 2023-03-29 20:58:15 +11:00
saml33 96056c7ebd remove failed to load profile notification 2023-03-29 20:40:28 +11:00
saml33 a25dac1602 add perp market details modal 2023-03-29 13:10:05 +11:00
saml33 9d38639ec7 add open interest to perp market trade header 2023-03-29 10:57:59 +11:00
tjs 2c0a5bdb41 add useEffect dependencies 2023-03-28 15:23:30 -04:00
tlrsssss e8fc7c7863
Merge pull request #106 from blockworks-foundation/account-page-market-close
subscribe to orderbook on account page for market close
2023-03-28 15:22:33 -04:00
tlrsssss 08fcae739c
Merge branch 'main' into accept-terms 2023-03-28 15:01:35 -04:00
tjs 7b46ecf3a8 increase cache time for leaderboard query 2023-03-28 14:01:35 -04:00
tlrsssss 5135dba0e3
Merge pull request #97 from blockworks-foundation/pnl-leaderboard
PnL Leaderboard
2023-03-28 14:00:20 -04:00
tjs 2b4f4c7890 fix rendering on top tokens 2023-03-28 13:54:15 -04:00
saml33 87da599ff2 fix eth portal token page data 2023-03-28 22:13:29 +11:00
saml33 a2f05a8fa7 subscribe to orderbook on account page for market close 2023-03-28 21:12:11 +11:00
saml33 689dbde0b7 add focus to more components 2023-03-28 15:30:04 +11:00
saml33 b312dca2e2 maintain activity feed scroll position 2023-03-28 13:46:22 +11:00
saml33 471f03ef7d add perp liquidations to activity filter 2023-03-28 11:59:56 +11:00
saml33 a10f105f72
Merge pull request #105 from blockworks-foundation/activity-liquidations
activity feed perp liquidations
2023-03-28 11:04:58 +11:00
saml33 6e1a8061e7 fix value and fee 2023-03-28 10:56:23 +11:00
saml33 1a8267adc1 fix perp market stats funding 2023-03-27 22:25:23 +11:00
saml33 e2395aa149 merge main 2023-03-27 21:14:27 +11:00
saml33 91e9a3df2e align to new api response 2023-03-27 21:08:17 +11:00
saml33 d88f364b42 fix assets/liabilities for $0 accounts 2023-03-27 15:07:23 +11:00
saml33 5f4dee638b update funding data on account change 2023-03-27 14:58:55 +11:00
saml33 ce1502ce96 fix wallet select menu z-index on trade page 2023-03-27 14:52:29 +11:00
saml33 dd0ba043e6 update focus styles 2023-03-27 14:11:10 +11:00
saml33 97c0abc2ce merge main 2023-03-27 11:42:50 +11:00
saml33 0a63571d3f merge main 2023-03-27 11:34:25 +11:00
saml33 00941c087e add liquidation fee 2023-03-27 11:25:34 +11:00
saml33 1a920526d5 increase priority fee buttongroup width 2023-03-27 09:58:38 +11:00
tlrsssss a9033f8c6b
Merge pull request #102 from blockworks-foundation/customize-trade-layout
customize trade layout settings
2023-03-26 13:45:58 -04:00
tjs cc723bfd4e better type definition for api response 2023-03-26 12:59:05 -04:00
Adrian Brzeziński bfc8d25f1b temp fix for api returning object for recent trades 2023-03-26 17:19:32 +02:00
saml33 d4344b7241 update data fetching 2023-03-26 23:21:25 +11:00
saml33 f92edf39fe merge main 2023-03-26 20:32:39 +11:00
tjs 505e8150a3 use react query for trade history 2023-03-25 17:16:42 -04:00
tjs 362c1c8aba fix oracle price updating 2023-03-25 14:47:37 -04:00
tjs 3cf868d2d3 default funding display to 30 days 2023-03-25 14:43:59 -04:00
tlrsssss dda6c07903
Merge pull request #100 from blockworks-foundation/account-funding
show funding on account page
2023-03-25 14:29:09 -04:00
tlrsssss 6f80cf9d1c
Merge pull request #99 from blockworks-foundation/top-depositors-borrowers
add top token accounts to token stats
2023-03-25 14:21:31 -04:00
tjs fc929f8fb0 update the oracle for selected market via websocket 2023-03-25 14:19:57 -04:00
saml33 7cd26e9da5 add focus states and improve keyboard navigation 2023-03-24 23:22:29 +11:00
saml33 8caa115388 submit trade form on enter button press 2023-03-24 14:06:16 +11:00
saml33 6a1064ca5b add perp liqs to mobile 2023-03-24 11:51:03 +11:00
saml33 142999433d use side badge in activity mobile 2023-03-24 11:11:34 +11:00
saml33 c75291fc1a fix values 2023-03-23 23:08:59 +11:00
saml33 caf98f8354 add customize trade page layout to settings 2023-03-23 19:29:13 +11:00
saml33 de1da7c4b2 add additional perp items 2023-03-23 12:54:51 +11:00
saml33 e75cb06eb2 add perp liquidations 2023-03-23 12:26:02 +11:00
saml33 1cf3096c2c remove wallet prefix from leaderboard card 2023-03-22 16:09:03 +11:00
saml33 803c7d2693 show daily data on 30 day chart 2023-03-22 15:55:37 +11:00
saml33 f805dc215a add terms of use modal and agree to terms in onboarding 2023-03-22 11:52:17 +11:00
saml33 7750942ca5 fix -ve available to borrow and token stats value decimals 2023-03-22 10:00:51 +11:00
saml33 0001419c9c use bar chart 2023-03-21 23:01:48 +11:00
saml33 e5e096ebb4 add account funding total and hourly chart 2023-03-21 21:27:37 +11:00
saml33 bbf8d91fbb update fees collected tooltip 2023-03-20 20:53:29 +11:00
saml33 f8fc155225 fix wbtc token page 2023-03-20 15:40:08 +11:00
saml33 253a5fbb87 add show more button 2023-03-20 14:19:53 +11:00
saml33 dea3eb01e3 add top token accounts to token stats 2023-03-20 12:39:54 +11:00
tlrsssss bc5ff69cc9
Merge pull request #98 from blockworks-foundation/tradeform-borrow-fee
add loan origination fee to trade form
2023-03-19 15:52:28 -04:00
saml33 c56fc05216 swap history mobile display 2023-03-19 21:28:13 +11:00
saml33 ed157d7d09 use disclosure for mobile expanding rows 2023-03-18 23:15:01 +11:00
saml33 91f530c197 token stats mobile and add loan fees to token stats 2023-03-18 22:21:48 +11:00
saml33 8684f380ae add loan origination fee to trade form 2023-03-17 23:48:38 +11:00
saml33 68f32a72b1 fix swap loan orgination fee amount 2023-03-17 22:46:57 +11:00
saml33 216e1c736b mobile trade history display and use perpsidebadge 2023-03-17 22:19:15 +11:00
saml33 b73339802f remove link to token stats from balances 2023-03-16 23:48:15 +13:00
saml33 674adc4e32 orders and unsettled mobile display 2023-03-16 23:44:00 +13:00
microwavedcola1 698248ac3c Revert "set allow borrow to true, so that sane withdraws go through, there is a strange bug at token_withdraw.rs lime 54, which is investigated atm"
This reverts commit c898a57ff0.
2023-03-16 11:31:24 +01:00