mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
10 lines
305 B
TypeScript
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;
|
|
};
|