'use strict';

var index = require('./index-23d51a41.cjs.dev.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-b917a4d6.cjs.dev.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
