DeFiHardhatOracleProxyUpdates
100,000 USDC
View results
Submission Details
Severity: low
Invalid

Inefficiency in Handling Multiple Small Deposits in Convert Function

Vulnerability Details

The convert function is designed to allow users to convert one type of deposit into another. However, the function does not impose any restrictions on the number or size of deposits that can be converted in a single transaction. An attacker could exploit this by creating a large number of small deposits and then initiating a conversion process that includes these numerous small deposits.

Impact

  1. Processing a large number of small deposits in a single conversion transaction can result in prohibitively high gas costs due to the increased computational effort required to iterate over each deposit.

  2. In extreme cases, the high gas costs and inefficiency could render the convert function unusable, effectively causing a denial of service for users attempting to perform conversions involving multiple small deposits.

Tools Used

manual review

Recommendations

  1. Introduce minimum deposit size requirements to prevent the creation of excessively small deposits that could be used to exploit the system.

  2. Allow the conversion of deposits in batches, with a limit on the number of deposits that can be included in a single transaction to manage gas costs effectively.

  3. Consider implementing a dynamic fee structure that adjusts the cost of conversion based on the number of deposits being converted to disincentivize the creation of many small deposits.

Updates

Lead Judging Commences

giovannidisiena Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality
Assigned finding tags:

Informational/Invalid

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.