denormalized PairEntry, cleaned up console logs

This commit is contained in:
Tim Olson
2023-10-04 18:05:43 -04:00
parent 7239987867
commit c206607547
7 changed files with 84 additions and 139 deletions

View File

@@ -18,12 +18,10 @@ export const useStore = defineStore('app', {
getters: {
chain: (s)=> !s.chainInfo ? null : (s.chainInfo[s.chainId] || null),
tokens: (s)=>{
console.log('tokensget',s)
let known = knownTokens[s.chainId]
known = known ? Object.values(known) : []
let extras = s.extraTokens[s.chainId]
extras = extras ? Object.values(extras) : []
console.log('tokens for chainId',s.chainId, known, extras)
return [...known, ...extras]
},
factory: (s)=>!s.chain?null:s.chain.factory,
@@ -34,7 +32,6 @@ export const useStore = defineStore('app', {
this.errors.push({title, text, closeable})
},
closeError(title, text) {
console.log('closing error', title, text)
const result = []
this.errors.forEach((i)=>{if(i.title!==title && i.text!==text) result.push(i)})
this.errors = result