'use strict';

var index = require('./index-268c8762.cjs.prod.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-d78c84ce.cjs.prod.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
