'use strict';

var index = require('./index-7735921d.cjs.prod.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-310de056.cjs.prod.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
