Skip to content

HAMSTR-833: Proposer of Arbitration can Cancel before any Voting has been Done#18

Merged
jrkosinski merged 3 commits intomulti-head-escrow-rdfrom
HAMSTR-833-proposer-cancel
Aug 1, 2025
Merged

HAMSTR-833: Proposer of Arbitration can Cancel before any Voting has been Done#18
jrkosinski merged 3 commits intomulti-head-escrow-rdfrom
HAMSTR-833-proposer-cancel

Conversation

@jrkosinski
Copy link
Collaborator

Motivation

There should be a way to cancel arbitration, if nobody has voted on it, so as not to lock up other arbitration processes. Only the proposer of the arbitration should be able to do this though, and only if no votes have yet been cast.


Changes

  • In proposeArbitration, when a proposal is recorded, recorded also the proposer’s address (added new property to ArbitrationProposal)

  • Previously, a new proposal automatically got 1 vote for. This was supposed to represent the proposer casting a vote automatically. I got rid of that. Proposals start out with 0 votes for, 0 votes against (some tests will have to be adjusted once this change is made). UNLESS the proposer is also an arbiter - then the initial vote is recorded.

  • Modified cancelArbitration so that only the proposer is authorized to cancel, and only can cancel if no votes for or against have been cast (and the proposal isn’t ACCEPTED, REJECTED, or EXECUTED)

  • Added tests of the above logic


To Test

  • Run npx hardhat test and forge test

@jrkosinski jrkosinski merged commit ac216a6 into multi-head-escrow-rd Aug 1, 2025
1 check failed
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.

2 participants