mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-14 08:58:02 -05:00
10 lines
301 B
TypeScript
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;
|
|
};
|