Skip to content

Commit

Permalink
define period boundaries: start inclusive, end exclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
s-tikhomirov committed Oct 3, 2024
1 parent b8ea666 commit 80ba2bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions standards/core/rln-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ Any existing membership MUST always be in exactly one of the following states:
- _ErasedAwaitsWithdrawal_;
- _Erased_.

The duration of each state MUST include the start timestamp.
The duration of each state MUST exclude the end timestamp.
For example, if a membership is registered at time `0`,
and the active state duration `A = 5`,
the membership is considered to be _Active_ at timestamps `0`, `1`, `2`, `3`, and `4`.
At timestamp `5`, the membership is considered to be in _GracePeriod_.

```mermaid
graph TD;
NonExistent --> |"register"| Active;
Expand Down

0 comments on commit 80ba2bd

Please sign in to comment.