diff --git a/.eslintignore b/.eslintignore index ed5412c4..671e5d89 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ src/utils/charting_library -src/utils/datafeeds \ No newline at end of file +src/utils/datafeeds +src/types/generated \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index ed5412c4..671e5d89 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,3 @@ src/utils/charting_library -src/utils/datafeeds \ No newline at end of file +src/utils/datafeeds +src/types/generated \ No newline at end of file diff --git a/src/components/Earn/Farm/VaultTable.tsx b/src/components/Earn/Farm/VaultTable.tsx index 5bb10fbe..08c98bea 100644 --- a/src/components/Earn/Farm/VaultTable.tsx +++ b/src/components/Earn/Farm/VaultTable.tsx @@ -25,7 +25,7 @@ import useStore from 'store' import { BNCoin } from 'types/classes/BNCoin' import { VaultStatus } from 'types/enums/vault' import { getAssetByDenom } from 'utils/assets' -import { produceCountdown } from 'utils/formatters' +import { formatPercent, produceCountdown } from 'utils/formatters' type Props = { data: Vault[] | DepositedVault[] @@ -178,6 +178,20 @@ export const VaultTable = (props: Props) => { ) }, }, + { + accessorKey: 'ltv.max', + header: 'Max LTV', + cell: ({ row }) => { + return {formatPercent(row.original.ltv.max)} + }, + }, + { + accessorKey: 'ltv.liq', + header: 'Liq. LTV', + cell: ({ row }) => { + return {formatPercent(row.original.ltv.liq)} + }, + }, { accessorKey: 'details', enableSorting: false, @@ -188,6 +202,7 @@ export const VaultTable = (props: Props) => { }, cell: ({ row }) => { const vault = row.original as DepositedVault + function enterVaultHandler() { useStore.setState({ vaultModal: { @@ -230,7 +245,7 @@ export const VaultTable = (props: Props) => { {table.getHeaderGroups().map((headerGroup) => ( - {headerGroup.headers.map((header, index) => { + {headerGroup.headers.map((header) => { return (