def currency_to_protocol(amount):
    if type(amount) in [float, int]:
        amount = "%.8f" % amount

    return int(amount.replace(".", '')) # avoiding float math
Convert a string of 'currency units' to 'protocol units'. For instance
dataset/ETHPy150Open priestc/moneywagon/moneywagon/core.py/currency_to_protocol