Expand description
Exact decimals for every amount the venue prices in: read from and written as the venue’s strings, added, multiplied, divided and rounded, never through a float.
Structs§
- Dec
- An exact decimal,
units / 10^scale, for every amount the venue prices in. The venue sends and takes these as strings, and a float between the two would change the figure that gets signed.
Enums§
- BadDec
- Why text did not read as a
Dec. Each variant holds the text given. - Round
- Which way a figure moves when it has more digits than it may keep.
Constants§
- MAX_
SCALE - The finest figure this type keeps. The venue’s own ceiling is eight places for a spot amount; marks, funding and ETH in wei run deeper.