Expand description

256-bit arithmetic, checksums and pseudo-random numbers.

Structs

A fixed-point decimal value with 18 fractional digits, i.e. Decimal256(1_000_000_000_000_000_000) == 1.0 The greatest possible value that can be represented is 115792089237316195423570985008687907853269984665640564039457.584007913129639935 (which is (2^128 - 1) / 10^18)

Functions

Convert between tokens with different decimals.

Get the amount needed to represent 1 whole token given its decimals. Ex. Given token A that has 3 decimals, 1 A == 1000