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 debtUsd = computed(() =>
|
||||
times(debt.value, raiInUsd.value).toFixed()
|
||||
);
|
||||
|
||||
const minDebt = computed(
|
||||
() => safeTypes.value[0]?.totalDebt?.toString() || "699"
|
||||
);
|
||||
|
@ -197,6 +201,7 @@ export function useReflexerPosition(
|
|||
liquidationPrice,
|
||||
liquidationMaxPrice: price,
|
||||
debt,
|
||||
debtUsd,
|
||||
minDebt,
|
||||
debtCeilingReached
|
||||
};
|
||||
|
|
|
@ -135,7 +135,7 @@
|
|||
|
||||
<CardReflexer
|
||||
:amount="debt"
|
||||
:amount-usd="debt"
|
||||
:amount-usd="debtUsd"
|
||||
position-type="borrow"
|
||||
token-key="rai"
|
||||
:safe-token-type="safeTokenType"
|
||||
|
@ -206,6 +206,7 @@ export default defineComponent({
|
|||
liquidationPrice,
|
||||
liquidationMaxPrice,
|
||||
debt,
|
||||
debtUsd,
|
||||
minDebt,
|
||||
debtCeilingReached,
|
||||
raiInUsd,
|
||||
|
@ -276,6 +277,7 @@ export default defineComponent({
|
|||
showBorrow,
|
||||
showSupply,
|
||||
debt,
|
||||
debtUsd,
|
||||
minDebt,
|
||||
debtCeilingReached,
|
||||
raiInUsd,
|
||||
|
|
Loading…
Reference in New Issue
Block a user