In the IERC20.sol file, there are almost all function signatures. However, the ones for name(), symbol(), and decimals() are missing. Therefore, these functions cannot be called using the IERC20 wrapper interface.
Likelihood: High
Since the signatures do not exist in the interface file, when the code tries to call any of those functions, it fails in the compilation phase.
Impact: Medium
There are many cases in which the program needs to access those properties, especially the decimals() that is used for precision calculations. However, in the current situation, they are not accessible via the interface wrapper. This disrupts the functionality of the programs which rely on it.
Please add the following function to the Token.t.sol test file, add the import statement to the import section of the file, and try to run the test using forge test --mt test_decimalsFunctionIsNotAvailable. It will fail with the error visible in the following screenshot.
To solve the issue, please add the following function signatures to the IERC20.sol file.
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.
The contest is complete and the rewards are being distributed.