Commit Graph

45 Commits

Author SHA1 Message Date
saml33 29eb59e332 add loan fee to borrow modal 2022-11-17 14:18:22 +11:00
saml33 c1254c9186 add health impact to trade form 2022-11-04 18:55:21 +00:00
tjs 7d15e8e798 better is number check 2022-10-31 16:39:43 +00:00
tjs 818bbc0252 fix zustand nextjs 13 issues 2022-10-28 17:46:38 -04:00
tjs 9269b4e18f fix yarn.lock, undo next upgrade 2022-10-28 15:24:05 -04:00
saml33 147121363c fix modal rounded corners 2022-10-28 21:01:49 +11:00
tjs a118d18564 use legacy next/image 2022-10-26 16:01:31 -04:00
tjs 7ad023653f fix bug with modals 2022-10-07 18:27:36 -04: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 1fbd948e30 add missing font-mono classes 2022-10-06 10:14:11 +11:00
saml33 706de963af add max amount button component 2022-10-06 10:03:10 +11:00
saml33 1cf389a2c3 add value to borrow/withdraw modal 2022-10-05 22:01:03 +11:00
tjs 661fed8ce9 refactor useTokenMax to fix regressions 2022-09-22 17:35:07 -04:00
saml33 17b52d242d change copy on swap page to be swap oriented and rename files 2022-09-15 11:06:00 +10:00
tjs c2f1f02829 use alias imports 2022-09-12 12:04:20 -04: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
tjs 6c714816a2 use Decimal class; use NumberFormat for input components 2022-09-02 14:37:18 -04:00
tjs 43b1febc1a update client and handle undefined health values 2022-08-31 16:17:17 -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
saml33 b70394263c move error messages into buttons 2022-08-26 10:27:05 +10:00
tjs 8109dd2f9c allow skipping creating an account
leverage slider will work after disconnecting
2022-08-25 14:22:54 -04:00
saml33 eeda961a9f reset borrow/withdraw amount on token change 2022-08-25 20:35:56 +10:00
saml33 1babb59be0 add more info to deposit modal 2022-08-25 10:53:31 +10:00
saml33 d56dc3a06a show error when withdraw amount > account balance 2022-08-24 22:29:20 +10:00
tjs 7506ee34fe show maint health and init health everywhere 2022-08-23 15:32:51 -04:00
microwavedcola1 e1c814997a Fix
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-23 15:26:47 +02: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
tjs 5bde89ee81 sort deposit withdraw tokens by usdc value 2022-08-22 22:23:26 -04:00
tjs 501510eb43 fix max numbers shown in modals and swap form 2022-08-20 20:09:36 -04:00
tjs bea7dee84c move constants out of mangoStore.ts 2022-08-20 14:17:57 -04:00
Christian Kamm a3c37ef008 Fix HealthImpact display, use bank.uiPrice where needed 2022-08-19 16:56:22 +02:00
tjs ae324a6da5 update to latest client and program version 2022-08-18 16:50:34 -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 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
saml33 906640c732 add health impact component 2022-08-17 22:09:40 +10:00
tjs 6ead35fd8a wire up borrow modal; use maint health 2022-08-15 18:18:23 -04:00
saml33 05ebd8b69a add buttongroup/slider to action modals 2022-07-25 14:22:17 +10:00
saml33 8844e19a9f pass token to action modals 2022-07-25 12:55:10 +10:00