Allow price update configuration to be specified per token

This commit is contained in:
arnaubennassar
2021-03-09 13:34:25 +01:00
parent 06b271fc47
commit 97062afc90
9 changed files with 258 additions and 119 deletions

View File

@@ -121,7 +121,7 @@ func prepareHistoryDB(historyDB *historydb.HistoryDB) error {
}
tokens[token.TokenID] = readToken
// Set value to the tokens
err := historyDB.UpdateTokenValue(readToken.Symbol, *readToken.USD)
err := historyDB.UpdateTokenValue(readToken.EthAddr, *readToken.USD)
if err != nil {
return tracerr.Wrap(err)
}