You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our current system supports only a single undelegation per delegator per validator. This limitation poses challenges for liquid staking, where more flexible and sophisticated solutions are required.
Objective
We aim to enhance the undelegation functionality by implementing a queue system. This new approach will allow users to initiate multiple undelegations over time, ensuring they are managed in a strict chronological order.
Requirements
Implement Undelegation Queue:
Replace the current single undelegation object with a queue structure.
Ensure the queue maintains the order of undelegations based on the time they were triggered.
Triggering Undelegations:
Users should be able to initiate multiple undelegations at different times.
Each undelegation should be added to the queue in the order it was initiated.
Claiming and Canceling Undelegations:
Undelegations must be claimed or canceled in the order they appear in the queue (i.e., FIFO - First In, First Out).
Implement mechanisms to manage the claiming and canceling process, ensuring strict adherence to the queue order.
Acceptance Criteria
Users can successfully trigger multiple undelegations for the same validator.
The system maintains a queue for each delegator-validator pair.
Undelegations are processed (claimed or canceled) in the exact order they were triggered.
Comprehensive testing to ensure the queue operates correctly under various scenarios.
Notes
Consider the impact on existing functionality and ensure backward compatibility where possible.
Documentation and comments should be provided to explain the new queue mechanism and its integration with the current system.
The text was updated successfully, but these errors were encountered:
Task Description
Background
Our current system supports only a single undelegation per delegator per validator. This limitation poses challenges for liquid staking, where more flexible and sophisticated solutions are required.
Objective
We aim to enhance the undelegation functionality by implementing a queue system. This new approach will allow users to initiate multiple undelegations over time, ensuring they are managed in a strict chronological order.
Requirements
Implement Undelegation Queue:
Triggering Undelegations:
Claiming and Canceling Undelegations:
Acceptance Criteria
Notes
The text was updated successfully, but these errors were encountered: