Tyler Shipe
8ac61f4b3e
yarn format and remove console.log
2021-09-21 16:19:01 -04:00
Maximilian Schneider
8abbce0238
[wip] add trigger order components
2021-09-21 20:04:33 +02:00
Tyler Shipe
5bb39c4bcb
use endpoint env var
2021-09-20 19:50:36 -04:00
Tyler Shipe
f1d59d32e1
use placeSpotOrder2 and add reduce only orders for perps
2021-09-15 20:25:23 -04:00
Tyler Shipe
824e8cc7ae
fix to use rpc url from localstorage on first connection
2021-09-14 12:27:38 -04:00
Tyler Shipe
c1269298b9
use custom endpoint url
2021-09-13 17:14:59 -04:00
Tyler Shipe
732d854c36
add manual refresh to ui
2021-09-09 20:23:02 -04:00
Tyler Shipe
33070aef91
reduce getProgramAccount calls
2021-09-07 19:31:02 -04:00
Tyler Shipe
e5b67857af
retry transaction more frequently; use tx callback for notifications
2021-09-04 17:59:53 -04:00
Tyler Shipe
d522dfaa0f
use latest client for faster mango account loading
2021-09-02 10:39:12 -04:00
Tyler Shipe
4f20fc6542
use client reloadMangoAccount
2021-08-31 13:47:03 -04:00
Tyler Shipe
63e151f516
prevent useOrderbook from updating during market change
...
fixes white screen error
2021-08-27 20:15:25 -04:00
Tyler Shipe
2ecd1b2122
perp market close position button
2021-08-26 11:58:13 -04:00
Tyler Shipe
44bd6dc5a7
use latest mango-client
2021-08-25 13:12:43 -04:00
Tyler Shipe
38ab3f9914
refresh mango acct more frequently; add error notification on failure
2021-08-25 11:50:39 -04:00
Tyler Shipe
66bf66fc7c
remove unused utils fns
2021-08-25 10:23:30 -04:00
Tyler Shipe
5fdc4437d4
update orderbooks faster
2021-08-24 13:19:34 -04:00
Tyler Shipe
1c0962031b
add notification when sol balance is low and when connecting wallet; disable connect button until walletadapter is loaded
2021-08-24 12:28:25 -04:00
Tyler Shipe
72eda925c1
use event-history-api for spot trades
2021-08-23 18:37:48 -04:00
Tyler Shipe
b3cc717c86
use context slot to sync orderbook updates
2021-08-23 13:12:48 -04:00
Maximilian Schneider
4fb0126d18
switch default to mainnet
2021-08-20 12:10:47 +02:00
Tyler Shipe
2948bb6ab3
add env var for group name
2021-08-19 14:00:32 -04:00
Tyler Shipe
b7a6a5086d
use latest client
2021-08-19 13:49:44 -04:00
dd
800bea3306
added in self cranking for perp orders
2021-08-17 16:36:31 -04:00
Tyler Shipe
65494917c1
add back account naming; await root bank loading
2021-08-17 13:47:52 -04:00
Tyler Shipe
a219d7de12
use api.devenet.solana
2021-08-17 13:35:30 -04:00
Tyler Shipe
afb09d828b
add srm dex fee discount table
2021-08-17 13:14:39 -04:00
Tyler Shipe
5ff5fb2914
use latest client
2021-08-16 20:05:57 -04:00
Tyler Shipe
7cf80b566c
remove blur from modals
2021-08-16 13:59:44 -04:00
Tyler Shipe
b2f6eece1c
fetch perp trade history from db
2021-08-13 11:05:49 -04:00
Tyler Shipe
0e78061ceb
use new group
2021-08-12 12:09:45 -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
02088a5d1c
wire up redeem mngo to perp position table
2021-08-04 11:42:56 -04:00
Tyler Shipe
65eea96aa8
add fetchTradeHistory fn
2021-08-03 13:59:16 -04:00
saml33
1f82731a85
add unsettled balances ui
2021-08-01 22:48:15 +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
1f73cfbd7a
merge
2021-07-26 09:44:21 -04:00
Tyler Shipe
f79bc1639f
remove alerts from v3
2021-07-23 13:14:18 -04:00
Tyler Shipe
9b110bc507
refresh open orders after canceling a differentmarket
2021-07-19 20:42:55 -04:00
Tyler Shipe
c330b895a4
latest client
2021-07-19 18:06:09 -04:00
Tyler Shipe
f26ec2165c
remove root bank rpc calls
2021-07-19 17:28:30 -04:00
Tyler Shipe
1a98657c7f
simplify margin balances on trade page
2021-07-19 13:13:03 -04:00
Tyler Shipe
9105a06960
use latest client and group
2021-07-17 07:57:22 -04:00
Tyler Shipe
f5ec9c4f23
use latest client and new group
2021-07-16 14:31:58 -04:00
Tyler Shipe
61feb5333f
use latest group
2021-07-15 15:56:43 -04:00
Tyler Shipe
7d5ec35874
use latest group
2021-07-12 21:50:09 -04:00
Tyler Shipe
0c82280855
fix trade history and refresh data bugs
2021-07-07 17:18:54 -04:00
Tyler Shipe
4c1f3d3283
use latest mango group
2021-07-07 11:20:57 -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
c355f7132e
add Borrows page and health ratio
2021-07-05 11:03:57 -04:00
Tyler Shipe
1c2d5dc60d
fix default mango group name
2021-06-30 13:50:46 -04:00
Tyler Shipe
f44171ce5d
use latest mango group
2021-06-30 13:32:40 -04:00
Tyler Shipe
619295d2e0
parsed trade history for perps
2021-06-24 16:57:11 -04:00
Tyler Shipe
cb94124124
use latest group
2021-06-23 19:30:04 -04:00
dd
53949ded01
changed default mango group name
2021-06-23 18:00:17 -04:00
Tyler Shipe
1b02a53314
update naming to match client
2021-06-23 11:32:33 -04:00
Tyler Shipe
2a1e13a1b0
show current market event queue fills
2021-06-21 15:02:12 -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
Tyler Shipe
3f3ffb1a37
spot market orderbook on websockets
2021-06-18 19:57:02 -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
60665d19fe
cleanup orderbook types
2021-06-18 11:29:52 -04:00
Tyler Shipe
370d25f7bd
fix init and deposit; fix disconnect bug
2021-06-17 21:10:47 -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
Maximilian Schneider
8aed0f0840
expose market config in store and switch between spot & perp
2021-06-17 01:38:49 -04:00
Tyler Shipe
4ef75d0b39
add root banks key to useMangoStore
2021-06-16 21:55:46 -04:00
Tyler Shipe
cb331fb2c7
comment out stuff in the ui so it works
2021-06-16 21:50:16 -04:00
Tyler Shipe
48374fa3fb
update devnet ws url
2021-06-12 15:10:56 -04:00
Tyler Shipe
147c702f3e
update devnet url
2021-06-11 10:42:08 -04:00
Tyler Shipe
330ef82a32
fix default margin account select
2021-06-07 16:55:10 -04:00
Tyler Shipe
b67f676383
add useOraclePrice hook and show in market header
2021-06-05 14:40:56 -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
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
Ralfs
a9ad62ee83
use the 5_token USDC group ( #16 )
2021-05-26 16:35:45 +03:00
Ralfs
a00adc54d6
Support wrapped SOL
2021-05-20 21:51:00 +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
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
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
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
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
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
825d586631
use solana api endpoint
2021-04-28 16:29:31 -04:00
Tyler Shipe
11b665bc74
use projectserum node
2021-04-26 15:30:14 -04:00
Tyler Shipe
36b3b62a95
refresh selected margin account
2021-04-26 01:47:45 -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