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

Settlement happens after a pre-determined number of epoch's #88

Open
jorgeantonio21 opened this issue Oct 10, 2024 · 1 comment
Open
Assignees
Labels
sui Relevant to our Sui contracts

Comments

@jorgeantonio21
Copy link
Contributor

We should allow a time window, indexed in epochs, for disputes to occur. If not dispute happens, then the node is entitled to receive the payment fees. Notice that, this is distinct from finality. Once a user receives a response together with an attestation, that action can be considered to be final. Otherwise, the user can have a window to dispute a node in case:

  1. It received a malformed response (can be verified through remote attestation or by kickstarting a sampling consensus action).
  2. It did not receive any response from the node (Liveness failure), in which case it should request the contract to sample a new and transfer the vault.
@jorgeantonio21 jorgeantonio21 self-assigned this Oct 10, 2024
@jorgeantonio21 jorgeantonio21 added the sui Relevant to our Sui contracts label Oct 10, 2024
@Cifko
Copy link
Collaborator

Cifko commented Oct 10, 2024

what if the user didn't use all the money in the contract?

  1. after some period time the node can set how much money it wants from the contract
  2. another time period for dispute from user side
  3. user can close the contract (if the node never claimed anything in step 1, it will get all money back?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sui Relevant to our Sui contracts
Projects
None yet
Development

No branches or pull requests

2 participants