Expand description
Utilities for parsing and formatting SqlU256 with decimals (e.g. for ERC20/ETH amounts).
Functions§
- format_
sether - Formats a SqlU256 as Ether (18 decimals).
- format_
suint - Formats a SqlU256 as a decimal string with the given number of decimals.
- parse_
sether - Parses a decimal string as Ether (18 decimals).
- parse_
suint - Parses a decimal string (e.g. “1.23”) into a SqlU256, given the number of decimals.