Tyler Shipe
56d9eb00ab
fix perp position table
2021-08-19 20:14:04 -04:00
Tyler Shipe
8103a3cc85
disable leverage slider
2021-08-19 17:46:31 -04:00
saml33
afaa6b85ec
consolidate new account flow to one step
2021-08-19 16:15:25 +10:00
Tyler Shipe
56b590589e
fix new sub account modal
2021-08-18 21:05:16 -04:00
Tyler Shipe
2036b77de3
pass in decimal count to leverage slider
2021-08-18 20:37:50 -04:00
Tyler Shipe
1c64a8a252
show position closing in leverage slider
2021-08-18 20:33:45 -04:00
Tyler Shipe
8b310acc9b
rename marginDeposits to deposits
2021-08-18 16:43:51 -04:00
Tyler Shipe
9bfa880be0
add padding to slider
2021-08-18 16:31:22 -04:00
Tyler Shipe
27760cd7c3
tweak slider styling
2021-08-18 16:29:39 -04:00
Tyler Shipe
0af7a8b8ee
more trade form improvements
2021-08-18 16:15:17 -04:00
Tyler Shipe
86ea7afcff
add leverage slider
2021-08-18 14:23:12 -04:00
Tyler Shipe
2105827769
reduce sleep after placing a trade
2021-08-18 11:01:42 -04:00
Tyler Shipe
c0ec5655a3
fix taker fee in trade form
2021-08-18 10:33:03 -04:00
Tyler Shipe
c598f79a4a
remove fee tab; set trade form price on page load
2021-08-18 10:24:29 -04:00
saml33
abe87fba96
switch perp/spot order in menu
2021-08-18 22:55:04 +10:00
Tyler Shipe
b3424df63e
fix account naming when new sub account
2021-08-17 17:52:53 -04:00
Tyler Shipe
deda8e58d6
position display tweaks
2021-08-17 17:01:00 -04:00
Tyler Shipe
a7fc2c6c4d
refactor
2021-08-17 16:50:16 -04:00
Tyler Shipe
f7aa5b6bed
fix lint errors
2021-08-17 16:48:42 -04:00
dd
800bea3306
added in self cranking for perp orders
2021-08-17 16:36:31 -04:00
Tyler Shipe
5c44d1fd34
fix when creating new mango accoung
2021-08-17 16:09:27 -04:00
Tyler Shipe
dd074685e3
fix max withdraw with no borrows
2021-08-17 15:52:33 -04:00
Tyler Shipe
46d909ef6d
add market fees to trade form box
2021-08-17 15:37:07 -04:00
Tyler Shipe
7d02331953
fetch mango account state if place trade fails
2021-08-17 14:05:25 -04:00
Tyler Shipe
65494917c1
add back account naming; await root bank loading
2021-08-17 13:47:52 -04:00
Tyler Shipe
b8c203de74
move deposit withdraw button higher
2021-08-17 13:32:12 -04:00
Tyler Shipe
afb09d828b
add srm dex fee discount table
2021-08-17 13:14:39 -04:00
Tyler Shipe
8da8d0d973
handle when mango group isn't loaded
2021-08-17 11:10:32 -04:00
Tyler Shipe
6d5dbd8265
high side bade if no perp position
2021-08-16 18:40:56 -04:00
Tyler Shipe
17d73fc3cf
more frequent mango acct updates
2021-08-16 18:10:06 -04:00
Tyler Shipe
f44acbab27
handle large health ratio number
2021-08-16 17:35:40 -04:00
Tyler Shipe
1917ba41c7
reuse tooltip for settle pnl
2021-08-16 17:35:16 -04:00
Tyler Shipe
55aa3782c2
open Learn link in new tab
2021-08-16 17:34:43 -04:00
Tyler Shipe
d3839c7268
open Learn link in new tab
2021-08-16 14:20:19 -04:00
Tyler Shipe
4431da772b
add price to market select
2021-08-16 14:00:04 -04:00
Tyler Shipe
7cf80b566c
remove blur from modals
2021-08-16 13:59:44 -04:00
Tyler Shipe
00a85cded2
Merge in styling changes
2021-08-16 13:00:43 -04:00
saml33
d7692f88cf
move buttons to margininfo panel
2021-08-16 23:31:25 +10:00
Tyler Shipe
5d8bf9969e
Finish max withdrawal simulation
2021-08-15 18:36:06 -04:00
Tyler Shipe
9c1f8edf20
rename positions table; fix rounding issues
2021-08-15 13:06:52 -04:00
saml33
df6e97763a
format usd values and small ui fixes
2021-08-15 23:31:59 +10:00
Tyler Shipe
935cd46345
exclude perp liqs from trade history table
2021-08-14 19:24:55 -04:00
Tyler Shipe
99a6184cb1
add leverage
2021-08-14 17:14:43 -04:00
Tyler Shipe
5f5c703c5d
wire up positions box
2021-08-14 16:05:31 -04:00
Tyler Shipe
d4927731ee
add breakeven and avg open price
2021-08-14 14:16:15 -04:00
saml33
4f4cd77c2d
fix range percentage calc
2021-08-14 20:26:54 +10:00
Tyler Shipe
2e83ad6805
tweak page container width
2021-08-13 18:14:44 -04:00
Tyler Shipe
9df9a168ec
use https
2021-08-13 18:03:21 -04:00
Tyler Shipe
682d5c2874
tweak price range decimals
2021-08-13 18:02:07 -04:00
Tyler Shipe
4b2ddf8a2b
add 24h change styling
2021-08-13 17:45:22 -04:00
Tyler Shipe
90c91e53ed
price range fixes
2021-08-13 17:30:39 -04:00
Tyler Shipe
654f9487c5
add trade history to account page
2021-08-13 16:02:12 -04:00
Tyler Shipe
7d086d2279
funding rate fixes
2021-08-13 15:10:50 -04:00
Tyler Shipe
c703e64712
fix open interest display
2021-08-13 15:06:17 -04:00
Tyler Shipe
ce03c3ad93
add funding rate and open interest
2021-08-13 14:54:09 -04:00
Tyler Shipe
10a881a811
wire up init account and deposit
2021-08-13 11:31:00 -04:00
Tyler Shipe
b2f6eece1c
fetch perp trade history from db
2021-08-13 11:05:49 -04:00
Tyler Shipe
a019c06b28
use latest client
2021-08-12 19:50:36 -04:00
Tyler Shipe
e1cb67d9fb
fix decimals for markprice display
2021-08-12 15:39:10 -04:00
Tyler Shipe
3dadee255a
remove console logs, use latest client
2021-08-06 18:49:17 -04:00
Tyler Shipe
f8ee52eb7f
fix to show trade history even when spot open order acct doesnt exist
2021-08-06 18:35:10 -04:00
Tyler Shipe
5144bdfe58
update accrued mngo in display
2021-08-05 14:55:18 -04:00
saml33
7eb63639ba
add rewards to account page
2021-08-06 00:07:29 +10:00
Tyler Shipe
46b2f7ea21
show orderbook even if only just bid or just ask exists
2021-08-04 17:54:44 -04:00
Tyler Shipe
c5866ee610
make health ratio red if init health is at or below zero
2021-08-04 17:47:05 -04:00
Tyler Shipe
c2350d3d2e
add tooltip for mngo accrued
2021-08-04 15:25:56 -04:00
Tyler Shipe
aebe1401e4
remove mngo accrued from positions table
2021-08-04 15:03:07 -04:00
Tyler Shipe
5697006f7a
wait for mango group to load in margin info
2021-08-04 14:58:10 -04:00
Tyler Shipe
ea18b4bbc2
remove redeem mngo from perp positions table
2021-08-04 14:33:13 -04:00
Tyler Shipe
96b50431ca
add redeem all mngo button
2021-08-04 14:31:32 -04:00
Tyler Shipe
85ed076fe0
sort trade history for perps
2021-08-04 12:46:14 -04:00
Tyler Shipe
02088a5d1c
wire up redeem mngo to perp position table
2021-08-04 11:42:56 -04:00
Tyler Shipe
f6bafcc6f1
fix balances
2021-08-03 19:32:24 -04:00
saml33
dd38990721
handle account change on account page
2021-08-02 22:44:58 +10: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
5703cbdc82
only show account name if it exists
2021-07-30 16:37:00 -04:00
Tyler Shipe
caa4a29b23
add account naming
2021-07-30 16:33:03 -04:00
saml33
8076afecc4
notification styling
2021-07-30 22:06:27 +10:00
saml33
5ba3bfc517
fix nested button error
2021-07-30 20:30:58 +10:00
saml33
e810c5c215
improve theme and misc styling
2021-07-29 23:19:32 +10:00
saml33
e278b9d07f
merge main
2021-07-29 12:30:25 +10:00
saml33
3ef138948f
add usdt icon
2021-07-29 09:35:20 +10:00
saml33
aab7ab0aac
add usdt mono icon
2021-07-29 09:04:55 +10:00
Tyler Shipe
2e33486dbb
use latest group
2021-07-28 19:03:21 -04:00
Tyler Shipe
f5e97aa7dc
use liab weight in max borrow
2021-07-27 13:05:05 -04:00
Tyler Shipe
bca4899e80
add market to trade history
2021-07-27 12:22:50 -04:00
Tyler Shipe
e20506bd66
fix top bar links
2021-07-27 11:41:33 -04:00
Tyler Shipe
902c24916a
prevent wrapping of change account button
2021-07-26 10:33:40 -04:00
Tyler Shipe
1f73cfbd7a
merge
2021-07-26 09:44:21 -04:00
saml33
6b43d317e5
merge main
2021-07-26 19:36:06 +10:00
saml33
d95c2843c4
add portfolio view
2021-07-25 23:54:25 +10:00
Tyler Shipe
be031cc0fe
consistency with user info tabs
2021-07-24 16:15:27 -04:00
Tyler Shipe
d35304e84f
hide perp positions table if none open
2021-07-24 14:29:24 -04:00
Tyler Shipe
267639dec5
update positions and history tables
2021-07-24 14:12:52 -04:00
saml33
e96d11e437
merge main
2021-07-24 21:56:57 +10:00
saml33
7f53a44345
add name account ui
2021-07-24 21:49:18 +10:00
Tyler Shipe
f79bc1639f
remove alerts from v3
2021-07-23 13:14:18 -04:00
Tyler Shipe
8207659bb1
cleanup
2021-07-23 13:07:31 -04:00
saml33
34a4e5ee19
fix broken icons on page load
2021-07-22 22:50:50 +10:00
saml33
a5c643ab56
improve spot balances panel layout
2021-07-22 22:25:18 +10:00
saml33
d0797bf194
connect wallet empty states
2021-07-22 21:34:03 +10:00
Tyler Shipe
784c1c9d50
format stat numbers with commas
2021-07-21 17:47:10 -04:00
Tyler Shipe
05a46993ba
add basic stats page
2021-07-21 17:26:18 -04:00
Tyler Shipe
562753f937
Merge branch 'main' into stats-page
2021-07-21 17:12:04 -04:00
Tyler Shipe
872c8c3581
add notification after settle all
2021-07-21 17:11:17 -04:00
Tyler Shipe
5c48d96775
don't try load market before group is loaded
2021-07-21 13:40:42 -04:00
Tyler Shipe
5077b5f182
add temp deposit withdraw buttons
2021-07-21 12:34:59 -04:00
Tyler Shipe
c6886c884e
fix size of margininfo pane
2021-07-21 12:07:15 -04:00
saml33
ce0eeffac0
add additional spot/perp data to trade page
2021-07-21 11:56:45 -04:00
Tyler Shipe
8beecf59f5
support sol deposits and withdrawals
2021-07-20 15:21:09 -04:00
Tyler Shipe
6e0018e251
reduce x padding
2021-07-19 23:04:26 -04:00
Tyler Shipe
9b110bc507
refresh open orders after canceling a differentmarket
2021-07-19 20:42:55 -04:00
Tyler Shipe
9a817e95f6
information density
2021-07-19 16:24:49 -04:00
Tyler Shipe
1a98657c7f
simplify margin balances on trade page
2021-07-19 13:13:03 -04:00
saml33
29079a9957
Merge pull request #5 from blockworks-foundation/market-select
...
Market select
2021-07-19 09:52:39 +10:00
Tyler Shipe
48ba367384
reset grid local storage key
2021-07-18 13:44:01 -04:00
saml33
038c7bb01b
new icons and show custom markets
2021-07-19 00:39:27 +10:00
saml33
f06d14d8f6
switch markets via base asset drop menu
2021-07-17 23:49:52 +10:00
Tyler Shipe
ee271efb7e
update positions table to use perpmarket base and quote decimals
2021-07-14 15:41:54 -04:00
Riordan Panayides
0ad4fccf20
Add basic perp stats component
2021-07-13 14:52:48 +01:00
Riordan Panayides
03349b7892
Merge remote-tracking branch 'origin/main' into stats-page
2021-07-13 14:46:09 +01:00
Tyler Shipe
dda50c8aee
update to latest client; use toFixed for I80F48
2021-07-12 12:55:16 -04:00
dd
ca85a90b38
changed Balances interface for net; use toFixedUi
2021-07-08 10:16:39 -04:00
Tyler Shipe
0c82280855
fix trade history and refresh data bugs
2021-07-07 17:18:54 -04:00
Tyler Shipe
c11890582d
handle rounding errors
2021-07-07 16:38:04 -04:00
Tyler Shipe
6606dc1bff
update tradeForm
2021-07-07 13:27:11 -04:00
Tyler Shipe
1bb61ad905
use latest PerpMarket field names
2021-07-07 11:46:25 -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
974b41f2bf
use I80F48 greater than
2021-07-05 13:18:54 -04:00
Tyler Shipe
c355f7132e
add Borrows page and health ratio
2021-07-05 11:03:57 -04:00
Riordan Panayides
aea7b84b21
WIP stats page, market header oracle price
2021-07-03 02:18:57 +01:00
Riordan Panayides
a17ec8b464
Update stats page
2021-07-02 13:07:24 +01:00
Tyler Shipe
671e50eba0
wip: max borrow calculations
2021-07-01 13:35:47 -04:00
Maximilian Schneider
f516959f51
add position table component
2021-06-28 06:44:48 +02:00
Maximilian Schneider
40c46a6b98
add Positions table just displaying raw contract data
2021-06-25 13:30:51 +02:00
Tyler Shipe
e9cdeb8a08
add settle all spot markets to balances
2021-06-24 18:15:23 -04:00
Tyler Shipe
619295d2e0
parsed trade history for perps
2021-06-24 16:57:11 -04:00
Tyler Shipe
d44e6476b4
add orderbook mid price for perp
2021-06-24 13:54:59 -04:00
Tyler Shipe
25d41f2f58
display unparsed perp history
2021-06-24 12:30:45 -04:00
Tyler Shipe
cb44650367
connect perp market to websocket for orderbook
2021-06-23 15:09:19 -04:00
saml33
af19cc7b23
toggle between spot and perp markets
2021-06-23 14:17:03 -04:00
Maximilian Schneider
778f8fac05
reenable health
2021-06-23 19:26:18 +02:00
Tyler Shipe
1b02a53314
update naming to match client
2021-06-23 11:32:33 -04:00
Tyler Shipe
0d64771bc2
show spot balances
2021-06-22 23:32:10 -04:00
Tyler Shipe
2a1e13a1b0
show current market event queue fills
2021-06-21 15:02:12 -04:00
Tyler Shipe
9ca3b8826b
handle missing wallet tokens in deposit
2021-06-21 10:36:04 -04:00
Tyler Shipe
6416e84828
fix deposit import
2021-06-21 09:54:56 -04:00
Tyler Shipe
c4ccc37110
more errors
2021-06-20 23:22:45 -04:00
Tyler Shipe
78ef4b4184
fix build errors
2021-06-20 21:21:37 -04:00
Tyler Shipe
8d4dabb6d0
add spot trade history fills and raw health score
2021-06-20 15:11:36 -04:00
Maximilian Schneider
107c2e8ed3
add cancel perp order call and remove unused imports
2021-06-19 00:26:47 -04:00
Maximilian Schneider
2c487348f6
open orders are kinda adapted
2021-06-18 23:07:57 -04:00
Maximilian Schneider
bdbc9f2822
fix display issue in order book flip
2021-06-18 19:23:09 -04:00
Maximilian Schneider
1fe235df8d
fix trading view crash loop
2021-06-18 19:13:17 -04:00
Maximilian Schneider
e256ed4754
small fixes
2021-06-18 18:57:13 -04:00
Maximilian Schneider
ccad1015f3
base & quote symbol
2021-06-18 18:53:24 -04:00
Maximilian Schneider
dcbb37fbb7
simple json stuff
2021-06-18 18:51:34 -04:00
Tyler Shipe
054cc5c82e
remove console logs and fetch all markets
2021-06-18 18:38:09 -04:00
Tyler Shipe
d3af1ac5b1
show open orders and wire up cancel order
2021-06-18 16:46:20 -04:00
Maximilian Schneider
4d7b02e6a0
place perp order works now
2021-06-18 14:07:07 -04:00
dd
62bc1b536f
Fixed minOrderSize and tickSize in TradeForm
2021-06-18 13:50:25 -04:00
Tyler Shipe
6e29de28ef
fix deposit modal
2021-06-18 12:49:16 -04:00
Maximilian Schneider
60665d19fe
cleanup orderbook types
2021-06-18 11:29:52 -04:00
Tyler Shipe
3df663614a
use imported mangoClient in trade form; display userInfo component
2021-06-18 11:17:49 -04:00
Tyler Shipe
370d25f7bd
fix init and deposit; fix disconnect bug
2021-06-17 21:10:47 -04:00
Maximilian Schneider
c610da11aa
reenable trade form
2021-06-17 20:32:45 -04:00
Maximilian Schneider
bc773ff665
ignore volume loading issue
2021-06-17 20:32:14 -04:00
Tyler Shipe
a16608c95d
implement deposit
2021-06-17 18:39:16 -04:00
Maximilian Schneider
12b69398d2
make bids & asks invariant between perp & spot, also reenable trade form
2021-06-17 18:37:03 -04:00
Maximilian Schneider
4d3dae3b1a
load order books both from perp & spot
2021-06-17 17:07:10 -04:00
Maximilian Schneider
2307246dd0
fix deposit modal rendering
2021-06-17 14:42:39 -04:00
Tyler Shipe
c6dab39463
add interest rates
2021-06-17 14:40:44 -04:00
Maximilian Schneider
275fafa4c4
refactor deposit modal
2021-06-17 14:03:47 -04:00
saml33
90cbbf8531
fix data passed to borrow chart
2021-06-17 20:14:11 +10:00
Maximilian Schneider
8aed0f0840
expose market config in store and switch between spot & perp
2021-06-17 01:38:49 -04:00
saml33
2d7783ba98
Merge branch 'stats-page' of github.com:blockworks-foundation/mango-ui-v2 into stats-page
2021-06-17 14:26:08 +10:00
saml33
5a30a1314b
use current price if no match from prices api
2021-06-17 14:19:35 +10:00
Tyler Shipe
cb331fb2c7
comment out stuff in the ui so it works
2021-06-16 21:50:16 -04:00
Maximilian Schneider
6c4507cfc6
fix lint errors
2021-06-16 12:17:51 -04:00
Maximilian Schneider
d31eb4b119
Merge remote-tracking branch 'origin/main' into stats-page
2021-06-16 12:07:13 -04:00
saml33
107d9cb883
use historic prices for total deposits/borrows
2021-06-15 20:24:40 +10:00
Maximilian Schneider
3dbbe87ded
fix data issues when switching markets ( #31 )
2021-06-12 22:03:05 -04:00
Maximilian Schneider
3b66cf9090
fix volume sometimes null ( #30 )
2021-06-12 20:04:13 -04:00
Tyler Shipe
4476a2254e
rebate gui hoster fees to users
2021-06-12 13:46:06 -04:00
saml33
e14350e624
disable 0 bal assets for deposits and fix withdraw validations ( #25 )
2021-06-11 14:23:51 -04:00
saml33
e5dc75456e
round large numbers
2021-06-11 23:39:44 +10:00
saml33
0ec22513d6
reduce icon size to match trade page
2021-06-11 19:54:49 +10:00
saml33
c1638183db
merge main
2021-06-11 11:12:35 +10:00
saml33
c69045f652
responsive and bar chart
2021-06-11 11:07:32 +10:00
saml33
a3d74a5488
total deposit/borrow value charts, new chart styles
2021-06-11 00:09:25 +10:00
ImpossiblePairs
2f066cb92c
Updated TradeForm.tsx UI Bugs
...
Added handling of USDT orders below minimum size (e.g. $1), removed ability to execute trades at half minimum order size due to rounding, and allowing user input leading with numerical input that is not strictly a number (e.g. decimal point).
2021-06-09 15:30:53 -07:00
Tyler Shipe
956664b91f
show accounts in select when length is greater than two
2021-06-09 12:28:33 -04:00
Tyler Shipe
f3a86a5a0c
combine quote currency balances now that we're showing all markets
2021-06-09 11:52:32 -04:00
Tyler Shipe
e68211a56b
adding settle all button temporarily to test issue in ui
2021-06-08 18:49:53 -04:00
Tyler Shipe
15bb7c56d1
fix link
2021-06-08 11:04:56 -04:00
Tyler Shipe
1afe59e4e0
update modal with sol srm info
2021-06-08 10:59:39 -04:00
Tyler Shipe
9e16290300
fix NaN on account change modal
2021-06-07 19:33:59 -04:00
Tyler Shipe
31dc68d120
add back fee discounts table
2021-06-07 18:06:00 -04:00
Tyler Shipe
485718cd1b
fix borrow modal
2021-06-07 17:56:56 -04:00
Tyler Shipe
330ef82a32
fix default margin account select
2021-06-07 16:55:10 -04:00
Tyler Shipe
aa5355e70c
fix pnl on accounts page
2021-06-07 13:28:54 -04:00
Tyler Shipe
3a57263452
fix pnl
2021-06-07 13:01:41 -04:00
Tyler Shipe
c44105e4cd
fetch trade history when switching accounts
2021-06-07 13:00:00 -04:00
Tyler Shipe
448d6e0bc3
fix leverage colors
2021-06-05 18:10:34 -04:00
Maximilian Schneider
7fb654f2c9
withdraw modal shows now more decimals
2021-06-05 18:01:01 -04:00
Tyler Shipe
e5167bdcbc
fix apy and apr
2021-06-05 15:53:19 -04:00
Tyler Shipe
b67f676383
add useOraclePrice hook and show in market header
2021-06-05 14:40:56 -04:00
Tyler Shipe
c90efd5b63
simplify utc dates in market header
2021-06-05 14:40:07 -04:00
Tyler Shipe
a1d572048b
removed leverage indicator on deposit and withdraw modals
2021-06-05 14:01:00 -04:00
Maximilian Schneider
e346eb2472
remove drop down from top bar
2021-06-05 13:31:06 -04:00
Tyler Shipe
39a9507756
default borrows to off when withdrawing
2021-06-05 13:05:40 -04:00
Tyler Shipe
eac4adc18f
add main action buttons below balances
2021-06-05 12:14:34 -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
Tyler Shipe
ab277fee2b
yarn lint and yarn format
2021-05-31 16:30:59 -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
saml33
9755666be9
remove scrollbar from balanceinfo panel ( #13 )
2021-05-22 21:51:15 +03:00
Ralfs
64d35f9a0a
fix wront quoteAmount in tradeForm
2021-05-22 01:26:31 +03:00
Ralfs
d239416364
more cleanup and add txid link when transaction error
2021-05-22 01:00:39 +03:00
Ralfs
329a2cd302
removed fee discount tab and sol retain deposit
2021-05-21 23:58:01 +03:00
Ralfs
7a110f9ea5
Fixed build bugs
2021-05-20 23:43:18 +03:00
Ralfs
a00adc54d6
Support wrapped SOL
2021-05-20 21:51:00 +03:00
Ralfs
021e2988bb
Added icon and fixed a check for token length
2021-05-20 14:35:35 +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
8aa8c5929b
improve connect wallet button styles ( #11 )
2021-05-18 13:57:10 +03:00
saml33
a49f7e2fe9
add market data header to trade page ( #9 )
...
* add market data header to trade page
2021-05-18 08:33:04 +03:00
saml33
8e4bd926a7
improve alert modal buttons and fix alerts not loading on connect wallet ( #8 )
2021-05-10 23:32:21 +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
Tyler Shipe
3a3682c085
Disable srm deposit button if srm wallet account doesn't exist
2021-05-05 12:43:13 -04:00
Tyler Shipe
1ebae0eb07
show srm deposit and withdraw when margin acc doesnt exist
2021-05-04 19:24:43 -04:00
Tyler Shipe
02b2fed058
better handle latency from wallet providers
2021-05-04 19:19:48 -04:00
Maximilian Schneider
260715cc6f
prevent react list key error on margin info render
2021-05-02 23:36:13 +03:00
Maximilian Schneider
9c0c94eb4b
fix broken margin account selector invocation
2021-05-02 15:58:12 +03:00
Tyler Shipe
3de58a6f31
Merge remote-tracking branch 'origin/alerts-modal' into main
2021-05-02 00:39:20 -04:00
Tyler Shipe
9cc7eaf559
increase grid columns
2021-05-02 00:33:27 -04:00
saml33
fd7e5df1f6
add ratio alert presets and empty state for no margin accounts
2021-05-02 14:22:32 +10:00
Tyler Shipe
f61c9b5fa8
Merge remote-tracking branch 'origin/alerts-modal' into main
2021-05-01 18:09:44 -04:00
Tyler Shipe
9755aef1be
load orderbook for market
2021-05-01 16:30:05 -04:00
saml33
23220e3555
trigger set alerts modal from margininfo
2021-05-02 00:02:21 +10:00
Tyler Shipe
9dc5b1479b
update labels on interest
2021-04-29 18:14:19 -04:00
Tyler Shipe
a0ef8f1e8e
better handling of rounding issues in borrow and withdraw
2021-04-29 17:27:13 -04:00
Tyler Shipe
fe5172803a
handle missing tokens for srm
2021-04-29 16:28:55 -04:00
Tyler Shipe
6fbd949b9f
Use the vip-api endpoint
2021-04-29 13:42:53 -04:00