'use strict';

var index = require('./index-85dde9b5.cjs.dev.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-21dc8f9d.cjs.dev.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
