Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid an error with long-decimal token prices
When an Ethereum token price has more decimals than the fiatDecimals, BigInt would receive a floating-point number and error out; this commit adds a call to Math.trunc to truncate further precision (not round!).
- Loading branch information