tjs
4517d756f5
phantom adapter
2023-02-16 13:06:57 -05:00
Maximilian Schneider
1b7c251870
upgrade project dependencies web3 & next
2022-07-30 17:25:06 +02:00
Maximilian Schneider
0bd925ee6d
switch v2 to new candle api
2021-12-27 20:20:48 -07:00
Maximilian Schneider
c4705937dc
compat w/ solana 1.7
2021-10-07 18:28:47 +01:00
Tyler Shipe
6f491f28d3
do settle funds before settle borrows in settleAll
2021-08-06 14:08:04 -04:00
Tyler Shipe
43ca4871f8
send two transactions when settling all in ui
2021-08-05 11:58:31 -04:00
dboures
27c6c8b36d
Add account names ( #44 )
...
* handle account names on account page
* handle name in new account form
* handle marginbalances, responsive
* Add account name uses smart contract
* remove localStorage account name references
* adjust name validation message and label name as public
* new accounts are initialized with names
Co-authored-by: saml33 <slam.uke@gmail.com>
Co-authored-by: Tyler Shipe <tjshipe@gmail.com>
2021-07-08 21:35:14 +02:00
saml33
cfc09fb3c4
User account history ( #33 )
...
* deposit/withdraw table
* liquidations table and details
* connect to api data
* move history data to store
* nicks feedback on liquidations
* update history endpoint url
* update history when account changes
2021-06-22 19:50:40 +02:00
dd
1087750421
only send pre-settle instructon if open orders account already exists
2021-06-16 10:23:01 -04:00
dd
5b66381805
Added a settle instruction before place and settle to reduce compute by 30k
2021-06-15 15:29:10 -04:00
Tyler Shipe
82678a3447
fix net balances
2021-06-12 16:57:09 -04:00
dd
c3fedf9f80
fixed placeAndSettle to round properly
2021-06-12 15:49:04 -04:00
Tyler Shipe
4476a2254e
rebate gui hoster fees to users
2021-06-12 13:46:06 -04:00
Maximilian Schneider
75454b9af4
mango withdraw correction
2021-06-05 17:24:51 -04:00
Maximilian Schneider
6fec35a012
move native sol to top of deposit list
2021-06-05 16:46:18 -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
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
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
ab277fee2b
yarn lint and yarn format
2021-05-31 16:30:59 -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
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
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
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
Tyler Shipe
f827718f50
update nodes
...
tweak borrow and withdraw fn to account for rounding errors
2021-05-04 15:44:53 -04: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
567e38cbcc
use uiToNative
2021-04-29 16:36:54 -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
f76c4e3918
handle devnet tokens
2021-04-26 12:59:01 -04:00
Tyler Shipe
861eb34a76
add settle borrow instruction to deposit transaction
2021-04-22 16:20:57 -04:00
Tyler Shipe
3cb5f7aadb
clearer instruction var names
2021-04-22 10:37:06 -04:00
Tyler Shipe
7c4e913b50
use separate connections for websockets and one off transactions
2021-04-20 17:00:45 -04:00
Tyler Shipe
c1882c49f1
add settle borrows instruction to borrowAndWithdraw
2021-04-20 16:24:17 -04: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
22435a7185
Fix deposit and withdraw modals
2021-04-16 17:09:17 -04:00
Tyler Shipe
c616c4d3f4
update wallet ext notifications
2021-04-16 15:47:37 -04:00
Tyler Shipe
da3072b867
support multiple wallets
2021-04-14 01:23:50 -04:00
Tyler Shipe
062ac4105a
all the fixes
2021-04-13 19:41:04 -04:00
Tyler Shipe
9e67c147bf
fee discount tables and more theming
2021-04-12 23:39:08 -04:00
Tyler Shipe
6605cbdd48
convert trade form inputs to tailwind and continue theming
2021-04-12 16:01:55 -04:00