mirror of
https://github.com/Instadapp/assembly.git
synced 2024-07-29 22:37:06 +00:00
fix debt price in usd
This commit is contained in:
parent
8e198e5ae7
commit
cfd957648f
|
|
@ -122,6 +122,10 @@ export function useReflexerPosition(
|
||||||
});
|
});
|
||||||
|
|
||||||
const debt = computed(() => ensureValue(safe.value.debt).toFixed());
|
const debt = computed(() => ensureValue(safe.value.debt).toFixed());
|
||||||
|
const debtUsd = computed(() =>
|
||||||
|
times(debt.value, raiInUsd.value).toFixed()
|
||||||
|
);
|
||||||
|
|
||||||
const minDebt = computed(
|
const minDebt = computed(
|
||||||
() => safeTypes.value[0]?.totalDebt?.toString() || "699"
|
() => safeTypes.value[0]?.totalDebt?.toString() || "699"
|
||||||
);
|
);
|
||||||
|
|
@ -197,6 +201,7 @@ export function useReflexerPosition(
|
||||||
liquidationPrice,
|
liquidationPrice,
|
||||||
liquidationMaxPrice: price,
|
liquidationMaxPrice: price,
|
||||||
debt,
|
debt,
|
||||||
|
debtUsd,
|
||||||
minDebt,
|
minDebt,
|
||||||
debtCeilingReached
|
debtCeilingReached
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@
|
||||||
|
|
||||||
<CardReflexer
|
<CardReflexer
|
||||||
:amount="debt"
|
:amount="debt"
|
||||||
:amount-usd="debt"
|
:amount-usd="debtUsd"
|
||||||
position-type="borrow"
|
position-type="borrow"
|
||||||
token-key="rai"
|
token-key="rai"
|
||||||
:safe-token-type="safeTokenType"
|
:safe-token-type="safeTokenType"
|
||||||
|
|
@ -206,6 +206,7 @@ export default defineComponent({
|
||||||
liquidationPrice,
|
liquidationPrice,
|
||||||
liquidationMaxPrice,
|
liquidationMaxPrice,
|
||||||
debt,
|
debt,
|
||||||
|
debtUsd,
|
||||||
minDebt,
|
minDebt,
|
||||||
debtCeilingReached,
|
debtCeilingReached,
|
||||||
raiInUsd,
|
raiInUsd,
|
||||||
|
|
@ -276,6 +277,7 @@ export default defineComponent({
|
||||||
showBorrow,
|
showBorrow,
|
||||||
showSupply,
|
showSupply,
|
||||||
debt,
|
debt,
|
||||||
|
debtUsd,
|
||||||
minDebt,
|
minDebt,
|
||||||
debtCeilingReached,
|
debtCeilingReached,
|
||||||
raiInUsd,
|
raiInUsd,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user