Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data api #1590

Merged
merged 163 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
54845b1
feat: add data api to graph client
OlaStenberg Jun 21, 2024
0a5df26
feat: add test table
0xMasayoshi Jun 21, 2024
cfb0a45
fix: pool name column
0xMasayoshi Jun 21, 2024
e94b2b4
feat(apps/evm): revalidate after 3m
OlaStenberg Jun 21, 2024
bf73892
feat(packages/graph-client): portfolio queries
OlaStenberg Jun 29, 2024
7cdaba1
feat: init portfolio
OlaStenberg Jun 30, 2024
1d4b536
feat: portfolio positions
OlaStenberg Jun 30, 2024
f963525
fix: portfolio endpoints, hide header columns
OlaStenberg Jul 1, 2024
468a7e6
fix: portfolio tables
OlaStenberg Jul 1, 2024
3e77eac
feat(packages/graph-client): add portfolio claimables
OlaStenberg Jul 5, 2024
4e74543
Merge remote-tracking branch 'origin/master' into data-api
0xMasayoshi Jul 7, 2024
9dea2ac
fix: build
0xMasayoshi Jul 8, 2024
cff6ba6
Merge remote-tracking branch 'origin/master' into data-api
0xMasayoshi Jul 11, 2024
6b353f2
feat: portfolio tokens tab
0xMasayoshi Jul 11, 2024
e4e2a9c
feat: portfolio positions tab
0xMasayoshi Jul 12, 2024
b360988
feat: portfolio claimables tab
0xMasayoshi Jul 12, 2024
c794454
fix: portfolio position rows
0xMasayoshi Jul 12, 2024
d706e69
feat: portfolio mobile view
0xMasayoshi Jul 15, 2024
51afc33
feat: portfolio history tab
0xMasayoshi Jul 15, 2024
7e15054
fix: build
0xMasayoshi Jul 15, 2024
c06412f
style: center portfolio buttons
0xMasayoshi Jul 15, 2024
ee187ea
feat: portfolio loading state
0xMasayoshi Jul 17, 2024
afb3696
chore: portfolio placeholder icons
0xMasayoshi Jul 18, 2024
ab94c83
feat: add data-api queries
OlaStenberg Jul 20, 2024
bf673b7
feat: update data source for v2 page
OlaStenberg Jul 21, 2024
e5edb0d
refactor: v3 page, use data api
OlaStenberg Jul 21, 2024
77fb588
refactor: sushi-bar use data api
OlaStenberg Jul 22, 2024
e6a5e23
refactor: use data api for smart pools
OlaStenberg Jul 22, 2024
36a5abb
refactor: steer single vault page
OlaStenberg Jul 23, 2024
63d43fb
refactor: separate buckets from pool queries
OlaStenberg Jul 23, 2024
a2dfcf8
refactor(jobs): delete jobs
OlaStenberg Jul 23, 2024
820e4b5
refactor: v2 positions
OlaStenberg Jul 24, 2024
108e8bc
refactor: smart pool positions
OlaStenberg Jul 24, 2024
70bd7c9
WIP
OlaStenberg Jul 25, 2024
d47c5cb
fix: types/build error
OlaStenberg Jul 25, 2024
4925fd5
chore: pnpm 8.15.8 again
OlaStenberg Jul 25, 2024
a757ae6
Merge remote-tracking branch 'origin/master' into data-api
0xMasayoshi Jul 26, 2024
ca0f8da
refactor: types
OlaStenberg Jul 29, 2024
e035d08
refactor: data api url
OlaStenberg Jul 30, 2024
d072a9c
refactor: steer types
OlaStenberg Jul 30, 2024
eaafa66
chore: update data api url
OlaStenberg Aug 1, 2024
794fd51
Merge remote-tracking branch 'origin/master' into data-api
0xMasayoshi Aug 2, 2024
03f16cb
wip
0xMasayoshi Aug 2, 2024
8b82841
chore: update urls
0xMasayoshi Aug 6, 2024
4d8a030
fix: links
0xMasayoshi Aug 6, 2024
ce2729c
fix: v3 add & incentive page
0xMasayoshi Aug 6, 2024
1909f23
chore: SUSHI_DATA_API_HOST env
0xMasayoshi Aug 6, 2024
3d749a8
fix: build
0xMasayoshi Aug 6, 2024
6c3a869
fix: .env.example
0xMasayoshi Aug 7, 2024
f40059c
chore: move /explore -> /explore/pools
0xMasayoshi Aug 7, 2024
a241ed3
fix: sort tokens in getV3BasePoolsByToken
0xMasayoshi Aug 7, 2024
6d691dc
chore: cleanup
0xMasayoshi Aug 7, 2024
ff46a8c
Merge remote-tracking branch 'origin/master' into data-api
0xMasayoshi Aug 7, 2024
6c6415a
Merge remote-tracking branch 'origin/fix-aptos-links' into data-api
0xMasayoshi Aug 7, 2024
a375ef1
chore: update header
0xMasayoshi Aug 7, 2024
f012ebf
feat(packages/graph-client): error handling
OlaStenberg Aug 7, 2024
8239d85
Merge branch 'data-api' of github.com:sushiswap/sushiswap into data-api
OlaStenberg Aug 7, 2024
ce94042
fix: header
0xMasayoshi Aug 7, 2024
3e4e15f
chore(packages/graph-client): update request header for day buckets
OlaStenberg Aug 7, 2024
38f2050
Merge branch 'data-api' of github.com:sushiswap/sushiswap into data-api
OlaStenberg Aug 7, 2024
6c070b3
chore(packages/graph-client): update request headers
OlaStenberg Aug 7, 2024
1fabe9b
chore(packages/graph-client): error handling
OlaStenberg Aug 7, 2024
f54c7b9
chore(packages/graph-client): error handling
OlaStenberg Aug 7, 2024
af5b19d
chore: update navbar items
0xMasayoshi Aug 7, 2024
60422e1
chore: remove breadcrumb from pool pages
0xMasayoshi Aug 7, 2024
8a9e7a5
fix: links
0xMasayoshi Aug 7, 2024
2be1882
test(apps/web): update pool e2e test
OlaStenberg Aug 7, 2024
6a24ff3
Merge branch 'data-api' of github.com:sushiswap/sushiswap into data-api
OlaStenberg Aug 7, 2024
ad2718d
chore: format
OlaStenberg Aug 7, 2024
276527a
chore: enable pool e2e test
OlaStenberg Aug 7, 2024
93dae51
test(apps/web): update e2e
OlaStenberg Aug 8, 2024
0bcb44a
Merge branch 'master' into data-api
OlaStenberg Aug 8, 2024
6b97567
Merge branch 'master' into data-api
OlaStenberg Aug 8, 2024
bde3557
fix: smart positions
0xMasayoshi Aug 8, 2024
231e7b0
feat: explore/smart-pools
0xMasayoshi Aug 8, 2024
b944f5b
fix: lint
OlaStenberg Aug 8, 2024
a4e8ad5
Merge branch 'data-api' of github.com:sushiswap/sushiswap into data-api
OlaStenberg Aug 8, 2024
42a9523
fix: lint
OlaStenberg Aug 8, 2024
93ed983
chore: lint
OlaStenberg Aug 8, 2024
133f003
feat: remove fee page
OlaStenberg Aug 8, 2024
61d22f7
Merge branch 'data-api' of github.com:sushiswap/sushiswap into data-api
OlaStenberg Aug 8, 2024
94a585f
fix: navbar
0xMasayoshi Aug 8, 2024
4abc038
test(apps/web): fix chain id variable
OlaStenberg Aug 8, 2024
5da63ad
fix: v3 fee page
0xMasayoshi Aug 8, 2024
9b979a5
test(apps/web): fix chain id variable
OlaStenberg Aug 8, 2024
9781891
Merge branch 'data-api' of github.com:sushiswap/sushiswap into data-api
OlaStenberg Aug 8, 2024
d4e506b
fix: update-schemas
0xMasayoshi Aug 8, 2024
37d1e76
feat: allow short chain name
0xMasayoshi Aug 8, 2024
f883018
refactor: v3 pool fee page
OlaStenberg Aug 8, 2024
f8e79ad
Merge branch 'data-api' of github.com:sushiswap/sushiswap into data-api
OlaStenberg Aug 8, 2024
56a423d
chore: lint
OlaStenberg Aug 8, 2024
3d9c979
test(apps/web): fix chain id variable
OlaStenberg Aug 8, 2024
15fd557
Merge branch 'data-api' of github.com:sushiswap/sushiswap into data-api
OlaStenberg Aug 8, 2024
c0cfa54
fix(packages/graph-client): add request header to v3 query
OlaStenberg Aug 8, 2024
5b0b8f0
test(apps/web): fix goTo url
OlaStenberg Aug 9, 2024
3799cd2
test(apps/web): fix e2e
OlaStenberg Aug 9, 2024
804c691
chore: lint
OlaStenberg Aug 9, 2024
036a432
test(apps/web): disable remove v3 liquidity e2e
OlaStenberg Aug 9, 2024
d8f5051
Merge branch 'data-api' of github.com:sushiswap/sushiswap into data-api
OlaStenberg Aug 9, 2024
8a496c7
Merge branch 'master' into data-api
OlaStenberg Aug 9, 2024
b7b09e3
chore: nav cleanup
matthewlilley Aug 9, 2024
282279f
Merge branch 'data-api' of https://github.com/sushiswap/sushiswap int…
matthewlilley Aug 9, 2024
f04f30e
feat: update top pools query (support non evm like aptos)
OlaStenberg Aug 9, 2024
41cfe45
Merge branch 'data-api' of github.com:sushiswap/sushiswap into data-api
OlaStenberg Aug 9, 2024
2278ba2
refactor(packages/graph-client): separate top evm/non evm pools
OlaStenberg Aug 9, 2024
d94ecbc
fix: links and pool e2e test
OlaStenberg Aug 9, 2024
fc4fb34
chore: update explore cta
0xMasayoshi Aug 10, 2024
1733aba
fix: notFound
0xMasayoshi Aug 10, 2024
4a89e7c
fix: PoolTable links
0xMasayoshi Aug 10, 2024
da2b360
feat: update urls to use network name over chain id
OlaStenberg Aug 10, 2024
0086b9a
Merge branch 'data-api' of github.com:sushiswap/sushiswap into data-api
OlaStenberg Aug 10, 2024
c5cfcf6
fix(apps/web): TableFilter
OlaStenberg Aug 10, 2024
4e0a145
Merge remote-tracking branch 'origin/master' into data-api
0xMasayoshi Aug 12, 2024
00193ac
chore: format
0xMasayoshi Aug 12, 2024
da1742f
fix: portolio claimables loading state
0xMasayoshi Aug 12, 2024
11bf9dd
feat: add links to portfolio
0xMasayoshi Aug 12, 2024
7c7201b
fix: links
0xMasayoshi Aug 12, 2024
fe616ff
fix: swap loading state
0xMasayoshi Aug 12, 2024
f476a11
fix: key collision
0xMasayoshi Aug 14, 2024
e418399
feat: disable smart pools tab on unsupported networks
OlaStenberg Aug 14, 2024
a9bc7b2
fix(apps/web): middleware regex, support hyphon for networks like 'sk…
OlaStenberg Aug 16, 2024
393042f
feat: explore charts
0xMasayoshi Aug 16, 2024
8c95e92
fix: stack series in TVL chart
0xMasayoshi Aug 19, 2024
2b5c705
fix: fee button
0xMasayoshi Aug 19, 2024
4bda46c
feat: use suspense for explore charts
0xMasayoshi Aug 19, 2024
80312ec
fix: explore charts loading state fallback
0xMasayoshi Aug 19, 2024
aa8d5e3
fix: explore tvl chart opacity
0xMasayoshi Aug 19, 2024
e8ad388
feat: create SkeletonChart
0xMasayoshi Aug 19, 2024
9dc223c
chore: update SkeletonChart
0xMasayoshi Aug 19, 2024
bc06160
chore: update skeleton area chart
0xMasayoshi Aug 19, 2024
7a40524
fix: color
0xMasayoshi Aug 19, 2024
ffc7955
Merge remote-tracking branch 'origin/master' into data-api
0xMasayoshi Aug 19, 2024
843bfdd
chore: mv /positions
0xMasayoshi Aug 19, 2024
4d342c5
fix: incentivize page chainId
0xMasayoshi Aug 19, 2024
9ff043c
chore: lint
0xMasayoshi Aug 19, 2024
873bf14
chore: add avatar placeholder
0xMasayoshi Aug 19, 2024
6312d9e
fix: v3 page
0xMasayoshi Aug 19, 2024
4df6a4a
fix: position table urls
0xMasayoshi Aug 19, 2024
7bf68f8
chore: add loading state to explore pools table
0xMasayoshi Aug 20, 2024
7cc7fb9
fix: v3 pool page back button
0xMasayoshi Aug 20, 2024
7ce3d7d
fix: revalidate
0xMasayoshi Aug 20, 2024
711adf2
fix: links
0xMasayoshi Aug 20, 2024
e5be684
feat: add steer strategy
OlaStenberg Aug 21, 2024
831a96b
fix: add strategy to strategy config
OlaStenberg Aug 21, 2024
4f9d98b
refactor: steer, allow all strategies because they are verified
OlaStenberg Aug 21, 2024
25dcb5f
fix: add description to smart pools
OlaStenberg Aug 21, 2024
cac4cd8
Merge remote-tracking branch 'origin/master' into data-api
0xMasayoshi Aug 21, 2024
816582b
chore: lint
0xMasayoshi Aug 21, 2024
fa00c33
fix: revalidate
0xMasayoshi Aug 21, 2024
24fd7a8
fix: handle error in PoolChartGraph
0xMasayoshi Aug 21, 2024
f49cfaa
fix: xAxis label overflow
0xMasayoshi Aug 21, 2024
7365862
chore: smart pools explore table loading state
0xMasayoshi Aug 21, 2024
5177705
fix: explore pools table column
0xMasayoshi Aug 22, 2024
49c1d6d
fix: tx count format
0xMasayoshi Aug 22, 2024
855b23b
fix: chart padding
0xMasayoshi Aug 22, 2024
ab4540c
chore: always show Smart Pools btn on /explore
0xMasayoshi Aug 22, 2024
7e30214
fix: smart pool network selector
0xMasayoshi Aug 22, 2024
e11979c
fix: TableFiltersNetwork
0xMasayoshi Aug 22, 2024
4562664
feat: portfolio history explorer links
0xMasayoshi Aug 22, 2024
ed88165
chore: remove @sushiswap/pool-job references
0xMasayoshi Aug 22, 2024
56c6256
chore: position header style
0xMasayoshi Aug 22, 2024
597029b
fix: filter smart-pools by isEnabled on explore page
0xMasayoshi Aug 22, 2024
2d5a9b2
style: area skeleton
0xMasayoshi Aug 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
"@sushiswap/tailwindcss-config",
"@sushiswap/typescript-config",

