Submitted by cmichel
Usually one tries to avoid toggle functions in blockchains, because it could be that you think that the first transaction you sent was not correctly submitted (but its just pending for a long time), or you might even be unaware that it was already sent if multiple roles can set it (like with changeMarketApproval / onlyGovernors) or if its an msig.
This results in potentially double-toggling the state, i.e, it is set to the initial value again.
Some example functions: changeMarketCreationGovernorsOnly, changeMarketApproval, and the ones that follow.
The outcome of toggle functions is hard to predict on blockchains due to the very async nature and lack of information about pending transactions.
Recommend using functions that accept a specific value as a parameter instead.
Splidge (Reality Cards) confirmed
