Severity: High
Description:
The contract does not adequately check whether the token being deposited is part of the whitelisted tokens. Although deposits of non-whitelisted tokens will revert as expected, the lack of explicit validation could lead to unclear error messages or unexpected behavior if the contract is modified in the future.
Impact:
Users may unintentionally deposit unsupported tokens, resulting in wasted gas fees and confusion due to unclear revert messages.
Proof of Concept:
The following test demonstrates that deposits with unsupported tokens revert, but the revert reason is not clearly defined:
Recommended Mitigation:
Explicitly validate deposits to ensure only whitelisted tokens are accepted, with a clear revert reason:
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.