Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/mstable/frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
toniocodo committed Dec 1, 2022
2 parents d80aa46 + 362cba4 commit b479a73
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,25 @@ export const Controls = (props: BoxProps) => {
return (
<Box {...props} display="flex" justifyContent="space-between" mb={3}>
<Select value={chartType}>
{Object.values(chartTypes).map((c) => (
<MenuItem
key={c.id}
value={c.id}
sx={{ px: 2 }}
onClick={() => {
navigate({
replace: true,
search: produce((draft) => {
draft.chartType = c.id;
}),
});
}}
>
{c.label}
</MenuItem>
))}
{Object.entries(chartTypes)
.filter(([k]) => k !== 'APY')
.map(([_, c]) => (
<MenuItem
key={c.id}
value={c.id}
sx={{ px: 2 }}
onClick={() => {
navigate({
replace: true,
search: produce((draft) => {
draft.chartType = c.id;
}),
});
}}
>
{c.label}
</MenuItem>
))}
</Select>
<ButtonGroup color="secondary" size="small">
{Object.values(chartTimeframes).map((c) => (
Expand Down
14 changes: 7 additions & 7 deletions libs/mstable/meta-vault/src/components/VaultPerformance/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ export const useChartConfig = () => {
getValue: (v) => v.assetPerShare,
getLabel: (v) => intl.formatNumber(v, { style: 'decimal' }),
},
// APY: {
// id: 'APY' as ChartType,
// label: intl.formatMessage({ defaultMessage: 'APY' }),
// chartMargin: 0.001,
// getValue: (v) => Number(v.apy),
// getLabel: (v) => (Number(v) * 100).toFixed(2) + '%',
// },
APY: {
id: 'APY' as ChartType,
label: intl.formatMessage({ defaultMessage: 'APY' }),
chartMargin: 0.001,
getValue: (v) => Number(v.apy),
getLabel: (v) => (Number(v) * 100).toFixed(2) + '%',
},
TVL: {
id: 'TVL' as ChartType,
label: intl.formatMessage(
Expand Down
2 changes: 1 addition & 1 deletion libs/shared/constants/src/metavaults/mvusdc3pcv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const mainnet: Metavault = {
withdraw: 500000,
},
featured: true,
firstBlock: 15890000,
firstBlock: 15946291,
};

const goerli: Metavault = {
Expand Down

0 comments on commit b479a73

Please sign in to comment.