Commit Graph

52 Commits

Author SHA1 Message Date
microwavedcola1 6a8ac4e676
Use swap fee rate when considering non margin amount (#400)
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-03-13 13:33:50 +01:00
Adrian Brzeziński 60673eb312 fix approxeq 2024-02-23 12:17:33 +01:00
Adrian Brzeziński 98a65229c7 fix 2024-02-23 12:09:23 +01:00
Adrian Brzeziński 38f5293fe0 fix deposit warnings 2024-02-23 12:05:13 +01:00
Adrian Brzeziński db0ca4a50e fix deposit limit warning 2024-02-22 21:18:52 +01:00
Adrian Brzeziński e3800cb283 fix deposit limits warning for maring market 2024-02-07 17:28:14 +04:00
Adrian Brzeziński 103a3c4759
better warnings for deposit limits (#377) 2024-01-24 17:54:41 +01:00
Adrian Brzeziński 60fe8d2029
deposits limits (#375)
* spot limits

* deposits + lib mock

* fix

* styling and copy

* fix

* fix

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2024-01-22 19:21:24 +01:00
saml33 fbb3862906
fix reduce only max amounts (#361) 2024-01-01 13:46:08 +01:00
saml33 8d4e5fd79b fix swap token select 2023-12-20 12:37:16 +11:00
saml33 23770e32f9
fix max errors for new listings with no price (#348) 2023-12-13 19:45:31 +01:00
saml33 0bce439059 fix dust withdraw amount 2023-12-04 20:21:51 +11:00
saml33 403f0bc15f display dust and allow dust withdrawl 2023-11-27 22:33:33 +11:00
saml33 c8ea057f68 fix max withdraw value for dust amounts 2023-10-09 15:29:26 +11:00
Christian Kamm 3d71e76d26 fix trigger order slider for shorts 2023-09-07 09:59:04 +02:00
Christian Kamm 1bf1514cc0 wip 2023-09-06 15:18:05 +02:00
tjs 3d8588d434 use latest prettier 2023-07-21 14:47:53 -04:00
saml33 e314901f27 fix max swap amounts for reduce only 2023-05-12 12:25:16 +10:00
tjs 6c66cdbf20 add try catch in useTokenMax 2023-03-12 16:01:33 -04:00
tjs d565b1ea46 add types 2023-02-13 22:35:07 -05:00
saml33 f4209c3f88 merge main 2023-02-10 21:38:05 +11:00
saml33 73162e5544 fix negative swap max 2023-02-10 10:26:28 +11:00
saml33 5388035d33 handle swap reduce only 2023-02-09 11:31:53 +11:00
tjs 17b6861d88 check min borrow amount even when not using margin 2023-01-29 23:02:16 -05:00
tjs 8a04998374 show slippage msg in notifications 2023-01-05 19:44:37 -05:00
tjs 564c4bdee8 max token withdraw shouldnt use maxborrow if its a trustless token 2023-01-05 15:35:45 -05:00
tjs f9a4652dae fixes for max source amount in swap 2022-12-16 17:12:07 -05:00
tjs 5d034df3b5 better rounding for vault balance in tokenMax 2022-12-16 12:32:01 -05:00
tjs 49001d5ae8 handle updating price for tradeForm when on limit vs market order 2022-12-14 15:54:30 -05:00
tjs af27b339aa fix call to getmaxsourceuifortokenswap 2022-12-14 11:20:36 -05:00
tjs cb3ad6e460 add console log for maxSwapForUI 2022-12-14 11:11:47 -05:00
tjs 4eb21b4b41 update usetokenmax price 2022-12-13 00:38:12 -05:00
tjs 9e22329cf8 wip: debug errors 2022-12-12 02:20:28 -05:00
saml33 313a47e050 fix token max vault rounding 2022-11-22 15:40:55 +11:00
tjs cb0b90dfb5 refactor to use mango group hook 2022-11-20 15:32:38 -05:00
tjs 561eba493b fix all eslint errors 2022-11-19 14:20:36 -05:00
tjs 5727d0bc7f add a useMangoAccount hook 2022-11-18 12:09:39 -05:00
tjs 9269b4e18f fix yarn.lock, undo next upgrade 2022-10-28 15:24:05 -04:00
tjs 7ad023653f fix bug with modals 2022-10-07 18:27:36 -04:00
tjs 661fed8ce9 refactor useTokenMax to fix regressions 2022-09-22 17:35:07 -04:00
saml33 d17874f87f merge main 2022-09-20 14:55:04 +10:00
saml33 94b4dfe9a0 add function for token max 2022-09-15 10:02:16 +10:00
tjs c2f1f02829 use alias imports 2022-09-12 12:04:20 -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 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
tjs a4cfafb484 fix handling small decimals in swap form input 2022-08-31 11:54:43 -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 d0875ba345 fix tokenbalance for max calc 2022-08-27 01:23:08 -04:00