'use strict';

var index = require('./index-d22aef1d.cjs.dev.js');
var fetchCurrencyValue = require('./fetchCurrencyValue-e02c3eaf.cjs.dev.js');

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

exports.cleanCurrencyAddress = cleanCurrencyAddress;
