Commit Graph

385 Commits

Author SHA1 Message Date
saml33 0ccaf19e40 leave 0.05 sol in wallet when max deposit sol 2022-09-14 11:05:42 +10:00
saml33 32af136ff8 fix toggle margin bug 2022-09-14 10:19:56 +10:00
saml33 d088d0b746 remove mangoAccount 2022-09-14 09:48:57 +10:00
saml33 8cdddf4288 re-add deposit size buttons to fund account 2022-09-13 21:58:00 +10:00
saml33 3d832bc300 improve mask positions 2022-09-13 21:27:04 +10:00
saml33 45358922d3 edit health check description 2022-09-13 21:11:52 +10:00
saml33 71d6d94278 stop tour from closing when clicking overlay 2022-09-13 20:58:07 +10:00
saml33 bd6a0e8ced use thin scroll on fund account 2022-09-13 16:21:19 +10:00
tjs c2f1f02829 use alias imports 2022-09-12 12:04:20 -04:00
tjs d4cc454824 move mangoAccount state dep from sidenav into account summary component 2022-09-12 11:30:47 -04:00
saml33 e066e1d3d2 use thin scroll on fund account 2022-09-12 10:22:37 +10:00
saml33 8e3cca0ba9 add icons to onboarding buttons 2022-09-11 22:05:21 +10:00
saml33 63b361bcb8 pass health to heart animation 2022-09-11 21:48:23 +10:00
saml33 6cfc397dd2 fix loaders 2022-09-09 11:00:47 +10:00
saml33 a1f01b7866 add chart time range component 2022-09-08 16:25:32 +10:00
saml33 c04e3909ca adjust particle emitter 2022-09-08 14:23:49 +10:00
saml33 99b6d79808 add icon for 0% change 2022-09-08 12:49:12 +10:00
saml33 c90802d729 fix token list on mobile 2022-09-08 12:36:39 +10:00
saml33 dd8f188a34 add percentage change component 2022-09-08 11:52:47 +10:00
saml33 89704f18d5 add icons to buttons 2022-09-08 10:47:59 +10:00
saml33 c9e06fd00c add more icons to background 2022-09-08 09:31:20 +10:00
tjshipe 1bd163cca6
Merge branch 'main' into onboarding-bg 2022-09-07 14:23:35 -04:00
tjshipe b826bd74ed
Merge pull request #9 from blockworks-foundation/update-heroicons
update heroicons to latest version
2022-09-07 14:19:51 -04:00
saml33 3ccde1bd02 fix account summary layout 2022-09-07 22:00:21 +10:00
saml33 9e858968b2 update heroicons to latest version 2022-09-07 14:36:35 +10:00
saml33 35f5eba3c2 add amount buttons to onboarding fund account 2022-09-07 13:47:36 +10:00
saml33 e938b002d1 add close 2022-09-07 10:18:49 +10:00
saml33 6bafbf3b70 add logo 2022-09-07 07:45:57 +10:00
saml33 1e28e1d498 align heading font size 2022-09-06 23:38:43 +10:00
saml33 31f0b48b1d add particle background 2022-09-06 23:15:54 +10:00
tjs 6f6ee459a8 add borrow fee to trade review 2022-09-05 18:38:47 -04:00
saml33 de76d68f18 change tab title to balances 2022-09-05 16:32:10 +10:00
tjs 12277bfa13 check that input amount is a number 2022-09-03 18:38:49 -04:00
tjs 712e7d7176 oops 2022-09-03 18:25:51 -04:00
tjs 5e879c1c69 prevent leverage slider from converting swap input to string
use Decimal in more places
2022-09-02 19:52:07 -04:00
tjs 51e1ba37a0 better mango account reloading; use latest client 2022-09-02 19:51:35 -04:00
tjs 6c714816a2 use Decimal class; use NumberFormat for input components 2022-09-02 14:37:18 -04:00
saml33 810a81e61d only show tooltip for collapsed nav 2022-09-02 20:22:32 +10:00
tjs f98ed3fc6d upgrade to zustand 4.1.1 2022-09-01 15:06:21 -04:00
tjs 4f299f186f remember sidenav collapse state in localstorage 2022-09-01 14:51:15 -04:00
tjs b655f6176c use latest account equity for change percent 2022-09-01 13:53:57 -04:00
tjs 80435d8e60 fix side nav collapse transition 2022-09-01 13:53:34 -04:00
tjs 48670290e8 fix account value updating 2022-09-01 13:33:29 -04:00
tjs 8168a497f6 fix account summary animation 2022-09-01 12:57:20 -04:00
tjs 43b1febc1a update client and handle undefined health values 2022-08-31 16:17:17 -04:00
tjs a4cfafb484 fix handling small decimals in swap form input 2022-08-31 11:54:43 -04:00
tjs 5832b69902 only set amountIn when swapping if amountOut is gt 0 2022-08-31 11:10:34 -04:00
tjs 9d7f8e5158 always show popular tokens in token select 2022-08-31 11:06:49 -04:00
tjs 44ae5bc6df add retryFn to ensure health simulation runs 2022-08-31 10:54:37 -04:00
tjs 9bc1b423af show all banks when funding account 2022-08-30 11:27:17 -04:00
saml33 b18d3c9049 show chart empty state on data error 2022-08-30 15:03:08 +10:00
saml33 130d5c2a50 format chart high/low decimals 2022-08-30 14:54:16 +10:00
saml33 c3fa10f26f show high/low on trade chart 2022-08-30 13:44:27 +10:00
saml33 dd4a6d4aed remove decimals from health impact 2022-08-28 21:03:15 +10:00
saml33 7435bc4ad2 align onboarding skip buttons 2022-08-27 20:09:57 +10:00
saml33 93a3990625 edit table comlumn labels 2022-08-27 19:49:32 +10:00
tjs c54fcd96ca add spinner to wallet connect 2022-08-27 04:33:21 -04:00
tjs 9c5ce70aa9 better handle error when simulating acct data 2022-08-27 03:56:59 -04:00
tjs bb9263ed0a test2 2022-08-27 01:51:14 -04:00
tjs ae0647bec2 test tokenmax issue 2022-08-27 01:48:18 -04:00
tjs cb3cc9b169 fix vault balance in withdraw modal 2022-08-27 01:28:52 -04:00
tjs d0875ba345 fix tokenbalance for max calc 2022-08-27 01:23:08 -04:00
tjs f4d155af10 add useMangoAccount hook to fix updating account page 2022-08-26 15:15:50 -04:00
tjs 6d60274fe2 fix coingecko % comparison 2022-08-26 15:14:57 -04:00
tjs 2ac137a05c use token vault balance for max amount 2022-08-26 14:19:20 -04:00
microwavedcola1 30b7226fb5 Fix display of loan origination fee
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-26 19:47:00 +02:00
tjs 0775176122 handle when vault balance is below 0 2022-08-26 13:17:31 -04:00
saml33 1d41d4ef7f add init health zero errors 2022-08-26 13:46:23 +10:00
tjs fdb6ae16ea Reload mango account on interval 2022-08-25 23:31:39 -04:00
tjs f19d02e992 fix max swap decimals 2022-08-25 20:39:17 -04:00
saml33 b70394263c move error messages into buttons 2022-08-26 10:27:05 +10:00
tjs 647454dc50 remove liquidation from health label 2022-08-25 18:03:38 -04:00
tjs 297b945a23 truncate decimals on max swap 2022-08-25 18:03:28 -04:00
tjs 8f39fb2272 smoother onboarding 2022-08-25 17:30:32 -04:00
tjs 1d5e9416d1 0.0% coingecko difference should be green 2022-08-25 17:24:10 -04:00
tjs 5108dafdfb add coingecko price comparison and borrow amount to route info 2022-08-25 16:24:37 -04:00
tjs eefa1ad718 animate health impact 2022-08-25 15:44:02 -04:00
tjshipe 0aaaafeb6c
Merge pull request #6 from blockworks-foundation/swap-health-impact
move health impact to swap form
2022-08-25 14:34:18 -04:00
tjs 8109dd2f9c allow skipping creating an account
leverage slider will work after disconnecting
2022-08-25 14:22:54 -04:00
saml33 9916747e0d move health impact to swap form 2022-08-25 23:00:42 +10:00
saml33 6bc9b28c9e fix review trade back button clickable area 2022-08-25 21:15:21 +10:00
saml33 6bbbb3c676 center review trade heading text 2022-08-25 20:52:44 +10:00
saml33 600ef0125f re-name portfolio to account 2022-08-25 20:47:34 +10:00
saml33 eeda961a9f reset borrow/withdraw amount on token change 2022-08-25 20:35:56 +10:00
saml33 f412b8bee8 reset deposit amount on token change 2022-08-25 20:32:06 +10:00
saml33 969d747a8d set button group to 100 when hitting max 2022-08-25 20:29:49 +10:00
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