chore: Use proper Gwei decimals (#3990)

This commit is contained in:
Cuteivist 2023-09-07 13:02:52 +02:00 committed by GitHub
parent c5fd1ee2c4
commit 83d1354845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -109,5 +109,12 @@ func (s *Service) fetchAllTokenCurrencyFormats() (FormatPerSymbol, error) {
}
}
return s.currency.FetchTokenCurrencyFormats(tokenSymbols)
tokenFormats, err := s.currency.FetchTokenCurrencyFormats(tokenSymbols)
gweiSymbol := "Gwei"
tokenFormats[gweiSymbol] = Format{
Symbol: gweiSymbol,
DisplayDecimals: 9,
StripTrailingZeroes: true,
}
return tokenFormats, err
}