The protocol lacks proper conversion of amount
values to ray in multiple functions, leading to incorrect calculations and rounding errors. This issue is particularly evident in the RToken contract, where balanceOf
returns a value in `ay but does not account for the token's decimals (18). This discrepancy can cause financial losses for the protocol and unfair outcomes for users.
Example itself:
Financial Loss for the Protocol:
Incorrect calculations can lead to reduced revenue or increased costs for the protocol. For example, if amount is rounded down to zero, the protocol may fail to process repayments or burn tokens correctly.
Manual code review.
Rework all Lending Pool functions that takes amount
value as input
May be add some helping functions in WadRayMath.sol. For example wadMulRay(uint wad, uint ray) -> uint ray
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.