I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Invalid number of decimals in deposits

dashed-slug.net Forums Monero Wallet Adapter extension support Invalid number of decimals in deposits

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10327
    LeinAd
    Participant

    I have a similar problem with the monero adapter. a fork have 9 decimals. i send 100.000 000 000 coins for testing but the UI shows me 0.100 000 000

    Edit.. yes i have set pattern to : %01.9f

    #10332
    alexg
    Keymaster

    Hello,

    Oops! I was not aware that there are forks with a different number of decimals! Thanks for letting me know.

    I will have to release a new version of the coin adapter. Until then, do not use the coin adapter for this fork.

    I will notify you again here.

    P.S. I have moved your post from the TurtleCoin adapter forum to the Monero coin adapter forum.

    with regards

    #10333
    LeinAd
    Participant

    one thing to this.. after i changed to %01.12f (to try a little around) it shows me 0.100 000 000 000 (i send 100coins too)

    so

    %01.9f = 0.100 000 000
    %0.12f = 0.100 000 000 000

    #10337
    alexg
    Keymaster

    OK,

    Delete the wrong deposit row from your DB. The row will be in the wp_wallets_txs table.

    You can now upgrade the Monero coin adapter to version 1.1.3.

    The wallets_cryptonote_coins filter now accepts an additional “decimals” argument. See the gist here for an example: https://gist.github.com/alex-georgiou/7181cc71c320cbe078a5623479b0a852

    For example, if your coin has 9 decimals, you should set decimals to 9, and amount pattern to %01.9f.

    Hope this helps. As always, let me know if you encounter any problems.

    with regards

    #10338
    LeinAd
    Participant

    ty .. works fine

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.