Maximilian Schneider
6fec35a012
move native sol to top of deposit list
2021-06-05 16:46:18 -04:00
Tyler Shipe
e5167bdcbc
fix apy and apr
2021-06-05 15:53:19 -04:00
Maximilian Schneider
d964cb0312
allow deposit from already wrapped SOL
2021-06-05 15:48:19 -04:00
Tyler Shipe
c86ee0157f
add 20 sec interval to oracle price updates
2021-06-05 15:38:17 -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
74c9016374
use latest 5 token mango client
2021-06-05 13:06:56 -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
Tyler Shipe
9e5a844f5d
latest mango-client
2021-06-05 11:03:25 -04:00
Tyler Shipe
081c846caa
update to latest 5_token client-ts version
2021-06-05 10:47:24 -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
bf0600ad6e
close wrapped SOL account on b&w
2021-06-04 00:33:57 -04:00
Maximilian Schneider
ecd99b4c62
do not require excessive SOL on withdraw
2021-06-04 00:17:56 -04:00
Tyler Shipe
ff0aeb5ee0
upgrade yarn.lock
2021-06-01 18:13:18 -04:00
Tyler Shipe
ab277fee2b
yarn lint and yarn format
2021-05-31 16:30:59 -04:00
Tyler Shipe
a2163f7cf4
use web3.js v0.95.0
2021-05-31 16:23:48 -04:00
dd
572f9597f1
updating mango client in yarn lock
2021-05-31 14:08:55 -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
a9ad62ee83
use the 5_token USDC group ( #16 )
2021-05-26 16:35:45 +03:00
saml33
9755666be9
remove scrollbar from balanceinfo panel ( #13 )
2021-05-22 21:51:15 +03:00
Tyler Shipe
5524ff1ff6
Merge remote-tracking branch 'origin/small_ui_fixes_for_5_tokens' into development
2021-05-22 00:18:01 -04: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
eb73a8f4d5
Use another client branch
2021-05-20 22:39:14 +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
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