Skip to content

Commit 50c8414

Browse files
authored
feat: Enhance real-world assets solution page (#1584)
* feat: enhance real-world assets page with news fetching and updated content * feat: update real-world assets and product descriptions for enhanced clarity and relevance * feat: enhance real-world assets components with background tint and updated icons * fix: preserve zero RWA volume fallback behavior * chore: remove unused RWA stat value translations * chore: sync RWA translation keys * Add company records and logos for new ecosystem participants - Introduced new SVG logos for Kamino, Loopscale, and Raydium. - Added company records for Apollo, Brevan Howard, Hamilton Lane, Jupiter, Kamino, Loopscale, and Raydium, including details such as taglines, summaries, descriptions, sectors, types, and social links. - Updated asset paths for logos in the respective company records. * feat: Add RWA.xyz API integration and update environment variables * fix: Handle undefined values in RWA token metrics and ensure fallback to zero
1 parent dd36645 commit 50c8414

42 files changed

Lines changed: 3688 additions & 1963 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/web/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ NEXT_PUBLIC_BREAKPOINT_APP_URL=
3131
DATABRICKS_SERVER_HOSTNAME=<databricks-workspace-hostname>
3232
DATABRICKS_HTTP_PATH=/sql/1.0/warehouses/<warehouse-id>
3333
DATABRICKS_TOKEN=
34+
35+
# RWA.xyz API
36+
RWA_XYZ_API_TOKEN=

apps/web/src/app/[locale]/solutions/real-world-assets/page.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
import { SolutionsRealWorldAssetsPage } from "./solutions-real-world-assets";
22
import { getAlternates } from "@workspace/i18n/routing";
33
import { getTranslations } from "next-intl/server";
4+
import { fetchSolutionNews } from "@/lib/media/solution-news";
5+
import { LATEST_NEWS_QUERY } from "@/data/solutions/real-world-assets";
6+
import { fetchRwaStats } from "@/lib/tokens/rwa-stats";
47

58
type Props = { params: Promise<{ locale: string }> };
69

710
export const revalidate = 60;
811

912
export default async function Page(_props: Props) {
10-
return <SolutionsRealWorldAssetsPage />;
13+
const [news, stats] = await Promise.all([
14+
fetchSolutionNews(LATEST_NEWS_QUERY),
15+
fetchRwaStats(),
16+
]);
17+
18+
return <SolutionsRealWorldAssetsPage news={news} stats={stats} />;
1119
}
1220

1321
export async function generateMetadata({ params }: Props) {

0 commit comments

Comments
 (0)