← Code LabJavaScript0/50 solved · 0%
Capstone · hard

50. Capstone — wallet portfolio

Everything together.

Write `async function portfolio(fetchBalance, addresses)` that fetches every balance in parallel, drops failures, sums the successful balances with BigInt, and returns `{ total, ok, failed }` where `total` is a string.
Required in your answer: Promise.allBigIntcatch