'use strict';

var index = require('./index-f99fba6c.cjs.prod.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-6a6d9b80.cjs.prod.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
