A money value: a currency plus an amount in minor units (cents for dollars). minor is
a bigint so it stays exact for the large totals that platform accounts reach, beyond
the point where number loses precision.
__brand makes a plain { currency, minor } unassignable to Amount. That forces
every amount through toAmount or decodeAmount, so the rules here cannot be bypassed.
A money value: a currency plus an amount in minor units (cents for dollars).
minoris abigintso it stays exact for the large totals that platform accounts reach, beyond the point wherenumberloses precision.__brandmakes a plain{ currency, minor }unassignable toAmount. That forces every amount throughtoAmountordecodeAmount, so the rules here cannot be bypassed.See
The money model for the exact-integer minor-unit design.