Skip to content

Issues with selecting max % of CSTK, after some % is locked #10

@Vyvy-vi

Description

@Vyvy-vi

Description -

The smooth slider on the dapp allows increments in percentages, however, it seems like due to rounding or something the percentage for the slider is more than the available balance to support in some case. This is an issue in cases where someone wants to vote with say 35% of all of their remaining balance, but the slider at 35% reflects in a larger amount than the available balance, so you can't vote with 35% :(

Possible Solutions -

  1. Adjust the slider amount scale
    We could have the slider set the slider amount scale from 0 to the maximum amount that is available for support(amount that is not locked), rather than the total balance.
  2. Alter the percentage calculation to ensure that it can round up proportional to how the percentages for locked tokens get calculated. I'm not sure why 25% is 1018 on slider, and 1017 in Inactive CSTK in my c.ase
  3. A max button
    This might be useful for only the edge-cases like this where the max amount available can't be contributed.
  4. A numeric input for the amount of CSTK (along with the slider)
    This could add more utility, where you could use the slider, and also alter the numeric value from the slider in an input box to your desired value.
  5. Replacing slider with input box (might be trouble for larger holders to type it all out though 🐋 )
    somewhat like how HoneyPot does it.

Screenshot for more context -

Screenshot 2021-06-23 at 2 59 04 PM

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