Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
vkulinich-cl committed Dec 9, 2024
1 parent 178fbcd commit b23c6d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import BN from "bignumber.js"
import { PoolToken, PoolType } from "@galacticcouncil/sdk"
import { OmniPoolToken } from "@galacticcouncil/sdk/build/types/pool/omni/OmniPool"
import { millisecondsInMinute } from "date-fns"
import { omit } from "utils/rx"
import { TOmnipoolAssetsData } from "./omnipool"
import { HUB_ID } from "utils/api"

Expand Down Expand Up @@ -63,7 +62,7 @@ export const useSDKPools = () => {
?.tokens as OmniPoolToken[]
).map((token) => {
return {
...omit(["hubReserves"], token),
...token,
shares: token.shares?.toString(),
protocolShares: token.protocolShares?.toString(),
cap: token.cap?.toString(),
Expand Down Expand Up @@ -107,7 +106,6 @@ export const useSDKPools = () => {

const xykPools = pools.filter((pool) => pool.type === PoolType.XYK)

console.log("refetched", xykPools)
queryClient.setQueryData(QUERY_KEYS.omnipoolTokens, tokens)
queryClient.setQueryData(QUERY_KEYS.hubToken, hub)
queryClient.setQueryData(QUERY_KEYS.xykPools, xykPools)
Expand Down

0 comments on commit b23c6d4

Please sign in to comment.