'use strict';

var index = require('./index-95141ea8.cjs.dev.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-dab1c727.cjs.dev.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
