Commit Graph

132 Commits

Author SHA1 Message Date
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
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
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 d0875ba345 fix tokenbalance for max calc 2022-08-27 01:23:08 -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
tjs 0775176122 handle when vault balance is below 0 2022-08-26 13:17:31 -04: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 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
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
tjs a4aba34ebb cleanup swap max 2022-08-24 22:47:02 -04:00
microwavedcola1 2274596350 format
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-24 17:40:21 +02:00
saml33 4836d21e46 show error when no margin and swap amount > token max 2022-08-24 20:51:06 +10:00
tjs 39be3f741d add stats page 2022-08-23 18:33:09 -04: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
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
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 5feb27c408 fix health after swap 2022-08-20 02:25:50 -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 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
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 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
tjs f64f73f2b7 fix for slider bg when changing account 2022-08-17 18:17:12 -04:00