'use strict';

var index = require('./index-52f1c3c7.cjs.prod.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-881659c8.cjs.prod.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
