Omniscia Kyber Network Audit
Rescuable Code Style Findings
Rescuable Code Style Findings
REL-01C: Non-Standard Library Usage
| Type | Severity | Location |
|---|---|---|
| Code Style | ![]() | Rescuable.sol:L12, L86 |
Description:
The SafeERC20 library is being applied to the IERC20 data type yet is invoked directly (i.e. SafeERC20.safeTransfer) rather than through the data type it is applied to (i.e. token.safeTransfer).
Example:
src/base/Rescuable.sol
86SafeERC20.safeTransfer(token, recipient, amount);Recommendation:
We advise the library's usage to be streamlined, optimizing the code's legibility.
Alleviation:
The library's usage style has been streamlined, addressing this exhibit.
