'use strict';

var index = require('./index-7d2ca9f2.cjs.prod.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-6c935732.cjs.prod.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
