import { a_ as NATIVE_TOKEN_ADDRESS } from './index-6d2ce31a.esm.js';
import { i as isNativeToken } from './fetchCurrencyValue-d0232793.esm.js';

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

export { cleanCurrencyAddress as c };
