What's an invalid operator, and how can this happen? Let's say a PWN Safe approves one WETH towards Alice. Alice then transfers the one WETH to herself, and here we have it. Alice is still considered an operator by PWN Safe, although she can't transfer more tokens. You can remove her from the operator set by calling this function.
This function takes three arguments supplied by the caller:
addresssafe - Address of the PWN Safe
addressasset - Address of the ERC-20 token
addressoperator - Address of the operator to remove
The Operators Context contract does not define any events or custom errors.
Check function to determine if a PWN Safe has approved operators for a specific asset collection. This function returns a boolean. It is expected that this function is called by the ATR Guard function which performs additional operations to support the standard.
In case there's an invalid operator on an token, a user can call this function to resolve the problem. The function checks that there are no tokens approved towards the supplied operator and removes the operator from the operator set.