line build fixes; symbol name update

This commit is contained in:
tim
2024-10-29 00:33:24 -04:00
parent 5e91b0ff43
commit b9ca6ab2cc
5 changed files with 34 additions and 15 deletions

View File

@@ -106,12 +106,13 @@ export function feelessTickerKey(ticker) {
function addSymbol(chainId, p, base, quote, inverted) {
const symbol = base.s + '/' + quote.s
const exchange = ['UNIv2', 'UNIv3'][p.e]
const fee = `${(p.f/10000).toFixed(2)}%`
const exchange = ['Uniswap v2', 'Uniswap v3'][p.e] + ' ' + fee
const full_name = exchange + ':' + symbol // + '%' + formatFee(fee)
const ticker = tickerKey(chainId, p.e, base.a, quote.a, p.f)
// add the search index only if this is the natural, noninverted base/quote pair
log('addSymbol', p, base, quote, inverted, ticker)
const description = `${base.n} / ${quote.n} ${(p.f/10000).toFixed(2)}%`
const description = `${base.n} / ${quote.n}`
const type = 'swap'
const decimals = inverted ? -p.d : p.d
const symbolInfo = {