'use strict';

var index = require('./index-5af28443.cjs.prod.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-e5f321be.cjs.prod.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
