1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

monero: use trezor.utils.format_amount

This commit is contained in:
Jan Pochyla 2019-01-10 13:05:09 +01:00
parent 3a408591d3
commit e40e3c1fbc

View File

@ -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):