saml33
2942b7ad7d
allow withdraw from accounts other than selected account
2022-06-22 15:42:20 +10:00
tjs
e9b0e1f935
check for undefined token index on withdraw
2022-04-05 12:36:55 -04:00
tjs
819c47051e
fix deposit func type to support deposits when mango acct doesnt exist
2022-04-05 10:56:46 -04:00
tjs
4250d403d0
handle deposit when referrer doesnt exist
2022-04-04 18:26:08 -04:00
Kieran Gillen
39e4a6def5
Adds more null checks
2022-03-30 13:08:05 +02:00
Kieran Gillen
60cb08a5a5
Adds more null checks
2022-03-29 15:02:29 +02:00
Kieran Gillen
a6aaf551dd
Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kieran/strict-nullcheck
2022-03-29 12:02:37 +02:00
Kieran Gillen
2deb4ec75f
Adds more null checks
2022-03-28 16:18:35 +02:00
Kieran Gillen
140c26542a
Updates TS version
2022-03-28 16:17:54 +02:00
Kieran Gillen
1a40a98af0
Removes calls to Wallet and Connected through MangoStore hook
2022-03-23 11:42:04 +01:00
tjs
f54af5c787
add ref links
2022-02-14 12:17:11 -05:00
tjs
55b7907bfd
wip
2022-02-14 12:15:46 -05:00
Tyler Shipe
b7bf1cdda5
yarn format
2022-01-15 15:25:14 -06:00
Riordan Panayides
c02f5e1f1f
Use createMangoAccountAndDeposit
2022-01-15 14:56:10 -06:00
Tyler Shipe
c1269298b9
use custom endpoint url
2021-09-13 17:14:59 -04:00
Tyler Shipe
b3424df63e
fix account naming when new sub account
2021-08-17 17:52:53 -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
ccde7a3e24
remove unused mango.ts fns
2021-07-21 11:43:21 -04:00
Tyler Shipe
8beecf59f5
support sol deposits and withdrawals
2021-07-20 15:21:09 -04:00
Tyler Shipe
a0ba6f44e8
update notifications, wire up account change modal
2021-07-06 18:04:20 -04:00
Tyler Shipe
671e50eba0
wip: max borrow calculations
2021-07-01 13:35:47 -04:00
Tyler Shipe
cb44650367
connect perp market to websocket for orderbook
2021-06-23 15:09:19 -04:00
Tyler Shipe
1b02a53314
update naming to match client
2021-06-23 11:32:33 -04:00
Maximilian Schneider
107c2e8ed3
add cancel perp order call and remove unused imports
2021-06-19 00:26:47 -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
Tyler Shipe
6e29de28ef
fix deposit modal
2021-06-18 12:49:16 -04:00
Tyler Shipe
370d25f7bd
fix init and deposit; fix disconnect bug
2021-06-17 21:10:47 -04:00
Tyler Shipe
cb331fb2c7
comment out stuff in the ui so it works
2021-06-16 21:50:16 -04: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
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
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
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
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
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
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