tjs
5654ddcb9e
parse account info on update
2022-03-09 17:39:57 -05:00
tjs
da39c6826b
fetch next page of perp trade history if needed
2022-03-09 11:51:50 -05:00
tjs
ccdbdfe9ae
fetch last account from local storage
2022-02-22 17:06:11 -08:00
tjs
8e1b92b1e5
handle when lastAccount isn't in localStorage
2022-02-22 16:15:14 -08:00
tjs
90c60294c4
disable 24hr change
2022-02-19 16:47:39 -05:00
tjs
7ca2e6d31f
update navigation transitions and ordering
2022-02-18 17:24:06 -05:00
saml33
95d73df500
add markets page
2022-02-17 20:44:28 +11:00
tjs
0d645927b6
set default cluster to mainnet
2022-02-14 16:44:41 -05: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
tjshipe
8490ef3bc8
Merge pull request #149 from blockworks-foundation/pan/delegate
...
Add delegate functionality
2022-02-13 12:40:58 -05:00
tjs
3ad223f95b
add types to the store set function
2022-02-10 12:49:59 -05:00
tjs
9248782932
revert trade history api changes
2022-02-10 10:05:06 -05:00
tjs
bd1a14224b
fetch perp trade history before spot
2022-02-09 23:04:36 -05:00
Riordan Panayides
0c3c5ada98
Add delegate functionality
2022-02-09 15:11:51 +00:00
saml33
5d28deeb57
add favorites bar and change %
2022-02-09 21:55:54 +11:00
Tyler Shipe
0ddcf8c2c2
update order book on trade history change
2022-02-05 16:09:18 -05:00
Tyler Shipe
09272d4266
add check to orderbook highlighting so it only shows selected market
2022-01-30 16:48:36 -05:00
Tyler Shipe
a6d432f32d
utilize zustand for perppositions
2022-01-27 22:57:18 -05:00
Tyler Shipe
8f27393c22
reload open orders more frequently
2022-01-27 12:24:15 -05:00
Tyler Shipe
2355dfcaa6
store openOrders in zustand
2022-01-27 11:57:36 -05:00
Vidor Gencel
b59abf5f80
Profile Picture Support ( #134 )
...
* render profile picture
* update profile picture package
* Include PFP only if set
* no need to wait pfp to load
Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2022-01-18 10:26:13 -08:00
Tyler Shipe
679064d8a2
only update mango account at most once per sec and check last slot
2022-01-17 14:23:06 -06:00
Tyler Shipe
65d8cf78c2
remove duplicate fetch in manual refresh
2022-01-16 19:10:54 -06:00
Tyler Shipe
5afff3bd7e
Merge branch 'v3.3' into main
2022-01-16 17:27:33 -06:00
Tyler Shipe
cb266e3aa1
add pubkey url param to trade page
2022-01-16 17:16:47 -06:00
Tyler Shipe
5d550e58b3
remove cluster env var and link explorer txs to correct cluster
2022-01-15 20:00:34 -06:00
Tyler Shipe
f41ffcc98d
use latest client
2022-01-15 18:17:39 -06:00
Tyler Shipe
b876aae1a7
retry loading mango group and account if errors
2022-01-15 12:48:38 -06:00
Tyler Shipe
981482414e
Remove disabled trade button after submitting
2022-01-08 12:27:06 -05:00
Tyler Shipe
cdd89c9de2
retry loading mango group and mango account if an error occurs
2022-01-06 16:42:58 -05:00
saml33
320cd06d76
Account health email alerts ( #111 )
...
* create alerts modal
* add translation variables
* translation variables
* handle error states
* add chinese
* limit number of active alerts
Co-authored-by: rjpeterson <r.james.peterson@gmail.com>
Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2022-01-02 20:42:59 -08:00
Tyler Shipe
698ea79d66
fix postSendTxCallback types
2021-12-29 14:10:24 -05:00
Tyler Shipe
41fa096294
use latest mango client to add confirming transaction notification
2021-12-29 13:39:17 -05:00
Tyler Shipe
e8cfdabbde
set mangoCache and mangoGroup at the same time
2021-12-28 11:13:18 -05:00
Tyler Shipe
0f13c748e4
add jupiter ag swap
2021-12-17 16:02:02 -05:00
Tyler Shipe
ac818e5a5d
add flag to show and hide notifications
2021-12-09 16:21:53 -05:00
Tyler Shipe
5a7a95842b
always show liq price in account info
2021-12-06 15:14:29 -05:00
Tyler Shipe
855a6e6d58
add ws watching for mangoAccount
2021-12-05 20:13:23 -05:00
tjshipe
8f380933bb
Revert "Mango Heroes NFT Integration"
2021-12-03 11:03:51 -05:00
Yandre
43776f6f03
Pulled latest code from main
2021-12-02 17:14:14 -05:00
Tyler Shipe
84233b2a56
improve rerender when cancelling orders for a market other than the one selected
2021-11-30 18:35:49 -05:00
Tyler Shipe
2d824c2213
add lastUpdatedAt to improve useMangoAccount rerendering trigger
2021-11-30 16:04:55 -05:00
Tyler Shipe
4eb7cd3934
forceReload components when mango account is updated in store
2021-11-30 12:32:14 -05:00
Yandre
a0cae7d5da
Allowed all NFTs to be used as profile picture
2021-11-26 14:17:24 -05:00
Tyler Shipe
92b3ac2ce7
more improvement to load time when switching pages/markets
2021-11-14 18:37:02 +00:00
Tyler Shipe
1a159c5179
only fetch spot trade history if open order accounts exist
2021-11-14 13:49:53 +00:00
Yandre
4956e28e9a
Refactored the code
2021-11-11 11:51:54 -05:00
Yandre
f5e0c63af1
Fixed merge conflicts
2021-11-11 09:45:10 -05:00
Yandre
9f66df9bf1
Completed code for Mango Heroes integration
2021-11-10 21:54:23 -05:00
Tyler Shipe
cb462eb47a
fix: error when hourly interest is undefined
2021-11-01 11:14:43 -04:00
Tyler Shipe
9aa9d152c9
fixes for ada perp mkt
2021-10-29 14:57:50 -04:00
Yandre
9ddbb5b9b7
Added code to get list of NFTs from wallet in NFTDisplay
2021-10-20 19:21:46 -04:00
Tyler Shipe
bdc65a18f0
set default cluster to mainnet
2021-10-19 15:29:53 -04:00
Tyler Shipe
50a08599da
add token config for MSRM
2021-10-19 12:48:00 -04:00
Tyler Shipe
e049456edd
MSRM deposit and withdraw
2021-10-18 16:38:03 -04:00
Yandre
b15b7dded9
Added code to select multiple Mango Heroes as your profile picture (using images for now)
2021-10-16 19:42:50 -04:00
Yandre
8aa176a32b
Added modal for changing avatar
2021-10-16 10:26:22 -04:00
Yandre
b3bec02141
Added documentation
2021-10-14 14:55:01 -04:00
Yandre
209b2c47df
Added code to retrieve Metaplex metadata for NFTs
2021-10-14 14:53:14 -04:00
Maximilian Schneider
93abdab9f6
Merge remote-tracking branch 'origin/main' into max/stoploss
2021-10-05 23:02:01 +02:00
Tyler Shipe
2b9f26af4c
only use local storage for node url if on mainnet
2021-10-05 14:24:24 -04:00
Maximilian Schneider
82dcd960c0
revert to buy/sell in trade button
2021-10-03 03:21:26 +02:00
saml33
dbbb415060
Default market settings ( #45 )
...
* add default market settings to settings modal
* redirect to default market
2021-10-01 12:05:42 +02:00
Tyler Shipe
7feb881bb3
rename fetchMangoAccounts to fetchAllMangoAccounts; prefer reloadMangoAccount over fetchAllMangoAccounts
2021-09-29 18:09:58 -04:00
Maximilian Schneider
9d82894c2d
prevent flashing on order reloading
2021-09-29 21:09:51 +02:00
Tyler Shipe
7ba6cf2412
use the latest client
2021-09-29 12:24:09 -04:00
Maximilian Schneider
31b9737f59
allow selecting SL & TP directly
2021-09-24 20:38:05 +02:00
Maximilian Schneider
724bb77ef4
fetch open orders on wallet connect
2021-09-23 22:52:16 +02:00
Maximilian Schneider
d310e0b66f
[wip] visualize & cancel trigger order and fuck up order reloading 😭
2021-09-23 13:50:34 +02:00
Tyler Shipe
419f7d607c
Merge branch 'ts/spot-order-2' into max/stoploss
2021-09-22 23:20:56 -04:00
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