MErc20DelegateFixer::getCashPrior
is used to determine the cash available for the market. However, it is susceptible to a Donation Attack
where a user can manipulate the available cash by donating a large sum of underlying token directly to the contract. The function would return a higher available cash amount than is available and when used for calculating any rates, it can lead to issues such as inflation.
MErc20DelegateFixer::getCashPrior
#L131-135
Potentially inflated rates and loss of funds.
Manual Review.
Avoid using balanceOf
and instead rely on internal counting.
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.