orderspec refactor for server and web
This commit is contained in:
@@ -97,14 +97,13 @@ export const useStore = defineStore('app', ()=> {
|
||||
this.errors = result
|
||||
}
|
||||
function addToken(chainId, info) {
|
||||
this.$patch(() => {
|
||||
let extras = extraTokens[chainId]
|
||||
if (extras === undefined) {
|
||||
extras = {}
|
||||
extraTokens[chainId] = extras
|
||||
}
|
||||
extras[info.address] = info
|
||||
})
|
||||
let extras = this.extraTokens[chainId]
|
||||
if (extras === undefined) {
|
||||
extras = {}
|
||||
this.extraTokens[chainId] = extras
|
||||
}
|
||||
extras[info.address] = info
|
||||
this.extraTokens = extras
|
||||
}
|
||||
|
||||
return {
|
||||
@@ -165,4 +164,4 @@ export const useOrderStore = defineStore('order', ()=> {
|
||||
interval, intervalIsTotal, timeUnitIndex, routes, routesPending, validOrder, route, base, quote, pairSymbol,
|
||||
limitIsMinimum, amountToken, amountIsInput, setDefaultTokens, totalAmount, trancheAmount,
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user