import { aW as NATIVE_TOKEN_ADDRESS } from './index-e27ddc0a.browser.esm.js';
import { i as isNativeToken } from './fetchCurrencyValue-d03e2a34.browser.esm.js';

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

export { cleanCurrencyAddress as c };
