Skip to content

Commit

Permalink
Merge branch 'feature/pool' of https://github.com/sushiswap/sushiswap
Browse files Browse the repository at this point in the history
…into feature/pool
  • Loading branch information
LufyCZ committed Sep 25, 2022
2 parents 7f7cc80 + d21addd commit c250651
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/pool/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const AMM_ENABLED_NETWORKS: ChainId[] = [
// ChainId.MOONBEAM,
ChainId.ARBITRUM_NOVA,
// ChainId.HARMONY,
// ChainId.BOBA,
ChainId.BOBA,
]

export const SUPPORTED_CHAIN_IDS: ChainId[] = [...AMM_ENABLED_NETWORKS, ...TRIDENT_ENABLED_NETWORKS]
8 changes: 6 additions & 2 deletions packages/graph-client/resolvers/sushiswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,12 @@ export const resolvers: Resolvers = {
const transformer = (pools: Pair[], oneDayPools: Pair[], oneWeekPools: Pair[], farms: any, chainId) => {
return pools?.length > 0
? pools.map((pool) => {
const pool1d = oneDayPools?.find((oneDayPool) => oneDayPool.id === pool.id)
const pool1w = oneWeekPools?.find((oneWeekPool) => oneWeekPool.id === pool.id)
const pool1d = Array.isArray(oneDayPools)
? oneDayPools?.find((oneDayPool) => oneDayPool.id === pool.id)
: undefined
const pool1w = Array.isArray(oneWeekPools)
? oneWeekPools?.find((oneWeekPool) => oneWeekPool.id === pool.id)
: undefined
const volume1w = pool1w ? Number(pool.volumeUSD) - Number(pool1w.volumeUSD) : 0
const volume1d = pool1d ? Number(pool.volumeUSD) - Number(pool1d.volumeUSD) : 0
const fees1w = pool1w ? Number(pool.feesUSD) - Number(pool1w.feesUSD) : 0
Expand Down
5 changes: 2 additions & 3 deletions packages/ui/icons/network/circle/BobaCircle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as React from 'react'

export const BobaCircle = (props: React.ComponentProps<'svg'>) => (
<svg width={128} height={128} viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<rect width={128} height={128} rx={64} fill="#000" />
<rect width={128} height={128} rx={64} fill="url(#a)" />
<path
d="M50.418 79.438a3.005 3.005 0 0 1-2.971-2.512L39.044 27.52a2.977 2.977 0 0 1 .515-2.25 3.014 3.014 0 0 1 1.955-1.228c1.64-.276 3.2.83 3.482 2.47l8.403 49.406a2.977 2.977 0 0 1-.516 2.25 3.014 3.014 0 0 1-2.465 1.27Z"
Expand All @@ -22,8 +21,8 @@ export const BobaCircle = (props: React.ComponentProps<'svg'>) => (
/>
<defs>
<linearGradient id="a" x1="0" y1="0" x2="128" y2="140.5" gradientUnits="userSpaceOnUse">
<stop />
<stop offset="1" />
<stop stopColor="#1CD8D2" />
<stop offset="1" stopColor="#CF0" />
</linearGradient>
</defs>
</svg>
Expand Down

0 comments on commit c250651

Please sign in to comment.