"@sushiswap/pool-job",

"@sushiswap/bonds-sdk",
"@sushiswap/client",
"@sushiswap/database",
Expand Down
3 changes: 3 additions & 0 deletions apps/web/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ ALCHEMY_ID=
NEXT_PUBLIC_INFURA_ID=
INFURA_ID=
DRPC_ID=

SUSHI_DATA_API_HOST=
NEXT_PUBLIC_SUSHI_DATA_API_HOST=
2 changes: 1 addition & 1 deletion apps/web/src/app/(cms)/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function Header() {
const navData: NavigationElement[] = [
{
title: 'Explore',
items: EXPLORE_NAVIGATION_LINKS,
items: EXPLORE_NAVIGATION_LINKS(),
show: 'everywhere',
type: NavigationElementType.Dropdown,
},
Expand Down
3 changes: 1 addition & 2 deletions apps/web/src/app/(evm)/(trade)/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ export const Header: FC = () => {
const chainId = useChainId()
return (
<Navigation
leftElements={headerElements}
leftElements={headerElements(chainId)}
rightElement={<WagmiHeaderComponents chainIds={SUPPORTED_CHAIN_IDS} />}
chainId={chainId}
/>
)
}
Original file line number Diff line number Diff line change
@@ -1,71 +1,55 @@
'use client'

import { GiftIcon } from '@heroicons/react-v1/outline'
import { LinkExternal, LinkInternal, typographyVariants } from '@sushiswap/ui'
import { Button } from '@sushiswap/ui'
import { Chip } from '@sushiswap/ui'
import {
Button,
Chip,
DropdownMenu,
DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuItem,
DropdownMenuTrigger,
LinkInternal,
SelectIcon,
} from '@sushiswap/ui'
import { SelectIcon } from '@sushiswap/ui'
import { DiscordIcon } from '@sushiswap/ui/icons/DiscordIcon'
import { FC } from 'react'
import { ChainId } from 'sushi/chain'
import { ChainId, ChainKey } from 'sushi/chain'
import {
SushiSwapV3ChainId,
isSushiSwapV2ChainId,
isSushiSwapV3ChainId,
} from 'sushi/config'
import { useChainId } from 'wagmi'

export const Hero: FC = () => {
const chainId = useChainId()

export const Hero: FC<{ chainId: ChainId }> = ({ chainId }) => {
return (
<section className="flex flex-col justify-between gap-12 lg:flex-row lg:items-start mb-12">
<div className="flex flex-col items-center flex-grow gap-6 lg:items-start">
<div className="flex flex-col">
<h1 className={typographyVariants({ variant: 'h1' })}>
Put your funds to work <br />
by providing liquidity.
</h1>
<p
className={typographyVariants({
variant: 'lead',
className: 'max-w-[500px]',
})}
>
When you add liquidity to a pool, you can receive a share of its
trading volume and potentially snag extra rewards when there are
incentives involved!
</p>
</div>
<div className="flex flex-col sm:flex-row w-full sm:w-[unset] gap-4">
<section className="flex flex-col gap-6">
<span className="text-5xl font-bold">Manage Liquidity Positions</span>
<div className="flex justify-between flex-wrap gap-6">
<span className="text-xl w-[720px] text-muted-foreground">
You can adjust and claim rewards for your liquidity positions on the
connected network. For V2 pools, you can migrate to increase capital
efficiency.
</span>
<div className="flex flex-col w-full sm:w-[unset] gap-4">
<div className="flex items-center w-full">
<Button
asChild
size="lg"
size="sm"
className="flex-1 w-full sm:flex-0 sm:w-[unset] rounded-r-none"
>
<LinkInternal
href={
isSushiSwapV3ChainId(chainId as SushiSwapV3ChainId)
? `/pool/add?chainId=${chainId}`
? `/${ChainKey[chainId]}/pool/v3/add`
: isSushiSwapV2ChainId(chainId as SushiSwapV3ChainId)
? `/pool/add/v2/${chainId}`
: '/pool/add'
? `/${ChainKey[chainId]}/pool/v2/add`
: `/${ChainKey[ChainId.ETHEREUM]}/pool/v3/add`
}
>
I want to create a position
</LinkInternal>
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button asChild size="lg" className="rounded-l-none">
<Button asChild size="sm" className="rounded-l-none">
<SelectIcon />
</Button>
</DropdownMenuTrigger>
Expand All @@ -78,7 +62,7 @@ export const Hero: FC = () => {
asChild
>
<LinkInternal
href={`/pool/add?chainId=${chainId}`}
href={`/${ChainKey[chainId]}/pool/v3/add`}
className="flex flex-col !items-start gap-1 cursor-pointer"
>
<div className="flex items-center gap-1 font-medium leading-none">
Expand All @@ -97,7 +81,7 @@ export const Hero: FC = () => {
{isSushiSwapV2ChainId(chainId as ChainId) ? (
<DropdownMenuItem asChild>
<LinkInternal
href={`/pools/add/v2/${chainId}`}
href={`/${ChainKey[chainId]}/pool/v2/add`}
className="flex flex-col !items-start gap-1 cursor-pointer"
>
<div className="flex items-center gap-1 font-medium leading-none">
Expand All @@ -118,37 +102,17 @@ export const Hero: FC = () => {
asChild
icon={GiftIcon}
variant="secondary"
size="lg"
size="sm"
>
<LinkInternal href="/pools/incentivize">
<LinkInternal
className="text-sm"
href={`/${ChainKey[chainId]}/pool/incentivize`}
>
I want to incentivize a pool
</LinkInternal>
</Button>
</div>
</div>
<div className="flex flex-col items-center gap-4 lg:items-end">
<div className="flex flex-col items-center gap-1 lg:items-end">
<span className="font-semibold lg:text-sm">
Looking for a partnership with Sushi?
</span>
<Button
className="flex-1 w-full sm:flex-0 sm:w-[unset]"
variant="link"
size="sm"
asChild
>
<LinkInternal href="/partner">Apply here</LinkInternal>
</Button>
</div>
<div className="flex flex-col items-center gap-1 lg:items-end">
<span className="font-semibold lg:text-sm">Need Help?</span>
<Button icon={DiscordIcon} variant="link" size="sm" asChild>
<LinkExternal href="https://sushi.com/discord">
Join our discord
</LinkExternal>
</Button>
</div>
</div>
</section>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,43 @@

import { Container, LinkInternal } from '@sushiswap/ui'
import { useSearchParams } from 'next/navigation'

import { PathnameButton, PoolsFiltersProvider } from 'src/ui/pool'
import { Hero } from '../hero'
import { PathnameButton } from 'src/ui/pathname-button'
import { PoolsFiltersProvider } from 'src/ui/pool'
import { ChainId, ChainKey, isChainId } from 'sushi/chain'
import { Hero } from './hero'

export default function TabsLayout({
children,
}: { children: React.ReactNode }) {
params,
}: {
children: React.ReactNode
params: { chainId: string }
}) {
const chainId = +params.chainId as ChainId
const searchParams = useSearchParams()

if (!isChainId(chainId)) {
throw new Error('Must be a valid chain id')
}

return (
<>
<Container maxWidth="7xl" className="px-4 pt-20 pb-10">
<Hero />
<Container maxWidth="7xl" className="px-4 py-16">
<Hero chainId={chainId} />
</Container>
<Container maxWidth="7xl" className="px-4">
<div className="flex flex-wrap items-center gap-2 mb-4">
<LinkInternal
shallow={true}
scroll={false}
href={`/pool?${searchParams.toString()}`}
>
<PathnameButton id="all-pools" pathname={'/pool'} asChild size="sm">
All Pools
</PathnameButton>
</LinkInternal>
<LinkInternal
shallow={true}
scroll={false}
href={`/pool/smart-pool?${searchParams.toString()}`}
>
<PathnameButton
id="smart-pools"
pathname={'/pool/smart-pool'}
asChild
size="sm"
>
Smart Pools
</PathnameButton>
</LinkInternal>
<Container
maxWidth="7xl"
className="px-4 flex justify-between flex-wrap-reverse gap-4 pb-4"
>
<div className="flex flex-wrap items-center gap-2">
<LinkInternal
shallow={true}
scroll={false}
href={`/pool/my-positions?${searchParams.toString()}`}
href={`/${ChainKey[chainId]}/pool?${searchParams.toString()}`}
>
<PathnameButton
id="my-positions"
pathname={'/pool/my-positions'}
pathname={`/${ChainKey[chainId]}/pool`}
asChild
size="sm"
>
Expand All @@ -58,11 +48,11 @@ export default function TabsLayout({
<LinkInternal
shallow={true}
scroll={false}
href={`/pool/my-rewards?${searchParams.toString()}`}
href={`/${ChainKey[chainId]}/rewards?${searchParams.toString()}`}
>
<PathnameButton
id="my-rewards"
pathname={'/pool/my-rewards'}
pathname={`/${ChainKey[chainId]}/rewards`}
asChild
size="sm"
>
Expand All @@ -72,11 +62,11 @@ export default function TabsLayout({
<LinkInternal
shallow={true}
scroll={false}
href={`/pool/migrate?${searchParams.toString()}`}
href={`/${ChainKey[chainId]}/migrate?${searchParams.toString()}`}
>
<PathnameButton
id="migrate"
pathname={'/pool/migrate'}
pathname={`/${ChainKey[chainId]}/migrate`}
asChild
size="sm"
>
Expand Down
10 changes: 10 additions & 0 deletions apps/web/src/app/(evm)/[chainId]/(positions)/migrate/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'

import { MigrateTabContent } from 'src/ui/pool/MigrateTabContent'
import { ChainId } from 'sushi'

export default function MigratePage({
params,
}: { params: { chainId: string } }) {
return <MigrateTabContent chainId={+params.chainId as ChainId} />
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,26 @@

import { Container } from '@sushiswap/ui'
import React from 'react'
import { ChainId } from 'sushi/chain'

import { PositionsTab } from 'src/ui/pool/PositionsTab'
import { TableFiltersNetwork } from 'src/ui/pool/TableFiltersNetwork'
import { TableFiltersResetButton } from 'src/ui/pool/TableFiltersResetButton'
import { TableFiltersSearchToken } from 'src/ui/pool/TableFiltersSearchToken'

export default function MyPositionsPage() {
export default function MyPositionsPage({
params: { chainId },
}: {
params: { chainId: string }
}) {
return (
<Container maxWidth="7xl" className="px-4">
<div className="flex flex-col sm:flex-row gap-3 mb-4">
<TableFiltersSearchToken />
<TableFiltersNetwork />
<TableFiltersNetwork chainId={+chainId as ChainId} />
<TableFiltersResetButton />
</div>
<PositionsTab />
<PositionsTab chainId={+chainId as ChainId} />
</Container>
)
}
Loading
Loading