mirror of
https://github.com/Instadapp/assembly.git
synced 2024-07-29 22:37:06 +00:00
fixes
This commit is contained in:
parent
c5b19fe4f6
commit
4f2ea1cb68
|
@ -104,7 +104,7 @@ export default defineComponent({
|
|||
const amount = ref('')
|
||||
const amountParsed = computed(() => parseSafeFloat(amount.value))
|
||||
|
||||
const { tokenKey, token, debt, collateral, liquidation, liquidationMaxPrice, isNewVault, vaultId, vaultType, fetchPosition} = useMakerdaoPosition()
|
||||
const { tokenKey, token, debt, collateral, liquidation, liquidationMaxPrice, isNewVault, vaultId, vaultType, fetchPosition } = useMakerdaoPosition()
|
||||
|
||||
const symbol = computed(() => token.value?.symbol)
|
||||
const decimals = computed(() => token.value?.decimals)
|
||||
|
@ -163,6 +163,8 @@ export default defineComponent({
|
|||
from: account.value,
|
||||
onReceipt: async receipt => {
|
||||
showConfirmedTransaction(receipt.transactionHash);
|
||||
|
||||
isNewVault.value = false;
|
||||
|
||||
await fetchBalances(true);
|
||||
await fetchPosition();
|
||||
|
|
|
@ -104,7 +104,7 @@ export default defineComponent({
|
|||
const amount = ref('')
|
||||
const amountParsed = computed(() => parseSafeFloat(amount.value))
|
||||
|
||||
const { tokenKey, token, debt, collateral, liquidation, liquidationMaxPrice, isNewSafe, safeId, safeType, fetchPosition} = useReflexerPosition()
|
||||
const { tokenKey, token, debt, collateral, liquidation, liquidationMaxPrice, isNewSafe, safeId, safeType, fetchPosition } = useReflexerPosition()
|
||||
|
||||
const symbol = computed(() => token.value?.symbol)
|
||||
const decimals = computed(() => token.value?.decimals)
|
||||
|
@ -163,7 +163,7 @@ export default defineComponent({
|
|||
from: account.value,
|
||||
onReceipt: async receipt => {
|
||||
showConfirmedTransaction(receipt.transactionHash);
|
||||
|
||||
isNewSafe.value = false
|
||||
await fetchBalances(true);
|
||||
await fetchPosition();
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ export function useReflexerPosition(
|
|||
|
||||
const debt = computed(() => ensureValue(safe.value.debt).toFixed());
|
||||
const minDebt = computed(
|
||||
() => safeTypes.value[0]?.totalFloor?.toString() || "5000"
|
||||
() => safeTypes.value[0]?.totalFloor?.toString() || "699"
|
||||
);
|
||||
const debtCeilingReached = computed(() =>
|
||||
safeTypes.value?.some(v =>
|
||||
|
|
Loading…
Reference in New Issue
Block a user