Skip to content
Snippets Groups Projects

Prepare withdraw routes part of the HP managament

Merged Jakub Ziebinski requested to merge jziebinski/withdraw-routes-prepare into develop
Compare and Show latest version
7 files
+ 41
22
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -158,3 +158,10 @@ def humanize_asset(asset: Asset.AnyT, *, show_symbol: bool = True, sign_prefix:
# To not allow display + or - if balance is equal to zero.
return f"{sign_prefix}{pretty_asset} {asset_symbol if show_symbol else ''}".rstrip()
return f"{pretty_asset} {asset_symbol if show_symbol else ''}".rstrip()
def humanize_bool(value: bool) -> str:
"""Convert `True` value to the `YES` string and `False` to the `NO`."""
if value:
return "YES"
return "NO"
Loading