Function: closeSpot(uint96 remaining, byte[32] salt)
Closes the Spot and removes the manager address as a current manager, letting them open up new Spots in the future. This can only be called by a plugin (e.g., the Trade contract). The status of the Spot is set to DISTRIBUTED, and the remaining amount is set for future claims.
Inputs
remaining
Control: Full.
Constraints: None.
Impact: Sets the remaining amount (after fees) used to calculate the claimable amount.
salt
Control: Full.
Constraints: None.
Impact: Decides the spot to close. Even when using the wrong salt, it can be opened again.