@@ -13,7 +13,7 @@ import { Contract, providers } from 'ethers'
1313import { IMentoRouter__factory } from 'mento-router-ts'
1414import { buildRouteDisplay } from '../scripts/quotes/spread'
1515import { Mento , TradablePair } from './mento'
16- import { findTokenBySymbol } from './utils'
16+ import { findTokenBySymbolInTradablePairs } from './utils'
1717
1818// Simplified mock setup - only what's actually needed
1919jest . mock ( '@mento-protocol/mento-core-ts' , ( ) => ( {
@@ -128,7 +128,7 @@ describe('Route Fetching Logic', () => {
128128
129129 for ( const [ symbol , expectedAddress ] of expectedTokens ) {
130130 const displaySymbol = symbol === 'USDT' ? 'USD₮' : symbol
131- const foundAddress = findTokenBySymbol ( allPairs , displaySymbol )
131+ const foundAddress = findTokenBySymbolInTradablePairs ( allPairs , displaySymbol )
132132
133133 expect ( foundAddress ) . toBe ( expectedAddress )
134134 }
@@ -195,7 +195,7 @@ describe('Route Fetching Logic', () => {
195195 describe ( 'Error Handling' , ( ) => {
196196 it ( 'should handle non-existent token addresses' , ( ) => {
197197 const fakeAddress = '0x1234567890123456789012345678901234567890'
198- const result = findTokenBySymbol ( allPairs , fakeAddress )
198+ const result = findTokenBySymbolInTradablePairs ( allPairs , fakeAddress )
199199 expect ( result ) . toBeNull ( )
200200 } )
201201 } )
0 commit comments