In the TokenManager::withdraw
function, the transfer
method is used to send ETH, but it's limited to 2300 gas. This could cause the transaction to revert if the recipient requires more gas to process the transfer.
The withdraw
function transfers ETH to the msg.sender
when dealing with a wrapped native ETH token. The protocol uses the transfer
function, which is constrained to 2300 gas. If the msg.sender
requires more gas to accept the ETH, the transfer will fail and revert the transaction.
Withdrawals could fail due to insufficient gas, causing issues for users who need more than 2300 gas to receive ETH.
Manual review
Replace the transfer
function with a call
function that includes a success check to ensure the transfer completes even if more gas is needed
Invalid, known issues [Medium-2](https://github.com/Cyfrin/2024-08-tadle/issues/1)
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.