In Blocklist contract, the manager can block a contract from accessing VotingEscrow by calling the block function.
If the manager calls the block function on a contract due to some misunderstanding, the manager cannot resume the contractβs access to VotingEscrow after the misunderstanding is resolved.
function block(address addr) external {
require(msg.sender == manager, "Only manager");
require(_isContract(addr), "Only contracts");
_blocklist[addr] = true;
IVotingEscrow(ve).forceUndelegate(addr);
}
None
Consider adding the unblock function to allow the manager to unblock a contract
The text was updated successfully, but these errors were encountered:
All reactions