Ralfs
a58a32e9a1
Lint fixes
2021-05-20 14:21:36 +03:00
Ralfs
cfac0b91f8
Initial support for 5 tokens in mango group
2021-05-20 14:20:39 +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
Tyler
058abf8fa2
Remove todo from readme
2021-05-09 23:45:31 -04: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
a38752d792
fix to set initialLoad state when loading margin account
2021-05-04 22:20:52 -04:00
Tyler Shipe
4f7e1b4990
format srm balances correctly when multiple mango srm accounts exist
2021-05-04 20:00:37 -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
Tyler Shipe
f827718f50
update nodes
...
tweak borrow and withdraw fn to account for rounding errors
2021-05-04 15:44:53 -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
90d219e83c
hide select if no margin accounts
2021-05-02 00:51:55 -04: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
a003f8975f
bump mango client version
2021-04-29 17:48:54 -04:00
Tyler Shipe
a0ef8f1e8e
better handling of rounding issues in borrow and withdraw
2021-04-29 17:27:13 -04:00
Tyler Shipe
567e38cbcc
use uiToNative
2021-04-29 16:36:54 -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
Tyler Shipe
4a091882a9
disable study templates
2021-04-29 11:09:35 -04:00
Tyler Shipe
3a5040f515
reduce call to rpc endpoint
2021-04-29 11:08:36 -04:00
Tyler Shipe
3ff07f452e
combine market state keys
2021-04-29 10:38:28 -04:00
Tyler Shipe
64437f6a85
remove percent reduction in borrow and withdraw transaction
2021-04-28 23:15:42 -04:00
Tyler Shipe
825d586631
use solana api endpoint
2021-04-28 16:29:31 -04:00
Tyler Shipe
c90ffc6447
Merge remote-tracking branch 'origin/tradingview-toolbar-button-fix' into main
2021-04-27 20:58:08 -04:00
saml33
7c4513575e
fixed active states for toggle buttons in tradingview left toolbar
2021-04-28 10:46:06 +10:00
Tyler Shipe
d38a20cb1d
Merge remote-tracking branch 'origin/mango_group_interval' into main
2021-04-26 15:31:30 -04:00
Tyler Shipe
11b665bc74
use projectserum node
2021-04-26 15:30:14 -04:00
dd
8f07e6b8dd
Put fetchMangoGroup on a 20s interval so interest rate changes are reflected in Margin Account summary
2021-04-26 15:17:57 -04:00
Tyler Shipe
c480e2d362
bump mango-client version
2021-04-26 15:12:11 -04:00
Tyler Shipe
af33279f42
show to correct account address in deposit modal
2021-04-26 13:09:03 -04:00
Tyler Shipe
f76c4e3918
handle devnet tokens
2021-04-26 12:59:01 -04:00
Tyler Shipe
51e6d4c1cc
remove loading state and add .flash class to visualize book updates
2021-04-26 11:20:55 -04:00
saml33
dbf6e7087f
layout toggle for orderbook
2021-04-26 22:53:27 +10:00
Tyler Shipe
36b3b62a95
refresh selected margin account
2021-04-26 01:47:45 -04:00
Tyler Shipe
f18d61b216
add margin account selector
2021-04-26 01:26:12 -04:00
Tyler Shipe
16003fd8cf
fix recent trades and add update delays after srm deposit and withdraw
2021-04-25 18:57:16 -04:00
Tyler Shipe
f95988c88b
fix safari button styling
2021-04-25 17:22:14 -04:00
Tyler Shipe
e3986a26a0
pass in a PublicKey instead of the string
2021-04-25 13:23:06 -04:00
Tyler Shipe
526236e46f
fix console error with localstorage hook
2021-04-25 13:08:11 -04:00