Tyler Shipe
325b6c2424
fix the max withdraw modal to use client fn
2021-08-24 10:15:12 -04:00
Tyler Shipe
1e45e2cc03
use maxWithBorrows amount if maxWithoutBorrows is greater
2021-08-23 14:36:02 -04:00
Tyler Shipe
5e51ac46c3
add leverage to acct modal; fix rounding in withdraw modal
2021-08-23 14:18:34 -04:00
Tyler Shipe
dd074685e3
fix max withdraw with no borrows
2021-08-17 15:52:33 -04:00
Tyler Shipe
7cf80b566c
remove blur from modals
2021-08-16 13:59:44 -04:00
Tyler Shipe
5d8bf9969e
Finish max withdrawal simulation
2021-08-15 18:36:06 -04:00
saml33
3c64b9f059
remove blur on success action
2021-08-02 15:14:24 +10:00
saml33
1f82731a85
add unsettled balances ui
2021-08-01 22:48:15 +10:00
Tyler Shipe
f5e97aa7dc
use liab weight in max borrow
2021-07-27 13:05:05 -04:00
Tyler Shipe
be031cc0fe
consistency with user info tabs
2021-07-24 16:15:27 -04:00
Tyler Shipe
dda50c8aee
update to latest client; use toFixed for I80F48
2021-07-12 12:55:16 -04:00
Tyler Shipe
53163e07a8
add more account values
2021-07-07 00:34:21 -04:00
Tyler Shipe
54b6230314
fill in account asset values
2021-07-06 20:13:17 -04:00
Tyler Shipe
a0ba6f44e8
update notifications, wire up account change modal
2021-07-06 18:04:20 -04:00
Tyler Shipe
c5ce8e965f
render the accounts page
2021-07-05 14:21:57 -04:00
Tyler Shipe
c355f7132e
add Borrows page and health ratio
2021-07-05 11:03:57 -04:00
Tyler Shipe
671e50eba0
wip: max borrow calculations
2021-07-01 13:35:47 -04:00
Tyler Shipe
1b02a53314
update naming to match client
2021-06-23 11:32:33 -04:00
Maximilian Schneider
275fafa4c4
refactor deposit modal
2021-06-17 14:03:47 -04:00
saml33
e14350e624
disable 0 bal assets for deposits and fix withdraw validations ( #25 )
2021-06-11 14:23:51 -04:00
Maximilian Schneider
7fb654f2c9
withdraw modal shows now more decimals
2021-06-05 18:01:01 -04:00
Tyler Shipe
a1d572048b
removed leverage indicator on deposit and withdraw modals
2021-06-05 14:01:00 -04:00
Tyler Shipe
39a9507756
default borrows to off when withdrawing
2021-06-05 13:05:40 -04:00
saml33
3b5f22b815
User account page ( #22 )
...
* layout, overview, start on assets, borrows and open orders
* trade history, sortable data hook for tables, borrow page
* handle deposit and withdraw buttons
* borrow modal ui and integration + settle borrow for individual assets
* in orders balance to asset table and totals, responsive css, new connected wallet button + small tweaks
* account switch/creation flow
* accounts modal, update to usebalances hook
* handle settle, deposit before settle, save last account
* disable borrow/withdraw button when no account
2021-06-05 10:11:44 -04:00
saml33
8865278212
remove placement prop ( #20 )
2021-05-31 14:41:48 +03:00
saml33
407bdd8c0d
increase dropdown box max-height ( #19 )
2021-05-27 16:44:25 +03:00
Maximilian Schneider
7558165c27
Auto create associated token account on withdrawal ( #18 )
...
* Auto create associated token account on withdrawal
* simplify withdraw and default to USDC
2021-05-27 16:40:11 +03:00
saml33
da7af24d2b
Use asset balances instead of accounts for withdraw ( #17 )
...
* use asset balances instead of accounts for withdraw
* borrow zero balance assets
2021-05-27 14:35:15 +03:00
Ralfs
d239416364
more cleanup and add txid link when transaction error
2021-05-22 01:00:39 +03:00
Ralfs
7a110f9ea5
Fixed build bugs
2021-05-20 23:43:18 +03:00
Ralfs
a58a32e9a1
Lint fixes
2021-05-20 14:21:36 +03:00
Maximilian Schneider
935129c45e
simulate withdraw operation so we can preview equity & coll ( #10 )
...
* show margin details in withdraw ui
Co-authored-by: saml33 <slam.uke@gmail.com>
2021-05-18 19:27:09 +03:00
saml33
806b527502
Bring alert details and notifications into the UI ( #5 )
...
* hook to get alerts, add triggered alerts to alerts list
* alerts page, count unseen alerts, clear alerts from nav view
* consolidate components, add custom value to alert modal dropdown, sort margin accounts alphanumerically
* ring bell when count increments and ping animation on count
* create/fetch alerts from store, filter by account, populate modal state from triggered alert
* fix alert sorting
* enable MA selection also for re-activate
2021-05-07 22:41:26 +03:00
saml33
23220e3555
trigger set alerts modal from margininfo
2021-05-02 00:02:21 +10:00
Tyler Shipe
a0ef8f1e8e
better handling of rounding issues in borrow and withdraw
2021-04-29 17:27:13 -04:00
Tyler Shipe
6fbd949b9f
Use the vip-api endpoint
2021-04-29 13:42:53 -04:00
Tyler Shipe
64437f6a85
remove percent reduction in borrow and withdraw transaction
2021-04-28 23:15:42 -04:00
Tyler Shipe
e3986a26a0
pass in a PublicKey instead of the string
2021-04-25 13:23:06 -04:00
saml33
fc751fe00c
More timeframes to charts and chart theming ( #2 )
...
* topbar action tooltips. flip refresh icon. max with borrow button
* more timeframes and chart theming
* fix asymmetric header button
2021-04-25 01:02:13 +03:00
Tyler Shipe
7d26ec8fac
only borrow if toggle is true in modal
2021-04-22 13:31:09 -04:00
Tyler Shipe
adad2a967f
remove unused functions in withdraw modal
2021-04-22 11:12:23 -04:00
saml33
a749d9c531
add borrow details to withdraw modal
2021-04-22 20:31:55 +10:00
saml33
9a3ef99b3d
include borrow switch and styling
2021-04-21 10:39:19 +10:00
Tyler Shipe
3db7ed86a5
extract borrowAndWithdraw from ui to mango-client pkg
2021-04-20 14:14:45 -04:00
Tyler Shipe
349966cb7e
upgrade to mango-client 0.1.12 and add refresh button to account select
2021-04-20 11:46:56 -04:00
Tyler Shipe
74d9f70dbf
implement withdraw max with borrow
2021-04-20 10:09:25 -04:00
Tyler Shipe
a11758784c
wip
2021-04-19 12:54:35 -04:00
Tyler Shipe
61a920f017
hide some ui changes so we can deploy
2021-04-19 12:15:49 -04:00
saml33
59a840f8c5
modal, tradeform, input styling updates
2021-04-18 23:45:11 +10:00
Tyler Shipe
22435a7185
Fix deposit and withdraw modals
2021-04-16 17:09:17 -04:00