diagonal order form

This commit is contained in:
Tim Olson
2023-12-16 16:54:05 -04:00
parent 206fb21687
commit 9199d31e77
11 changed files with 143 additions and 93 deletions

View File

@@ -29,7 +29,7 @@ import {computed, ref} from "vue";
export const useStore = defineStore('app', ()=> {
const nav = ref(false)
const nav = ref(false) // controls opening navigation drawer
const _chainId = ref(null)
const _chainInfo = ref({})
@@ -136,6 +136,7 @@ export const useOrderStore = defineStore('order', ()=> {
const timeUnitIndex = ref(0)
const routes = ref([])
const routesPending = ref(false)
const utc = ref(false)
const validOrder = computed(() => amount.value > 0 && routes.value.length > 0)
const route = computed(() => routes.value.length === 0 ? null : routes.value[0])
@@ -164,6 +165,6 @@ export const useOrderStore = defineStore('order', ()=> {
return {
tokenA, tokenB, buy, inverted, amount, amountIsTokenA, amountIsTotal, limitPrice, limitPrice2, tranches,
interval, intervalIsTotal, timeUnitIndex, routes, routesPending, validOrder, route, base, quote, pairSymbol,
limitIsMinimum, amountToken, amountIsInput, setDefaultTokens, totalAmount, trancheAmount,
limitIsMinimum, amountToken, amountIsInput, setDefaultTokens, totalAmount, trancheAmount, utc,
}
})