-
Rewards
-
- {/* Always show the rewards pot for the reward asset AKA Vega */}
-
-
-
- {/* Show all other rewards */}
- {Object.keys(rewardAssetsMap).map((assetId) => {
- const asset = rewardAssetsMap[assetId][0].asset;
- return (
-
-
-
- );
- })}
-
-
-
-
-
-
- {/*
+
+ {/* Always show the rewards pot for the reward asset AKA Vega */}
+
+
+
+ {/* Show all other rewards */}
+ {Object.keys(rewardAssetsMap).map((assetId) => {
+ const asset = rewardAssetsMap[assetId][0].asset;
+ return (
+
+
+
+ );
+ })}
+
+
+
+
+
+
+ {/*
TODO:
@@ -139,17 +137,16 @@ export const RewardsContainer = () => {
TODO:
*/}
-
-
-
-
+
+
+
);
};
@@ -348,7 +345,7 @@ interface RewardRow {
total: number;
}
-const RewardHistory = ({
+export const RewardHistory = ({
epochRewardSummaries,
assets,
}: {
diff --git a/apps/trading/lib/links.ts b/apps/trading/lib/links.ts
index f48128ec3..16f05519e 100644
--- a/apps/trading/lib/links.ts
+++ b/apps/trading/lib/links.ts
@@ -18,6 +18,7 @@ export const Routes = {
REFERRALS_CREATE_CODE: '/referrals/create-code',
TEAMS: '/teams',
FEES: '/fees',
+ REWARDS: '/rewards',
} as const;
type ConsoleLinks = {
@@ -42,4 +43,5 @@ export const Links: ConsoleLinks = {
REFERRALS_CREATE_CODE: () => Routes.REFERRALS_CREATE_CODE,
TEAMS: () => Routes.TEAMS,
FEES: () => Routes.FEES,
+ REWARDS: () => Routes.REWARDS,
};
diff --git a/apps/trading/pages/client-router.tsx b/apps/trading/pages/client-router.tsx
index 52254d5d2..c3505274f 100644
--- a/apps/trading/pages/client-router.tsx
+++ b/apps/trading/pages/client-router.tsx
@@ -14,6 +14,7 @@ import { Deposit } from '../client-pages/deposit';
import { Withdraw } from '../client-pages/withdraw';
import { Transfer } from '../client-pages/transfer';
import { Fees } from '../client-pages/fees';
+import { Rewards } from '../client-pages/rewards';
import { Routes as AppRoutes } from '../lib/links';
import { LayoutWithSky } from '../client-pages/referrals/layout';
import { Referrals } from '../client-pages/referrals/referrals';
@@ -96,6 +97,16 @@ export const routerConfig: RouteObject[] = compact([
},
],
},
+ {
+ path: 'rewards/*',
+ element:
} />,
+ children: [
+ {
+ index: true,
+ element:
,
+ },
+ ],
+ },
{
path: 'markets/*',
element: (