This commit is contained in:
Georges KABBOUCHI 2021-08-08 23:34:05 +03:00
parent fd255129ad
commit a2a8f3e7d0

View File

@ -89,8 +89,8 @@ export function useMakerdaoPosition() {
const debt = computed(() => ensureValue(vault.value.debt).toFixed());
const minDebt = computed(() => vaultTypes.value[0]?.totalFloor || "5000");
const debtCeilingReached = computed(() =>
vaultTypes.value?.some(vault =>
gt(vault.value?.overallTotalDebt, vault.value?.overallTotalDebtCeiling)
vaultTypes.value?.some(v =>
gt(v.overallTotalDebt, v.overallTotalDebtCeiling)
)
);