mirror of
https://github.com/cerc-io/mars-interface.git
synced 2024-12-22 20:27:44 +00:00
release v1.4.3
This commit is contained in:
parent
b3916f6e1a
commit
822fafb4f3
@ -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",
|
||||
|
@ -157,7 +157,7 @@ export const useAvailableVaultsColumns = () => {
|
||||
<>
|
||||
<DisplayCurrency
|
||||
coin={{
|
||||
denom: 'uosmo',
|
||||
denom: baseCurrency.denom,
|
||||
amount: '0',
|
||||
}}
|
||||
/>
|
||||
|
@ -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) => {
|
||||
)}
|
||||
</div>
|
||||
<div className={styles.price}>
|
||||
<span className='faded'>{formatValue(1, 0, 0, false, false, ' OSMO ≈ ')}</span>
|
||||
<span className='faded'>
|
||||
{formatValue(1, 0, 0, false, false, ` ${primaryAsset?.symbol} ≈ `)}
|
||||
</span>
|
||||
|
||||
<AnimatedNumber
|
||||
amount={primaryPrice / secondaryPrice}
|
||||
|
Loading…
Reference in New Issue
Block a user