Skip to content

Commit

Permalink
chore: log additional bases introduced by gauges
Browse files Browse the repository at this point in the history
  • Loading branch information
chefjackson committed Feb 5, 2024
1 parent 83b1d93 commit ec9b1ee
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import uniqBy from 'lodash/uniqBy.js'

import { ADDITIONAL_BASES, BASES_TO_CHECK_TRADES_AGAINST, CUSTOM_BASES } from '../../constants'
import { wrappedCurrency } from '../../utils/currency'
import { isCurrenciesSameChain } from '../utils'
import { isCurrenciesSameChain, log } from '../utils'

const allGuages = GAUGES_CONFIG[ChainId.BSC]

Expand Down Expand Up @@ -77,7 +77,13 @@ const getTokenBasesFromGauges = memoize(
)
}
}
return Array.from(bases)
const baseList = Array.from(bases)
log(
`[ADDITIONAL_BASES] Token ${currency?.symbol}, bases from guages: [${baseList
.map((base) => base.symbol)
.join(',')}]`,
)
return baseList
},
(c) => `${c?.chainId}_${c?.wrapped.address}`,
)
Expand Down

0 comments on commit ec9b1ee

Please sign in to comment.