'use strict';

var index = require('./index-e68d6c69.cjs.prod.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-c6ee7fb3.cjs.prod.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
