An unchecked return value vulnerability was found in contracts/core/StakingPool.sol (Lines 585-590 and 592). The return value of transferAndCallFrom is not checked, which may cause undetected transfer failures and improper fee handling.
In the loop, transferAndCallFrom is called to transfer fees, but its return value is not checked. This can lead to undetected transfer failures, resulting in loss of funds or incorrect accounting of fees.
Failed transfers could go unnoticed, potentially causing fund misallocation and inconsistencies in fee payments.
VS (Manual code review)
Add a require statement to ensure the success of each transfer. Here's the corrected code:
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.