synapsecns/sanguine

View on GitHub
packages/widget/src/utils/findTokenByRouteSymbol.ts

Summary

Maintainability
A
0 mins
Test Coverage
import _ from 'lodash'

import * as BRIDGEABLE from '@/constants/bridgeable'

export const findTokenByRouteSymbol = (routeSymbol: string) => {
  return _.find(BRIDGEABLE, (token) => token.routeSymbol === routeSymbol)
}