The treasury manages protocol treasury funds with role-based access control. However, SafeERC20 is not utilized in the Treasury.sol. As a result, the treasury will not work well with some wired tokens.
The treasury manages protocol treasury funds with role-based access control. However, SafeERC20 is not utilized in the Treasury.sol.
https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/collectors/Treasury.sol#L50
https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/core/collectors/Treasury.sol#L75
As a result, the treasury will not work well with some wired tokens.
This can cause several impacts.(The treasury cannot work with USDT on Ethereum. Or, it causes loss of fund when the token is a no-revert-on-failure token.)
The treasury will not work well with some wired tokens. In the worst case, this can cause a critical loss of fund.(When the token is a no-revert-on-failure token.)
SafeERC20 should be utilized in the Treasury.sol.
LightChaser Low-60
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.