Tadle

Tadle
DeFiFoundry
27,750 USDC
View results
Submission Details
Severity: low
Invalid

Gas Limit Issue in Ether Transfer Function

Summary

Vulnerability Details

In the withdraw function, the following line attempts to send Ether to the recipient:

(bool sent, ) = msg.sender.call{value: claimAbleAmount, gas: 2300}("");

The use of 2300 gas is specified as a fixed limit for the recipient’s fallback or receive function. This gas limit may not be sufficient for all smart contract wallets, especially those with complex fallback or receive functions.

Impact

If the fallback or receive function of the recipient's contract requires more than 2300 gas, the Ether transfer will fail. This failure prevents the recipient from receiving the funds, leading to a failed withdrawal attempt.

Tools Used

Recommendations

Remove the gas limit from the external call.

Updates

Lead Judging Commences

0xnevi Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

[invalid] finding-TokenManager-withdraw-transfer-2300-gas

Invalid, known issues [Medium-2](https://github.com/Cyfrin/2024-08-tadle/issues/1)

Support

FAQs

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