deposit function in the Treasury contract uses the ERC-20 transferFrom method to deposit tokens. While this is a standard method, it lacks safety checks for token transfer failures. transferFrom function used in the deposit method will not automatically revert on unexpected failures. This could allow for a failed deposit without clear error feedback, leading to an inconsistent state.Manual code review
transferFrom with safeTransferFrom to ensure that all token transfers are checked for success and revert on failure, enhancing security.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.