The referenced statements will interact with the RWAToken known implementation via low-level call operations rather than casting the delegator 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 RWAVotingEscrow 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.
RWV-02C: Improper Low-Level Interactions
Description:
The referenced statements will interact with the
RWAToken
known implementation via low-levelcall
operations rather than casting thedelegator
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 theRWAVotingEscrow
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.