diff --git a/package.json b/package.json index 7991386..0e187c1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mars", "homepage": "./", - "version": "1.4.2", + "version": "1.4.3", "license": "SEE LICENSE IN LICENSE FILE", "private": false, "scripts": { @@ -26,7 +26,6 @@ "@material-ui/core": "^4.12.4", "@material-ui/icons": "^4.11.3", "@ramonak/react-progress-bar": "^5.0.3", - "@sentry/nextjs": "^7.36.0", "@tanstack/react-query": "^4.24.4", "@tanstack/react-table": "^8.7.9", "@testing-library/dom": "^8.20.0", diff --git a/src/components/fields/AvailableVaultsTable/useAvailableVaultsColumns.tsx b/src/components/fields/AvailableVaultsTable/useAvailableVaultsColumns.tsx index ce25d05..a4c4a29 100644 --- a/src/components/fields/AvailableVaultsTable/useAvailableVaultsColumns.tsx +++ b/src/components/fields/AvailableVaultsTable/useAvailableVaultsColumns.tsx @@ -157,7 +157,7 @@ export const useAvailableVaultsColumns = () => { <> diff --git a/src/components/fields/Breakdown/BreakdownTable/BreakdownTable.tsx b/src/components/fields/Breakdown/BreakdownTable/BreakdownTable.tsx index 9cd5b3a..efe56bf 100644 --- a/src/components/fields/Breakdown/BreakdownTable/BreakdownTable.tsx +++ b/src/components/fields/Breakdown/BreakdownTable/BreakdownTable.tsx @@ -44,6 +44,7 @@ export const BreakdownTable = (props: Props) => { const secondaryAsset = useAsset({ denom: props.vault.denoms.secondary }) const convertToDisplayCurrency = useStore((s) => s.convertToDisplayCurrency) const convertToBaseCurrency = useStore((s) => s.convertToBaseCurrency) + const baseCurrency = useStore((s) => s.baseCurrency) const primaryPrice = usePrice(props.vault.denoms.primary) const secondaryPrice = usePrice(props.vault.denoms.secondary) @@ -137,7 +138,7 @@ export const BreakdownTable = (props: Props) => { isApproximation coin={{ amount: props.newPosition.values[type].toString(), - denom: props.vault.denoms.primary, + denom: baseCurrency.denom, }} /> ) @@ -195,7 +196,7 @@ export const BreakdownTable = (props: Props) => { const leftoverCap = vaultCapValue - vaultCapUsedValue const maxPositionValue = convertToDisplayCurrency({ amount: ((props.isSetUp ? 0 : props.prevPosition.values.total) + leftoverCap).toString(), - denom: 'uosmo', + denom: baseCurrency.denom, }) if (maxPositionValue <= 0) { @@ -257,7 +258,9 @@ export const BreakdownTable = (props: Props) => { )}
- {formatValue(1, 0, 0, false, false, ' OSMO ≈ ')} + + {formatValue(1, 0, 0, false, false, ` ${primaryAsset?.symbol} ≈ `)} +