getUnits function
Scale constants for network — lot size, fixed-point scale, and coin
decimals. Deployment-wide, so any subsystem formatting a custody balance
can read them rather than hardcoding 6.
Throws if the network has no recorded deployment.
Implementation
DeploymentUnits getUnits(String network) {
if (network == 'testnet') return TESTNET_UNITS;
if (network == 'mainnet') return MAINNET_UNITS;
throw _unrecorded(
network, 'read these scale constants from your own deploy manifest.');
}