From e40e3c1fbc98734f679b1d9c894ee31f00f1ca51 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Thu, 10 Jan 2019 13:05:09 +0100 Subject: [PATCH] monero: use trezor.utils.format_amount --- src/apps/monero/layout/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/monero/layout/common.py b/src/apps/monero/layout/common.py index 5ebadb9f45..4fb34a41b4 100644 --- a/src/apps/monero/layout/common.py +++ b/src/apps/monero/layout/common.py @@ -1,4 +1,4 @@ -from trezor import res, ui +from trezor import res, ui, utils from trezor.messages import ButtonRequestType from trezor.ui.text import Text from trezor.utils import chunks @@ -114,7 +114,7 @@ async def naive_pagination( def format_amount(value): - return "%f XMR" % (value / 1000000000000) + return "%s XMR" % utils.format_amount(value, 12) def split_address(address):