Showing 1,971 of 13,422 total issues
Avoid too many return
statements within this function. Open
Open
return Intl.NumberFormat(locales, {
maximumFractionDigits: 0,
}).format(floatAmount)
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.pickBy((_values, key) => key.endsWith(`-${fromChainId}`))
.values()
.flatten()
.filter((value) => value.endsWith(`-${toChainId}`))
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 _(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.endsWith(`-${fromChainId}`))
.pickBy((values, _key) => {
return _.includes(values, `${toTokenRouteSymbol}-${toChainId}`)
})
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.pickBy((_values, key) => key.endsWith(`-${fromChainId}`))
.values()
.flatten()
.uniq()
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.entries()
.filter(([_key, values]) =>
values.some((v) => v.endsWith(`-${toChainId}`))
)
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.chain()
.filter((values, key) => {
return (
values.some((v) => {
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[
`${fromTokenRouteSymbol}-${fromChainId}`
]?.filter((token) => token.endsWith(`-${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 undefined
Avoid too many return
statements within this function. Open
Open
return _.uniq(
EXISTING_BRIDGE_ROUTES[`${fromTokenRouteSymbol}-${fromChainId}`]?.map(
(token) => getTokenAndChainId(token).chainId
)
)
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_BRIDGE_ROUTES)
.values()
.flatten()
.filter((token) => token.startsWith(`${toTokenRouteSymbol}-`))
.map((token) => getTokenAndChainId(token).chainId)
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_BRIDGE_ROUTES)
.entries()
.filter(([key, _values]) => key.endsWith(`-${fromChainId}`))
.map(([_key, values]) => values)
.flatten()
Avoid too many return
statements within this function. Open
Open
return EXISTING_SWAP_ROUTES[`${fromTokenRouteSymbol}-${fromChainId}`]
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_SWAP_ROUTES)
.entries()
.filter(([_key, values]) =>
values.some((v) => v.endsWith(`-${toChainId}`))
)
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_BRIDGE_ROUTES)
.entries()
.filter(([key, _values]) => key.startsWith(`${fromTokenRouteSymbol}-`))
.map(([_key, values]) => values)
.flatten()
Avoid too many return
statements within this function. Open
Open
return _(EXISTING_BRIDGE_ROUTES)
.entries()
.filter(([key, _values]) => key.endsWith(`-${fromChainId}`))
.map(([_key, values]) => values)
.flatten()
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)