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

spike: get all project config from global const #393

Open
wants to merge 324 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
324 commits
Select commit Hold shift + click to select a range
c959c62
upgrade viem to 2.21.55
groninge01 Dec 15, 2024
f1f7b63
add balancer v3 section
danielmkm Dec 16, 2024
dd3f272
Add security section
danielmkm Dec 16, 2024
90656ab
feat: add new isBufferAllowed field to gql tokens
agualis Dec 15, 2024
6c4911a
more sonic updates
groninge01 Dec 16, 2024
30e6020
fix min deposit
groninge01 Dec 16, 2024
29426f2
Add CTAs, clean up spacing
danielmkm Dec 16, 2024
da5655b
Merge branch 'main' into feat/add-beets-lst
groninge01 Dec 16, 2024
c62370e
Merge branch 'main' into feat/add-beets-lst
groninge01 Dec 16, 2024
a178020
mobile cleanup pass
danielmkm Dec 16, 2024
edfd11a
fix security spacing
danielmkm Dec 16, 2024
f9ba615
update rpc
groninge01 Dec 16, 2024
9995b59
fix for sonic
groninge01 Dec 16, 2024
90b35f3
update contract addresses
groninge01 Dec 16, 2024
d11dff0
change path to sts
groninge01 Dec 16, 2024
6040b2f
split amounts
groninge01 Dec 16, 2024
3186d96
update relayer address
groninge01 Dec 16, 2024
9610ef5
update withdraw
groninge01 Dec 16, 2024
338de6e
add faq section
groninge01 Dec 16, 2024
a932c29
update unstake & withdraw
groninge01 Dec 16, 2024
9e59f1f
update hardcoded balancer references
groninge01 Dec 16, 2024
65d68e4
chore: Add animated title
garethfuller Dec 16, 2024
0c17d8d
chore: Add hero bg image
garethfuller Dec 16, 2024
408b393
Merge branch 'main' into beets/landing-page
garethfuller Dec 16, 2024
e3946e1
chore: Fix heading on mobile
garethfuller Dec 16, 2024
2332015
Swap out hero text
danielmkm Dec 17, 2024
f0ecc52
Fix stS subheadline
danielmkm Dec 17, 2024
ed7c5a1
update label name to suggested one
groninge01 Dec 17, 2024
a39b191
show pool creator for balancer
groninge01 Dec 17, 2024
6181c3f
add balancer sdk for wagmi generate
groninge01 Dec 17, 2024
a87aa8c
Revert "show pool creator for balancer"
groninge01 Dec 17, 2024
9be4df1
chore: add sonic integration test
agualis Dec 17, 2024
e43b6f9
use correct pool creator url
groninge01 Dec 17, 2024
3499e4d
Merge branch 'feat/add-beets-lst' of https://github.com/balancer/fron…
groninge01 Dec 17, 2024
8a480d6
put back tokens
groninge01 Dec 17, 2024
49023be
update token input checks
groninge01 Dec 17, 2024
8e85a81
refetch balances on success
groninge01 Dec 17, 2024
84f229f
only show appzi for balancer
groninge01 Dec 17, 2024
139f379
update refetching withdrawal requests
groninge01 Dec 17, 2024
d7477ec
update favicon
groninge01 Dec 17, 2024
b6791f4
show dark/light switcher for balancer
groninge01 Dec 17, 2024
befe8e8
update policies
groninge01 Dec 17, 2024
88b18a0
rename for clarity
groninge01 Dec 17, 2024
d35eaef
show pool name for beets
groninge01 Dec 17, 2024
6401fff
hide boosted and v3
groninge01 Dec 17, 2024
65b8bb7
block adding liq here
groninge01 Dec 17, 2024
d4ef934
Merge branch 'main' into feat/add-beets-lst
groninge01 Dec 17, 2024
6a9fc79
add a space
groninge01 Dec 17, 2024
60dcc83
fix wnativeasset address
groninge01 Dec 17, 2024
51bac17
Merge branch 'main' into beets/landing-page
garethfuller Dec 17, 2024
ea75f61
chore: Change hero spacing
garethfuller Dec 17, 2024
c680fad
feat: LZBEETS migrator
garethfuller Dec 17, 2024
2462e9f
Clean up, hook up mabeets link
danielmkm Dec 17, 2024
85e9e73
Add mabeets link
danielmkm Dec 18, 2024
c4c10a5
fix twitter link
danielmkm Dec 18, 2024
cd0fed9
Use new logo
danielmkm Dec 18, 2024
c2c1873
fix link
danielmkm Dec 18, 2024
b380aa7
updated with infographic
danielmkm Dec 18, 2024
33ce59e
fix alignment
danielmkm Dec 18, 2024
3da3749
remove sub stats
danielmkm Dec 18, 2024
e3c8ee4
Merge branch 'feat/add-beets-lst' into beets/merged
danielmkm Dec 18, 2024
06033f0
fix type error
danielmkm Dec 18, 2024
0c4e088
updated banner
danielmkm Dec 18, 2024
1ce2c7c
update footer copy
danielmkm Dec 18, 2024
0f8c8db
Add migration link
danielmkm Dec 18, 2024
8daf96d
fill out faq
danielmkm Dec 18, 2024
6105748
fix mobile nav
danielmkm Dec 18, 2024
a9c5ef9
fix promo banner
danielmkm Dec 18, 2024
27e0c60
Fix copy
danielmkm Dec 18, 2024
1f9628f
add discord redirect
danielmkm Dec 18, 2024
d03fb4f
move to lib/modules
groninge01 Dec 18, 2024
e41aa00
add risks page
groninge01 Dec 18, 2024
4eed508
Add better migration image
danielmkm Dec 18, 2024
e6cb59d
clean up migration copy
danielmkm Dec 18, 2024
353bf79
iterating on migration flow
danielmkm Dec 18, 2024
7265567
add protocol data
groninge01 Dec 18, 2024
e0b61b0
Merge branch 'beets/merged' of https://github.com/balancer/frontend-m…
groninge01 Dec 18, 2024
923a5f1
remove brand assets link
danielmkm Dec 18, 2024
221b9de
update svg
danielmkm Dec 18, 2024
6d6a530
update mobile nav
danielmkm Dec 18, 2024
bad7b7b
reduce the height
danielmkm Dec 18, 2024
b1d35c5
hide "to sonic" on smaller screens
danielmkm Dec 18, 2024
1d7a821
add opengraph image
danielmkm Dec 18, 2024
7d0c7af
Swap liquidity for yield, force white for final color
danielmkm Dec 18, 2024
8301d92
update metadata
danielmkm Dec 18, 2024
86eb9ea
set a metadata base
danielmkm Dec 18, 2024
84cd1a2
update package.json
groninge01 Dec 18, 2024
ba93d7a
Merge branch 'beets/merged' of https://github.com/balancer/frontend-m…
groninge01 Dec 18, 2024
3266bd9
Add sonic pools list
danielmkm Dec 18, 2024
6c6cb47
fix build error
danielmkm Dec 18, 2024
02468e0
beets migrator
danielmkm Dec 18, 2024
2517016
temp add ccontract
groninge01 Dec 18, 2024
5097c62
remove overrides again
groninge01 Dec 18, 2024
12235bb
add approval flow
danielmkm Dec 18, 2024
728c613
only show boost for balancer
groninge01 Dec 18, 2024
3f78b58
switch to drpc
groninge01 Dec 18, 2024
54c97c8
Merge branch 'beets/merged' of https://github.com/balancer/frontend-m…
groninge01 Dec 18, 2024
46a89ce
update faq txt
groninge01 Dec 18, 2024
a047965
add migration guide links
danielmkm Dec 18, 2024
8066f8b
add links to data cards
danielmkm Dec 18, 2024
4f566b3
update migrator
groninge01 Dec 18, 2024
697598e
updated copy
danielmkm Dec 18, 2024
6fb52c2
add landing modal
danielmkm Dec 18, 2024
acd80c9
push copy change
danielmkm Dec 18, 2024
321cb33
fix case
danielmkm Dec 18, 2024
c526e21
add sts data
groninge01 Dec 18, 2024
aa561e1
manually add mc3
groninge01 Dec 18, 2024
914f20a
chore: bump to sdk 1.0.2
agualis Dec 18, 2024
63a32d7
Merge pull request #351 from balancer/beets/multicall3
groninge01 Dec 18, 2024
8df7d1d
typo
groninge01 Dec 19, 2024
0269bd1
add & view sts data
groninge01 Dec 19, 2024
86a9525
Add audit link
danielmkm Dec 19, 2024
24a5293
Improve validator selection
danielmkm Dec 19, 2024
dc8a880
Merge pull request #348 from balancer/beets/sts-data
groninge01 Dec 19, 2024
7fb6909
Merge branch 'beets/merged' into beets/improve-unstake-validator-sele…
groninge01 Dec 19, 2024
6877807
fixes
danielmkm Dec 19, 2024
e0b9286
Merge branch 'beets/improve-unstake-validator-selection' of github.co…
danielmkm Dec 19, 2024
f720c37
update faq
groninge01 Dec 19, 2024
f0b23b5
Merge pull request #354 from balancer/beets/update-faq
groninge01 Dec 19, 2024
4ef0232
update faq
groninge01 Dec 19, 2024
895ea5a
Add network dropdown for pools
danielmkm Dec 19, 2024
f44d3b4
Merge branch 'main' into beets/merge-main
groninge01 Dec 19, 2024
b8809a1
fix linting error
groninge01 Dec 19, 2024
038245b
fix link
danielmkm Dec 19, 2024
fb5f882
Merge branch 'beets/merged' into beets/merge-main
groninge01 Dec 19, 2024
330cfec
add checkbox to hide modal
groninge01 Dec 19, 2024
e36f116
run lint fix
groninge01 Dec 19, 2024
1cc3504
fix hydration error
groninge01 Dec 19, 2024
07d5fb2
add note to unstake flow
groninge01 Dec 19, 2024
bc5132e
add sfc contract
groninge01 Dec 19, 2024
2ced0e6
update contracts again
groninge01 Dec 19, 2024
0a9b6e4
fix multicall
groninge01 Dec 19, 2024
9074619
update hook
groninge01 Dec 19, 2024
ef23be6
update hook
groninge01 Dec 19, 2024
4567fa4
refactor: Lst component
garethfuller Dec 19, 2024
e64b318
Merge pull request #353 from balancer/beets/improve-unstake-validator…
danielmkm Dec 20, 2024
5838ad6
Merge pull request #360 from balancer/beets/hide-welcome-modal
danielmkm Dec 20, 2024
8c1e6e8
Merge branch 'beets/merged' into beets/add-unstake-msg
danielmkm Dec 20, 2024
5b25445
added stats section, hiding charts currently
danielmkm Dec 20, 2024
d38c991
shrink stats
danielmkm Dec 20, 2024
19f5dc6
Merge pull request #362 from balancer/beets/add-unstake-msg
danielmkm Dec 20, 2024
c4036d1
clean up
danielmkm Dec 20, 2024
d6ff5a0
Merge branch 'beets/merged' into beets/merge-main
groninge01 Dec 20, 2024
5c4f1ef
specify bg color explicitly
danielmkm Dec 20, 2024
bd1f520
set correct default network
groninge01 Dec 20, 2024
92fba43
Merge branch 'beets/merged' into beets/merge-main
groninge01 Dec 20, 2024
03e8e7d
fix prettier issue
groninge01 Dec 20, 2024
8b1cb74
format token amount
groninge01 Dec 20, 2024
7e74cfa
Merge pull request #356 from balancer/beets/merge-main
groninge01 Dec 20, 2024
dd0cbe9
Merge branch 'main' into beets/merge-main
groninge01 Dec 20, 2024
13b1f69
fix lock file
groninge01 Dec 20, 2024
6f2f2c8
Merge branch 'beets/merge-main' into beets/orig-main
groninge01 Dec 20, 2024
1448bea
data hook up
danielmkm Dec 21, 2024
9997b8e
Merge branch 'beets/merged' into beets/stake-improvements
danielmkm Dec 21, 2024
cec3452
Merge pull request #377 from balancer/beets/stake-improvements
danielmkm Dec 21, 2024
e6b607a
extend rate label
danielmkm Dec 21, 2024
fae87c9
update faq text
groninge01 Dec 21, 2024
58f8601
update text, code & linting
groninge01 Dec 21, 2024
908f12e
add dot
groninge01 Dec 21, 2024
b775f3d
Merge pull request #379 from balancer/beets/text-updates
groninge01 Dec 21, 2024
0a6a663
push updated copy
danielmkm Dec 23, 2024
c08891a
remove lzbeets migrator button here
groninge01 Dec 24, 2024
a350deb
add aprs to mabeets
groninge01 Dec 24, 2024
9eea3db
Merge pull request #385 from balancer/beets/remove-lzbeets-migration-…
groninge01 Dec 24, 2024
941a1da
remove risks link
groninge01 Dec 24, 2024
58e1b98
rename link
groninge01 Dec 24, 2024
9484691
scroll to anchor
groninge01 Dec 24, 2024
4515372
fix mabeets apr calc
danielmkm Dec 24, 2024
4d194a1
Merge pull request #388 from balancer/beets/update-links
groninge01 Dec 24, 2024
f343b1e
Merge branch 'beets/merged' into beets/fix-mabeets-apr
groninge01 Dec 24, 2024
6d81e55
update text
groninge01 Dec 24, 2024
ab1d5c0
fix apr calc
groninge01 Dec 24, 2024
c3f445d
Merge pull request #386 from balancer/beets/fix-mabeets-apr
groninge01 Dec 24, 2024
99fc337
update banner
groninge01 Dec 24, 2024
cfd21af
use beets opengraph image
danielmkm Dec 24, 2024
6a355de
fix caps
groninge01 Dec 24, 2024
de43bca
add icons
danielmkm Dec 26, 2024
947afbe
add sonic-logo
danielmkm Dec 26, 2024
774e6dd
Add amount received for stake and unstake
danielmkm Dec 26, 2024
edf7047
fix missing button
danielmkm Dec 26, 2024
3a76133
Add lz beets migration modal
danielmkm Dec 26, 2024
8530979
add network switch, uncomment code
danielmkm Dec 26, 2024
ca86e4f
clean up wording
danielmkm Dec 26, 2024
fccec5e
Merge branch 'beets/lz-beets-migration-modal' into beets/merged
danielmkm Dec 26, 2024
9a92ddf
fix approval flow
danielmkm Dec 27, 2024
5010e28
fix capitalization
danielmkm Dec 27, 2024
ff99a02
Filter pools based on connected network
danielmkm Dec 27, 2024
e099ddc
fix logic
danielmkm Dec 27, 2024
0a51d53
Merge branch 'beets/auto-pools-filter' into beets/merged
danielmkm Dec 27, 2024
c5ca13b
move to app folder
groninge01 Dec 29, 2024
8cfd18a
sync version with lib package
groninge01 Dec 29, 2024
53e8263
revert change
groninge01 Dec 30, 2024
615648b
fix lint issues
groninge01 Dec 30, 2024
759d9ba
use custom format
groninge01 Dec 30, 2024
8ca2f36
Merge pull request #391 from balancer/beets/move-to-app
groninge01 Dec 30, 2024
66c5db5
add project config to app
groninge01 Dec 30, 2024
30896c3
add to providers
groninge01 Dec 30, 2024
5a4a21d
options were move to config
groninge01 Dec 30, 2024
e712771
update composer url & networks
groninge01 Dec 30, 2024
05e8342
add url
groninge01 Dec 30, 2024
e67deb1
fix up balancer
groninge01 Dec 30, 2024
882e5bd
removing getprojectconfig WIP
groninge01 Dec 30, 2024
a0127e4
add logouri
groninge01 Dec 31, 2024
c8c67f7
use project name
groninge01 Dec 31, 2024
afb5492
update pool helpers
groninge01 Dec 31, 2024
a9d9ef8
no longer optional
groninge01 Dec 31, 2024
2abeb13
add option showAura
groninge01 Dec 31, 2024
fdb77b4
fix variantconfig
groninge01 Dec 31, 2024
881873d
update navs
groninge01 Dec 31, 2024
6dbe548
more updates for projectconfig
groninge01 Dec 31, 2024
bf7d2b9
fix lint issues
groninge01 Dec 31, 2024
7f8617c
remove getprojectconfig here
groninge01 Dec 31, 2024
4de796f
update text
groninge01 Dec 31, 2024
83850b8
update lst withdraw flow
groninge01 Jan 2, 2025
abc23d7
add withdraw request helper
groninge01 Jan 2, 2025
4b8aa14
fix withdraw flow
groninge01 Jan 2, 2025
dff0a76
Merge pull request #396 from balancer/beets/sts-withdraw
groninge01 Jan 2, 2025
60327a4
Merge branch 'beets/merged' into beets/orig-main
groninge01 Jan 3, 2025
a390b5c
Merge branch 'main' into beets/orig-main
groninge01 Jan 3, 2025
948b50c
fix type check
groninge01 Jan 3, 2025
6e76d6e
fix unit test
groninge01 Jan 3, 2025
80df7c0
Merge branch 'beets/orig-main' into beets/app-config
groninge01 Jan 3, 2025
aeb5394
add project flags
groninge01 Jan 3, 2025
6a9744e
add use client
groninge01 Jan 3, 2025
21531df
fix pool name display in tables
groninge01 Jan 3, 2025
d02e403
update apr tool tips
groninge01 Jan 3, 2025
1a800ba
add comment
groninge01 Jan 3, 2025
354f579
remove 'isXXXXProject'
groninge01 Jan 3, 2025
5664f55
remove getprojectconfig everywhere
groninge01 Jan 3, 2025
8728213
remove project config from lib
groninge01 Jan 3, 2025
3aafb67
Revert "remove project config from lib"
groninge01 Jan 3, 2025
167e678
revert these too
groninge01 Jan 3, 2025
20c76ea
move project config to consts
groninge01 Jan 6, 2025
abde938
Merge branch 'main' into beets/app-config
groninge01 Jan 14, 2025
036f008
use smaller png
groninge01 Jan 14, 2025
f8d416a
update configs
groninge01 Jan 14, 2025
2d46911
revert moving variable
groninge01 Jan 14, 2025
799d3be
small revert
groninge01 Jan 14, 2025
051120d
revert move
groninge01 Jan 14, 2025
ed6346f
Merge branch 'main' into beets/app-config
groninge01 Jan 15, 2025
222064b
change custom blocking
groninge01 Jan 17, 2025
53888f1
remove component
groninge01 Jan 17, 2025
961c89a
update variable/type name
groninge01 Jan 17, 2025
a6e3fcd
keep in component
groninge01 Jan 17, 2025
065114f
Merge branch 'main' into beets/app-config
groninge01 Jan 17, 2025
1c621e1
Merge branch 'main' into beets/app-config
groninge01 Jan 17, 2025
1f99130
move nav & footer data to project configs
groninge01 Jan 17, 2025
bef5bf7
Merge branch 'main' into beets/app-config
groninge01 Jan 17, 2025
8a043e8
fix hydration error
groninge01 Jan 17, 2025
6f1ca13
Merge branch 'main' into beets/app-config
groninge01 Jan 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { usePoolRedirect } from '@repo/lib/modules/pool/pool.hooks'
import { DefaultPageContainer } from '@repo/lib/shared/components/containers/DefaultPageContainer'
import { AddLiquidityProvider } from '@repo/lib/modules/pool/actions/add-liquidity/AddLiquidityProvider'
import { Permit2SignatureProvider } from '@repo/lib/modules/tokens/approvals/permit2/Permit2SignatureProvider'
import { PROJECT_CONFIG } from '@repo/lib/config/getProjectConfig'

