import { a$ as NATIVE_TOKEN_ADDRESS } from './index-4b96b6a0.esm.js';
import { i as isNativeToken } from './fetchCurrencyValue-470c0d46.esm.js';

/**
 * @internal
 */
function cleanCurrencyAddress(currencyAddress) {
  if (isNativeToken(currencyAddress)) {
    return NATIVE_TOKEN_ADDRESS;
  }
  return currencyAddress;
}

export { cleanCurrencyAddress as c };
