Skip to content

Conversation

@lleite-dot
Copy link
Contributor

@lleite-dot lleite-dot commented Jan 14, 2026

Description

This change introduces validation to prevent creating a launchpad sale with a start time in the past, ensuring data consistency and correct sale scheduling. A new optional timeUntilLaunch field was added to the sale API model and is calculated when fetching sale details, representing the remaining time (in milliseconds) until the sale starts. The fetch logic now derives this value based on the current transaction time, and comprehensive tests were added to cover both the validation error case and the new response field behavior.

@lleite-dot lleite-dot changed the title feat: add validation for future sale start time and include timeUntil… Validate sale start time and expose time until launch Jan 14, 2026
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.

1 participant