diff --git a/batcher-ui/components/BatcherInfo/index.tsx b/batcher-ui/components/BatcherInfo/index.tsx index 75ecb23c..22249be1 100644 --- a/batcher-ui/components/BatcherInfo/index.tsx +++ b/batcher-ui/components/BatcherInfo/index.tsx @@ -26,7 +26,7 @@ const BatcherInfo = () => { return (
Batcher Time Remaining
@@ -47,7 +47,7 @@ const BatcherInfo = () => {{`${ status === BatcherStatus.CLEARED - ? 'LastBatch' + ? 'Last batch : ' : 'Current batch : ' } ${batchNumber}`}
@@ -59,7 +59,7 @@ const BatcherInfo = () => {Balances
{currentSwap.isReverse @@ -85,15 +85,18 @@ const BatcherInfo = () => {
Address
{userAddress ? ( -{userAddress}
+{`${userAddress.substring( + 0, + 3 + )}...${userAddress.substring(userAddress.length - 3)}`}
) : (No Wallet connected
)}Oracle Price
{oraclePrice} {tokenPair}
diff --git a/batcher-ui/contexts/events.tsx b/batcher-ui/contexts/events.tsx
index 152503d0..d0818021 100644
--- a/batcher-ui/contexts/events.tsx
+++ b/batcher-ui/contexts/events.tsx
@@ -1,24 +1,24 @@
-import { HubConnection, HubConnectionBuilder } from '@microsoft/signalr';
-import React, { createContext, useEffect, useState } from 'react';
-import { useSelector } from 'react-redux';
+import { /* HubConnection */ HubConnectionBuilder } from '@microsoft/signalr';
+import React, { createContext, useEffect } from 'react';
+// import { useSelector } from 'react-redux';
import { useDispatch } from 'react-redux';
import { newEvent } from 'src/actions/events';
-import { userAddressSelector } from 'src/reducers';
-import { setup, subscribeTokenBalances } from 'utils/webSocketUtils';
+// import { userAddressSelector } from 'src/reducers';
+import { setup /* subscribeTokenBalances */ } from 'utils/webSocketUtils';
export const EventsContext = createContext<{}>({});
export const EventsProvider = ({ children }: { children: React.ReactNode }) => {
- const [socket, setSocket] = useState