import { a_ as NATIVE_TOKEN_ADDRESS } from './index-e36dbf1f.esm.js';
import { i as isNativeToken } from './fetchCurrencyValue-84d63360.esm.js';

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

export { cleanCurrencyAddress as c };
