Skip to content
Request an audit

‹ Findings database

Implement Custom Errors Instead of require Statements

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

Description

The usage of require statements instead of custom errors is evident in both OstiumLinkUpKeep and particularly in OstiumVault.

Recommendation

It is advisable to opt for custom errors as they offer a more gas-efficient method to explain to users why an operation failed. Additionally, utilizing custom errors is more cost-effective during deployment.

Status

Addressed in #7565043.