Skip to content

Commit

Permalink
Add blurbs and hide tlc (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall2112 committed Dec 11, 2023
1 parent 07d65ce commit 5b5a068
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 34 deletions.
5 changes: 3 additions & 2 deletions apps/dapp/src/components/Layouts/V2Layout/Nav/NavLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,13 @@ const NavLinks = ({ isNavCollapsed = false, onClickHandler }: NavLinksProps) =>
{!isNavCollapsed && <NavLinkText>Trade</NavLinkText>}
</NavLinkCell>
</NavLink>
<NavLink to="/v2dapp/borrow" onClick={() => wrappedClickHandler()}>
{/* // TODO: Hidden until launch */}
{/* <NavLink to="/v2dapp/borrow" onClick={() => wrappedClickHandler()}>
<NavLinkCell>
<NavIcon src={payments} />
{!isNavCollapsed && <NavLinkText>Borrow</NavLinkText>}
</NavLinkCell>
</NavLink>
</NavLink> */}
<NavLink to="/v2dapp/ohmage">
<NavLinkCell>
<NavIcon src={candle} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import V2StrategyMetricsChart from './V2StrategyMetricsChart';
import { InputSelect } from 'components/InputSelect/InputSelect';
import { isV2SnapshotMetric, V2SnapshotMetric } from '../hooks/use-dashboardv2-daily-snapshots';
import { useState } from 'react';
import { ChartSupportedTimeInterval, DEFAULT_CHART_INTERVALS } from 'utils/time-intervals';
import { ChartSupportedTimeInterval } from 'utils/time-intervals';
import { IntervalToggler } from 'components/Charts';
import { useSearchParams } from 'react-router-dom';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import DashboardTransactionHistory from './Table';
export enum DashboardType {
TREASURY_RESERVES_VAULT,
RAMOS,
TLC,
// TLC, TODO: Hidden until launch
TEMPLE_BASE,
DSR_BASE,
}
Expand All @@ -30,32 +30,33 @@ const DashboardContent = ({ selectedDashboard = DashboardType.TREASURY_RESERVES_
[DashboardType.TREASURY_RESERVES_VAULT]: {
title: 'Treasury Reserves Vault',
description:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vehicula tincidunt eleifend. Nam congue magna in mi dignissim, id gravida sem ornare. Sed in nunc fermentum, consectetur ipsum a, varius augue. Nullam finibus velit eget ligula efficitur, in luctus lacus efficitur. Nam egestas tempor gravida. Ut mollis libero ac tincidunt fermentum. Etiam et ante vitae metus ultrices tempus.',

chartStrategyNames: [StrategyKey.TLC, StrategyKey.TEMPLEBASE, StrategyKey.RAMOS, StrategyKey.DSRBASE],
'The Treasury Reserves Vault (TRV) is the source of capital for current Treasury allocations. When funding and Strategy parameters are approved, the TRV will transfer funds e.g. DAI to the deployed Strategy borrower. The current equity of the Strategy is discounted by the cost of capital whereby the Benchmark interest rate is set to match the current Base Strategy.',
//StrategyKey.TLC, TODO: Hidden until launch
chartStrategyNames: [StrategyKey.TEMPLEBASE, StrategyKey.RAMOS, StrategyKey.DSRBASE],
},
[DashboardType.RAMOS]: {
title: 'RAMOS',
title: 'Ramos',
description:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vehicula tincidunt eleifend. Nam congue magna in mi dignissim, id gravida sem ornare. Sed in nunc fermentum, consectetur ipsum a, varius augue. Nullam finibus velit eget ligula efficitur, in luctus lacus efficitur. Nam egestas tempor gravida. Ut mollis libero ac tincidunt fermentum. Etiam et ante vitae metus ultrices tempus.',
'Ramos is the automated market operations (AMO) manager that supplies liquidity to the TEMPLE/DAI pool on the Balancer Exchange platform. A bot manages the contract to support TEMPLE trading, reduce price volatility, and earn farming rewards.',
chartStrategyNames: [StrategyKey.RAMOS],
},
[DashboardType.TLC]: {
title: 'TLC',
description:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vehicula tincidunt eleifend. Nam congue magna in mi dignissim, id gravida sem ornare. Sed in nunc fermentum, consectetur ipsum a, varius augue. Nullam finibus velit eget ligula efficitur, in luctus lacus efficitur. Nam egestas tempor gravida. Ut mollis libero ac tincidunt fermentum. Etiam et ante vitae metus ultrices tempus.',
chartStrategyNames: [StrategyKey.TLC],
},
// TODO: Hidden until launch
// [DashboardType.TLC]: {
// title: 'TLC',
// description:
// 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vehicula tincidunt eleifend. Nam congue magna in mi dignissim, id gravida sem ornare. Sed in nunc fermentum, consectetur ipsum a, varius augue. Nullam finibus velit eget ligula efficitur, in luctus lacus efficitur. Nam egestas tempor gravida. Ut mollis libero ac tincidunt fermentum. Etiam et ante vitae metus ultrices tempus.',
// chartStrategyNames: [StrategyKey.TLC],
// },
[DashboardType.TEMPLE_BASE]: {
title: 'TempleBaseStrategy',
title: 'Temple Base',
description:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vehicula tincidunt eleifend. Nam congue magna in mi dignissim, id gravida sem ornare. Sed in nunc fermentum, consectetur ipsum a, varius augue. Nullam finibus velit eget ligula efficitur, in luctus lacus efficitur. Nam egestas tempor gravida. Ut mollis libero ac tincidunt fermentum. Etiam et ante vitae metus ultrices tempus.',
'The TEMPLE base strategy is not currently active.',
chartStrategyNames: [StrategyKey.TEMPLEBASE],
},
[DashboardType.DSR_BASE]: {
title: 'DsrBaseStrategy',
title: 'DSR Base',
description:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vehicula tincidunt eleifend. Nam congue magna in mi dignissim, id gravida sem ornare. Sed in nunc fermentum, consectetur ipsum a, varius augue. Nullam finibus velit eget ligula efficitur, in luctus lacus efficitur. Nam egestas tempor gravida. Ut mollis libero ac tincidunt fermentum. Etiam et ante vitae metus ultrices tempus.',
'Idle capital in the Treasury Reserve Vault (TRV) that is not currently deployed to a Strategy borrower will be automatically directed to a Base Strategy to earn yield. Currently, the Base Strategy is set to the Dai Savings Rate (DSR). The current rate of return for the Base Strategy also serves as the Benchmark interest rate for the Strategy borrower.',
chartStrategyNames: [StrategyKey.DSRBASE],
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const DashboardMetrics = ({ dashboardType }: DashboardMetricsProps) => {
switch (dashboardType) {
case DashboardType.TREASURY_RESERVES_VAULT:
return setSourceData(getArrangedTreasuryReservesVaultMetrics(treasuryReservesVaultMetrics.data!));
case DashboardType.TLC:
return setSourceData(getArrangedStrategyMetrics(tlcMetrics.data!));
// case DashboardType.TLC: // TODO: Hidden until launch
// return setSourceData(getArrangedStrategyMetrics(tlcMetrics.data!));
case DashboardType.RAMOS:
return setSourceData(getArrangedStrategyMetrics(ramosMetrics.data!));
case DashboardType.TEMPLE_BASE:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const TxnHistoryTable = (props: Props) => {
const allStrategyDropdowns = useMemo(
() => [
{ label: StrategyKey.RAMOS, checked: false },
{ label: StrategyKey.TLC, checked: false },
// { label: StrategyKey.TLC, checked: false }, // TODO: Hidden until launch
{ label: StrategyKey.TEMPLEBASE, checked: false },
{ label: StrategyKey.DSRBASE, checked: false },
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Button as BaseButton } from 'components/Button/Button';
import styled from 'styled-components';
import TxnHistoryTable from './TxnHistoryTable';
import { DashboardType } from '../DashboardContent';
import { dashboardTypeToStrategyKey } from '../hooks/use-dashboardv2-txHistory';
import { queryPhone } from 'styles/breakpoints';

type DashboardTransactionHistoryProps = {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ const txHistoryFilterTypeToSeconds = (filter: TxHistoryFilterType) => {

export const dashboardTypeToStrategyKey = (dType: DashboardType): StrategyKey => {
switch (dType) {
case DashboardType.TLC:
return StrategyKey.TLC;
// case DashboardType.TLC: // TODO: Removed until launch
// return StrategyKey.TLC;
case DashboardType.RAMOS:
return StrategyKey.RAMOS;
case DashboardType.DSR_BASE:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export const DashboardPage = () => {
<NavCell>
<NavLink to={`ramos?${params}`}>RAMOS</NavLink>
</NavCell>
<NavCell>
{/* <NavCell> // TODO: Hidden until launch
<NavLink to={`tlc?${params}`}>TLC</NavLink>
</NavCell>
</NavCell> */}
<NavCell>
<NavLink to={`templebase?${params}`}>TEMPLE BASE</NavLink>
</NavCell>
Expand All @@ -33,7 +33,8 @@ export const DashboardPage = () => {
element={<DashboardContent selectedDashboard={DashboardType.TREASURY_RESERVES_VAULT} />}
/>
<Route path="ramos" element={<DashboardContent selectedDashboard={DashboardType.RAMOS} />} />
<Route path="tlc" element={<DashboardContent selectedDashboard={DashboardType.TLC} />} />
{/* // TODO: Hidden until launch */}
{/* <Route path="tlc" element={<DashboardContent selectedDashboard={DashboardType.TLC} />} /> */}
<Route path="templebase" element={<DashboardContent selectedDashboard={DashboardType.TEMPLE_BASE} />} />
<Route path="dsrbase" element={<DashboardContent selectedDashboard={DashboardType.DSR_BASE} />} />
</Routes>
Expand Down
2 changes: 1 addition & 1 deletion apps/dapp/src/components/Pages/Core/NewUI/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const Home = ({ tlc }: { tlc?: boolean }) => {
{/* // TODO: Link */}
<LearnMoreLink>Learn More</LearnMoreLink>
<ButtonContainer>
<Link to="/v2dapp/dashboard">
<Link to="/v2dapp/trade">
<LaunchAppButton label={'Launch App'} role="button" />
</Link>
</ButtonContainer>
Expand Down

0 comments on commit 5b5a068

Please sign in to comment.