new ohlc; beta signin; elaborated order status (not working yet)
This commit is contained in:
@@ -31,9 +31,9 @@ function timestamp() {
|
||||
return Math.round(new Date().getTime() / 1000)
|
||||
}
|
||||
|
||||
|
||||
const UNKNOWN_PROVIDER = {}
|
||||
|
||||
const REQUIRE_AUTH = import.meta.env.VITE_REQUIRE_AUTH !== 'NOAUTH';
|
||||
|
||||
export const useStore = defineStore('app', ()=> {
|
||||
const clock = ref(timestamp()) // the clock ticks infrequently enough to be mostly stable for user display
|
||||
@@ -42,6 +42,8 @@ export const useStore = defineStore('app', ()=> {
|
||||
|
||||
const nav = ref(false) // controls opening navigation drawer
|
||||
|
||||
const allowed = ref(!REQUIRE_AUTH)
|
||||
|
||||
const _chainId = ref(Number(Object.keys(versionMeta.chainInfo)[0]))
|
||||
const _chainInfo = ref(versionMeta.chainInfo)
|
||||
|
||||
@@ -128,7 +130,7 @@ export const useStore = defineStore('app', ()=> {
|
||||
}
|
||||
|
||||
return {
|
||||
nav, chainId, chainInfo, chain, provider, providerRef, vaultInitCodeHash, account, vaults, vaultVersions,
|
||||
allowed, nav, chainId, chainInfo, chain, provider, providerRef, vaultInitCodeHash, account, vaults, vaultVersions,
|
||||
transactionSenders, errors, extraTokens, poolPrices, vaultBalances, orders, vault, version, upgrade, vaultOrders,
|
||||
tokens, factory, helper,
|
||||
mockenv, mockCoins,
|
||||
|
||||
Reference in New Issue
Block a user