Commit Graph

2602 Commits

Author SHA1 Message Date
saml33 6ddfed5c60 improve explore loading/empty states 2023-10-06 12:28:39 +11:00
saml33 68cfd1594d fixed raised button flicker 2023-10-06 10:49:46 +11:00
Adrian Brzeziński 8e304aa560 upgrade mango settings lib 2023-10-05 22:04:37 +02:00
saml33 37743a5d92
Merge pull request #283 from blockworks-foundation/explore-page
add explore page
2023-10-05 22:23:04 +11:00
saml33 147614e89f update rewards api 2023-10-05 22:10:29 +11:00
Lou-Kamades 3ac41c97e7
sort funding chart to ensure proper date order 2023-10-05 00:03:45 -05:00
saml33 8eea1382cd fix market select quote filter 2023-10-05 12:06:56 +11:00
saml33 22ad9ba268 tidy up 2023-10-05 10:04:51 +11:00
saml33 81149d76f3 fix back button 2023-10-04 23:04:59 +11:00
saml33 262e396871 add usdc, dai and fix mobile 2023-10-04 22:52:39 +11:00
saml33 372876f0de add explore page 2023-10-04 16:05:16 +11:00
Adrian Brzeziński ae841eb7bc fix fast listing 2023-10-03 11:29:44 +02:00
Adrian Brzeziński 3f8f9f0877 suggested netborrows 1/3 of total deposits 2023-10-02 17:33:36 +02:00
saml33 7b501842e5 add reduce only label to markets 2023-10-02 14:42:34 +11:00
Lou-Kamades 997ac88f99
simplify account slot names 2023-10-01 18:53:01 -05:00
tjs 7f0e745b9a fix header for spot volume 2023-09-29 17:43:09 -04:00
tjs 5065f080d7 reenable header 2023-09-29 11:30:36 -04:00
tjs c4bf384e5c temp disable header 2023-09-29 11:26:51 -04:00
saml33 605637a9de refetch wallet balance on wallet swap 2023-09-29 11:53:12 +10:00
saml33 8829719e67 show trigger orders table when on trigger order tab 2023-09-29 11:44:41 +10:00
Adrian Brzeziński 2de1946cd4
add ultra premium listing (#280)
* add ultra premium tier

* fix
2023-09-29 00:48:59 +02:00
Adrian Brzeziński b89c3b3fca add fast listing governance for untrusted tokens 2023-09-28 20:39:35 +02:00
saml33 f9b2cede70 add gradient to banner 2023-09-28 23:49:25 +10:00
saml33 ab14ad623a add animated tiles to season banner 2023-09-28 23:34:56 +10:00
saml33 056769bf50 season banner content/layout 2023-09-28 22:10:05 +10:00
saml33 2e3c82a807 add card graphic to claim 2023-09-28 21:30:25 +10:00
Adrian Brzeziński 3452c7dd50 claim ends date 2023-09-28 13:02:32 +02:00
saml33 7d4785b9e4 add random winner titles 2023-09-28 15:20:26 +10:00
saml33 6fa3922dfd simplify claims page 2023-09-28 14:54:13 +10:00
saml33 9a5bde05d0 only show topbar points if whitelisted 2023-09-28 13:59:14 +10:00
saml33 3d4a6f4fc8 better mechanism for mango mints banner 2023-09-28 13:56:53 +10:00
saml33 15bea1fbfc fix season end countdown and console errors 2023-09-28 11:31:41 +10:00
Adrian Brzeziński 30d98faa1d
render (#279)
* Add rewards redemption

* Only create claim account if required

* Dedupe dependencies

* Satisfy lavamoat

* Change distribution

* Upgrade redemption package

* Fix dependency issues

* Dedupe

* Add claimed check

* fix

* fix

* Add claimed check

* chunk instructions

* Add season fetch

* adjust view to api

* check if cliam started

* cleanup part 1

* cleanup

* fix season show

* fix

* fix

* mango render

* fix

* fix

* render

* fix

* fix

* fix

* remove readme

* remove unused code

* fix

* error handling

* New prefix, lookup previous season distribution

* fix is all claimed

* fix

* fix

* fix tokens imgs

* fix

* link leaderboard to account

* style seasons and leaderboard

* seasons mobile

* start claims styling

* remove font import

* fix

* fix rewards tier card

* nft imgs

* fix loader

---------

Co-authored-by: Riordan Panayides <riordan@panayid.es>
Co-authored-by: saml33 <slam.uke@gmail.com>
2023-09-28 00:08:39 +02:00
saml33 381b9a24f9 show notification when trying to load private account 2023-09-27 22:12:35 +10:00
saml33 b255022914 set swap form from url query 2023-09-26 15:31:06 +10:00
tlrsssss 7075ef9f12
Add rewards redemption (#270)
* Add rewards redemption

* Only create claim account if required

* Dedupe dependencies

* Satisfy lavamoat

* Change distribution

* Upgrade redemption package

* Fix dependency issues

* Dedupe

* Add claimed check

* fix

* fix

* Add claimed check

* chunk instructions

* Add season fetch

* adjust view to api

* check if cliam started

* cleanup part 1

* cleanup

* fix season show

* fix

* fix

---------

Co-authored-by: Riordan Panayides <riordan@panayid.es>
Co-authored-by: Adrian Brzeziński <a.brzezinski94@gmail.com>
2023-09-25 13:33:34 +02:00
saml33 094b3f5d9e fix market select search 2023-09-25 10:17:19 +10:00
saml33 e38ce34d55 fix prop name 2023-09-25 10:06:54 +10:00
saml33 1bacd9cad8
Merge pull request #276 from blockworks-foundation/saml33/wallet-swap
wallet swap
2023-09-24 20:19:17 +10:00
tjs ba8504392a update prop name 2023-09-21 17:22:04 -04:00
saml33 93564676bc remove onclick from health pie chart 2023-09-20 15:56:20 +10:00
saml33 02fdf118de enable spot limit trade form button 2023-09-19 22:01:28 +10:00
microwavedcola1 64d073db07 Revert "Revert "remove warning""
This reverts commit db5f8e8d16.
2023-09-19 13:55:32 +02:00
saml33 d36ea0a708 improve layout 2023-09-19 11:22:10 +10:00
saml33 812894f718 Merge branch 'main' into saml33/wallet-swap 2023-09-19 10:05:43 +10:00
saml33 962aa6c23f add disabled swap button state back for no form values/route 2023-09-19 08:44:21 +10:00
saml33 5fcb003efe remove free collateral warning from trigger orders 2023-09-19 08:17:58 +10:00
saml33 5677250e39 hide swap free collateral warning 2023-09-19 08:14:01 +10:00
Lou-Kamades 53c2bf9c74
disable swap input validation 2023-09-18 15:42:37 -05:00
Adrian Brzeziński 8175ee6431 fix ata creation during wallet swap 2023-09-18 21:25:42 +02:00
microwavedcola1 fbb77015ed another attempt at allowing swaps
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-18 20:13:17 +02:00
microwavedcola1 8a7ce380e4 disable free collateral warning for now, might be not 100% correct
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-18 19:30:13 +02:00
saml33 140a0f9352 wallet swap ui 2023-09-18 22:55:37 +10:00
microwavedcola1 5133f00dcf disable mango router for now due to tx hitting tx size limit
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-18 12:39:45 +02:00
Adrian Brzeziński 746b7b0f0f fix suggested values 2023-09-18 12:25:24 +02:00
tjs d70e7b31e8 refactor 2023-09-16 13:54:11 -04:00
saml33 750984b713 only fetch profile details for displayed top token accounts 2023-09-16 21:48:03 +10:00
microwavedcola1 db5f8e8d16 Revert "remove warning"
This reverts commit 416db3df58.
2023-09-16 12:42:06 +02:00
microwavedcola1 416db3df58 remove warning
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-16 11:30:05 +02:00
saml33 b0d8d6bb9d reset skin when switching to wallet without nft 2023-09-15 23:08:02 +10:00
saml33 9875dab62b add profile data back to top depositors/borrowers 2023-09-15 21:39:29 +10:00
Adrian Brzeziński 0dc12bf4df
fix theme settings transalations on all pages (#273) 2023-09-14 16:47:21 +02:00
saml33 b7b1adc605 fix create account modal height 2023-09-13 15:19:10 +10:00
saml33 42ed62a2ec fix market trade max button 2023-09-13 14:44:48 +10:00
tjs 569d1a4c91 add trading view link 2023-09-12 23:40:01 -04:00
saml33 257218b98c close settings modal with esc button 2023-09-13 12:47:15 +10:00
saml33 6422f9e33b merge main 2023-09-13 12:19:43 +10:00
saml33 8f4f152372
Merge pull request #269 from blockworks-foundation/settings-modal
organize settings and use modal instead of page
2023-09-13 12:16:27 +10:00
saml33 de2d89a471
Merge pull request #271 from blockworks-foundation/saml33/close-token-positions
add close token positions to settings
2023-09-13 12:14:51 +10:00
saml33 92139308e4 add tcs orders 2023-09-13 11:10:21 +10:00
saml33 77c3bdd359 add close instructions 2023-09-12 23:32:09 +10:00
saml33 e6db2d2267 add leverage to market select dropdown 2023-09-12 14:17:59 +10:00
saml33 2ba547124b add close token positions to settings 2023-09-12 12:41:34 +10:00
saml33 6beeb1626f force withdraw total balance and bump client 2023-09-12 10:05:52 +10:00
Adrian Brzeziński 662d110ae0 fix naming of suggested values borrow weight and deposit weight 2023-09-11 21:13:54 +02:00
saml33 38abc0cee2 fix hourly account volume 2023-09-11 23:41:11 +10:00
saml33 17d0027931 show notification when loading closed or invalid accounts 2023-09-11 22:41:19 +10:00
saml33 b1a3655889 improve openbook warning 2023-09-11 22:10:42 +10:00
microwavedcola1 da90bf8178 add openbook warning
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-11 11:48:25 +02:00
saml33 03ff456109 fix orderbook size toggle 2023-09-11 16:15:50 +10:00
Lou-Kamades d40d6c9f02
Merge pull request #265 from blockworks-foundation/lou/column-sort
add sorting to market selection
2023-09-11 00:36:48 -05:00
saml33 df12bc0195 add more details to activity feed spot trades 2023-09-11 14:32:58 +10:00
Lou-Kamades 88b9ca8a71
update MarketChange to use useListedMarketsWithMarketData 2023-09-10 23:28:35 -05:00
saml33 83d8f9d9db add seconds to activity feed date 2023-09-11 12:47:11 +10:00
saml33 1db55886c5 remove console.log 2023-09-11 11:43:25 +10:00
saml33 d9e6e1947c
Merge pull request #257 from blockworks-foundation/close-unused-slots
update layout: account slots and close unused slots
2023-09-11 11:41:04 +10:00
saml33 74c1387577 fix close serum oo function 2023-09-11 10:15:01 +10:00
saml33 a75795d936 merge main 2023-09-11 09:57:14 +10:00
saml33 71e1230374 add accounts list button back to mobile 2023-09-11 09:45:12 +10:00
saml33 34aa442244 fix withdraw max button value 2023-09-11 09:30:04 +10:00
saml33 634a017b1e add token positions warning to trigger swap 2023-09-10 23:26:52 +10:00
saml33 3957e93fb4 format trigger order table prices 2023-09-10 22:00:06 +10:00
saml33 63aadfbe7e add important info to trigger orders 2023-09-09 23:00:45 +10:00
saml33 117f6a1d2b fix borrows in period warning 2023-09-09 21:32:28 +10:00
Lou-Kamades 5be792f47f
add sorting to market selection 2023-09-08 17:01:08 -05:00
Adrian Brzeziński e78e579611 upgrade mango settings 2023-09-08 17:55:24 +02:00
saml33 2dfdcb13ba remove whitelist 2023-09-08 22:28:36 +10:00
saml33 bfd89d41e2 fix order price units 2023-09-08 22:06:58 +10:00
microwavedcola1 436ded7122 flipped price needed one more flip
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-08 13:52:34 +02:00
saml33 5c90007892 merge main 2023-09-08 21:42:03 +10:00
saml33 fbeeafd253 order table fixes, allow margin on short positions and fix borrow order desc 2023-09-08 21:38:17 +10:00
saml33 a3b46c6ca0 fix account token positions count 2023-09-08 19:39:56 +10:00
saml33 006da27edf fix token positions warning for market swap 2023-09-08 14:36:57 +10:00
saml33 7866282b47 fix balance click for trigger orders 2023-09-08 13:35:30 +10:00
saml33 a30b5a42e4 show borrow amount in order desc when reducing short on margin 2023-09-08 12:39:39 +10:00
saml33 d0845efbae merge main 2023-09-08 09:53:01 +10:00
Adrian Brzeziński c9fef7766a fix test sidebar nft 2023-09-07 22:18:25 +02:00
saml33 a33ad21b87
Merge pull request #261 from blockworks-foundation/private-counterparty-links
disable private counterparty links in trade history
2023-09-08 00:30:48 +10:00
saml33 ba859597ef fix trigger price when changing tokens 2023-09-07 23:59:24 +10:00
saml33 e4b3e95d8f order description and form errors 2023-09-07 23:26:55 +10:00
saml33 3cb444c332 reduce rendering from mangoAccount and remove repay borrow code 2023-09-07 22:37:33 +10:00
Adrian Brzeziński 0a12116dd5 fix suggested values modal 2023-09-07 14:34:43 +02:00
Adrian Brzeziński 5cd2463ab2 bump token listing settings 2023-09-07 14:33:01 +02:00
saml33 a9380dfd3b fix default trigger price 2023-09-07 21:55:56 +10:00
microwavedcola1 8193542879 Bump TS client
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-07 13:48:54 +02:00
Christian Kamm 9bf63a9862 fix order type string 2023-09-07 11:50:51 +02:00
Christian Kamm 5a5976dc63 fix default trigger price for bonk
by generally restricting significant decimals on prices, instead using
the in or output banks decimals.
2023-09-07 11:43:29 +02:00
Christian Kamm b1a159d58f fix default trigger order price 2023-09-07 10:22:31 +02:00
Christian Kamm 3d71e76d26 fix trigger order slider for shorts 2023-09-07 09:59:04 +02:00
saml33 a9332f3e7a update place order to handle borrow positions 2023-09-07 14:29:31 +10:00
saml33 7f225b3502 expand on ckamm wip 2023-09-07 13:51:57 +10:00
saml33 1f6dbaa061 add to mobile table 2023-09-07 11:57:59 +10:00
saml33 2c054d6a2b disable private counterparty links in trade history 2023-09-07 10:35:31 +10:00
Christian Kamm 1bf1514cc0 wip 2023-09-06 15:18:05 +02:00
Adrian Brzeziński ef3a46dde7 adjust force report in switchboard oracle 2023-09-06 13:05:42 +02:00
Adrian Brzeziński c2927b92e8
Self send nfts to mark transactions in logs (#260)
* ledger setup + lib bump

* fix

* remove ledger checkbox

* fix

* self send nfts tx mark
2023-09-06 12:30:54 +02:00
tjs 44b827da32 faster trade chart loading 2023-09-06 00:00:38 -04:00
Adrian Brzeziński 2fb3b1d615
add notifications sign to mango create account process (#254)
* ledger setup + lib bump

* fix

* remove ledger checkbox

* fix

* update layout/copy

* fix typo

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-09-05 20:50:12 +02:00
tjs 690c14156b Use latest client with 'api' source id for group loading 2023-09-05 11:05:29 -04:00
saml33 1614ae68d9 organize settings and use modal instead of page 2023-09-05 14:43:26 +10:00
saml33 394c232050 add tooltip to privacy mode 2023-09-05 08:42:00 +10:00
saml33 746eec0b60 remove private account from display settings 2023-09-05 08:34:37 +10:00
saml33 fef574bed6 update hidden mango account settings copy 2023-09-05 08:24:42 +10:00
saml33 434f3c2425
Merge pull request #247 from blockworks-foundation/lou/account-visibility
Add a toggle for hiding mangoAccount in leaderboards + search
2023-09-05 08:06:31 +10:00
saml33 60c6fdd213 toggle orderbook size between base and quote 2023-09-04 15:41:19 +10:00
saml33 eb5e132fc6 fix mobile orderbook depth 2023-09-04 14:31:16 +10:00
saml33 b658a69d1b update layout 2023-09-04 13:43:34 +10:00
saml33 bedf6637c8 use tokenlogo component on token page 2023-09-04 10:17:44 +10:00
Lou-Kamades 93e31ce5eb
don't load hidden mango accounts 2023-09-03 16:07:40 +02:00
Lou-Kamades c1f2447ef5
create modal for close unused account slots 2023-09-01 15:56:29 +02:00
saml33 863a80d204 view and create hotkeys from trade page 2023-09-01 23:46:28 +10:00
saml33 82946353d3 refactor isMobile 2023-09-01 13:22:50 +10:00
tjs d5d6c99743 move width and height into mangostore 2023-08-31 22:24:36 -04:00
saml33 8819f1af3f
Merge pull request #251 from blockworks-foundation/hotkeys-hook
use react-hotkeys-hook
2023-09-01 08:24:30 +10:00
saml33 acfcfcce79 use react-hotkeys-hook 2023-09-01 08:19:37 +10:00
Lou-Kamades c5cf3f0ecb
allow users to manually close unused spot oo accounts and perp positions 2023-08-31 17:54:08 +02:00
Lou-Kamades 9d7e2e2385
exclude hidden mango accounts from search + leaderboard 2023-08-31 17:21:33 +02:00
Lou-Kamades fcf9a36c21
hide pnl for private non-owned mangoAccounts 2023-08-31 17:21:33 +02:00
Lou-Kamades 5c0a6e2955
add a toggle for hiding mangoAccount in leaderboards + search 2023-08-31 17:21:23 +02:00
saml33 2e73510e26 fix trade tabs width on mobile 2023-08-31 23:26:33 +10:00