Function: close_cancel(Cancel cancel, byte[32] merkle_root, byte[32][] proof)
This function is for canceling the close request.
Inputs
cancelControl: Fully controlled by the caller.
Constraints: The request must not be processed already.
Impact: Cancel request of the close request.
merkle_rootControl: Fully controlled by the caller.
Constraints: Must be a valid root for the Merkle proof.
Impact: The root for the Merkle proof.
proofControl: Fully controlled by the caller.
Constraints: Must be valid with the Merkle proof.
Impact: The proof for the Merkle proof.
Branches and code coverage
Intended branches
Check the given
requestIdis valid for the cancel request.
Negative behavior
Revert when the
merkle_rootis invalid.Revert when the
requestIdis already processed.Revert when the proof validation is failed.