# [−][src]Module zebra_chain::amount

Strongly-typed zatoshi amounts that prevent under/overflows.

The Amount type is parameterized by a Constraint implementation that declares the range of allowed values. In contrast to regular arithmetic operations, which return values, arithmetic on Amounts returns Results.

## Structs

 Amount A runtime validated type for representing amounts of zatoshis NegativeAllowed Marker type for Amount that allows negative values. NonNegative Marker type for Amount that requires nonnegative values.

## Enums

 Error Errors that can be returned when validating Amounts

## Constants

 COIN Number of zatoshis in 1 ZEC MAX_MONEY The maximum zatoshi amount.

## Traits

 Constraint A trait for defining constraints on Amount