'use strict';

var index = require('./index-1627eb9c.cjs.dev.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-fd470bc3.cjs.dev.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
