1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

Fix binance divisibility (#485)

Fix binance divisibility
This commit is contained in:
Tomas Susanka 2019-09-03 09:32:49 +02:00 committed by GitHub
commit 7b4b2eddf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,8 +17,8 @@ MSG_CANCEL_BLUEPRINT = '{{"refid":"{refid}","sender":"{sender}","symbol":"{symbo
INPUT_OUTPUT_BLUEPRINT = '{{"address":"{address}","coins":[{coins}]}}' INPUT_OUTPUT_BLUEPRINT = '{{"address":"{address}","coins":[{coins}]}}'
COIN_BLUEPRINT = '{{"amount":"{amount}","denom":"{denom}"}}' COIN_BLUEPRINT = '{{"amount":"{amount}","denom":"{denom}"}}'
# 1*10^18 Jagers equal 1 BNB https://www.binance.vision/glossary/jager # 1*10^8 Jagers equal 1 BNB https://www.binance.vision/glossary/jager
DIVISIBILITY = const(18) DIVISIBILITY = const(8)
def produce_json_for_signing(envelope: BinanceSignTx, msg) -> str: def produce_json_for_signing(envelope: BinanceSignTx, msg) -> str: