testnet warning; remove deposit address display

This commit is contained in:
Tim
2024-04-30 14:49:43 -04:00
parent 3da897ca38
commit 1337e156d5
3 changed files with 11 additions and 4 deletions

View File

@@ -25,8 +25,8 @@
<div> <div>
<div v-if="s.vaults.length<=num"> <div v-if="s.vaults.length<=num">
<v-card-title> <v-card-title>
<v-icon icon="mdi-safe-square" size="small" color="grey-darken-1"/>
Creating Your Dexorder Vault Creating Your Dexorder Vault
<v-icon icon="mdi-safe-square" size="small" color="grey-darken-1" style="vertical-align: baseline"/>
</v-card-title> </v-card-title>
<v-card-text v-if="num!==0"><!--todo-->Multiple vaults are not yet supported</v-card-text> <v-card-text v-if="num!==0"><!--todo-->Multiple vaults are not yet supported</v-card-text>
<!-- todo restore the vault-on-order approach for public beta <!-- todo restore the vault-on-order approach for public beta
@@ -52,9 +52,12 @@
<!-- <v-card-title>--> <!-- <v-card-title>-->
<!-- Your Deposit Address {{ s.vaults.length > 1 ? '#' + (num + 1) : '' }}--> <!-- Your Deposit Address {{ s.vaults.length > 1 ? '#' + (num + 1) : '' }}-->
<!-- </v-card-title> &lt;!&ndash; todo vault nicknames &ndash;&gt;--> <!-- </v-card-title> &lt;!&ndash; todo vault nicknames &ndash;&gt;-->
<!-- todo re-enable deposit address
<v-card-subtitle v-if="exists" class="overflow-x-hidden"> <v-card-subtitle v-if="exists" class="overflow-x-hidden">
<copy-button :text="addr">Deposit {{addr}}</copy-button> <copy-button :text="addr">Deposit {{addr}}</copy-button>
</v-card-subtitle> </v-card-subtitle>
-->
<v-card-text v-if="empty"> <v-card-text v-if="empty">
<!-- <!--
<p> <p>
@@ -64,8 +67,10 @@
everything looks good. everything looks good.
</p> </p>
--> -->
<p v-if="!s.mockenv">There are no funds currently in your vault. Send tokens to the address above to fund your <p v-if="!s.mockenv">There are no funds currently in your vault.
vault.</p> <!-- todo re-enable deposit UI
Send tokens to the address above to fund your vault. -->
</p>
<p v-if="s.mockenv">There are no funds currently in your vault. Use the faucet below to mint some testnet coins <p v-if="s.mockenv">There are no funds currently in your vault. Use the faucet below to mint some testnet coins
into your vault.</p> into your vault.</p>
</v-card-text> </v-card-text>

View File

@@ -1,5 +1,7 @@
<template> <template>
<v-main> <v-main>
<v-alert text="WARNING! TESTNET! FAKE COINS!&nbsp;&nbsp;&nbsp;&nbsp;• UNI • ARB • WETH • WBTC • LINK • USDC •"
color="red" :closable="false" rounded="0" height="0"/>
<Alerts/> <Alerts/>
<chart-view/> <chart-view/>
</v-main> </v-main>

View File

@@ -97,7 +97,7 @@ export const useStore = defineStore('app', ()=> {
const vault = computed(() => vaults.value.length === 0 ? null : vaults.value[0] ) const vault = computed(() => vaults.value.length === 0 ? null : vaults.value[0] )
const balances = computed( () => vault.value === null ? {} : vaultBalances.value[vault.value] || {} ) const balances = computed( () => vault.value === null ? {} : vaultBalances.value[vault.value] || {} )
const vaultOrders = computed(()=> vault.value === null || (!vault.value in orders.value) ? {} : orders.value[vault.value] ) const vaultOrders = computed(()=> vault.value === null || (!vault.value in orders.value) ? {} : orders.value[vault.value] ? orders.value[vault.value] : [] )
const tokens = computed(getTokens) const tokens = computed(getTokens)
const factory = computed(() => !chain.value ? null : chain.value.factory) const factory = computed(() => !chain.value ? null : chain.value.factory)
const helper = computed(() => {console.log('chain helper', chain.value); return !chain.value ? null : chain.value.helper}) const helper = computed(() => {console.log('chain helper', chain.value); return !chain.value ? null : chain.value.helper})