File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { Mento } from '../src/mento'
99import fs from 'fs'
1010import path from 'path'
1111
12- async function getTradablePairsForNetwork ( chainId : number , rpcUrl : string ) {
12+ async function getTradablePairsForNetwork ( rpcUrl : string ) {
1313 const provider = new providers . JsonRpcProvider ( rpcUrl )
1414 const mento = await Mento . create ( provider )
1515 return await mento . getTradablePairs ( true )
@@ -22,10 +22,7 @@ async function main() {
2222 for ( const [ chainId , rpcUrl ] of Object . entries ( rpcUrls ) ) {
2323 console . log ( `Fetching pairs for chain ${ chainId } ...` )
2424 try {
25- results [ Number ( chainId ) ] = await getTradablePairsForNetwork (
26- Number ( chainId ) ,
27- rpcUrl
28- )
25+ results [ Number ( chainId ) ] = await getTradablePairsForNetwork ( rpcUrl )
2926 } catch ( e ) {
3027 console . error ( `Error fetching pairs for chain ${ chainId } :` , e )
3128 }
You can’t perform that action at this time.
0 commit comments