Files
TheGame/packages/web/utils/daoHelpers.ts
2022-09-29 08:25:43 -06:00

10 lines
301 B
TypeScript

import { getHexChainId } from './networks';
export const getDAOLink = (chain?: string, address?: string): string | null => {
if (address && chain) {
const hexChainId = getHexChainId(chain);
return `https://app.daohaus.club/dao/${hexChainId}/${address.toLowerCase()}`;
}
return null;
};