← Code LabReact Native0/50 solved · 0%
Architecture · hard

48. A cross-platform shared formatter

Write logic usable by both the RN app and a web dApp.

Write `formatTokenAmount(raw, decimals, precision)` where `raw` is a BigInt of the smallest unit, returning a decimal string truncated to `precision` fractional digits.
Required in your answer: padStart(