quota

fun quota(replica: ReplicaId): Long

replica's remaining quota — what it may still spend locally.

Formed exactly from its seed, what it received, what it gave and what it spent, so it is answered whenever the remainder fits in a Long, even when what it received or gave does not. trySpend and transfer compare against the exact quota, so a quota too large to read here still spends.

Throws

if the quota does not fit in a Long (#3343).