Cases of hacking and self-identification of errors in contact often occur. To protect the contract in such a case, the pause and blacklist functions in the contract are usually used. This would provide protection for the DelegateToken.sol contract in case of errors. However, these functions are absent in this contract. This may result in the inability to suspend the contract and loss of assets stored in the contract.
Tools Used
Manual review
Recommended Mitigation Steps
Add pause and blacklist functions from the OpenZeppelin library to the DelegateToken.sol contract
Lines of code
https://github.com/code-423n4/2023-09-delegate/blob/main/src/DelegateToken.sol#L1-L411
Vulnerability details
Impact
Cases of hacking and self-identification of errors in contact often occur. To protect the contract in such a case, the pause and blacklist functions in the contract are usually used. This would provide protection for the DelegateToken.sol contract in case of errors. However, these functions are absent in this contract. This may result in the inability to suspend the contract and loss of assets stored in the contract.
Tools Used
Manual review
Recommended Mitigation Steps
Add pause and blacklist functions from the OpenZeppelin library to the DelegateToken.sol contract
Assessed type
Governance