The referenced statement will interact with the rwaToken known implementation via low-level call operations rather than casting the rwaToken to an interface and invoking the methods that way.
We advise the code to declare a proper interface for the migration methods and for the RoyaltyHandler to properly use it, optimizing its legibility greatly.
If graceful error handling is desired, the try-catch paradigm can be adopted to achieve the same in a highly legible manner.
RHR-01C: Improper Low-Level Interaction
Description:
The referenced statement will interact with the
rwaToken
known implementation via low-levelcall
operations rather than casting therwaToken
to aninterface
and invoking the methods that way.Example:
Recommendation:
We advise the code to declare a proper
interface
for the migration methods and for theRoyaltyHandler
to properly use it, optimizing its legibility greatly.If graceful error handling is desired, the try-catch paradigm can be adopted to achieve the same in a highly legible manner.