Skip to content

Commit

Permalink
fix: removes dexName and dexUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
bearpong committed Nov 15, 2024
1 parent e5513a1 commit d87f5ce
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 39 deletions.
4 changes: 1 addition & 3 deletions .env.bartio
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ NEXT_PUBLIC_HONEY_URL="https://bartio.honey.berachain.com"
NEXT_PUBLIC_HUB_NAME="BeraHub"
NEXT_PUBLIC_HUB_URL="https://hub.berachain.com"

# DEX ===================================================================
NEXT_PUBLIC_DEX_NAME="BEX"
NEXT_PUBLIC_DEX_URL="https://bartio.bex.berachain.com"
# LEND ===================================================================
NEXT_PUBLIC_LEND_NAME="BEND"
NEXT_PUBLIC_LEND_URL="https://bartio.bend.berachain.com"
NEXT_PUBLIC_LEND_DOCS_URL="https://docs.bend.berachain.com"

# LEND contract address ==========================================================
NEXT_PUBLIC_LEND_POOL_ADDRESS_PROVIDER="0x8297A07f87a8576b88d46e636c05B84E4Ea8265D"
NEXT_PUBLIC_LEND_ORACLE_ADDRESS="0x18fDa978e01196B2D5037dF9a9c0C9d3ab843344"
Expand Down
4 changes: 2 additions & 2 deletions apps/honey/src/components/data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react";
import Image from "next/image";
import Link from "next/link";
import { useQuery } from "@apollo/client";
import { cloudinaryUrl, dexUrl } from "@bera/config";
import { cloudinaryUrl, hubUrl } from "@bera/config";
import { GetGlobalData } from "@bera/graphql";
import { FormattedNumber } from "@bera/shared-ui";
import { Icons } from "@bera/ui/icons";
Expand Down Expand Up @@ -111,7 +111,7 @@ const ArcadeData = () => {
</div>
<Link
className="mt-4 flex h-11 w-20 cursor-pointer items-center justify-center gap-2 rounded-2xl bg-yellow-900 px-3 py-2 text-xl text-yellow-50"
href={`${dexUrl}/pools`}
href={`${hubUrl}/pools`}
target="_blank"
>
Add
Expand Down
4 changes: 2 additions & 2 deletions apps/honey/src/components/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from "react";
import { dexUrl } from "@bera/config";
import { hubUrl } from "@bera/config";
import { Icons } from "@bera/ui/icons";

export default function Hero() {
return (
<div className="flex flex-col items-center gap-4" id="mint-and-burn">
<div
className="flex h-8 w-fit items-center gap-1 rounded-2xl bg-muted bg-opacity-20 px-2 text-base font-normal leading-normal text-secondary-foreground shadow-lg backdrop-blur-xl hover:cursor-pointer hover:text-foreground"
onClick={() => window.open(`${dexUrl}/pools`, "_blank")}
onClick={() => window.open(`${hubUrl}/pools`, "_blank")}
>
💧 Add Liquidity to Earn BGT Rewards{" "}
<Icons.arrowRight className="h-3 w-3" />
Expand Down
4 changes: 2 additions & 2 deletions apps/honey/src/components/honey-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import Image from "next/image";
import {
cloudinaryUrl,
dexUrl,
hubUrl,
lendUrl,
perpsName,
perpsUrl,
Expand Down Expand Up @@ -50,7 +50,7 @@ export default function HoneyBanner() {
Add Liquidity to Earn BGT Rewards{" "}
</h3>
<div
onClick={() => window.open(`${dexUrl}/pools`, "_blank")}
onClick={() => window.open(`${hubUrl}/pools`, "_blank")}
className="inline-flex gap-2 rounded-full bg-green-600 px-4 py-2 text-sm text-white"
>
<Icons.plus />
Expand Down
2 changes: 0 additions & 2 deletions apps/hub/src/app/config.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {
blockExplorerName,
blockExplorerUrl,
dexName,
dexUrl,
faucetName,
faucetUrl,
homepageName,
Expand Down
6 changes: 2 additions & 4 deletions apps/hub/src/app/pools/(ipfs)/withdraw/page.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { type Metadata } from "next";
import { notFound } from "next/navigation";
import { dexName, isIPFS } from "@bera/config";
import { getMetaTitle } from "@bera/shared-ui";
import { isAddress } from "viem";
import { hubName, isIPFS } from "@bera/config";

import WithdrawPageContent from "../../[poolId]/withdraw/WithdrawPageContent";

export function generateMetadata(): Metadata {
return {
title: "Withdraw Liquidity",
description: `Withdraw your liquidity from ${dexName}`,
description: `Withdraw your liquidity from ${hubName}`,
};
}

Expand Down
4 changes: 2 additions & 2 deletions apps/hub/src/app/pools/[poolId]/deposit/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type Metadata } from "next";
import { notFound } from "next/navigation";
import { dexName } from "@bera/config";
import { hubName } from "@bera/config";
import { Address } from "viem";

import AddLiquidityContent from "./AddLiquidityContent";
Expand All @@ -14,7 +14,7 @@ import { PoolPageWrapper } from "../details/PoolPageContent";
export function generateMetadata(): Metadata {
return {
title: "Add Liquidity",
description: `Add liquidity to ${dexName}`,
description: `Add liquidity to ${hubName}`,
};
}

Expand Down
5 changes: 2 additions & 3 deletions apps/hub/src/app/pools/[poolId]/withdraw/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { type Metadata } from "next";
import { notFound } from "next/navigation";
import { dexName, isIPFS } from "@bera/config";
import { hubName, isIPFS } from "@bera/config";

import WithdrawPageContent from "../../[poolId]/withdraw/WithdrawPageContent";
import { balancerApi } from "~/b-sdk/b-sdk";
import { PoolPageWrapper } from "../details/PoolPageContent";
import { bexSubgraphClient } from "@bera/graphql";
import {
Expand All @@ -16,7 +15,7 @@ export { generateStaticParams } from "../details/page";
export function generateMetadata(): Metadata {
return {
title: "Withdraw Liquidity",
description: `Withdraw your liquidity from ${dexName}`,
description: `Withdraw your liquidity from ${hubName}`,
};
}

Expand Down
11 changes: 3 additions & 8 deletions apps/hub/src/components/how-to-earn.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReactNode, useEffect, useState } from "react";
import Link from "next/link";
import { cloudinaryUrl, dexUrl, lendUrl, perpsUrl } from "@bera/config";
import { cloudinaryUrl, lendUrl, perpsUrl } from "@bera/config";
import { FadeSlides } from "@bera/shared-ui";
import { Icons } from "@bera/ui/icons";
import { cn } from "@bera/ui";
Expand Down Expand Up @@ -43,14 +43,9 @@ export const HowToEarn = () => {
subtitle: (
<>
Deposit tokens in a{" "}
<a
href={dexUrl}
target="_blank"
className="underline"
rel="noreferrer"
>
<Link href={"/pools/"} className="underline" rel="noreferrer">
BEX liquidity Pool
</a>
</Link>
</>
),
},
Expand Down
2 changes: 0 additions & 2 deletions packages/config/env/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ export const honeyUrl = process.env.NEXT_PUBLIC_HONEY_URL as string;
export const honeyName = process.env.NEXT_PUBLIC_HONEY_NAME as string;
export const hubUrl = process.env.NEXT_PUBLIC_HUB_URL as string;
export const hubName = process.env.NEXT_PUBLIC_HUB_NAME as string;
export const dexName = process.env.NEXT_PUBLIC_DEX_NAME as string;
export const dexUrl = process.env.NEXT_PUBLIC_DEX_URL as string;
export const lendName = process.env.NEXT_PUBLIC_LEND_NAME as string;
export const lendUrl = process.env.NEXT_PUBLIC_LEND_URL as string;
export const perpsName = process.env.NEXT_PUBLIC_PERPS_NAME as string;
Expand Down
5 changes: 2 additions & 3 deletions packages/shared-ui/src/banner-config.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import {
hubName,
dexName,
faucetName,
honeyName,
lendName,
Expand Down Expand Up @@ -68,10 +67,10 @@ export const bannerConfig: BannerConfig = {
bannerComponent: <NetworkCongestedBanner />,
},
},
BEX: {
HUB: {
[DappBannerType.LAUNCH]: {
enabled: false,
bannerComponent: <LaunchBanner appName={dexName} />,
bannerComponent: <LaunchBanner appName={hubName} />,
},
[DappBannerType.RPC]: {
enabled: false,
Expand Down
6 changes: 0 additions & 6 deletions packages/shared-ui/src/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import {
blockExplorerUrl,
blogUrl,
careersUrl,
dexName,
dexUrl,
discord,
docsUrl,
github,
Expand All @@ -25,10 +23,6 @@ import { Icons } from "@bera/ui/icons";

const footerNavigation = {
ecosystem: [
{
name: dexName,
href: dexUrl,
},
{
name: hubName,
href: hubUrl,
Expand Down

0 comments on commit d87f5ce

Please sign in to comment.