Using of transfer
is not recommended it has 2300 gas cap and no longer recommended for sending Ether.
In withdraw
function of TokenManager.sol
, transfer
function is used here :
Using of transfer
is not recommended it has 2300 gas cap and no longer recommended for sending Ether. In case the gas cost increases the limit of 2300 it can breaking of the function.
Check here : https://solidity-by-example.org/sending-ether/
Link to code: https://github.com/Cyfrin/2024-08-tadle/blob/04fd8634701697184a3f3a5558b41c109866e5f8/src/core/TokenManager.sol#L137-L189
Manual review
Use OpenZeppelin's transfer
/ transferFrom
instead
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.