Skip to content

Commit

Permalink
refactor: changes due to eslint updated
Browse files Browse the repository at this point in the history
  • Loading branch information
amytsang committed Oct 23, 2024
1 parent fc23de9 commit 940333b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/main/src/store/createPoolListSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const createPoolListSlice = (set: SetState<State>, get: GetState<State>): PoolLi
return poolDatas.filter(({ pool }) => pool.id.startsWith('factory-crvusd'))
} else if (key === 'tricrypto') {
return poolDatas.filter(
({ pool }) => pool.id.startsWith('factory-tricrypto') || pool.id.startsWith('tricrypto')
({ pool }) => pool.id.startsWith('factory-tricrypto') || pool.id.startsWith('tricrypto'),
)
} else if (key === 'stableng') {
return poolDatas.filter(({ pool }) => pool.id.startsWith('factory-stable-ng'))
Expand Down Expand Up @@ -131,7 +131,7 @@ const createPoolListSlice = (set: SetState<State>, get: GetState<State>): PoolLi
{
tokens: [SEARCH_TERM['pool.underlyingCoinAddresses']],
other: [SEARCH_TERM['pool.address'], SEARCH_TERM['pool.gauge.address'], SEARCH_TERM['pool.lpToken']],
}
},
)

const { tokens: groupedSearchTokens, addresses: groupedSearchAddress } = groupSearchTerms(searchTerm)
Expand All @@ -158,7 +158,7 @@ const createPoolListSlice = (set: SetState<State>, get: GetState<State>): PoolLi
rewardsApyMapper: RewardsApyMapper,
tvlMapper: TvlMapper,
volumeMapper: VolumeMapper,
campaignRewardsMapper: CampaignRewardsMapper
campaignRewardsMapper: CampaignRewardsMapper,
) => {
if (poolDatas.length === 0) {
return poolDatas
Expand All @@ -184,7 +184,7 @@ const createPoolListSlice = (set: SetState<State>, get: GetState<State>): PoolLi
return other.length > 0 ? other.reduce((total, { apy }) => total + apy, 0) : 0
}
},
[order]
[order],
)
} else if (sortKey === 'tvl') {
return orderBy(poolDatas, ({ pool }) => Number(tvlMapper[pool.id]?.value ?? 0), [order])
Expand All @@ -203,7 +203,7 @@ const createPoolListSlice = (set: SetState<State>, get: GetState<State>): PoolLi
return 0
}
},
[order]
[order],
)
}
return poolDatas
Expand All @@ -217,7 +217,7 @@ const createPoolListSlice = (set: SetState<State>, get: GetState<State>): PoolLi
volumeMapper,
tvlMapper,
userPoolList,
campaignRewardsMapper
campaignRewardsMapper,
) => {
let { formValues, formStatus, result, ...sliceState } = get()[sliceKey]
const activeKey = getPoolListActiveKey(rChainId, searchParams)
Expand Down Expand Up @@ -299,7 +299,7 @@ const createPoolListSlice = (set: SetState<State>, get: GetState<State>): PoolLi
rewardsApyMapper,
tvlMapper,
volumeMapper ?? {},
campaignRewardsMapper
campaignRewardsMapper,
)
}

Expand Down

0 comments on commit 940333b

Please sign in to comment.