import {CurrencyPair} from "./types";
export function symbolToPair(symbol: string): CurrencyPair {
const symbol_regex = "t(?[a-zA-Z]{3})(?[a-zA-Z]{3})"
const match = symbol.match(symbol_regex)
return {
base: match.groups.base,
quote: match.groups.quote
}
}