packages/widget/src/utils/flattenPausedTokens.ts
import { PAUSED_TOKENS_BY_CHAIN } from '@/constants/pausedTokens'
export const flattenPausedTokens = () => {
const flatList = []
for (const chainId in PAUSED_TOKENS_BY_CHAIN) {
if (PAUSED_TOKENS_BY_CHAIN.hasOwnProperty(chainId)) {
PAUSED_TOKENS_BY_CHAIN[chainId].forEach((token) => {
flatList.push(`${token}-${chainId}`)
})
}
}
return flatList
}