intermediate checkin during chart order form work

This commit is contained in:
Tim
2024-02-29 17:54:50 -04:00
parent 8af1211ceb
commit 6cecac77db
14 changed files with 207 additions and 92 deletions

View File

@@ -54,7 +54,7 @@ function addSymbol(p, base, quote, inverted) {
const exchange = ['UNIv2', 'UNIv3'][p.e]
const full_name = exchange + ':' + symbol // + '%' + formatFee(fee)
if (full_name in symbolsSeen) {
// add this pool's address to the index but don't create a new symbol
// add this pool's address to the existing index but don't create a new symbol
indexes[full_name].as.push(p.a)
return
}
@@ -62,7 +62,7 @@ function addSymbol(p, base, quote, inverted) {
const longExchange = ['Uniswap v2', 'Uniswap v3',][p.e]
const description = `${base.n} / ${quote.n}`
const type = 'swap'
_symbols[full_name] = {symbol, full_name, description, exchange, type, inverted, base, quote}
_symbols[full_name] = {symbol, full_name, description, exchange, type, inverted, base, quote, x:p.x}
indexes[full_name] = {
// key
id: full_name,