fix aave/comp liquidation status

This commit is contained in:
Georges KABBOUCHI 2021-10-03 13:39:10 +03:00
parent 41f1cf1b37
commit ea2063bc8f
3 changed files with 11 additions and 7 deletions

View File

@ -35,7 +35,7 @@
<SidebarSectionStatus
class="mt-8"
:liquidation="maxLiquidation"
:liquidation="liquidation"
:status="status"
/>
@ -212,6 +212,7 @@ export default defineComponent({
formatUsdMax,
formatUsd,
maxLiquidation,
liquidation,
liquidationPrice,
liquidationMaxPrice,
errorMessages,

View File

@ -131,7 +131,7 @@
<div class="ml-2"><Info text="Debt/Collateral ratio" /></div>
</div>
<span>Max - {{ formatPercent(position.maxLiquidation) }}</span>
<span>Max - {{ formatPercent(maxLiquidation) }}</span>
</div>
</div>
</div>
@ -207,7 +207,8 @@ export default defineComponent({
totalSupply,
totalBorrow,
status,
liquidation
liquidation,
maxLiquidation,
} = useAaveV2Position();
const { div } = useBigNumber();
@ -236,7 +237,8 @@ export default defineComponent({
formatUsd,
formatPercent,
color,
text
text,
maxLiquidation,
};
}
});

View File

@ -131,7 +131,7 @@
<div class="ml-2"><Info text="Debt/Collateral ratio" /></div>
</div>
<span>Max - {{ formatPercent(position.maxLiquidation) }}</span>
<span>Max - {{ formatPercent(liquidation) }}</span>
</div>
</div>
</div>
@ -205,7 +205,7 @@ export default defineComponent({
totalSupply,
totalBorrow,
status,
liquidation
liquidation,
} = useCompoundPosition();
const { div } = useBigNumber();
@ -234,7 +234,8 @@ export default defineComponent({
formatUsd,
formatPercent,
color,
text
text,
liquidation,
};
}
});