Skip to content

TypeError: conversion from NoneType to Decimal is not supported #1

Open

Description

@molecular

When I select OLI token and click "Order" button:

Traceback (most recent call last):
  File "/home/nick/.electron-cash-slp/external_plugins/TokenDex-0.01-beta.zip/TokenDex/ui.py", line 421, in place_order
    rate = PyDecimal(rate) / 10 ** 8
TypeError: conversion from NoneType to Decimal is not supported

Note that I wasn't able to fill Token Amount (greyed-out an prefilled with the amount of the coin I selected in Select Coin, BCH amount orRate fields. They're all greyed out, so I just hit the Order button to see what would happen.

Activity

  1. OPReturnCode commented on Nov 28, 2022

    @OPReturnCode
    Owner

    Thanks for the report. That error is fixed now (v0.02-beta).

    Token Amount and BCH Amount are automatically populated after you select the coin you want to use for the order and enter the desired rate.

    As for the Rate field being greyed-out, I was not able to reproduce that. Can you maybe post a screenshot of the window if the issue still persisted for you?

  2. molecular commented on Jan 21, 2023

    @molecular
    Author

    Still can't fill "Token Amount", "BCH Amount". I can fill "rate".

    image

    no exception to be seen on stdout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions