Commit Graph

2854 Commits

Author SHA1 Message Date
microwavedcola1 87829fab0d swap: remove pyth whitelist
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-20 15:54:26 +01:00
Adrian Brzeziński d3dd3b6e1d Merge branch 'main' of github.com:blockworks-foundation/mango-v4-ui 2023-11-20 13:11:46 +01:00
saml33 5ceecfadac add birdeye logo 2023-11-20 14:50:41 +11:00
saml33 19b62a1794 fix chart mousedata crash 2023-11-20 14:06:49 +11:00
saml33 bfaf129c99 remove unused icon 2023-11-20 13:24:49 +11:00
saml33 85b370c9d3 show swapable tokens if not connected 2023-11-20 13:21:29 +11:00
saml33 a09c517792 fix pepe theme z-index bugs 2023-11-20 12:32:18 +11:00
saml33 06668a9b2f fix swap history points 2023-11-20 12:26:42 +11:00
saml33 7c72dc9f62 fix date 2023-11-20 11:31:56 +11:00
saml33 f4e3a08b03 use birdeye instead of coingecko for swap chart prices 2023-11-20 11:07:42 +11:00
Lou-Kamades 81fc0a8465 temporary: don't take fees on pyth swaps 2023-11-18 17:39:06 -06:00
Adrian Brzeziński e235d4992e add query client to mango client query in program 2023-11-17 18:41:07 +01:00
saml33 6a0e827087 fix swap form z-index 2023-11-17 23:37:17 +11:00
steven 2c8073d55c bg blur to claim cards 2023-11-16 22:08:44 -05:00
saml33 d9307ea16b
Merge pull request #314 from blockworks-foundation/saml33/follow-accounts
follow unowned accounts on account overview
2023-11-17 12:32:33 +11:00
tjs 805cb5fa38 add proper type check for price_history and handle when its undefined 2023-11-16 10:39:40 -05:00
Adrian Brzeziński a652abc328 claim refresh fix 2023-11-16 14:08:03 +01:00
saml33 788364735b fix price in market select dropdown 2023-11-16 23:35:44 +11:00
saml33 e61ef91398 show bar chart when not cumulative data 2023-11-16 10:19:10 +11:00
tjs 49a3a89201 don’t wrap and unwrap on jup swaps 2023-11-15 10:49:15 -05:00
saml33 a45bc1787c Merge branch 'main' into saml33/follow-accounts 2023-11-15 22:26:31 +11:00
saml33 316c08c77e add loan fee rate to rate curve chart 2023-11-15 22:15:42 +11:00
saml33 893aa219ef fix custom tv buttons on theme change 2023-11-15 15:56:25 +11:00
saml33 9dbfc28be6 update tooltip 2023-11-15 11:08:22 +11:00
saml33 740a55a679 mobile and tidy up 2023-11-15 10:53:34 +11:00
Adrian Brzeziński c3050a466b upgrade mango settings lib 2023-11-14 22:38:39 +01:00
saml33 68ac136b75 Merge branch 'main' into saml33/follow-accounts 2023-11-15 08:18:37 +11:00
Lou-Kamades d02060463d add jupiter swap fee estimate 2023-11-14 14:53:51 -06:00
tjs 4e99f12781 fix jupiter type for routePlan 2023-11-14 12:38:17 -05:00
saml33 e3020dc125 change rate curve to borrow 2023-11-14 22:18:53 +11:00
saml33 8d2ff5a994 dont show token positions warning for wallet swap 2023-11-14 21:55:08 +11:00
saml33 f07493f105 fix margin 2023-11-14 21:49:28 +11:00
saml33 65aebd08bc hook up api 2023-11-14 21:39:37 +11:00
saml33 349629bc55 add followed accounts ui 2023-11-14 15:41:16 +11:00
Lou-Kamades 6d935924bd
Merge pull request #312 from blockworks-foundation/lou/swap-exact-out
fix jupiter exactOut mint mismatches
2023-11-13 16:08:44 -06:00
Lou-Kamades e38689da74 fix jupiter exactOut mint mismatches 2023-11-13 15:54:51 -06:00
Lou-Kamades 296241b21d re-enable wallet swap 2023-11-13 11:51:42 -06:00
saml33 25726f76c7 make sidenav text smaller on small screens 2023-11-13 13:14:50 +11:00
saml33 06f9397ed3 hide wallet swap 2023-11-13 12:22:44 +11:00
saml33 80dcfceb2a add liquidation charts to mango stats 2023-11-13 11:20:13 +11:00
saml33 b1892fa6a3 add net deposits chart to stats 2023-11-12 23:20:20 +11:00
tjs dda48dee45 show sidebar expander at smaller resolutions 2023-11-11 13:30:57 -05:00
saml33 9d5d25c175 hide private accounts from rewards leaderboard 2023-11-11 22:58:21 +11:00
saml33 3080de4675 fix missing key 2023-11-10 22:49:12 +11:00
saml33 1813130134 update tab style for explore markets 2023-11-10 22:36:35 +11:00
saml33 ed1485d44a Merge branch 'main' into saml33/follow-accounts 2023-11-10 21:39:15 +11:00
saml33 761dbeccc1 add equity leaderboard 2023-11-10 13:54:04 +11:00
saml33 8cc4053fc0 fix accounts list font 2023-11-10 10:27:29 +11:00
saml33 8dba5f7850 fix status bar dot colors 2023-11-10 10:19:49 +11:00
saml33 7768a5e984 add tooltip to tokens with scaled collateral weight 2023-11-10 09:51:08 +11:00
saml33 fdf482dd90 hooks to get following/followers 2023-11-10 08:09:24 +11:00
saml33 923cbebcef use hook for profile details 2023-11-09 15:24:44 +11:00
saml33 8d45805136 show profile name in top bar if it exists 2023-11-09 14:39:54 +11:00
saml33 55753b4dbe add close borrow swap to borrow page 2023-11-09 10:47:05 +11:00
saml33 b814f492e7 hide boost accounts 2023-11-09 10:01:44 +11:00
saml33 22eb0d1291 show spot liq fee as value 2023-11-08 11:34:28 +11:00
saml33 debf420769 sort available by notional 2023-11-08 10:27:12 +11:00
saml33 68cb94889e fix callback dependency 2023-11-08 09:41:21 +11:00
Adrian Brzeziński a45dce8c42 fix skin flash 2023-11-07 23:33:43 +01:00
saml33 bed2836566 fix trade form 2023-11-08 08:29:01 +11:00
saml33 cc3c62a1b3 fix chart moving 2023-11-07 22:26:17 +11:00
saml33 e9d323e47d fix slider 2023-11-07 22:03:08 +11:00
saml33 74bfcf627f
Merge pull request #308 from blockworks-foundation/lou/position-funding
Add position funding to the perp positions table
2023-11-07 13:50:12 +11:00
saml33 d47f48d51b add to mobile view 2023-11-07 13:45:23 +11:00
saml33 25f6043d5f
Merge pull request #306 from blockworks-foundation/saml33/trade-trigger-orders
add trigger orders to trade form
2023-11-07 12:57:17 +11:00
saml33 2287106a52 set trigger orders to the correct side 2023-11-07 12:50:23 +11:00
saml33 44294a3e61 sticky headers on banks dashboard 2023-11-07 11:49:12 +11:00
Adrian Brzeziński 218e1c6923 fix stale state on claim ui 2023-11-06 23:11:36 +01:00
saml33 b7ca2a3710 show trigger order lines on chart 2023-11-06 15:00:41 +11:00
Lou-Kamades e1f82c51a7
add perp position funding 2023-11-06 00:03:24 +01:00
saml33 a04830d2c5 fix spot liquidation fee 2023-11-06 09:52:53 +11:00
saml33 3fe194c25f form validation 2023-11-05 22:22:05 +11:00
saml33 101d6efd5d add trigger orders to trade form 2023-11-04 23:24:17 +11:00
Adrian Brzeziński 79541608f8 fix jup price api 2023-11-03 10:40:04 +01:00
saml33 5a64e343e8 move animation settings 2023-11-03 12:42:43 +11:00
saml33 c96815afea fix privacy mode 2023-11-03 11:27:20 +11:00
saml33 dbe7a60c0c fix zero value number format 2023-11-03 09:52:17 +11:00
saml33 8897bd6cb2 fix very small prices on token page 2023-11-02 13:54:45 +11:00
saml33 906ee6740d improve mobile swap chart loading 2023-11-02 13:24:45 +11:00
saml33 a63db09bff remove auto-focus search inputs on mobile 2023-11-02 12:38:41 +11:00
saml33 23dc2bb0f8 add price to explore spot mobile table 2023-11-02 12:21:35 +11:00
saml33 a06e2057d9 horizontal scroll explore spot table 2023-11-02 11:58:52 +11:00
saml33 a6c83681a7 link to index from mobile logo 2023-11-02 11:55:30 +11:00
saml33 e697bbef8b scroll to top on route change 2023-11-02 11:11:21 +11:00
saml33 1439e6544b toggle cumulative values on stats charts 2023-11-01 14:48:12 +11:00
saml33 fb64d4de29 cover dust when repaying full borrow amount 2023-11-01 08:49:08 +11:00
saml33 37d4a32391 fix rate curve chart util nan 2023-10-31 22:10:53 +11:00
saml33 c7535a60f8 remove curve from chart 2023-10-31 21:10:51 +11:00
saml33 3d8f7aeb88 add rate curve chart 2023-10-31 14:33:18 +11:00
saml33 b621c458a3 fix chart change alignment 2023-10-31 11:51:10 +11:00
saml33 cf0c88e0b5
Merge pull request #302 from blockworks-foundation/saml33/swap-improvements
improve swap quote fetching and chart price
2023-10-31 11:09:53 +11:00
saml33 3fe91de2e9 toggle chart change type 2023-10-31 11:08:47 +11:00
saml33 fcd7830710 fix chart change percentage 2023-10-31 09:41:18 +11:00
Adrian Brzeziński 775e478efd bg change for rewards claim 2023-10-30 14:45:05 +01:00
saml33 9aa665fcf1 add max slippage and ioc to perp market orders 2023-10-30 22:19:04 +11:00
saml33 686c654c48 merge main 2023-10-30 16:11:41 +11:00
saml33 17aa59cf7d update swap intro modal 2023-10-30 15:53:18 +11:00
saml33 8f16ec7b7e toggle to show average funding as apr 2023-10-30 14:34:22 +11:00
saml33 bb77fbb0ce add popular swap tokens 2023-10-30 13:18:03 +11:00
saml33 b5941acf3e swap form button component 2023-10-30 11:01:35 +11:00
saml33 e2abfb5bec show onboarding from secondary connect buttons 2023-10-30 09:56:49 +11:00
saml33 25eb665cc1 mobile styling fixes 2023-10-29 21:57:08 +11:00
saml33 726863e053 add countdown to refetch and refetch button 2023-10-28 22:49:46 +11:00
saml33 03fe88f012 merge main 2023-10-28 21:31:24 +11:00
saml33 f5b3f2c971 fix hot key settings table 2023-10-28 21:27:57 +11:00
saml33 b771d3da8b retain trigger key and name on tab change 2023-10-27 21:42:34 +11:00
saml33 a825231ae7 update swap slippage notification trigger 2023-10-27 21:32:37 +11:00
microwavedcola1 fb3a9239ec
Jupiter referral accounting in UI with a minor fee (#298)
* use platform fee bps

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* Fixes from review

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

---------

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-10-27 08:38:14 +02:00
saml33 f7a5d7f650 improve swap quote fetching and chart price 2023-10-27 15:30:17 +11:00
riordanp 66fb89f1f8
Add global pageview properties for telemetry (#301)
* Add global pageview properties for telemetry

* Add accountCreate event
2023-10-26 15:00:05 +01:00
saml33 5ebf650900 re-add close long/short hotkey templates 2023-10-26 23:39:41 +11:00
saml33 ba45ecdb3d remove close long/short hotkey templates until fixed 2023-10-26 15:14:23 +11:00
saml33 a2127fcfe2 add hot key templates 2023-10-26 14:39:36 +11:00
saml33 616cc2cf66 improve slider percent button highlighting 2023-10-26 08:46:44 +11:00
saml33 637b710dcc reflip show claim view 2023-10-25 22:34:17 +11:00
saml33 1b45a5f677 add projected next season tier 2023-10-25 22:23:41 +11:00
saml33 3aa65f7f75 fix max borrow warning for trigger swap 2023-10-25 20:27:10 +11:00
saml33 6f1e56472e use notional amount for max borrow in period warning 2023-10-25 20:21:21 +11:00
saml33 3515c7b91b improve swap chart number scroll 2023-10-25 15:03:35 +11:00
saml33 58a1e7dccf update pepe theme 2023-10-25 14:02:36 +11:00
saml33 bf9e64a499 fix claim prizes loader width 2023-10-25 13:14:40 +11:00
saml33 93dde6629d show prize details before claim 2023-10-25 12:53:11 +11:00
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