Files
TheGame/packages/web/utils/daoHelpers.ts
2022-02-19 11:23:03 -07:00

10 lines
305 B
TypeScript

import { getHexChainId } from '@metafam/utils';
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;
};