type Props = PropsWithChildren<{
params: { txHash?: string[] }
Expand All @@ -32,7 +33,7 @@ export default function AddLiquidityLayout({ params: { txHash }, children }: Pro
if (isNotSupported(pool)) {
return (
<Alert minW="50%" status="info" w="fit-content">
This pool type is not currently supported in the Balancer V3 UI
{`This pool type is not currently supported in the ${PROJECT_CONFIG.projectName} UI`}
</Alert>
)
}
Expand Down
16 changes: 2 additions & 14 deletions apps/beets-frontend-v3/app/(app)/pools/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@ import FadeInOnView from '@repo/lib/shared/components/containers/FadeInOnView'
import { Box, Skeleton } from '@chakra-ui/react'
import { Suspense } from 'react'
// import { getApolloServerClient } from '@repo/lib/shared/services/api/apollo-server.client'
// import { getProjectConfig } from '@repo/lib/config/getProjectConfig'
// import { GetFeaturedPoolsDocument } from '@repo/lib/shared/services/api/generated/graphql'
// import { FeaturedPools } from '@repo/lib/modules/featured-pools/FeaturedPools'
import { PoolListDisplayType } from '@repo/lib/modules/pool/pool.types'
import { GqlPoolType } from '@repo/lib/shared/services/api/generated/graphql'
import { BeetsPromoBanner } from '@/lib/components/promos/BeetsPromoBanner'

export default async function PoolsPage() {
// Featured pools set up
// const { supportedNetworks } = getProjectConfig()
// const { supportedNetworks } = useProjectConfig()

// const featuredPoolsQuery = await getApolloServerClient().query({
// query: GetFeaturedPoolsDocument,
Expand Down Expand Up @@ -46,16 +43,7 @@ export default async function PoolsPage() {
<DefaultPageContainer noVerticalPadding pb={['xl', '2xl']} pt={['lg', '54px']}>
<FadeInOnView animateOnce={false}>
<Suspense fallback={<Skeleton h="500px" w="full" />}>
<PoolList
displayType={PoolListDisplayType.Name}
hidePoolTags={['VE8020', 'BOOSTED']}
hidePoolTypes={[
GqlPoolType.LiquidityBootstrapping,
GqlPoolType.CowAmm,
GqlPoolType.Fx,
]}
hideProtocolVersion={['cow', 'v3']}
/>
<PoolList />
</Suspense>
</FadeInOnView>
</DefaultPageContainer>
Expand Down
16 changes: 2 additions & 14 deletions apps/beets-frontend-v3/app/(app)/pools/sonic/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { BeetsPromoBanner } from '@/lib/components/promos/BeetsPromoBanner'
import { Box, Skeleton } from '@chakra-ui/react'
import { PoolListDisplayType } from '@repo/lib/modules/pool/pool.types'
import { PoolList } from '@repo/lib/modules/pool/PoolList/PoolList'
import { DefaultPageContainer } from '@repo/lib/shared/components/containers/DefaultPageContainer'
import FadeInOnView from '@repo/lib/shared/components/containers/FadeInOnView'
import { GqlChain, GqlPoolType } from '@repo/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/lib/shared/services/api/generated/graphql'
import { Suspense } from 'react'

export default function PoolsPage() {
Expand All @@ -19,21 +18,10 @@ export default function PoolsPage() {
</FadeInOnView>
</DefaultPageContainer>
</Box>

<DefaultPageContainer noVerticalPadding pb={['xl', '2xl']} pt={['lg', '54px']}>
<FadeInOnView animateOnce={false}>
<Suspense fallback={<Skeleton h="500px" w="full" />}>
<PoolList
displayType={PoolListDisplayType.Name}
fixedChains={[GqlChain.Sonic]}
hidePoolTags={['VE8020', 'BOOSTED']}
hidePoolTypes={[
GqlPoolType.LiquidityBootstrapping,
GqlPoolType.CowAmm,
GqlPoolType.Fx,
]}
hideProtocolVersion={['cow', 'v3']}
/>
<PoolList fixedChains={[GqlChain.Sonic]} />
</Suspense>
</FadeInOnView>
</DefaultPageContainer>
Expand Down
2 changes: 1 addition & 1 deletion apps/beets-frontend-v3/app/(marketing)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { LandingPageLayout } from '@/lib/modules/landing-page/LandingPageLayout'
import { getApolloServerClient } from '@repo/lib/shared/services/api/apollo-server.client'
import { PROJECT_CONFIG } from '@repo/lib/config/getProjectConfig'
import { mins } from '@repo/lib/shared/utils/time'
import {
GetProtocolStatsDocument,
GetProtocolStatsPerChainDocument,
GqlChain,
} from '@repo/lib/shared/services/api/generated/graphql'
import { PROJECT_CONFIG } from '@repo/lib/config/getProjectConfig'

export default async function Home() {
const client = getApolloServerClient()
Expand Down
9 changes: 7 additions & 2 deletions apps/beets-frontend-v3/app/layouts/base-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import NextTopLoader from 'nextjs-toploader'
import { PropsWithChildren } from 'react'
import { NavBarContainer } from '@/lib/components/navs/NavBarContainer'
import { GlobalAlerts } from '@repo/lib/shared/components/navs/GlobalAlerts'
import { FooterContainer } from '@/lib/components/footer/FooterContainer'
import { LzBeetsMigrateModal } from '@/lib/components/modals/LzBeetsMigrateModal'
import { BeetsLogoType } from '@/lib/components/imgs/BeetsLogoType'
import { Footer } from '@repo/lib/shared/components/navs/Footer'

export function BaseLayout({
children,
Expand All @@ -21,7 +22,11 @@ export function BaseLayout({
<NavBarContainer />
{children}
{renderLzBeetsModal && <LzBeetsMigrateModal />}
<FooterContainer />
<Footer
logoType={<BeetsLogoType />}
subTitle="Beets is your ultimate destination for liquid-staked tokens, real yield, and AMM innovation."
title="The Hub for LSTs"
/>
</div>
)
}
20 changes: 0 additions & 20 deletions apps/beets-frontend-v3/lib/components/footer/FooterContainer.tsx

This file was deleted.

44 changes: 0 additions & 44 deletions apps/beets-frontend-v3/lib/components/footer/useFooterData.tsx

This file was deleted.

48 changes: 29 additions & 19 deletions apps/beets-frontend-v3/lib/components/navs/NavBarContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
'use client'

import { useNavData } from './useNavData'
import { NavBar, NavActions } from '@repo/lib/shared/components/navs/NavBar'
import { NavLogo } from './NavLogo'
import { MobileNav } from '@repo/lib/shared/components/navs/MobileNav'
import { useNav } from '@repo/lib/shared/components/navs/useNav'
import { BeetsLogoType } from '../imgs/BeetsLogoType'
import { Box, HStack } from '@chakra-ui/react'
import { motion } from 'framer-motion'
import { AnimatePresence, motion } from 'framer-motion'
import { fadeIn } from '@repo/lib/shared/utils/animations'
import { MaBeetsNavLink } from './MaBeetsNavLink'
import { SonicMigrationLink } from './SonicMigrationLink'
import { FantomToSonicSvg } from '../imgs/FantomToSonicSvg'
import { PROJECT_CONFIG } from '@repo/lib/config/getProjectConfig'

export function NavBarContainer() {
const { appLinks, ecosystemLinks, getSocialLinks } = useNavData()
const {
links: { appLinks, ecosystemLinks, socialLinks },
} = PROJECT_CONFIG
const { defaultAppLinks } = useNav()
const allAppLinks = [...defaultAppLinks, ...appLinks]

Expand All @@ -37,25 +39,33 @@ export function NavBarContainer() {
</>
}
ecosystemLinks={ecosystemLinks}
socialLinks={getSocialLinks()}
socialLinks={socialLinks}
/>
)

return (
<NavBar
appLinks={allAppLinks}
customLinks={
<>
<Box as={motion.div} variants={fadeIn}>
<MaBeetsNavLink />
</Box>
<Box as={motion.div} variants={fadeIn}>
<SonicMigrationLink />
</Box>
</>
}
navLogo={<NavLogo />}
rightSlot={<NavActions hideDarkModeToggle mobileNav={mobileNav} />}
/>
<AnimatePresence>
<motion.div
animate={{ opacity: 1 }}
initial={{ opacity: 0 }}
transition={{ duration: 0.5, ease: 'easeInOut' }}
>
<NavBar
appLinks={allAppLinks}
customLinks={
<>
<Box as={motion.div} variants={fadeIn}>
<MaBeetsNavLink />
</Box>
<Box as={motion.div} variants={fadeIn}>
<SonicMigrationLink />
</Box>
</>
}
navLogo={<NavLogo />}
rightSlot={<NavActions hideDarkModeToggle mobileNav={mobileNav} />}
/>
</motion.div>
</AnimatePresence>
)
}
77 changes: 0 additions & 77 deletions apps/beets-frontend-v3/lib/components/navs/PoolsLink.tsx

This file was deleted.

41 changes: 0 additions & 41 deletions apps/beets-frontend-v3/lib/components/navs/useNavData.tsx

This file was deleted.

Loading
Loading