apps icon indicating copy to clipboard operation
apps copied to clipboard

Reinstate DOT as the default unit for the treasury.spendLocal() call on Polkadot-JS Apps

Open anaelleparity opened this issue 1 year ago • 1 comments

  • I'm submitting a ...
  • [ ] Bug report
  • [X] Feature request
  • [ ] Support request
  • [ ] Other
  • What is the current behavior and expected behavior?

The submission process for Treasury spends via Polkadot-JS Apps now involves Planck units and requires users to convert their DOT amounts before filling in the "amount" field. This wasn't the case previously, and there is no way for Polkadot-JS Apps users to figure out this new requirement from the UI.

Screenshot 2024-02-26 at 11 36 10 am
  • What is the motivation for changing the behavior?

The absence of prompt re: Planck unit on the Polkadot-JS UI could lead to a lot of confusion and frustration for proposers, as their pre-image submissions will be created with the wrong amounts, but they will not know how to troubleshoot this specific issue. Furthermore, most of OpenGov documentation that has been published on the Polkadot website, the Wiki, Parity guides, and community tutorial videos give a breakdown of procedures with DOT amounts, not Plancks.

Screenshot 2024-02-26 at 11 59 52 pm

Some possible options for mitigating this issue are to provide a tooltip/note about Planck units on the UI, so that proposers are aware (short-term solution) and to abstract the conversion process away from the UI, as it used to be the case (long-term solution).

  • Please tell us about your environment:
  • Version: N/A

  • Environment: N/A

    • [ ] Node.js
    • [X] Browser
    • [ ] Other (limited support for other environments)
  • Language:

    • [ ] JavaScript
    • [ ] TypeScript (include tsc --version)
    • [X] Other

anaelleparity avatar Feb 26 '24 23:02 anaelleparity

Addendum: Submitting a Treasury Spend for Bounties does not seem to be affected by this reversal, as DOT remains the unit of reference.

anaelleparity avatar Feb 27 '24 09:02 anaelleparity