Message: ExecuteMsg::AddUserToBlacklist
This allows an agent to add a user to the blacklist.
Inputs
info.senderValidation: The
add_user_to_blacklistfunction checks if theinfo.senderis an authorized agent.Impact: N/A.
userValidation: The
useraddress is validated to ensure it is a valid address format.Impact: If the user is not already blacklisted, they are added to the blacklist.
Branches and code coverage (including function calls)
Intended branches
If the
useraddress is valid and not already blacklisted, it is added to the blacklist.
Negative behavior
Fail if the
info.senderis not an authorized agent.Fail if the
useraddress is invalid.Fail if the
useris already blacklisted.