'use strict';

var index = require('./index-c4e2ad05.cjs.dev.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-d3da0cf7.cjs.dev.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
