fix: correctly handle token.decimals when value is 0 (#2636)
* fix: correctly handle token.decimals when value is 0 Previously, using "Number(data.token.decimals) || 18" caused a valid token.decimals value of 0 to fall back to 18. This commit updates the logic to correctly use 0 when defined, ensuring accurate calculations for tokens with 0 decimals. * fix: use nullish coalescing for token decimals
Showing
Please register or sign in to comment