Showing 1,971 of 13,422 total issues
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.pickBy((values, _key) =>
values.some((v) => getTokenAndChainId(v).symbol === toTokenRouteSymbol)
)
.keys()
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.values()
.flatten()
.filter((token) => token.endsWith(`-${toChainId}`))
.uniq()
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.entries()
.filter(([key, _values]) => key.startsWith(`${fromTokenRouteSymbol}-`))
.filter(([_key, values]) =>
values.some((v) => getTokenAndChainId(v).chainId === toChainId)
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.mapValues((values) =>
values.filter((token) => token === `${toTokenRouteSymbol}-${toChainId}`)
)
.pickBy((_values, key) => key.endsWith(`-${fromChainId}`))
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.pickBy((values, _key) => values.some((v) => v.endsWith(`-${toChainId}`)))
.keys()
.uniq()
.value()
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.entries()
.filter(([key, _values]) => key.startsWith(`${fromTokenRouteSymbol}-`))
.map(([key, _values]) => key)
.flatten()
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.pickBy((values, _key) => {
return _.includes(values, `${toTokenRouteSymbol}-${toChainId}`)
})
.keys()
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.pickBy((_values, key) => key.startsWith(`${fromTokenRouteSymbol}-`))
.keys()
.map((token) => getTokenAndChainId(token).chainId)
.filter((chainId) => chainId !== toChainId)
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.pickBy((values, _key) =>
values.some((v) => {
return v === `${toTokenRouteSymbol}-${toChainId}`
})
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.pickBy((values, _key) => {
return _.includes(values, `${toTokenRouteSymbol}-${toChainId}`)
})
.keys()
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.pickBy((values, _key) => {
return _.includes(values, `${toTokenRouteSymbol}-${toChainId}`)
})
.keys()
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.pickBy((_values, key) => key.startsWith(`${fromTokenRouteSymbol}-`))
.values()
.flatten()
.filter((token) => token.endsWith(`-${toChainId}`))
Avoid too many return
statements within this function. Open
Open
return Intl.NumberFormat(locales, {
minimumFractionDigits: compactDigits,
maximumFractionDigits: compactDigits,
notation: useCompactNotation ? 'compact' : 'standard',
}).format(floatAmount)
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.chain()
.filter((values, _key) => {
return values.some((v) => {
const { symbol } = getTokenAndChainId(v)
Avoid too many return
statements within this function. Open
Open
return Intl.NumberFormat(locales, {
maximumSignificantDigits: 1,
}).format(floatAmount)
Avoid too many return
statements within this function. Open
Open
return 'N/A'
Avoid too many return
statements within this function. Open
Open
return Intl.NumberFormat(locales, {
minimumFractionDigits: standardDigits,
}).format(floatAmount)
Avoid too many return
statements within this function. Open
Open
return formatUnits(BigNumber.from(100), 2)
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_BRIDGE_ROUTES)
.chain()
.filter((values, _key) => {
return values.some((v) => {
const { symbol } = getTokenAndChainId(v)
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_BRIDGE_ROUTES)
.mapValues((values) =>
values.filter((token) => token === `${toTokenRouteSymbol}-${toChainId}`)
)
.pickBy((_values, key) => key.endsWith(`-${fromChainId}`))