Two identically named formatting modules exist:
web/lib/formatting.ts — uses number (unitsToStroops(amount: number): number)
web/app/lib/formatting.ts — uses bigint (unitsToStroops(amount: bigint): bigint)
Both export the same function names (unitsToStroops, stroopsToUnits, formatTokenAmount, formatTokenAmountCompact, formatStroopsValue). Any import of @/lib/formatting vs @/app/lib/formatting could silently pick the wrong module, leading to precision loss (bigint → number conversion) or TypeScript type errors.
Two identically named formatting modules exist:
web/lib/formatting.ts— usesnumber(unitsToStroops(amount: number): number)web/app/lib/formatting.ts— usesbigint(unitsToStroops(amount: bigint): bigint)Both export the same function names (
unitsToStroops,stroopsToUnits,formatTokenAmount,formatTokenAmountCompact,formatStroopsValue). Any import of@/lib/formattingvs@/app/lib/formattingcould silently pick the wrong module, leading to precision loss (bigint→numberconversion) or TypeScript type errors.