mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 08:34:23 +08:00
fix bug
This commit is contained in:
@@ -22,10 +22,12 @@ Object.keys(config).forEach(chain => {
|
||||
})
|
||||
const tokenSet = new Set()
|
||||
logs.forEach(log => {
|
||||
tokenSet.add(log.currency0)
|
||||
tokenSet.add(log.currency1)
|
||||
tokenSet.add(String(log.currency0).toLowerCase())
|
||||
tokenSet.add(String(log.currency1).toLowerCase())
|
||||
})
|
||||
tokenSet.delete(blacklistTokens)
|
||||
for (const t of blacklistTokens) {
|
||||
tokenSet.delete(t.toLowerCase())
|
||||
}
|
||||
const tokens = Array.from(tokenSet)
|
||||
return api.sumTokens({ tokens, owner: vault, })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user