Compare commits

..
Author SHA1 Message Date
James Jia - Test 8cca5f869e Update package.json 2023-10-24 14:09:12 -07:00
James Jia - Test 5d6d5780e1 Update README, package.json 2023-10-24 13:56:45 -07:00
James Jia - Test 1ac21bdb4d Update LICENSE and README 2023-10-24 13:53:37 -07:00
4 changed files with 9 additions and 12 deletions
+3 -6
View File
@@ -310,8 +310,7 @@
"documentation": "https://v4-teacher.vercel.app/", "documentation": "https://v4-teacher.vercel.app/",
"community": "https://discord.com/invite/dydx", "community": "https://discord.com/invite/dydx",
"feedback": "https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", "feedback": "https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform",
"blogs": "https://www.dydx.foundation/blog", "blogs": "https://www.dydx.foundation/blog"
"help": "https://help.dydx.exchange"
}, },
"wallets": { "wallets": {
"walletconnect": { "walletconnect": {
@@ -374,8 +373,7 @@
"documentation": "https://v4-teacher.vercel.app/", "documentation": "https://v4-teacher.vercel.app/",
"community": "https://discord.com/invite/dydx", "community": "https://discord.com/invite/dydx",
"feedback": "https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform", "feedback": "https://docs.google.com/forms/d/e/1FAIpQLSezLsWCKvAYDEb7L-2O4wOON1T56xxro9A2Azvl6IxXHP_15Q/viewform",
"blogs": "https://www.dydx.foundation/blog", "blogs": "https://www.dydx.foundation/blog"
"help": "https://help.dydx.exchange"
}, },
"wallets": { "wallets": {
"walletconnect": { "walletconnect": {
@@ -824,8 +822,7 @@
"documentation": "[HTTP link to documentation, can be null]", "documentation": "[HTTP link to documentation, can be null]",
"community": "[HTTP link to community, can be null]", "community": "[HTTP link to community, can be null]",
"feedback": "[HTTP link to feedback form, can be null]", "feedback": "[HTTP link to feedback form, can be null]",
"blogs": "[HTTP link to blogs, can be null]", "blogs": "[HTTP link to blogs, can be null]"
"help": "[HTTP link to help page, can be null]"
}, },
"wallets": { "wallets": {
"walletconnect": { "walletconnect": {
+2 -2
View File
@@ -44,7 +44,7 @@ export const useTradingView = ({
const hasMarkets = marketIds.length > 0; const hasMarkets = marketIds.length > 0;
useEffect(() => { useEffect(() => {
if (hasMarkets && isClientConnected && marketId) { if (hasMarkets && isClientConnected) {
const widgetOptions = getWidgetOptions(); const widgetOptions = getWidgetOptions();
const widgetOverrides = getWidgetOverrides(appTheme); const widgetOverrides = getWidgetOverrides(appTheme);
const options = { const options = {
@@ -75,7 +75,7 @@ export const useTradingView = ({
tvWidgetRef.current = null; tvWidgetRef.current = null;
setIsChartReady(false); setIsChartReady(false);
}; };
}, [getCandlesForDatafeed, isClientConnected, hasMarkets, selectedLocale, selectedNetwork, !!marketId]); }, [getCandlesForDatafeed, isClientConnected, hasMarkets, selectedLocale, selectedNetwork]);
return { savedResolution }; return { savedResolution };
}; };
+3 -3
View File
@@ -107,8 +107,8 @@ export const getHydratedTradingData = ({
perpetualMarkets?: Record<string, PerpetualMarket>; perpetualMarkets?: Record<string, PerpetualMarket>;
}) => ({ }) => ({
...data, ...data,
asset: assets && perpetualMarkets && assets[perpetualMarkets[data.marketId]?.assetId], asset: assets && perpetualMarkets && assets[perpetualMarkets[data.marketId].assetId],
stepSizeDecimals: perpetualMarkets?.[data.marketId]?.configs?.stepSizeDecimals, stepSizeDecimals: perpetualMarkets?.[data.marketId].configs?.stepSizeDecimals,
tickSizeDecimals: perpetualMarkets?.[data.marketId]?.configs?.tickSizeDecimals, tickSizeDecimals: perpetualMarkets?.[data.marketId].configs?.tickSizeDecimals,
...('side' in data && { orderSide: convertAbacusOrderSide(data.side) }), ...('side' in data && { orderSide: convertAbacusOrderSide(data.side) }),
}); });
+1 -1
View File
@@ -161,7 +161,7 @@ const getFillsTableColumnDef = ({
}[orderSide], }[orderSide],
})} })}
</Styled.Side> </Styled.Side>
<Output type={OutputType.Text} value={asset?.id} /> <Output type={OutputType.Text} value={asset.id} />
</Styled.TableCell> </Styled.TableCell>
), ),
}, },