Skip to content

Commit

Permalink
chore: Remove async and braces
Browse files Browse the repository at this point in the history
  • Loading branch information
memoyil committed Oct 3, 2024
1 parent 0f1bb98 commit 83358cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/web/src/state/farmsV4/state/poolApr/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ export const usePoolAprUpdater = () => {

useQuery({
queryKey: ['apr', 'cake', 'fetchCakeApr', pools],
queryFn: async () => {
queryFn: () =>
Promise.all(pools.map((pool) => getCakeApr(pool))).then((aprList) => {
updateCakeApr(aprList.reduce((acc, apr) => Object.assign(acc, apr), {}))
})
},
}),
enabled: pools?.length > 0,
refetchInterval: SLOW_INTERVAL,
refetchOnMount: false,
Expand Down

0 comments on commit 83358cb

Please sign in to comment.