Commit Graph

175 Commits

Author SHA1 Message Date
tjs 5727d0bc7f add a useMangoAccount hook 2022-11-18 12:09:39 -05:00
tjs 07847b971b support versioned txs 2022-11-15 23:12:57 -05:00
saml33 07d420e785 update swap tour copy 2022-11-14 14:33:45 +11:00
tylersssss 33695f047a
Merge pull request #26 from blockworks-foundation/trade-health-impact
add health impact to trade form
2022-11-13 17:26:09 -05:00
saml33 69bcfc5a71 fix input height 2022-11-04 19:08:27 +00:00
saml33 c1254c9186 add health impact to trade form 2022-11-04 18:55:21 +00:00
saml33 9943911efc fix swap output amount input 2022-11-04 17:41:33 +00:00
tjs 2e853352b6 remove bg; add responsive txt 2022-10-31 05:06:03 +00:00
tjs dd284513f3 try different v of swap form copy; more responsive cols 2022-10-31 05:06:03 +00:00
saml33 7dcb59f7c3 remove commented code 2022-10-30 22:21:47 +11:00
saml33 91175e5d66 fix swap layout heights 2022-10-30 22:19:04 +11:00
tjs 0e880ffc54 swap form copy 2022-10-29 22:46:59 -04:00
saml33 8254602691 icon button sizes 2022-10-29 22:38:40 +11:00
saml33 6d85da0ab5 misc styling 2022-10-22 23:14:25 +11:00
saml33 67ef7d626b fix change font size 2022-10-08 21:22:31 +11:00
saml33 bf17fe1374 notification styling 2022-10-08 21:15:03 +11:00
tjs 7d975b6407 fix deposit input issue 2022-10-07 16:02:11 -04:00
microwavedcola1 72e4808141 match mango-v4 dev branch
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-10-07 14:27:42 +02:00
saml33 8374dfa1a7 format swap pair symbols 2022-10-06 13:23:31 +11:00
saml33 706de963af add max amount button component 2022-10-06 10:03:10 +11:00
saml33 070f4839ed add balance button when swap margin is on 2022-10-05 22:25:26 +11:00
saml33 cff49ded6f merge main 2022-09-30 22:55:28 +10:00
tjs 32578711b2 general refinements 2022-09-30 00:21:23 -04:00
saml33 8986660b55 merge main 2022-09-23 14:08:56 +10:00
tjs 661fed8ce9 refactor useTokenMax to fix regressions 2022-09-22 17:35:07 -04:00
saml33 545470cf1f add consistent tracking to font-mono class 2022-09-22 20:46:51 +10:00
saml33 f5abb4d381 add tours and copy 2022-09-22 14:25:24 +10:00
saml33 7f697894e6 add health impact tooltip 2022-09-20 16:31:07 +10:00
saml33 1d86e19158 fire getTokenMax on connection 2022-09-20 15:33:59 +10:00
saml33 d17874f87f merge main 2022-09-20 14:55:04 +10:00
saml33 2b4f3410d2 align account page layout to swap/trade 2022-09-19 13:53:52 +10:00
saml33 fa08f0e819 align swap form elements 2022-09-16 21:37:24 +10:00
saml33 3c55bf5b59 mobile trade page 2022-09-16 20:49:10 +10:00
saml33 9ed74880b2 align tabs to trade page 2022-09-15 16:06:23 +10:00
saml33 0ae2912cb9 misc styling 2022-09-15 14:51:19 +10:00
saml33 e42e4db58a style trade form 2022-09-15 14:12:00 +10:00
saml33 9ab19e13cd align horizontal baseline 2022-09-15 12:41:55 +10:00
saml33 17b52d242d change copy on swap page to be swap oriented and rename files 2022-09-15 11:06:00 +10:00
saml33 6d901dd847 remove double borders from swap 2022-09-15 10:33:34 +10:00
saml33 94b4dfe9a0 add function for token max 2022-09-15 10:02:16 +10:00
tjs f6304e2910 undo some changes from my swap page refresh 2022-09-14 17:57:12 -04:00
tjshipe 83dc98ad25
Merge branch 'main' into onboarding-tour 2022-09-14 10:11:13 -04:00
saml33 6dab2b74cf sort sell token list by max amount 2022-09-14 20:37:45 +10:00
tjs 007c3c2fa2 Merge branch 'serum' into main 2022-09-14 02:25:15 -04:00
saml33 32af136ff8 fix toggle margin bug 2022-09-14 10:19:56 +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
saml33 6cfc397dd2 fix loaders 2022-09-09 11:00:47 +10:00
saml33 89704f18d5 add icons to buttons 2022-09-08 10:47:59 +10:00
saml33 9e858968b2 update heroicons to latest version 2022-09-07 14:36:35 +10:00
saml33 de76d68f18 change tab title to balances 2022-09-05 16:32:10 +10: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 6c714816a2 use Decimal class; use NumberFormat for input components 2022-09-02 14:37:18 -04:00
tjs 48670290e8 fix account value updating 2022-09-01 13:33:29 -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 0775176122 handle when vault balance is below 0 2022-08-26 13:17:31 -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 297b945a23 truncate decimals on max swap 2022-08-25 18:03:28 -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
saml33 9916747e0d move health impact to swap form 2022-08-25 23:00:42 +10:00
tjs a4aba34ebb cleanup swap max 2022-08-24 22:47:02 -04:00
saml33 4836d21e46 show error when no margin and swap amount > token max 2022-08-24 20:51:06 +10:00
microwavedcola1 bc3101e90b match latest changes to client
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-23 16:24:47 +02:00
saml33 f888f0211f set trade size button to 100 when clicking max 2022-08-23 22:41:37 +10:00
saml33 83fe7c998b fix buy input load height 2022-08-23 21:13:17 +10:00
tjs 2ec3bab9ea remove leverage number from swap 2022-08-22 22:26:59 -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 1a0baab8e4 fix swap form 2022-08-20 00:03:26 -04:00