mirror of
https://github.com/Instadapp/assembly.git
synced 2024-07-29 22:37:06 +00:00
fix aave/comp liquidation status
This commit is contained in:
parent
41f1cf1b37
commit
ea2063bc8f
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
<SidebarSectionStatus
|
<SidebarSectionStatus
|
||||||
class="mt-8"
|
class="mt-8"
|
||||||
:liquidation="maxLiquidation"
|
:liquidation="liquidation"
|
||||||
:status="status"
|
:status="status"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
@ -212,6 +212,7 @@ export default defineComponent({
|
||||||
formatUsdMax,
|
formatUsdMax,
|
||||||
formatUsd,
|
formatUsd,
|
||||||
maxLiquidation,
|
maxLiquidation,
|
||||||
|
liquidation,
|
||||||
liquidationPrice,
|
liquidationPrice,
|
||||||
liquidationMaxPrice,
|
liquidationMaxPrice,
|
||||||
errorMessages,
|
errorMessages,
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@
|
||||||
|
|
||||||
<div class="ml-2"><Info text="Debt/Collateral ratio" /></div>
|
<div class="ml-2"><Info text="Debt/Collateral ratio" /></div>
|
||||||
</div>
|
</div>
|
||||||
<span>Max - {{ formatPercent(position.maxLiquidation) }}</span>
|
<span>Max - {{ formatPercent(maxLiquidation) }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -207,7 +207,8 @@ export default defineComponent({
|
||||||
totalSupply,
|
totalSupply,
|
||||||
totalBorrow,
|
totalBorrow,
|
||||||
status,
|
status,
|
||||||
liquidation
|
liquidation,
|
||||||
|
maxLiquidation,
|
||||||
} = useAaveV2Position();
|
} = useAaveV2Position();
|
||||||
|
|
||||||
const { div } = useBigNumber();
|
const { div } = useBigNumber();
|
||||||
|
|
@ -236,7 +237,8 @@ export default defineComponent({
|
||||||
formatUsd,
|
formatUsd,
|
||||||
formatPercent,
|
formatPercent,
|
||||||
color,
|
color,
|
||||||
text
|
text,
|
||||||
|
maxLiquidation,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@
|
||||||
|
|
||||||
<div class="ml-2"><Info text="Debt/Collateral ratio" /></div>
|
<div class="ml-2"><Info text="Debt/Collateral ratio" /></div>
|
||||||
</div>
|
</div>
|
||||||
<span>Max - {{ formatPercent(position.maxLiquidation) }}</span>
|
<span>Max - {{ formatPercent(liquidation) }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -205,7 +205,7 @@ export default defineComponent({
|
||||||
totalSupply,
|
totalSupply,
|
||||||
totalBorrow,
|
totalBorrow,
|
||||||
status,
|
status,
|
||||||
liquidation
|
liquidation,
|
||||||
} = useCompoundPosition();
|
} = useCompoundPosition();
|
||||||
|
|
||||||
const { div } = useBigNumber();
|
const { div } = useBigNumber();
|
||||||
|
|
@ -234,7 +234,8 @@ export default defineComponent({
|
||||||
formatUsd,
|
formatUsd,
|
||||||
formatPercent,
|
formatPercent,
|
||||||
color,
|
color,
|
||||||
text
|
text,
|
||||||
|
liquidation,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user