Skip to content

[Bug]: Commission rate should have at least one decimal #2447

@matevz

Description

@matevz

Is there an existing issue for this?

  • I have searched the existing issues

STEPS TO REPRODUCE

The commission rate should not be rounded in the UI. For example https://explorer.oasis.io/mainnet/consensus/validators/oasis1qzg6dct605z9vm5d265uzskqj6szhkx3zugae2a3:

Image

Has actual commission rate 0.1%:

$ oasis network show oasis1qzg6dct605z9vm5d265uzskqj6szhkx3zugae2a3 --network mainnet
=== ENTITY ===
Entity Address: oasis1qzg6dct605z9vm5d265uzskqj6szhkx3zugae2a3
Entity ID:      1kZdUPgo42/mQB8rIsCQBPeqkJr1VEBX+4lZfUo6bAA=
Stake:          5279787.384975804 ROSE
Commission:     0.1%

=== NODES ===
Node Address: oasis1qpe0vnm0ahczgc353vytvtz9r829le4pjux8lc5z
Node ID:      UZ3Fz1nYHt41zR1eyL1g0kocea3WMUsbfoAkOvBcZko=
  Node Roles:       validator
  Software Version: 26.0-git76002fa95+dirty
  Node Status:
    Expiration Processed:    false
    Freeze End Time:         0
    Election Eligible After: 49571

EXPECTED BEHAVIOR

I would have a one-decimal for commission rate both on the validators list page and in the specific validator page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    javascriptPull requests that update javascript code

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions