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(afterDeadline): ensure it's clear the seat is not exitable by a user before the deadline #821

Closed

Conversation

0xpatrickdev
Copy link
Member

The exit behavior of an afterDeadline offer before the deadline occurs is not entirely clear in the documentation. The current behavior is that it is in the waived state until the deadline occurs, but one could mistakenly think it is in the onDemand state until the deadline occurs without explicit mention.

This PR adds a sentence describing the full behavior to the Proposals and payments section. The second half is maybe not necessary, but this comment inspired me to include it.

It may also make sense to add this language or similar language to the other two places afterDeadline appears - Exit Rule in the glossary and the Zoe Guide.

Copy link
Contributor

@ivanlei ivanlei left a comment

Choose a reason for hiding this comment

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

LGTM

@ivanlei ivanlei added the automerge:rebase Mergify automerge:rebase label Oct 6, 2023
@ivanlei ivanlei disabled auto-merge October 16, 2023 22:30
@ivanlei ivanlei removed the automerge:rebase Mergify automerge:rebase label Oct 16, 2023
Copy link
Contributor

@kbennett2000 kbennett2000 left a comment

Choose a reason for hiding this comment

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

Should more detail about the afterDeadline offer be included? Example:
"The exit behavior of an afterDeadline offer before the deadline occurs is that it is in the waived state until the deadline occurs; note that it is not in the onDemand state until the deadline occurs."

@@ -314,6 +314,7 @@ key:value pairs:
by its **timer** and **deadline** properties.
**timer** must be a timer, and **deadline** must be a [BigInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) value interpreted with respect to the timer.
Some example timers use Unix epoch time, while others count block height.
The proposer cannot exit the seat before the deadline, but the contract can exit the seat early on their behalf.
Copy link
Member Author

@0xpatrickdev 0xpatrickdev Jan 8, 2024

Choose a reason for hiding this comment

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

#821 (review)

Suggested change
The proposer cannot exit the seat before the deadline, but the contract can exit the seat early on their behalf.
The proposer cannot exit the seat before the deadline - the seat is in the `waived` state until the deadline occurs, but the contract can exit the seat early on the proposer's behalf.

How is this @kbennett2000 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Realizing the section this is proposing to edit is no longer there. Will update this to target the https://docs.agoric.com/reference/zoe-api/zoe.html#proposals section.

@0xpatrickdev
Copy link
Member Author

Closing in favor of #969

@0xpatrickdev 0xpatrickdev deleted the pc/zoe-offers-afterDeadline branch February 8, 2024 21:06
0xpatrickdev added a commit that referenced this pull request Feb 29, 2024
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.

3 participants