MetaMask / core

This monorepo is a collection of packages used across multiple MetaMask clients
MIT License
293 stars 188 forks source link

[CurrencyRateController] Consider serializing rates as strings instead of numbers #4857

Open bergeron opened 3 weeks ago

bergeron commented 3 weeks ago

To avoid precision loss, consider serializing the responses from cryptocompare as strings instead of how response.json() currently serializes them to JS numbers.

See https://github.com/MetaMask/core/pull/4852/files#r1817508642