intermediate checkin during chart order form work
This commit is contained in:
@@ -135,6 +135,7 @@ export const useOrderStore = defineStore('order', ()=> {
|
||||
const amount = ref(100) // todo adjust default
|
||||
const amountIsTokenA = ref(false) // todo adjust default
|
||||
const amountIsTotal = ref(true)
|
||||
const slippage = ref(0.10) // in percent units. 1 = 1%. may be null.
|
||||
const limitPrice = ref(null)
|
||||
const limitPrice2 = ref(null)
|
||||
const tranches = ref(3)
|
||||
@@ -155,7 +156,7 @@ export const useOrderStore = defineStore('order', ()=> {
|
||||
const token = inverted.value ? tokenA.value : tokenB.value
|
||||
return !token ? {} : token
|
||||
})
|
||||
const pairSymbol = computed(() => base.value?.symbol + '\\' + quote.value?.symbol)
|
||||
const pairSymbol = computed(() => base.value?.s + '/' + quote.value?.s)
|
||||
const limitIsMinimum = computed(() => !(buy.value ^ inverted.value))
|
||||
const amountToken = computed(() => amountIsTokenA.value ? tokenA.value : tokenB.value)
|
||||
const amountIsInput = computed(() => amountIsTokenA.value !== buy.value)
|
||||
@@ -170,7 +171,7 @@ export const useOrderStore = defineStore('order', ()=> {
|
||||
}
|
||||
|
||||
return {
|
||||
tokenA, tokenB, buy, inverted, amount, amountIsTokenA, amountIsTotal, limitPrice, limitPrice2, tranches,
|
||||
tokenA, tokenB, buy, inverted, amount, amountIsTokenA, amountIsTotal, slippage, limitPrice, limitPrice2, tranches,
|
||||
interval, intervalIsTotal, timeUnitIndex, routes, routesPending, validOrder, route, base, quote, pairSymbol,
|
||||
limitIsMinimum, amountToken, amountIsInput, setDefaultTokens, totalAmount, trancheAmount, utc,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user