Commit Graph

2732 Commits

Author SHA1 Message Date
Lou-Kamades 6c1f827ee8
Merge pull request #299 from blockworks-foundation/lou/jup-max-accounts
maxAccounts is dynamic based on health for Jupiter swaps
2023-10-24 15:35:43 -05:00
Adrian Brzeziński 985db87d9c fix stencile match 2023-10-24 22:07:06 +02:00
Lou-Kamades 34095cab12 maxAccounts is dynamic based on health for Jupiter swaps 2023-10-24 13:53:04 -05:00
Adrian Brzeziński 47a245dd5a Merge branch 'main' of github.com:blockworks-foundation/mango-v4-ui 2023-10-24 14:30:50 +02:00
Adrian Brzeziński ff19a54a52 error notify on claim 2023-10-24 14:30:13 +02:00
saml33 4c1e3d530f show chart change as percentage 2023-10-24 23:01:29 +11:00
saml33 e5e8f10ddd fix chart change alignment 2023-10-24 22:00:07 +11:00
saml33 8e9da6ff3d fix token price chart 2023-10-24 21:51:01 +11:00
saml33 4ef09ba769 close rewards animation on last prize 2023-10-24 13:56:12 +11:00
saml33 f399b67fec close swap settings on save 2023-10-24 13:44:34 +11:00
saml33 c8b63d4bc5 add swap slippage exceeded notification 2023-10-24 12:43:12 +11:00
Adrian Brzeziński be236418b5 fix 2023-10-24 02:11:26 +02:00
Adrian Brzeziński a3cd3595b6 fix img loading in rewards 2023-10-24 01:33:51 +02:00
saml33 c0ad267e84 fix claim banner season number 2023-10-24 09:51:09 +11:00
riordanp 4e4fc5f455
Add analytics (#285)
* Add analytics

* Add opt-out

* Add rewards page custom events
2023-10-23 17:06:43 +01:00
Lou-Kamades 4cd0a70d0b add maxAccounts=50 to Jupiter swaps to limit txn size 2023-10-23 09:46:21 -05:00
saml33 0c6517477f swap fixes 2023-10-23 15:07:14 +11:00
saml33 5a9024a74d add rank to top bar points 2023-10-23 13:02:40 +11:00
saml33 d1dabf97b2 add banner for rewards claim period 2023-10-23 11:29:14 +11:00
saml33 5c20b284b4 fix interest earned 2023-10-22 22:07:43 +11:00
Adrian Brzeziński d1a91c6e02 fix settings link 2023-10-20 17:11:19 +02:00
saml33 e11f48b22a add warning to repay when not enough wallet tokens 2023-10-20 21:59:51 +11:00
saml33 b19b8aa1cc add percent buttons to slider 2023-10-20 12:44:28 +11:00
saml33 48d2f75a49 fix key 2023-10-20 10:56:02 +11:00
saml33 3dc7a7edd4 fix claim flicker when no claim 2023-10-19 22:46:19 +11:00
saml33 26baa956dd show prize cards after reveal on claim page 2023-10-19 13:46:43 +11:00
saml33 2dfbe34076 undo view account url 2023-10-19 12:04:10 +11:00
saml33 bc6dcf09ee account page fixes 2023-10-19 11:12:15 +11:00
Adrian Brzeziński 660b63cd1c Merge branch 'main' of github.com:blockworks-foundation/mango-v4-ui 2023-10-19 00:45:49 +02:00
Adrian Brzeziński 6527220575 fix theme fallback for no nft wallets 2023-10-19 00:44:36 +02:00
saml33 549b96dada allow unowned account url viewing 2023-10-19 08:37:18 +11:00
Adrian Brzeziński c2465caec5 fix collection loading 2023-10-18 23:04:46 +02:00
Adrian Brzeziński 27f8cc07e3 small fix 2023-10-18 18:05:59 +02:00
Adrian Brzeziński a706b6356c chunk fix 2023-10-18 17:38:05 +02:00
saml33 70d7a03af9 fix account value chart data 2023-10-18 16:08:40 +11:00
saml33 e3756ac2a7 fix balances table when not connected 2023-10-18 15:05:22 +11:00
saml33 7f0ec51d97 allow activity feed value filter when either from and/or to value 2023-10-18 14:55:34 +11:00
saml33 975de3f212 close spot and perp account slots one at a time 2023-10-18 13:47:07 +11:00
saml33 1737b56108 fetch rewards points on rewards page load 2023-10-18 12:50:12 +11:00
saml33 e9d38e0957 round rewards points to nearest int 2023-10-18 12:28:28 +11:00
saml33 001b3bd9f0 rewards leaderboard fixes 2023-10-18 11:25:05 +11:00
saml33 bfe4a89067
Merge pull request #290 from blockworks-foundation/redesign-account-page
re-design account page
2023-10-18 11:08:10 +11:00
saml33 28f21444ea close borrow swap fixes 2023-10-18 10:24:40 +11:00
Lou-Kamades 0f970e3421
Merge pull request #289 from blockworks-foundation/lou/jup-v6
use Jupiter V6 API for swaps
2023-10-17 09:46:51 -05:00
Adrian Brzeziński dc6ee9ec5c
sound fixes (#291) 2023-10-17 14:50:34 +02:00
saml33 6362bd3cc1 re-design account page 2023-10-17 22:28:43 +11:00
Lou-Kamades 9018128d52 use Jupiter V6 API for swaps 2023-10-16 23:12:46 -05:00
Adrian Brzeziński 3e363c8638
nft tweaks (#288)
* pagination

* fix filter

* currently listed

* refetch points
2023-10-16 17:06:17 +02:00
saml33 93923f937f remove whitelist from account trigger orders tab 2023-10-16 13:08:21 +11:00
saml33 a0e2002d6c fix padding 2023-10-13 22:11:32 +11:00
saml33 4c67f06ff0
Merge pull request #287 from blockworks-foundation/saml33/close-borrows
close borrows from account page
2023-10-13 21:40:15 +11:00
saml33 9fde225e72 add rates column back to token list 2023-10-13 21:10:40 +11:00
saml33 cfd0cdd9b6 simplify token list 2023-10-13 15:21:35 +11:00
saml33 0b319c48de move account actions to settings 2023-10-13 14:11:24 +11:00
saml33 0cff02223e close modal after swap 2023-10-13 08:38:44 +11:00
saml33 91c8682aa4 close borrows from account page 2023-10-12 22:51:02 +11:00
Adrian Brzeziński 366aec6625 fix suggested params 2023-10-12 00:00:16 +02:00
Adrian Brzeziński 32d52fb1a3 fix nfts refresh 2023-10-11 17:33:11 +02:00
saml33 8bf1a12a71 fix swap banks from token list 2023-10-11 22:13:36 +11:00
saml33 c186570e88 add blze tooltip to bsol logo 2023-10-11 21:05:52 +11:00
saml33 e035f3af64 fix tooltip 2023-10-11 13:39:06 +11:00
saml33 8d15820b44 show token reduce state and hide non-borrow tokens from borrow 2023-10-11 12:28:27 +11:00
microwavedcola1 b0d4b442ad Disable withdraw shaving for now
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-10-10 07:43:08 +02:00
saml33 1197ec6e98 fix padding 2023-10-10 13:23:25 +11:00
saml33 04e7f98e8d better price chart on token page 2023-10-10 12:59:56 +11:00
saml33 f8048e5e6f
Merge pull request #286 from blockworks-foundation/platform-status
consolidate platform status items
2023-10-10 10:13:12 +11:00
saml33 c8ea057f68 fix max withdraw value for dust amounts 2023-10-09 15:29:26 +11:00
saml33 9e82eec2f4 add mnde tooltip to msol logo 2023-10-09 15:04:27 +11:00
saml33 86664fb3eb add overall platform status 2023-10-09 13:05:52 +11:00
saml33 acf242df3a fix activity feed filter 2023-10-08 23:00:08 +11:00
saml33 5394870f3c fix gainers and losers change 2023-10-07 22:18:44 +11:00
saml33 a708de8cc2 fix mango stats loading 2023-10-07 21:43:58 +11:00
Riordan Panayides 690a675f9e Fix bottom nav explore link 2023-10-07 00:03:02 +01:00
saml33 362f1e1f6d use bank for recently listed 2023-10-06 22:09:03 +11:00
saml33 b8f9e43282 fix change sorting and chart values 2023-10-06 21:33:15 +11:00
saml33 053a4fb295 offchain services health hook 2023-10-06 20:13:07 +11:00
saml33 3cb6a1d0bb add explore to mobile nav 2023-10-06 14:42:12 +11:00
saml33 2165c3b9cd fix token page stats load and page padding 2023-10-06 14:35:31 +11:00
saml33 4cc4ce47b8 fix explore price charts 2023-10-06 13:35:55 +11:00
saml33 851a366171 fix button text alignment 2023-10-06 13:21:35 +11:00
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