Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: validating time deltas #7

Merged
merged 27 commits into from
Sep 25, 2024
Merged

feat: validating time deltas #7

merged 27 commits into from
Sep 25, 2024

Conversation

wei3erHase
Copy link
Member

@wei3erHase wei3erHase commented Sep 20, 2024

Only a set of possible time-deltas should be allowed (e.g.) 0 (for unlocked with withdrawal period), 1 month, 3 months, and so on... The locking method should revert if the user tries to lock for a different amount of time.

This PR replaces the concept of Dates when creating a lockup, since the user will be inputting a TimeDelta, and internally we should calculate the Date, to keep the same infra as it was.

Base automatically changed from feat/unlock-with-withdrawal to dev September 25, 2024 15:00
@wei3erHase wei3erHase marked this pull request as ready for review September 25, 2024 15:21
@wei3erHase wei3erHase merged commit ed2f662 into dev Sep 25, 2024
2 checks passed
@wei3erHase wei3erHase deleted the feat/timedelta branch September 25, 2024 15:23
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