Skip to content

Show unlock date for pending unstaking#421

Merged
DRadmir merged 2 commits into
mainfrom
hyperliquid-unstaking-available-date
Jun 2, 2026
Merged

Show unlock date for pending unstaking#421
DRadmir merged 2 commits into
mainfrom
hyperliquid-unstaking-available-date

Conversation

@DRadmir
Copy link
Copy Markdown
Collaborator

@DRadmir DRadmir commented Jun 1, 2026

Pending unstaking now shows the unlock date for each request, instead of a single row without a date. Also aligns the staking screens between iOS and Android.
Screenshot 2026-06-01 at 10 35 03 PM
Screenshot 2026-06-01 at 10 56 14 PM

Derive pending unstaking rows from delegatorHistory so each withdrawal carries its own unlock date, replacing the single aggregate row that had no date.

Align iOS/Android staking UI: hide zero APR, sort delegations by numeric balance, reorder stake info card, and move the list countdown to the detail screen only.
@DRadmir DRadmir self-assigned this Jun 1, 2026
self.info(json!({"type": "delegations", "user": user})).await
}

pub async fn get_staking_history(&self, user: &str) -> Result<Vec<DelegatorHistoryEntry>, Box<dyn Error + Send + Sync>> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is already get_delegator_history method, duplicated, consolidate

Drop the duplicate get_staking_history method and parallel history models; map pending unstaking from the existing get_delegator_history / DelegatorHistoryUpdate, sharing the DELEGATOR_WITHDRAWAL_INITIATED phase constant.
@DRadmir DRadmir merged commit cce7529 into main Jun 2, 2026
7 checks passed
@DRadmir DRadmir deleted the hyperliquid-unstaking-available-date branch June 2, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants