import { isAddress } from "viem";
import { DUMMY_ADDRESS, DUMMY_SOLANA_ADDRESS } from "./constants";

export const isDummyAddress = (address: string) => {
	const isEthereumAddress = isAddress(address);

	if (isEthereumAddress) {
		return DUMMY_ADDRESS.toLowerCase() === address.toLowerCase();
	}

	//   Solana addresses are case-sensitive
	return DUMMY_SOLANA_ADDRESS === address;
};
