Skip to content

packages/react: add useStreamCountdown hook for cliff and cancellation deadlines #830

Description

@Jaydbrown

Context

Developers integrating StreamFi must manually calculate time remaining until cliff timestamp or stream completion.

Why it matters

Vesting and payroll cards consistently need countdown displays (days, hours, minutes, seconds remaining).

Suggested approach

Create useStreamCountdown(targetTimestamp: number) hook returning { days, hours, minutes, seconds, isPast, progressFraction } with 1-second auto-tick.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions