1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-15 19:08:07 +00:00

core: #482 fix binance divisibility

This commit is contained in:
ciny 2019-09-03 09:12:04 +02:00
parent 33cc147c66
commit ec4dd38888

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: