File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 11import { ethers } from 'ethers'
2+ import ora from 'ora'
23import { getSymbolFromTokenAddress as sdkGetSymbol } from '../../src/utils'
34import { batchProcess } from './batchProcessor'
45
@@ -55,7 +56,6 @@ export async function prefetchTokenSymbols(
5556 if ( uniqueTokenCount === 0 ) {
5657 return
5758 }
58- const ora = ( await import ( 'ora' ) ) . default ;
5959
6060 let spinner : ReturnType < typeof ora > | undefined
6161 if ( showSpinner ) {
@@ -116,7 +116,6 @@ export async function prefetchTokenSymbolsFromExchanges(
116116 exchanges : Array < { providerAddr : string ; id : string } > ,
117117 provider : ethers . providers . Provider
118118) : Promise < void > {
119- const ora = ( await import ( 'ora' ) ) . default ;
120119 const spinner = ora ( {
121120 text : 'Pre-fetching token symbols...' ,
122121 color : 'cyan' ,
Original file line number Diff line number Diff line change 1+ import chalk from 'chalk'
12import { providers } from 'ethers'
3+ import ora from 'ora'
24import { Mento } from '../../src/mento'
35import { parseCommandLineArgs } from './utils/parseCommandLineArgs'
4- import chalk from 'chalk'
56
67
78async function main ( ) {
8- const ora = ( await import ( 'ora' ) ) . default ;
99 // Parse command line arguments
1010 const args = parseCommandLineArgs ( )
1111
You can’t perform that action at this time.
0 commit comments