atoma-network / atoma-contracts

Smart contracts repository for the Atoma Network
2 stars 0 forks source link

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

Open jorgeantonio21 opened 4 weeks ago

jorgeantonio21 commented 4 weeks ago

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.
Cifko commented 4 weeks ago

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?