Commit Graph

1449 Commits

Author SHA1 Message Date
saml33 9a84e0d722 add total deposit/borrow value to stats 2022-08-25 13:55:55 +10:00
tjs 624997dcaf reload new selected acct after closing an acct 2022-08-24 23:28:01 -04:00
saml33 643e3287ed add missing $ sign 2022-08-25 12:59:38 +10:00
saml33 8950504e56 show error when deposit amount > wallet balance 2022-08-25 12:58:31 +10:00
tjs a4aba34ebb cleanup swap max 2022-08-24 22:47:02 -04:00
tjs c6237e587f add temp deposit limit warning 2022-08-24 22:47:02 -04:00
saml33 1babb59be0 add more info to deposit modal 2022-08-25 10:53:31 +10:00
saml33 9ca67ed52c trade history decimals 2022-08-25 10:14:27 +10:00
tjs 0d23ceaa7a remove withdraw health in favor of free collateral 2022-08-24 18:22:04 -04:00
tjs cd2ad18ade update health labels 2022-08-24 11:58:01 -04:00
microwavedcola1 2274596350 format
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-24 17:40:21 +02:00
saml33 49957c70e3 change withdraw amount button text 2022-08-24 22:39:15 +10:00
saml33 d56dc3a06a show error when withdraw amount > account balance 2022-08-24 22:29:20 +10:00
saml33 c072c6b0db move account switcher to right side 2022-08-24 21:30:10 +10:00
saml33 4836d21e46 show error when no margin and swap amount > token max 2022-08-24 20:51:06 +10:00
tjs 270a319ab0 add tooltip to asset weight 2022-08-23 20:45:01 -04:00
tjs c48b9f8a95 fix withdraw modal max amount to limit to vault amount 2022-08-23 20:44:43 -04:00
tjs 7300b5eb4b ltv doesnt work, show asset liab weights 2022-08-23 19:49:36 -04:00
tjs a4d1fa797a fix utilization 2022-08-23 18:36:56 -04:00
tjs 39be3f741d add stats page 2022-08-23 18:33:09 -04:00
tjs 7506ee34fe show maint health and init health everywhere 2022-08-23 15:32:51 -04:00
tjs f3f47a102e add init health to account summary box 2022-08-23 14:13:30 -04:00
microwavedcola1 bc3101e90b match latest changes to client
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-23 16:24:47 +02:00
microwavedcola1 e1c814997a Fix
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-23 15:26:47 +02:00
saml33 daa87d033c fix double minus sign 2022-08-23 22:47:52 +10:00
saml33 f888f0211f set trade size button to 100 when clicking max 2022-08-23 22:41:37 +10:00
microwavedcola1 28f652a163
match client changes on mc/ts-client-fixes (#5)
* match client changes on mc/ts-client-fixes

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

* fix commit hash for dependency

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

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-23 13:45:56 +02:00
saml33 83fe7c998b fix buy input load height 2022-08-23 21:13:17 +10:00
saml33 8455bc5fe8 use ETH chart for soETH 2022-08-23 20:55:22 +10:00
tjs 55912dec03 if max withdraw amount is negative use 0 2022-08-22 23:27:06 -04:00
tjs 2ec3bab9ea remove leverage number from swap 2022-08-22 22:26:59 -04:00
tjs 5bde89ee81 sort deposit withdraw tokens by usdc value 2022-08-22 22:23:26 -04:00
tjs dc966975df fix loading after closing a mango account 2022-08-22 21:47:08 -04:00
tjs 2ce386106e show sign next to health impact change 2022-08-22 14:01:06 -04:00
tjs d63bd38542 improvements to setup modal flow 2022-08-22 13:27:03 -04:00
tjs aa5ce47ef5 use tailwind breakpoints instead of isMobile variable 2022-08-22 13:19:09 -04:00
tjs 8011f4ff8e fix buy/sell links in actions menu 2022-08-21 00:08:07 -04:00
tjs c0341773e7 fix onboarding flow 2022-08-20 22:57:07 -04:00
tjs 501510eb43 fix max numbers shown in modals and swap form 2022-08-20 20:09:36 -04:00
tjs 52064b7627 disable swapping between the same tokens while using direct routes 2022-08-20 14:54:38 -04:00
tjs bea7dee84c move constants out of mangoStore.ts 2022-08-20 14:17:57 -04:00
tjs cade8d7872 latest client; fix health ratio in summary panel 2022-08-20 14:05:00 -04:00
tjs 5feb27c408 fix health after swap 2022-08-20 02:25:50 -04:00
tjs 605f49e702 fix wallet connect and disconnect 2022-08-20 02:06:00 -04:00
tjs 1a0baab8e4 fix swap form 2022-08-20 00:03:26 -04:00
tjs e36a88ddbd allow leverage sliding while not connected 2022-08-19 17:25:31 -04:00
tjs 1257c73662 fix connect account; add feature to remember last selected 2022-08-19 17:17:30 -04:00
Christian Kamm a3c37ef008 Fix HealthImpact display, use bank.uiPrice where needed 2022-08-19 16:56:22 +02:00
microwavedcola1 c88a7c71b9 fix rate display
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-19 11:59:54 +02:00
tjs c7f071641d fix more issues with wallet connect and account loading 2022-08-18 18:26:03 -04:00
tjs 9badb0dbd9 ensure client is updated with anchorprovider that has the wallet after connecting 2022-08-18 17:38:48 -04:00
tjs ae324a6da5 update to latest client and program version 2022-08-18 16:50:34 -04:00
tjs 32ca6ff2f5 add function to flip chart pair 2022-08-18 09:59:40 -04:00
saml33 a365bbbc04 disable review trade when amount in is 0 2022-08-18 16:14:15 +10:00
saml33 3e48d7cbc0 add max borrow amount to borrow modal list 2022-08-18 15:58:44 +10:00
tjs acc2a2cfdd switch amounts after flipping the token 2022-08-18 00:35:35 -04:00
saml33 0f7a1b2ad4 update slider amount prop type 2022-08-18 14:25:30 +10:00
saml33 b82259d17f remove onChange from effect dependencies 2022-08-18 13:17:22 +10:00
saml33 a74aaf4405 set swap input amount to 0 on token switch 2022-08-18 13:14:44 +10:00
tjs 8edd563239 use 0 when max amount is negative 2022-08-17 22:35:08 -04:00
tjs bec94218b5 fix decimal handling 2022-08-17 21:50:08 -04:00
saml33 44b3981e48 update slider when amountIn changes 2022-08-18 11:21:16 +10:00
saml33 f64265a316 add health impact to deposit modal 2022-08-18 09:55:46 +10:00
tjs f64f73f2b7 fix for slider bg when changing account 2022-08-17 18:17:12 -04:00
tjs e168add75c give default background size to slider 2022-08-17 17:36:38 -04:00
tjs 78e79b0715 combine jupiter route info into one component 2022-08-17 16:06:45 -04:00
tjs a7b915d071 add sheen loader for price on swap chart 2022-08-17 16:06:45 -04:00
saml33 906640c732 add health impact component 2022-08-17 22:09:40 +10:00
saml33 8a250f7f28 sort withdraw token list by account balance 2022-08-17 16:10:38 +10:00
saml33 711d1560b8 sort deposit token list by wallet balance 2022-08-17 15:15:23 +10:00
saml33 a9ac47f153 disallow close setup modal 2022-08-17 14:49:20 +10:00
saml33 a78c33aaa6 remove edit profile image until we have api 2022-08-17 14:22:55 +10:00
saml33 040d942ed9 style slider 2022-08-17 13:42:16 +10:00
tjs 17d4215572 Modal needs transform class to fix z-index issue 2022-08-16 19:57:54 -04:00
tjs 08b6da5d2f remove tailwind deprecated transform class
and remove default-transitions that weren't paired with a class change
2022-08-16 18:58:03 -04:00
tjs c035bc4655 remove animation from main lists 2022-08-16 18:29:24 -04:00
saml33 37135e35db load mango accounts 2022-08-16 22:50:08 +10:00
saml33 5dd424c8da set mango account load to false if no accounts 2022-08-16 22:20:53 +10:00
saml33 4146efac94 fix mango account load 2022-08-16 21:23:43 +10:00
tjs 72191f62ef hide profile page from onboarding until its farther along 2022-08-16 01:10:17 -04:00
tjs 4631b70d15 again fix percent select on swap 2022-08-16 00:19:09 -04:00
tjs 49e340d1f6 fix for percent select on swap form 2022-08-15 23:16:20 -04:00
saml33 0d19b462b6 update token icons 2022-08-16 12:41:06 +10:00
saml33 57120c17e0 portfolio responsive 2022-08-16 12:02:56 +10:00
saml33 9c67b18eff single component for account charts 2022-08-16 10:16:21 +10:00
tjshipe 8e3259b118
Merge pull request #4 from blockworks-foundation/fix-onboarding
fix account loading and onboarding
2022-08-15 19:10:35 -04:00
tjs 78e1fe42da show decimals on interest rates 2022-08-15 19:09:49 -04:00
saml33 7b8867781f merge main 2022-08-16 08:19:24 +10:00
tjs 6ead35fd8a wire up borrow modal; use maint health 2022-08-15 18:18:23 -04:00
tjs d3a05e01c6 fix max percentage when no margin 2022-08-15 12:02:46 -04:00
saml33 2039d4ce09 style swap setting margin switch 2022-08-15 21:52:17 +10:00
saml33 979f6aada8 load swap amount out 2022-08-15 21:28:36 +10:00
saml33 a1eb6b38d9 button hovers 2022-08-15 16:10:46 +10:00
saml33 d688a35f56 sidenav hover 2022-08-15 15:49:51 +10:00
saml33 dfbed69bcf add pnl 2022-08-15 15:43:15 +10:00
saml33 e672dd4792 style review trade panel 2022-08-14 21:56:19 +10:00
saml33 61d9b83b9a update button colors 2022-08-14 15:39:30 +10:00
saml33 7d3b16496d add interest value to token list 2022-08-14 15:11:02 +10:00
saml33 bf972eb9a9 add interest to token list 2022-08-13 21:29:48 +10:00
saml33 5ec3d74500 add cumulative interest chart 2022-08-13 20:44:13 +10:00
saml33 b419098e6c move trade history data to store 2022-08-13 16:06:09 +10:00
tjs d1acfc6d52 use new client to show pending transaction notifications 2022-08-12 17:18:12 -07:00
saml33 80ccba7b72 fix review trade back arrow 2022-08-12 22:40:26 +10:00
saml33 03c0436877 merge main 2022-08-12 22:21:23 +10:00
saml33 e7af834a2d move account stats fetching to store 2022-08-12 22:14:28 +10:00
saml33 b7a47f60fe add available balance to withdraw modal 2022-08-12 16:09:52 +10:00
saml33 4d49012eba add wallet balance to deposit list 2022-08-12 15:48:59 +10:00
saml33 94aa653817 fix account loading and onboarding 2022-08-12 14:20:17 +10:00
tjs 29da9b24f6 update decimal formatting 2022-08-11 19:27:36 -07:00
tjs f55c4a8820 use jup logo uri in token list 2022-08-11 19:27:21 -07:00
tjs fdec02b730 add back swap route options 2022-08-11 18:26:36 -07:00
tjs 403161f578 show simulated health in swap 2022-08-11 17:52:57 -07:00
tjs 0800e9f30f exclude Serum jup routes due to lg tx size 2022-08-11 17:52:57 -07:00
tjs 6630f554cc leverage slider max shouldnt exceed available deposits 2022-08-11 17:52:57 -07:00
tjs d17fb5dcd4 show max health ratio of 100 2022-08-11 12:29:07 -07:00
microwavedcola1 c148f5640a Adapt to latest ts/client changes
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-11 18:00:39 +02:00
saml33 e5ca9c4648 fix side nav alignment 2022-08-11 20:49:16 +10:00
saml33 284443204e update state variable names 2022-08-11 19:52:02 +10:00
saml33 51a00534f4 add total interest value 2022-08-11 16:23:18 +10:00
saml33 cc7ca4680f add account value api to portfolio 2022-08-11 14:09:58 +10:00
tjs 6d51bbcac0 get next account num so when we create sub accounts 2022-08-10 15:32:32 -07:00
tjs 39ee93fb37 use updated trade history fields 2022-08-10 14:52:28 -07:00
tjs d83d29b418 use selected mango account for trade history api 2022-08-10 14:33:28 -07:00
tjs 643627708b show tx id in error notifications 2022-08-10 13:42:15 -07:00
tjs 596d4713d7 exclude raydium routes due to tx size 2022-08-10 13:34:30 -07:00
tjs af25ab651f lookup swap symbol by mint address 2022-08-10 13:23:19 -07:00
tjs 002e215cb9 use explorer instead of solscan 2022-08-10 12:43:33 -07:00
saml33 6cc89d7386 add trade history 2022-08-10 21:17:10 +10:00
tjs 79f679e4ae remove unused side nav items 2022-08-09 18:21:33 -07:00
tjs 2b242d1a53 allow borrows 2022-08-09 17:14:12 -07:00
tjs ae58eecc65 use latest client to fix swap signature errors 2022-08-09 15:44:01 -07:00
tjs a3a4275462 fix chart timeframe active class 2022-08-09 10:06:36 -07:00
tjs 2514c4a223 fix withdraw modal buttons 2022-08-09 10:03:39 -07:00
tjs 730283d8c3 center loading icon after trade; reload account after editing 2022-08-08 14:45:56 -07:00
tjs 43089b195f close review trade modal after successful tx 2022-08-08 11:44:25 -07:00
tjs fab687ac87 swap settings modal 2022-08-08 10:42:18 -07:00
tjs f02dead07c fix mango acct switcher 2022-08-05 18:11:07 -04:00
tjs a417f12e8d use latest client 2022-08-04 12:42:03 -04:00
tjs b9cb38c556 use latest client to fix misordered health account bug 2022-08-04 01:26:09 -04:00
tjs 8ec490c042 extract jupiter logic into hook 2022-08-03 22:25:38 -04:00
saml33 4bcf4dee72 add other account details to portfolio 2022-08-03 22:13:40 +10:00
saml33 12101e2c9d add logo to mobile view 2022-08-03 21:16:30 +10:00
saml33 b6168b9089 review trade font size 2022-08-03 20:02:18 +10:00
saml33 210e96237d add placeholder account value chart 2022-08-03 19:49:31 +10:00
saml33 2391755ea9 fix launch modal from account summary 2022-08-03 12:26:11 +10:00
saml33 96fa045564 add account summary 2022-08-03 12:15:17 +10:00
saml33 b7cf8e2d4e remove health from account switcher 2022-08-03 10:37:42 +10:00
saml33 0f46288df6 add simple area chart 2022-08-03 10:17:42 +10:00
tjs ba39db5b9f fix link buttons 2022-08-02 15:20:27 -04:00
tjs d6d29e072b filter swap list by tokens in group 2022-08-02 14:09:29 -04:00
tjs 49f36908e8 slightly smaller switch 2022-08-02 14:09:29 -04:00
tjs 449dce1e7a move fetchJupiterTokens to zustand actions 2022-08-02 14:09:29 -04:00
saml33 c089e715e5 fix list transition 2022-08-02 20:47:24 +10:00
saml33 f87517bf1f add nft profile modal 2022-08-02 15:32:21 +10:00
saml33 8bc91139f4 add create account modal 2022-08-02 13:43:17 +10:00
saml33 a560b4294e add icon to link button 2022-08-02 12:05:38 +10:00
saml33 bc848c0042 add all mango accounts 2022-08-02 11:08:08 +10:00
tjs b8ccb17206 add try/catch around jupiter loading 2022-08-01 13:14:44 -04:00
tjs c59778252e faster chart loading; temp set dark as default 2022-08-01 11:53:09 -04:00
tjs 0249efba5c fix swap chart hover calculation 2022-07-29 13:57:12 -04:00
saml33 1f3b88a079 deposit from onboarding flow 2022-07-29 12:51:50 +10:00
saml33 fcbe40029d add list transition 2022-07-29 09:32:15 +10:00
saml33 c8330008d3 add edit account name 2022-07-28 22:13:42 +10:00
saml33 f1d1e6658f connect wallet page loader 2022-07-28 21:41:55 +10:00
saml33 04a6722ef1 add close account modal 2022-07-28 20:51:36 +10:00
saml33 7c49882fcc more onboarding and load mango account 2022-07-28 16:35:18 +10:00
saml33 af95806114 fix connect button click 2022-07-27 21:12:29 +10:00
saml33 5dfcac8da3 pre-onboarding button 2022-07-27 16:07:56 +10:00
saml33 0777a2ef0b add profile pic and connected menu 2022-07-27 14:40:17 +10:00
saml33 c779be1422 connect wallet button styling 2022-07-27 12:45:27 +10:00
tjs 4b3ab3970e add in connectwalletbutton 2022-07-26 21:53:58 -04:00
tjs 6570fb683a use custom provider 2022-07-26 21:30:51 -04:00
tjs b7597dc976 remove solana wallet react ui 2022-07-26 21:21:17 -04:00
saml33 1ba4e0156d use popover for account summary 2022-07-26 21:15:07 +10:00
saml33 82e9925e6e populate swap form from token list 2022-07-26 15:27:53 +10:00
saml33 ff155deb48 filter and sort token list 2022-07-26 13:59:46 +10:00
tjs 41accab8e7 remove number animation delay 2022-07-25 15:03:17 -04:00
saml33 05ebd8b69a add buttongroup/slider to action modals 2022-07-25 14:22:17 +10:00
saml33 c329ed2d30 add actions menu to responsive token list 2022-07-25 13:28:10 +10:00
saml33 4b5c607c0d buttongroup large prop 2022-07-25 13:12:50 +10:00
saml33 8844e19a9f pass token to action modals 2022-07-25 12:55:10 +10:00
saml33 fb7986ac28 add token symbol to actions menu 2022-07-25 11:58:06 +10:00
saml33 636c79443a position icon menu panel 2022-07-25 11:47:12 +10:00
saml33 31e5b13e2e Merge branch 'main' of github.com:blockworks-foundation/mango-v4-ui 2022-07-25 11:46:15 +10:00
tjs 899767ea28 fix decimals on swap chart 2022-07-24 14:41:38 -04:00
saml33 286a4964a0 icon drop menu 2022-07-24 21:48:55 +10:00
saml33 69caf3eb00 withdraw modal ui 2022-07-24 15:45:11 +10:00
saml33 e5e691d9a4 add sheen loader/chart load state 2022-07-24 14:27:54 +10:00
saml33 f4d7c4fcb7 fix swap transition 2022-07-24 12:51:54 +10:00
saml33 42c8da0c36 add tooltip 2022-07-24 12:48:26 +10:00
saml33 89f1ca6fc1 animate account value numbers 2022-07-23 21:30:50 +10:00
saml33 0117f3b0bc componentize transition 2022-07-23 21:20:08 +10:00
saml33 4eda60c73a add disabled deposit button state 2022-07-23 16:26:35 +10:00
saml33 9353d3b6d3 fix conflict 2022-07-23 16:17:33 +10:00
saml33 a8cf31de90 deposit modal ui 2022-07-23 16:15:51 +10:00
tjs 5e3a710728 fix decimals on swap chart 2022-07-22 17:41:31 -04:00
tjs 27612f0a6a fix slider performance 2022-07-22 16:46:33 -04:00
tjs 653168fb62 add husky and fix lint errors
add husky; lint fixes

add husky; lint fixes

add husky; lint fixes

add husky; lint fixes

add husky; lint fixes

add husky; lint fixes
2022-07-22 14:19:49 -04:00
tjs a6b68cb00a add husky 2022-07-22 13:53:23 -04:00
tjs 04393806df add flip numbers to chart 2022-07-22 13:07:55 -04:00
tjs 3785bebcb5 fixes 2022-07-22 11:41:21 -04:00
saml33 613990b9e3 add onboard progress bar 2022-07-22 21:22:35 +10:00
saml33 3278a2d686 more onboarding flow 2022-07-22 15:09:04 +10:00
saml33 b304ea208f start onboarding flow 2022-07-21 14:50:56 +10:00
saml33 0ee782e69e responsive token list 2022-07-20 15:49:09 +10:00
saml33 c21463edd3 calculate mouse data chart change 2022-07-20 13:49:33 +10:00
saml33 ae0569ba49 responsive swap chart 2022-07-20 13:33:30 +10:00
saml33 82a54714a4 token list table columns 2022-07-19 15:27:11 +10:00
saml33 db1f52f452 add settings page 2022-07-19 13:58:21 +10:00
saml33 12cb4c3666 add mobile nav 2022-07-18 21:17:56 +10:00
saml33 c4c8cb60f8 move routes loading to parent 2022-07-18 20:02:43 +10:00
saml33 40a9fd4c08 add review trade step 2022-07-18 12:49:14 +10:00
saml33 6cda1e2708 tweak side nav 2022-07-18 10:56:05 +10:00
saml33 be77bf3a85 update copy 2022-07-17 21:51:51 +10:00
saml33 7b772c3e6e add margin toggle ui 2022-07-17 21:48:33 +10:00
saml33 0dff51d17a animate swap token switch arrow 2022-07-17 14:41:20 +10:00
saml33 b4c1b8631e merge main 2022-07-16 21:29:47 +10:00
saml33 f3c99a1b09 swap token select styling 2022-07-16 21:22:59 +10:00
tjs e7cfa4dd80 use % change to affect chart color 2022-07-15 16:26:29 -04:00
tjs b4cddd1b19 move swap route under swap details 2022-07-15 16:17:12 -04:00
tjs 902741d8af add padding and larger font to sidenav; fix animation 2022-07-15 15:02:01 -04:00
saml33 f6d2469e60 swap styling WIP 2022-07-15 22:50:29 +10:00
saml33 97300d9a92 misc styling, organizing components 2022-07-15 21:09:23 +10:00
saml33 12e7b48275 add portfolio header 2022-07-15 15:20:20 +10:00
saml33 4ad733844d add top bar account summary 2022-07-15 13:38:02 +10:00
saml33 d12225c63a crude responsive for swap 2022-07-15 11:46:34 +10:00
saml33 65f339340e remove icons.tsx 2022-07-15 10:24:46 +10:00
saml33 ad34ec3782 merge main 2022-07-15 09:44:28 +10:00
saml33 58292c9505 add layout and nav pattern 2022-07-15 09:36:31 +10:00
tjs fc339abac5 get simulated values after reloading account 2022-07-14 15:33:11 -04:00
tjs db239c0145 add mango account values 2022-07-12 23:58:13 -04:00
tjs a74fd28ca6 leverage slider and mango account 2022-07-12 22:02:36 -04:00
tjs 375d369573 add token select modal; fix content widths; 2022-07-11 23:00:22 -04:00
tjs 771ee63ea5 wip 2022-07-10 22:01:16 -04:00
tjs 90e166ddcc fix type errors 2022-07-06 09:46:16 -04:00
tjs 8f0dc1e3ef more swap work 2022-07-05 23:37:49 -04:00
tjs e19f7916ff fix type errors 2022-06-29 23:38:32 -04:00
tjs 974da0d98d use flash loan 3 2022-06-29 23:37:25 -04:00
tjs c5d96e72bb show prices in token box 2022-06-22 13:55:03 +02:00
tjs 1e93a66989 always show token balances 2022-06-21 13:54:28 +02:00
tjs b5f42d70ad show token balances and rates 2022-06-21 12:58:57 +02:00
tjs c11783de98 use new withdraw fn name 2022-06-10 14:24:29 -04:00
tjs 254652ec30 updated to latest deposit fn naming 2022-06-10 14:10:03 -04:00
tjs 7cb50399fd remove unused imports 2022-06-10 09:15:15 -04:00
tjs 68c194a43d more orca swap integration 2022-06-10 09:05:45 -04:00
tjs cd6637fd72 orca swap integration with margin trade 2022-05-31 21:41:18 -04:00
tjs 1304ea51a5 add serum peer dependency 2022-05-04 17:41:15 -04:00
tjs 1bdf801273 fix tokenaccount type 2022-05-04 08:41:47 -04:00
tjs c8898467db mango v4 sandbox 2022-05-04 00:25:54 -04:00