Skip to content

πŸ’‘ Update Treasury Proposal Amount Field to Accept ADA Instead of LovelaceΒ #4000

@bosko-m

Description

@bosko-m

Area

Proposal Pillar

Is there new design needed?

No

What?

Adjust the "Amount" input field for Treasury-type proposals in the Proposal Discussion Forum so that it accepts values in ADA, not Lovelace.

Why?

Currently, the placeholder suggests users should input values in ADA (e.g., "2000 ada"), but the backend processes the input directly as Lovelace. This leads to incorrect submission data where users intend to request thousands of ada, but actually submit requests for only a few ada.

How?

  • Label Change:
    Update the field label from Amount to Amount (in ada) to remove ambiguity.

  • Placeholder Text:
    Keep or clarify the placeholder (e.g., e.g. 2000) to reinforce that the unit is ada.

  • Logic Adjustment:
    Update backend processing logic to interpret user input as ada and convert it to Lovelace by multiplying by 1,000,000 prior to submission/storage.

  • Validation:
    Add validation to prevent decimal precision beyond 6 digits (since Lovelace is the smallest unit).

(Optional) User Story with acceptance criteria

  • Users input amount in ada.
  • Value is correctly converted to Lovelace before submission.
  • Label and placeholder reflect ada input.
  • Validation prevents submission of malformed or ambiguous values.

Metadata

Metadata

Type

No type

Projects

Status

In QA

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions