fmt_one_decimal_or_int

Documentation for eth_defi.research.vault_metrics.fmt_one_decimal_or_int function.

fmt_one_decimal_or_int(x)

Display fees to .1 accuracy if there are .1 fractions, otherwise as int.

Parameters

x (float | None) –

Return type

str