Skip to content
Request an audit

‹ Findings database

Unnecessary Typecasting of msg.sender

Low/InfoOstium audit·Three Sigma·RWA perpetuals DEX·19th February, 20243S-OS-N05

Description

Unnecessary typecasting of msg.sender to address is seen on L34 in OstiumLinkUpKeep::_onlyGov() and on L32 in OstiumRegistry::_onlyGov().

This redundancy is unnecessary as msg.sender already returns an address.

Recommendation

To improve efficiency and clarity, remove the typecasting operation to save gas and eliminate confusion.

Status

Addressed in #0b6bca6.