Tyler Shipe
e666ea0f47
fix double highlight of sol
2021-11-19 20:51:01 +00:00
Tyler Shipe
a717a4c88c
add msol
2021-11-19 20:15:32 +00:00
saml33
96358a078c
hide reduce only when no position or wrong side
2021-11-19 14:13:18 +11:00
Tyler Shipe
ce5345b588
add liq mining info to stats
2021-11-18 18:13:37 +00:00
Tyler Shipe
45c4f20bd7
use latest client; error msg when depositing all sol; pointer cursor on orderbook
2021-11-18 16:49:48 +00:00
Tyler Shipe
ec633992fa
fix translation issues; fix pubkey viewing
2021-11-18 13:56:11 +00:00
Tyler Shipe
2f4518cf53
handle when no account history exists
2021-11-17 16:56:39 +00:00
Tyler Shipe
6ed230d900
add deposit and withdraw history to account page
2021-11-17 15:51:17 +00:00
tjshipe
3b5813ac08
Merge pull request #80 from blockworks-foundation/simple-liq-price
...
Add simple liquidation price to AccountInfo
2021-11-17 11:31:19 +00:00
Tyler Shipe
8558e4bb45
fix mobile market links
2021-11-15 23:39:43 +00:00
Tyler Shipe
6fff247d02
update rpc node list
2021-11-15 14:25:03 +00:00
Tyler Shipe
a7ccf430eb
update genesys go url
2021-11-15 12:41:40 +00:00
Riordan Panayides
b5c7f88c66
Don't display liq price of zero
2021-11-14 22:02:30 +00:00
Riordan Panayides
27b2dfb0d7
Add simple liq price to accountinfo, add some height
2021-11-14 21:43:23 +00:00
Tyler Shipe
010be224e0
remove console logs
2021-11-14 18:57:00 +00:00
Tyler Shipe
92b3ac2ce7
more improvement to load time when switching pages/markets
2021-11-14 18:37:02 +00:00
Tyler Shipe
db4aa785fc
speed up time between page loads
2021-11-14 14:48:09 +00:00
tjshipe
7b1168dd63
Merge pull request #71 from blockworks-foundation/improve-repay-borrow-flow
...
improve repay borrow ux
2021-11-14 13:35:33 +00:00
tjshipe
2067c981c8
Merge pull request #70 from dboures/view-other-mangoaccounts
...
View anyone's mangoAccount
2021-11-14 13:24:50 +00:00
saml33
6fb6f6f46a
hide charts when no interest
2021-11-14 20:53:34 +11:00
tjshipe
eb39e1cbb1
Merge branch 'main' into order-lines-translation
2021-11-13 17:32:52 +00:00
tjshipe
d679288f1b
Merge pull request #74 from blockworks-foundation/add-solflare
...
add solflare
2021-11-13 16:21:13 +00:00
Maximilian Schneider
fb1977e720
disable size too large
2021-11-12 15:40:42 +00:00
saml33
4bf6c410c7
convert time to local
2021-11-12 20:31:52 +11:00
saml33
77acf2d862
add translations
2021-11-12 11:08:58 +11: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
saml33
d8db2c13f3
add usd values
2021-11-11 23:08:19 +11:00
Yandre
9f66df9bf1
Completed code for Mango Heroes integration
2021-11-10 21:54:23 -05:00
saml33
d216ec1f1a
add solflare
2021-11-10 22:46:54 +11:00
Michael Fenn
3c1d0f2458
link market from desktop open orders table
2021-11-09 21:16:03 -05:00
saml33
7bbcbec627
improve repay borrow ux
2021-11-10 11:37:40 +11:00
dboures
c5117becf9
fix bug for hiding mangoAccounts selector
2021-11-09 23:43:34 +00:00
dboures
88f803bc04
view other accounts using pubkey in url
2021-11-09 18:17:03 +00:00
saml33
d63536ef2f
add open position count
2021-11-09 21:40:07 +11:00
saml33
cca6d84feb
fix: add padding-top to table wrapper
2021-11-09 20:24:43 +11:00
saml33
5d3e7d4032
swap buttongroup for max button
2021-11-09 12:49:45 +11:00
saml33
0a14c07d06
chart interest earned/paid over last 30 days
2021-11-08 22:02:30 +11:00
Tyler Shipe
bc16c61cb4
add back hourly funding table
2021-11-06 17:00:10 +00:00
Maximilian Schneider
db0f206ff9
dont spam db
2021-11-06 13:54:24 +00:00
Maximilian Schneider
3cecd12df0
Revert "start with 1m chart for SOL markets"
...
Revert "disable 24h volume"
2021-11-06 01:10:25 +00:00
saml33
f274fcae42
show date/time on mobile trade history
2021-11-05 20:55:16 +11:00
saml33
05d8bdd64a
add translation keys
2021-11-04 23:25:11 +11:00
saml33
f3ea08c1c1
merge main
2021-11-04 20:17:39 +11:00
saml33
82af972f37
add commas to max borrow amount values
2021-11-04 19:56:06 +11:00
Maximilian Schneider
39e0e8e8f4
start with 1m chart for SOL markets
2021-11-03 22:52:31 +00:00
Maximilian Schneider
76cc6bc5f7
fix linter
2021-11-03 22:47:08 +00:00
Maximilian Schneider
8e80faff7a
disable 24h volume
2021-11-03 22:18:17 +00:00
saml33
61a6a65830
Merge pull request #66 from blockworks-foundation/mobile-fixes
...
fix: mobile styling to accomodate new markets
2021-11-04 08:17:08 +11:00
saml33
41538dcb01
history translation
2021-11-03 23:03:23 +11:00
saml33
30f971cfac
fix: mobile styling to accomodate new markets
2021-11-03 22:43:34 +11:00
Tyler Shipe
ef7bafe5cd
show actual decimals used in trade history table
2021-11-02 12:09:27 -04:00
saml33
859432fdb2
fix: match oracle and markprice decimals to tick size
2021-11-02 20:43:28 +11:00
Tyler Shipe
b880220103
fix: show decimals based on tick size in open orders table
2021-11-01 22:13:25 -04:00
Tyler Shipe
5f869716ce
fix: fix asset icons on stats pages
2021-11-01 21:13:10 -04:00
Tyler Shipe
61bd862aab
fix: handle when no funding data is available
2021-11-01 21:02:04 -04:00
Tyler Shipe
56b7466799
move fees into trade box, prevent wrapping in market menu item
2021-11-01 16:20:30 -04:00
Tyler Shipe
b49237df50
updated fees to show ftt-perp fee
2021-11-01 15:49:23 -04:00
tjshipe
d049f1faa8
Merge pull request #63 from mfenn/trade-history-market-link
...
Link to markets from trade history table
2021-11-01 11:44:46 -04:00
Tyler Shipe
ac16fb6f89
fix: css styles for page height
2021-11-01 11:30:46 -04:00
Tyler Shipe
cb462eb47a
fix: error when hourly interest is undefined
2021-11-01 11:14:43 -04:00
saml33
6802fb75e6
language select and tip content
2021-11-01 23:35:26 +11:00
Tyler Shipe
17c890829b
add cardano icons
2021-10-31 15:44:59 -04:00
Tyler Shipe
8d4be3e812
remove aaveicon import
2021-10-31 14:27:56 -04:00
Tyler Shipe
f3361a8953
only calc spot max if market config is spot market
2021-10-31 14:24:33 -04:00
saml33
bccada65fe
tip content
2021-10-31 22:21:22 +11:00
Michael Fenn
ca30bf96b5
link to market from trade history table, like in perp position table
2021-10-29 21:00:53 -04:00
Tyler Shipe
9aa9d152c9
fixes for ada perp mkt
2021-10-29 14:57:50 -04:00
saml33
b8d34934d9
setup introjs tour
2021-10-29 23:05:55 +11:00
Tyler Shipe
9c2c7186ae
yarn format
2021-10-28 12:46:45 -04:00
Tyler Shipe
44176247d7
temp: hide hourly funding table
2021-10-28 12:45:19 -04:00
ImpossiblePairs
8beab41743
Toggle button for Order Line Visibility ( #62 )
...
* Toggle button for Order Line Visibility
Allow users to toggle order line visibility on and off. Should be useful if you have a lot of orders on the books.
* Updated const
Button updated to const.
* Remove event not used
Event in addEventListener never used, and removed.
2021-10-28 13:45:29 +01:00
Tyler Shipe
f2c484de63
allow changing settings before wallet is connected
2021-10-27 17:43:10 -04:00
Tyler Shipe
fc1665444f
upgrade to next12, remove babel, remove emotionjs, convert emotion styles to inline
2021-10-27 16:46:31 -04:00
Tyler Shipe
109f75a984
add mango account to trade page
2021-10-27 16:31:45 -04:00
Tyler Shipe
6b28aa3666
Merge branch 'hourly-stats-tables' into main
2021-10-27 12:44:09 -04:00
Tyler Shipe
597e0b65b7
reduce padding to remove horizontal scrollbar; yarn format
2021-10-26 11:57:54 -04:00
Tyler Shipe
7bbdcc0e7a
update perp maker fee
2021-10-26 11:27:26 -04:00
saml33
ce2e32ee1a
add buttongroup and interest info to deposit/withdraw ( #59 )
2021-10-26 15:25:36 +01:00
saml33
1e0c38799f
add features to intro modal
2021-10-26 22:05:48 +11:00
rjpeterson
12dd879a71
integrate changes from da10aa9966
2021-10-25 14:58:00 -10:00
ImpossiblePairs
da10aa9966
Fix Order Line Number Formatting
...
Number formatting of the order line text updated to account for SOL decimal precision.
2021-10-25 15:53:38 -07:00
rjpeterson
d04714e0bf
remove unused import
2021-10-25 11:11:03 -10:00
rjpeterson
941583a0dc
remove comment
2021-10-25 11:09:09 -10:00
rjpeterson
0359b80e55
add translations for tradingview chart order lines
2021-10-25 11:03:00 -10:00
Tyler Shipe
98a151d8a0
add quote symbol to funding table
2021-10-25 15:39:49 -04:00
Tyler Shipe
8ec17ecfaf
yarn format TradingView/index.tsx
2021-10-25 15:24:00 -04:00
Tyler Shipe
3da0b240f5
add paginated tables for account interest and funding
2021-10-25 15:21:54 -04:00
tjshipe
d1eb208600
Merge pull request #40 from blockworks-foundation/tradingview-order-lines
...
Add Tradingview Order Lines to Main
2021-10-22 22:25:43 -04:00
Tyler Shipe
77095e5049
temp: disable hourly funding to optimize queries and switch to table view
2021-10-22 11:29:15 -04:00
rjpeterson
25bb4413bf
add missing translations to withdrawModal
2021-10-21 21:57:16 -10:00
tjshipe
9dcb0f329f
Merge pull request #52 from blockworks-foundation/perp-table-market-link
...
link to perp market from positions table
2021-10-21 16:19:26 -04:00
Yandre
9ddbb5b9b7
Added code to get list of NFTs from wallet in NFTDisplay
2021-10-20 19:21:46 -04:00
rjpeterson
0733e8cda7
add missing translations, add spanish option, fix dropmenu z-index
2021-10-20 08:48:02 -10:00
rjpeterson
bf679598bb
Add next-i18next translation framework & Traditional and Simplified Chinese UI Translations ( #54 )
...
* start english localization
* fix typo
* add to english localization
* add some zh translations, fix discrepencies in en
* add more chinese translations
* finish trad chinese translations
* add simplified folder, add locales.json with meta info, add latest ui updates in english
* add latest ui changes for chinese-trad and sort
* fix typo
* convert trad to simp
* Update common.json
* add review changes by @HZ2078
* fix typos
* add latest ui changes
* new ui change & trad-simp convert
* delete monospace from locales.json
* add next-i18next translation framework. Add translations up to #103
* replace more html with traslate tags
* lint & add more phrases
* add missing translations
* add language select dropdown
* add new update transltations
* add latest gui update translations
* add useTranslation to lang switch
* sort common.json, add lang descriptions
* update netlify config to support i18n
* make translations more consistent
Co-authored-by: Hz2078 <92381714+HZ2078@users.noreply.github.com>
Co-authored-by: Tyler Shipe <tjshipe@gmail.com>
2021-10-20 13:42:40 +01:00
Tyler Shipe
c53c35b2e4
fix: handle when no funding stats exist for acct
2021-10-18 18:00:47 -04:00
Tyler Shipe
9344defc06
Merge branch 'alpha' into main
2021-10-18 17:27:53 -04:00
Tyler Shipe
a63a02c9b8
disable msrm deposit if none in wallet
2021-10-18 17:21:37 -04:00
Tyler Shipe
e049456edd
MSRM deposit and withdraw
2021-10-18 16:38:03 -04:00
dd
0c9e3e71f6
showing funding rate APR in UI
2021-10-18 13:15:37 -04:00
saml33
3c2e5e161f
link to perp market from positions table
2021-10-18 21:34:52 +11:00
Tyler Shipe
76bf0a0320
hourly account interest chart
2021-10-18 02:50:39 -04:00
Tyler Shipe
5824d71db1
hourly funding chart
2021-10-18 01:17:07 -04:00
Tyler Shipe
71bfa3f3a5
add total funding
2021-10-17 22:34:24 -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
ImpossiblePairs
b5f1a5f05e
Fixed handleCancelOrder conditional statement
...
Fixed trigger conditional statement for cancelling order
2021-10-16 12:03:33 -07:00
impossiblepairs
504613aa07
Update Order Lines for Advanced Order Types
...
Added ability to visualize advanced order types in the trading view chart.
Also fixed the calculateMarketPrice bug that was not setting advanced limit orders to the limit price.
2021-10-16 11:49:57 -07:00
ImpossiblePairs
3b5c84bcc4
Merge branch 'main' into tradingview-order-lines
2021-10-16 11:34:54 -07:00
Yandre
8aa176a32b
Added modal for changing avatar
2021-10-16 10:26:22 -04:00
Yandre
209b2c47df
Added code to retrieve Metaplex metadata for NFTs
2021-10-14 14:53:14 -04:00
Tyler Shipe
3b65fed87d
fix: format decimals for perp trigger orders
2021-10-12 16:59:21 -04:00
Yandre
c12d8ea20d
Fixed merge conflictions
2021-10-12 11:51:36 -04:00
Tyler Shipe
dd0592feff
add more info to tooltip
2021-10-11 17:46:52 -04:00
Tyler Shipe
9afc697336
fix: remove taker fee from estimated price impact
2021-10-11 15:56:11 -04:00
Tyler Shipe
eb8210b0c7
Merge branch 'max/stoploss' into main
2021-10-11 14:04:16 -04:00
Tyler Shipe
361268c751
fix: bugs when changing state with new order types
2021-10-11 14:02:20 -04:00
saml33
5132fb9f8d
show accounts and settings options on mobile
2021-10-09 21:05:45 +11:00
saml33
445bb11059
add time filters and ticks to stats charts ( #47 )
...
* add time filters and ticks
* mobile tweaks
2021-10-07 12:34:26 +01:00
Tyler Shipe
b78e12d670
improve btc perp funding data for chart display
2021-10-06 15:38:30 -07:00
Maximilian Schneider
3e65e53101
display deposit & withdraw modal on mobile
2021-10-06 20:08:35 +02:00
Tyler Shipe
3d274e64d7
use estimatedSize in fee estimation; use price of 1 for mkt close orders
2021-10-05 17:46:15 -07:00
Tyler Shipe
9cb4ccf519
use new placePerpOrder market order type when closing pos
2021-10-05 17:01:44 -07:00
Maximilian Schneider
1c04018f65
Merge remote-tracking branch 'origin/max/stoploss' into max/stoploss
2021-10-05 23:02:35 +02:00
Maximilian Schneider
93abdab9f6
Merge remote-tracking branch 'origin/main' into max/stoploss
2021-10-05 23:02:01 +02:00
Maximilian Schneider
97bb02e593
show unsettled pnl ( #46 )
...
* display unsettled pnl more dominantly (#43 )
* display perp markets that have unsettled pnl
* fix dependencies to a working version
* add back unrealized pnl vs unsettled pnl
* add todo
* settle all
* cleanup
* catch error
* fix crash in market position & refactor
* bugfixes
* correct unrealized pnl
* remove unsetlled pnl from table
* only show unsettled balances after closing position
2021-10-05 22:22:47 +02:00
Tyler Shipe
5d658754a8
fix types in EstPriceImpact
2021-10-05 15:12:26 -04:00
Tyler Shipe
b8c6a1bbf7
use avg oracle price to calculate funding rate
2021-10-05 11:46:01 -04:00
Riordan Panayides
b3f2843bd2
Fix null mangoAccount
2021-10-05 03:14:07 +01:00
Tyler Shipe
c503f81db5
display in the ui when beingLiquidated is true
2021-10-04 21:55:29 -04:00
saml33
f5f243a9a8
pre-fill spot balance ( #41 )
...
* pre-fill spot balance
* fix undefined basePosition
2021-10-03 04:01:06 +02:00
Maximilian Schneider
82dcd960c0
revert to buy/sell in trade button
2021-10-03 03:21:26 +02:00
Tyler Shipe
7e2d6053fc
use latest client to support reduceOnly flag in placePerpTriggerOrder
2021-10-01 16:51:24 -04:00
Tyler Shipe
f43f4f2c1c
fix invalid price bug when placing advanced orders
2021-10-01 14:51:19 -04:00
Tyler Shipe
052de958f2
consistent padding; use latest from client branch
2021-10-01 13:21:17 -04:00
Maximilian Schneider
76762aae31
refresh size when changing markets
2021-10-01 18:26:06 +02:00
Maximilian Schneider
eb2568672c
fix fee calc & respect reduceOnly
2021-10-01 18:21:09 +02:00
Tyler Shipe
6925a46df8
Revert "Revert "add interest earned table to account page""
...
This reverts commit 03dc3cd001
.
2021-10-01 11:42:42 -04:00
Maximilian Schneider
2cf097976a
wire up slippage estimator
2021-10-01 17:32:15 +02:00
Maximilian Schneider
28af7ef2cf
correctly set size when switching margin toggle
2021-10-01 13:35:57 +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
saml33
b38fc8594d
layout changes and est price impact
2021-10-01 00:21:45 +10:00
Maximilian Schneider
71945ff9ce
Merge remote-tracking branch 'origin/max/stoploss' into max/stoploss
2021-09-30 12:00:45 +02:00
Maximilian Schneider
82a3dcebb6
Merge branch 'align-advanced-trade-form' into max/stoploss
2021-09-30 11:51:49 +02:00
Tyler Shipe
7feb881bb3
rename fetchMangoAccounts to fetchAllMangoAccounts; prefer reloadMangoAccount over fetchAllMangoAccounts
2021-09-29 18:09:58 -04:00
Tyler Shipe
9118dbf010
fix trade form button colors; use latest client to handle when no advanced orders exist
2021-09-29 16:47:10 -04:00
Maximilian Schneider
9d82894c2d
prevent flashing on order reloading
2021-09-29 21:09:51 +02:00
Tyler Shipe
03dc3cd001
Revert "add interest earned table to account page"
...
This reverts commit 0f6d39043f
.
2021-09-28 11:58:15 -04:00
saml33
229d9a8fbf
expose pnl on mobile table row
2021-09-28 23:15:36 +10:00
Tyler Shipe
0f6d39043f
add interest earned table to account page
2021-09-28 00:13:40 -04:00
saml33
242f46bbb7
fix -0 balance
2021-09-28 13:00:13 +10:00
ImpossiblePairs
12e5578765
Fixed order type specification
...
Updated to add explicit order types to the HandleModifyOrder function.
2021-09-27 10:02:34 -07:00
ImpossiblePairs
d089927d60
Order Line edge case handling and refreshing
...
Updated the order lines to handle additional edge cases including transactions cancelled before execution, open orders length changes and order length discrepancies.
Changed order line useEffect to be based on a time interval to avoid uncaught maximum render exceedance issues.
2021-09-27 09:22:19 -07:00
Maximilian Schneider
70dc7d816a
display conditional orders in order table
2021-09-27 17:45:39 +02:00
saml33
4c4533509e
fix mobile stats
2021-09-28 00:21:13 +10:00
saml33
56c42a857e
trade side tab label text
2021-09-27 22:43:23 +10:00
saml33
7b69b22feb
fix size buttons for perp
2021-09-27 22:36:25 +10:00
Maximilian Schneider
f7a7f5f424
Revert "leverage slider should use limit price if entered"
...
This reverts commit 1fdea822cd
.
2021-09-27 14:32:06 +02:00
saml33
efe04b8df1
spot margin toggle (advanced form only)
2021-09-27 22:11:19 +10:00
saml33
29af41d2c0
Merge branch 'max/stoploss' into align-advanced-trade-form
2021-09-26 23:40:02 +10:00
saml33
659e48c99f
mobile styles for new features
2021-09-26 23:20:51 +10:00
saml33
76859b83dc
remove semicolon
2021-09-25 23:08:49 +10:00
saml33
367e2712b0
align advanced trade form
2021-09-25 22:50:32 +10:00
Maximilian Schneider
5c09bedce8
update simple trade form
2021-09-25 13:47:22 +02:00
Riordan Panayides
9eabaa3b01
Trim bad data from first few hours of sol-perp stats ( #38 )
2021-09-25 12:17:17 +02:00
saml33
2805e21fde
align title, side tabs, trade button
2021-09-25 19:40:35 +10:00
Maximilian Schneider
95ac8c58b9
merge changes from sam
2021-09-24 20:58:00 +02:00
Maximilian Schneider
31b9737f59
allow selecting SL & TP directly
2021-09-24 20:38:05 +02:00
saml33
0469b17847
add flip card to tradeform
2021-09-24 22:24:17 +10:00
Maximilian Schneider
d310e0b66f
[wip] visualize & cancel trigger order and fuck up order reloading 😭
2021-09-23 13:50:34 +02:00
Tyler Shipe
207fddd242
call addPerpTriggerOrder
2021-09-23 02:05:47 -04:00
Tyler Shipe
419f7d607c
Merge branch 'ts/spot-order-2' into max/stoploss
2021-09-22 23:20:56 -04:00
Tyler Shipe
0e389e7c3b
remove console.logs
2021-09-22 23:14:21 -04:00
Tyler Shipe
13c3e3ad5c
Hide average rates if we haven't passed the period length
2021-09-22 17:22:31 -04:00
Tyler Shipe
6513d046e6
Use deposit and borrow index to calculate average rates
2021-09-22 16:52:42 -04:00
saml33
6c443936a3
fix mobile orderbook asks order
2021-09-22 19:26:59 +10:00
Tyler Shipe
8ac61f4b3e
yarn format and remove console.log
2021-09-21 16:19:01 -04:00
Tyler Shipe
1fdea822cd
leverage slider should use limit price if entered
2021-09-21 16:12:50 -04:00
Maximilian Schneider
8abbce0238
[wip] add trigger order components
2021-09-21 20:04:33 +02:00
saml33
53e3f42ba1
remove scroll on position panel
2021-09-21 19:50:53 +10:00
Maximilian Schneider
228b9ae09b
add assets to stats page
2021-09-21 11:28:24 +02:00
saml33
615e858cab
add maker/taker fees back to trade form
2021-09-21 10:08:38 +10:00
saml33
782157b5be
fix mobile chart display
2021-09-21 07:49:26 +10:00
Tyler Shipe
745ce39647
add padding between prices on orderbook for md+ screens
2021-09-20 15:39:20 -04:00
Tyler Shipe
ce301c07df
use latest price for funding rate until avg is available
2021-09-20 14:37:38 -04:00
saml33
04913c2a3a
fix trade history tab display
2021-09-20 23:15:44 +10:00
saml33
cc45750a59
fix null open orders
2021-09-20 22:46:22 +10:00
saml33
3e1b872e42
align mobile tab headings
2021-09-20 22:24:42 +10:00
saml33
07ad9cf4b3
fix orderbook padding
2021-09-20 19:56:50 +10:00
saml33
e1f4a9baf8
revert market position key
2021-09-20 15:00:02 +10:00
saml33
7e8f3e12af
tradeform buttons
2021-09-20 13:28:37 +10:00
saml33
1830986e40
remove swipeable tabs from desktop views
2021-09-20 13:21:55 +10:00
saml33
3d777a4ab1
increase horizontal page container padding
2021-09-20 10:50:51 +10:00
saml33
9123e63344
Trade page mobile ( #35 )
...
* mobile styles for chart, position, account
* mobile styles for trade form
* trade page mobile styles
* tab layout
* fix unknown property fill-rule
* test swipeable tabs
* fix container height
* fix orderbook mobile styles
* account page mobile styles
* fix swipeable container height
* stats page mobile styles
2021-09-20 02:36:02 +02: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
saml33
9b3faddc3d
fix negative borrow amount
2021-09-14 11:32:36 +10:00
Tyler Shipe
9162ffbe3a
use dropdown for node selection
2021-09-13 19:27:02 -04:00
Tyler Shipe
83d72c8aaa
fix issue with mangoclient import
2021-09-13 17:21:58 -04:00
Tyler Shipe
c1269298b9
use custom endpoint url
2021-09-13 17:14:59 -04:00
Tyler Shipe
cc87df1c02
optional numTrades for tradehistory
2021-09-13 12:40:28 -04:00
Tyler Shipe
c91d65e933
only show 100 recent trades in history tab
2021-09-13 12:28:53 -04:00
Maximilian Schneider
97721bf678
Open BTC-Perp when navigating to trade page
2021-09-13 02:37:43 +02:00
Tyler Shipe
445aabd506
fix z-index
2021-09-12 12:11:58 -04:00
Tyler Shipe
288b14a167
fixed charts in dev mode
2021-09-11 18:41:14 -04:00
Tyler Shipe
e080ff8120
fix clickable size in orderbook
2021-09-10 13:28:18 -04:00
saml33
8309a05bac
add average rates tables
2021-09-10 18:30:25 +02:00
saml33
54fa99aaf5
Merge pull request #30 from blockworks-foundation/stats-table-mobile
...
stats table mobile
2021-09-10 11:45:04 +10:00
Tyler Shipe
732d854c36
add manual refresh to ui
2021-09-09 20:23:02 -04:00
saml33
00d02ccde1
stats table mobile
2021-09-09 23:14:20 +10:00
saml33
13e46c3425
remove available balance from max borrow amount
2021-09-09 08:23:24 +10:00
Tyler Shipe
e303c6927c
add sol amount needed to create a mango account
2021-09-08 15:11:02 -04:00
Tyler Shipe
5bcec8dd69
change interval to refresh trade history
2021-09-08 14:08:54 -04:00
saml33
1f8ca47328
improve borrow page tables
2021-09-08 23:04:09 +10:00
saml33
e5579b09bb
format trade price
2021-09-08 14:34:52 +10:00
saml33
18d43bd837
trade history table mobile
2021-09-08 14:12:49 +10:00
saml33
d291197544
Merge pull request #27 from blockworks-foundation/perp-position-mobile-table
...
perp positions table mobile
2021-09-08 12:45:37 +10:00
saml33
6e4323ee6e
perp positions table mobile
2021-09-08 11:52:45 +10:00
Tyler Shipe
0034344577
fix order highlighting when grouping orderbook
2021-09-07 21:39:12 -04:00
Tyler Shipe
33070aef91
reduce getProgramAccount calls
2021-09-07 19:31:02 -04:00
saml33
ebad7d753f
fix available liquidity unit
2021-09-08 08:55:45 +10:00
tjshipe
3c38928ffc
Merge pull request #24 from rjpeterson/orderbook-grouping
...
Orderbook grouping
2021-09-07 17:23:50 -04:00
Tyler Shipe
b03db3b771
remove send transaction notification
2021-09-07 15:27:54 -04:00
tjshipe
c135c871bf
Merge pull request #18 from blockworks-foundation/perp-stats
...
Add funding rate and open interest graphs
2021-09-07 23:46:45 +10:00
rjpeterson
d2052270e7
adjust dropdown width
2021-09-07 15:55:28 +08:00
rjpeterson
4fe35a4417
fix inconsistent decimal count upon grouping change
2021-09-07 15:42:07 +08:00
Tyler Shipe
df8b65d9a9
add usePrevious to trigger immediate rerender on group size change
2021-09-06 16:43:08 -04:00
Tyler Shipe
f956af73db
fix funding rate label display
2021-09-06 13:28:35 -04:00
Tyler Shipe
7416988dcd
Revert "wip"
...
This reverts commit ebf0e6fa4d2d9640afa938a9aaee6b0fc95815a4.
2021-09-06 12:59:13 -04:00
Tyler Shipe
cf20d48c51
wip
2021-09-06 12:59:13 -04:00
Riordan Panayides
b8251361f5
Make number formatting consistent
2021-09-06 12:59:13 -04:00
Riordan Panayides
7b836cae64
Arrange graphs in grid
2021-09-06 12:59:13 -04:00
Riordan Panayides
5c752cca78
Add funding rate and open interest graphs
2021-09-06 12:59:13 -04:00
rjpeterson
3afabced6b
adjust text position in dropdown button
2021-09-06 22:37:07 +08:00
rjpeterson
2317b9aeb6
adjust styling & fix build error
2021-09-06 22:30:55 +08:00
rjpeterson
a179790b0e
set default grouping to 1 cent
2021-09-06 21:56:34 +08:00
rjpeterson
90a0117d0d
prevent grouping from resetting to default on market refresh
2021-09-06 21:56:04 +08:00
rjpeterson
bb0a4594cc
prevent grouping from resetting to default on market refresh
2021-09-06 21:50:11 +08:00
rjpeterson
cc517d1508
revert unnecessary changes
2021-09-06 21:44:32 +08:00
rjpeterson
c6c54f27bf
make select box width consistent
2021-09-06 21:38:36 +08:00
rjpeterson
f6dddddd53
make grouping function more clear
2021-09-06 21:38:33 +08:00
rjpeterson
acf91fa3d2
fix orders not grouping properly due to js floats
2021-09-06 21:38:31 +08:00
rjpeterson
206cd98b46
change group sizes, increase orderbook entries to 40, fix bids display bug
2021-09-06 21:38:28 +08:00
rjpeterson
c3c1eb3651
adjust decimal count when grouping is changed
2021-09-06 21:38:25 +08:00
rjpeterson
3d962d7707
adjust dropdown styling
2021-09-06 21:38:23 +08:00
rjpeterson
d16395eb9a
reset groupSize on new market, make sure all array entries are numbers
2021-09-06 21:38:20 +08:00
rjpeterson
e4b70ae4ae
add GroupSize select component
2021-09-06 21:38:17 +08:00
rjpeterson
6fb724de11
initial rough grouping solution
2021-09-06 21:38:14 +08:00
saml33
6d15756581
add rates to balances table
2021-09-06 21:51:18 +10:00
saml33
0117358268
Merge pull request #23 from blockworks-foundation/action-buttons-balances-table
...
add deposit/withdraw buttons to balances table
2021-09-06 16:26:36 +10:00
saml33
67156f49d9
update zebra stripe colors
2021-09-06 16:22:30 +10:00
saml33
65cb1e9c63
add deposit/withdraw buttons to balances table
2021-09-06 16:08:33 +10:00
Tyler Shipe
bb2d4ffc10
fix orderbook row bar width
2021-09-06 01:36:27 -04:00
Tyler Shipe
2ae45146c1
fix stats page on safari
2021-09-05 22:27:50 -04:00
Tyler Shipe
494ea98e33
add default width; add show zero balances
2021-09-05 20:20:21 -04:00
saml33
50380107cf
improve balances table
2021-09-05 16:50:16 -04:00
Tyler Shipe
c5615254bf
extract health variables in accountInfo component
2021-09-04 18:41:02 -04:00
Tyler Shipe
097d96def0
improve health ratio updates
2021-09-04 18:20:49 -04:00
Tyler Shipe
e5b67857af
retry transaction more frequently; use tx callback for notifications
2021-09-04 17:59:53 -04:00
Tyler Shipe
e306915a45
Increase frequency of background mangoAccount updates
2021-09-04 12:40:43 -04:00
Tyler Shipe
221b6f06f5
Show negative balance when borrowing
2021-09-03 16:25:09 -04:00
Tyler Shipe
73fa197d5d
remove unnecessary emotion styling; use asyncawait for sleeps
2021-09-03 15:02:51 -04:00
Tyler Shipe
d4f643aa02
remove source maps from prod
2021-09-03 12:14:11 -04:00
Tyler Shipe
1aead03db3
remove reloadMangoAccount after settlPnl
2021-09-03 11:54:12 -04:00
Tyler Shipe
4a145f5878
use latest client and only reload mango account after settling
2021-09-03 10:36:53 -04:00
Tyler Shipe
a566e6795e
fix inconsistent coloring
2021-09-03 03:00:59 -04:00
Tyler Shipe
21b11aaa80
rearrange title order
2021-09-03 02:41:53 -04:00
Tyler Shipe
5b8f4dd155
change interval time and add position market name
2021-09-03 02:39:37 -04:00
Tyler Shipe
8e4e818e49
fix orderbook display
2021-09-03 01:45:58 -04:00
Tyler Shipe
50c9fc07c1
add open order to orderbook
2021-09-03 01:32:27 -04:00
Tyler Shipe
6e7cca78a5
add perp 24hr vol
2021-09-03 00:33:10 -04:00
Tyler Shipe
dbc66498a9
use abs value for notional value
2021-09-02 23:39:24 -04:00
Tyler Shipe
3b59771145
immediately resize orderbook on depth change
2021-09-02 18:29:03 -04:00
Tyler Shipe
c39e20a744
add loading indicator to settle pnl
2021-09-02 17:35:37 -04:00
saml33
4334a5c08b
fix mobile menu transition
2021-09-02 15:04:09 +10:00
Tyler Shipe
6833602681
fix balance rounding issue in market balances
2021-09-01 14:43:27 -04:00
Tyler Shipe
08934bd74f
fix borrow rates on borrow page
2021-09-01 12:39:17 -04:00
Tyler Shipe
65b2f2a978
hide daily volume stat until new api is up
2021-09-01 12:27:10 -04:00
Tyler Shipe
edd45fc6cf
add guard against market type in market header
2021-09-01 11:43:42 -04:00
saml33
a47e678c2f
improve mobile menu
2021-09-02 00:30:34 +10:00
Tyler Shipe
33959a0e74
fix sol collateral avail and add alpha banner
2021-08-31 21:27:13 -04:00
Tyler Shipe
6820ac854f
update market position faster for perp accounts
2021-08-31 19:28:39 -04:00
Tyler Shipe
ae99437cea
Load all mango accounts when depositing for the first time
2021-08-31 17:50:17 -04:00
Tyler Shipe
b55b945bd8
refresh the funding rate on interval
2021-08-31 16:31:35 -04:00
Tyler Shipe
89d990a5f9
increment zero balance key
2021-08-31 15:14:07 -04:00
Tyler Shipe
27c7349c94
default show zero balance to true
2021-08-31 15:13:21 -04:00
Tyler Shipe
bc56ac2759
tweak alpha modal
2021-08-31 14:42:33 -04:00
Tyler Shipe
99148a149c
tweak alpha modal
2021-08-31 14:41:27 -04:00
Tyler Shipe
ba731617cc
reload tokens after deposit
2021-08-31 14:11:41 -04:00
Tyler Shipe
9b1c05e3c7
add link to alpha modal
2021-08-31 14:03:26 -04:00
Tyler Shipe
4f20fc6542
use client reloadMangoAccount
2021-08-31 13:47:03 -04:00
Tyler Shipe
44ed905eb6
Fix trade form quote rounding
2021-08-31 10:55:49 -04:00
saml33
71e55964fa
responsive market header
2021-09-01 00:25:09 +10:00
tjshipe
b2228d446a
Merge pull request #17 from blockworks-foundation/dynamic-orderbook-depth
...
Dynamic orderbook depth
2021-08-30 17:18:21 -04:00
Tyler Shipe
c6e09c1ba1
fix alpha modal issue
2021-08-30 16:40:32 -04:00
Tyler Shipe
2c50835a21
update alpha message
2021-08-30 14:50:37 -04:00
Tyler Shipe
3ef85d773b
add individual spot asset stats
2021-08-30 14:41:42 -04:00
Tyler Shipe
9c3c0677bd
perp position pnl using breakeven price
2021-08-30 02:33:41 -04:00
Tyler Shipe
bc447a5296
add value to open orders table, add color to perp pnl
2021-08-30 02:17:36 -04:00
Tyler Shipe
6630e29707
upgrade nextjs
2021-08-30 00:56:27 -04:00
rjpeterson
de7fc9c15a
prevent scrollbar from appearing
2021-08-30 12:24:10 +08:00
rjpeterson
43a01683e9
undo tailwind class reordering
2021-08-30 11:24:02 +08:00
rjpeterson
531720b290
inital conversion from v2
2021-08-30 11:24:01 +08:00
Tyler Shipe
e0f2398dab
remove old hooks
2021-08-29 20:37:31 -04:00
Tyler Shipe
7dd454c23c
handle rounding issues when withdrawing max with borrows
2021-08-29 20:25:36 -04:00
Tyler Shipe
7aa7feadb0
Use latest client to fix rounding issues
2021-08-29 15:15:37 -04:00
Tyler Shipe
dde1555b69
don't use floor on potentially negative numbers
2021-08-29 12:55:34 -04:00
Tyler Shipe
83037b722e
show change percent when zero
2021-08-28 22:02:22 -04:00
dd
a07acca6e0
applied floor to deps and net; applied ceil to borrows; don't recommend merging changes in BalancesTable.tsx unless you also make it work with the 0 balances checker etc. But I think as long as we aim to show precision up to native units, these changes are good.
2021-08-28 17:16:10 -04:00
dd
471b07396d
now applying .floor() to getAvailBalance
2021-08-28 16:33:41 -04:00
Tyler Shipe
d09b9a4283
add cummulative and step size orderbook toggle
2021-08-27 20:37:45 -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
saml33
f6ad6fbc56
update close position modal button text
2021-08-26 11:08:21 -04:00
saml33
04904203b0
add market close
2021-08-26 11:08:21 -04:00
Tyler Shipe
0e7a83fc36
simplify market select component
2021-08-25 18:22:40 -04:00
Tyler Shipe
18d0a08d6c
disable trade button if no mango account
2021-08-25 17:57:01 -04:00
Tyler Shipe
052567de21
disable trade button if mangoAccount doesn't exist
2021-08-25 17:48:35 -04:00
Tyler Shipe
fdc3e75c78
market header now uses serum-history data for high, low, open, close
2021-08-25 17:39:48 -04:00
Tyler Shipe
161882738b
hide day range until perp range is available
2021-08-25 17:23:11 -04:00
Tyler Shipe
639f36bd99
revert new account modal on first deposit
2021-08-25 17:20:59 -04:00
Tyler Shipe
44e0d8ad21
make it more obvious when opening new position with slider
2021-08-25 17:07:25 -04:00
Tyler Shipe
01796922c8
close accounts list after creating first account
2021-08-25 15:05:18 -04:00
Tyler Shipe
ecbe76a2f4
alpha modal with emoji
2021-08-25 14:55:31 -04:00
Tyler Shipe
5b413a9089
update alpha modal
2021-08-25 14:49:04 -04:00
Tyler Shipe
8ac108ce35
update alpha modal
2021-08-25 14:47:57 -04:00
Tyler Shipe
f8c14d193d
Merge remote-tracking branch 'origin/name-account-first-deposit' into main
2021-08-25 13:52:00 -04:00
Tyler Shipe
3c6638357b
show funding rate even when its 0
2021-08-25 13:43:17 -04:00
Tyler Shipe
dd20e6223d
fix stats api params
2021-08-25 13:40:32 -04:00
Tyler Shipe
66bf66fc7c
remove unused utils fns
2021-08-25 10:23:30 -04:00
saml33
383a82e2d0
use new account modal for first deposit
2021-08-25 23:56:52 +10:00
saml33
2a1b8f59ea
disable withdraw button when no account
2021-08-25 20:54:39 +10:00
Tyler Shipe
b1215906a9
add more precision to trading view chart
2021-08-24 19:22:20 -04:00
Tyler Shipe
b61e0b2f13
use latest client
2021-08-24 17:17:01 -04:00
Tyler Shipe
d9019b961a
reduce margin in trade form; remove leverage text from slider
2021-08-24 16:40:43 -04:00
Tyler Shipe
f08e323e6c
remove console logs
2021-08-24 16:01:43 -04:00
Tyler Shipe
d51f4419ba
clean up notification console logs
2021-08-24 15:43:34 -04:00
Tyler Shipe
f46a7cec4b
dont validate account name
2021-08-24 14:34:54 -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
d39e52de76
fix NaN under slider on perp side
2021-08-24 10:30:15 -04:00
Tyler Shipe
325b6c2424
fix the max withdraw modal to use client fn
2021-08-24 10:15:12 -04:00
saml33
e6c1cfca08
balance rounding in balances panel
2021-08-24 20:09:42 +10:00
saml33
072f450f18
remove rounding from balances on account page
2021-08-24 16:44:58 +10:00
Tyler Shipe
72eda925c1
use event-history-api for spot trades
2021-08-23 18:37:48 -04:00
Tyler Shipe
251b0a1d8d
use the correct pk to get the perpmarket
2021-08-23 18:19:20 -04:00
Tyler Shipe
3f1e91399e
add stat totals
2021-08-23 17:09:16 -04:00
Tyler Shipe
9c75a0dbd2
add available balance tooltip; update client for market margin available fix
2021-08-23 15:46:29 -04:00
Tyler Shipe
de052ace29
add collateral available and market margin available
2021-08-23 15:35:59 -04:00
Tyler Shipe
1e45e2cc03
use maxWithBorrows amount if maxWithoutBorrows is greater
2021-08-23 14:36:02 -04:00
Tyler Shipe
1bbdc2a12e
remove total asset and total liabs vals
2021-08-23 14:21:23 -04:00
Tyler Shipe
5e51ac46c3
add leverage to acct modal; fix rounding in withdraw modal
2021-08-23 14:18:34 -04:00