Skip to content

Commit

Permalink
Merge branch 'release-ghostnet-beta' into 410-further-split-out-batch…
Browse files Browse the repository at this point in the history
…er-and-mm-contracts-to-avoid-size-constraint
  • Loading branch information
glottologist authored Nov 16, 2023
2 parents 0421cc6 + 00ae6a2 commit a4d69bd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions batcher-ui/src/commands/exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ const fetchSwapsCmd = () => {
);
};


export {
fetchPairInfosCmd,
fetchCurrentBatchNumberCmd,
Expand Down
1 change: 1 addition & 0 deletions batcher-ui/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
const Swap = () => {
const userAddress = useSelector(userAddressSelector);
const tokenPair = useSelector(currentPairSelector);
//const tokens = useSelector(tokensSelector);

const dispatch = useDispatch();

Expand Down
1 change: 1 addition & 0 deletions batcher-ui/src/types/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export type VolumesState = {
sell: Record<PriceStrategy, number>;
};


export type ExchangeState = {
priceStrategy: PriceStrategy;
currentSwap: CurrentSwap;
Expand Down
5 changes: 3 additions & 2 deletions batcher-ui/src/utils/token-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const getLexicographicalPairName = (
from: string
): string => {
const comp = to.localeCompare(from);
if (comp < 0) {
if (comp < 0)
return `${to}-${from}`;
} else {
return `${from}-${to}`;
Expand Down Expand Up @@ -179,6 +179,7 @@ export const getTokensMetadata = async () => {
);
};


export const getTokensFromStorage = async () => {
const storage = await getTokenManagerStorage();
const validTokens = storage['valid_tokens'];
Expand Down Expand Up @@ -220,4 +221,4 @@ export const getSwapsFromStorage = async () => {
};
})
);
};
}
3 changes: 2 additions & 1 deletion batcher-ui/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const getSwaps = async () => {
swaps.map((value, index) => [
getLexicographicalPairName(value.swap.to, value.swap.from),
value,
])
])<<<<<<< 410-further-split-out-batcher-and-mm-contracts-to-avoid-size-constraint
);
console.info('getSwaps swapMap', swapsMap);

Expand Down Expand Up @@ -401,6 +401,7 @@ export const ensureMapTypeOnTokens = (
return toks;
}
};

export const ensureMapTypeOnSwaps = (
swaps: Map<string, ValidSwap>
): Map<string, ValidSwap> => {
Expand Down

0 comments on commit a4d69bd

Please sign in to comment.