import { a$ as NATIVE_TOKEN_ADDRESS } from './index-d1db6787.esm.js';
import { i as isNativeToken } from './fetchCurrencyValue-85d1cc1e.esm.js';

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

export { cleanCurrencyAddress as c };
