Skip to content
Request an audit

‹ Findings database

PreDepositVault::maxDeposit/Mint() are missing maxDepositLimit as per the ERC4626 spec

Low/InfoGAIB Pre-Vaults audit·Sherlock·AI compute financing·28th March, 2025·by 0xSimaoL-1

Summary

PreDepositVault has a maxDepositLimit which is not reflected in maxDeposit/Mint, breaking the ERC4626 spec.

Vulnerability Detail

From the spec,

MUST factor in both global and user-specific limits

Impact

Non EIP4626 compliance

Code Snippet

https://github.com/sherlock-audit/2025-03-gaib/blob/main/pre-vaults/contracts/pre-vaults/gpdUSDT.sol#L18

Tool Used

Manual Review

Recommendation

Override ERC4626::maxDeposit/mint() and implement the deposit limit there