Require Statement where majorly used for Error Handling, this can be replaced with custom made error
Vulnerability Detail
Require Statement where used in majority of the codebase why this is good, it makes each function expensive to call which doesnt adhere to gas optimizations tips
Impact
Gas
Code Snippet
this are references from DepositVault.sol this happened throughout the code base but this are a few reference
USE OF CUSTOM MADE ERROR
Low/Info issue submitted by dvyneEth
Summary
Require Statement where majorly used for Error Handling, this can be replaced with custom made error
Vulnerability Detail
Require Statement where used in majority of the codebase why this is good, it makes each function expensive to call which doesnt adhere to gas optimizations tips
Impact
Gas
Code Snippet
this are references from
DepositVault.sol
this happened throughout the code base but this are a few referenceTool used
Manual Review
Recommendation
custom made error such as if statements can be introduced this makes each function cheaper to call than when a require stament is being used e.g in https://github.com/sherlock-audit/2024-05-midas/blob/main/midas-contracts/contracts/DepositVault.sol#L118 it can be replaced with