Commit Graph

259 Commits

Author SHA1 Message Date
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