mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-16 17:42:02 +00:00
monero: use trezor.utils.format_amount
This commit is contained in:
parent
3a408591d3
commit
e40e3c1fbc
@ -1,4 +1,4 @@
|
|||||||
from trezor import res, ui
|
from trezor import res, ui, utils
|
||||||
from trezor.messages import ButtonRequestType
|
from trezor.messages import ButtonRequestType
|
||||||
from trezor.ui.text import Text
|
from trezor.ui.text import Text
|
||||||
from trezor.utils import chunks
|
from trezor.utils import chunks
|
||||||
@ -114,7 +114,7 @@ async def naive_pagination(
|
|||||||
|
|
||||||
|
|
||||||
def format_amount(value):
|
def format_amount(value):
|
||||||
return "%f XMR" % (value / 1000000000000)
|
return "%s XMR" % utils.format_amount(value, 12)
|
||||||
|
|
||||||
|
|
||||||
def split_address(address):
|
def split_address(address):
|
||||||
|
Loading…
Reference in New Issue
Block a user