synapsecns/sanguine

View on GitHub
packages/synapse-interface/utils/findTokenByRouteSymbol.ts

Summary

Maintainability
A
0 mins
Test Coverage
import _ from 'lodash'
import * as BRIDGEABLE from '@constants/tokens/bridgeable'

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