Skip to content

Clarify or Utilize round Parameter in PendingStake Method #647

@rickstaa

Description

@rickstaa

In the PendingStake method of the
BondingManager, the round parameter is currently unused:

uint256 endRound = roundsManager().currentRound();

To improve clarity and reduce potential confusion for integrators and developers, I propose one of the following actions:

  1. Update the method description and documentation to explicitly state that the round parameter is currently unused, and clarify its intended purpose (if any future usage is planned).

  2. Upgrade the protocol to make use of the round parameter, if there is an intended use case (e.g., allowing querying of stake at a specific round).

This change will help avoid misinterpretation and make the API more intuitive and self-explanatory for future development and integrations.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions