In the LendingPool contract a portion of interest payments reserved for protocol fees, becomes permanently locked due to a missing mechanism for accessing or utilizing these accumulated funds. This results in lost revenue for the protocol and an inefficient distribution of funds.
Locked Funds: The protocol fees are deducted but never transferred, withdrawn, or made accessible.
The issue originates in the calculateLiquidityRate function:
The function calculates the protocol fee but does not provide a way to transfer or allocate it.
The protocolFeeAmount is deducted from the gross liquidity rate but is not stored or accessible anywhere in the contract.
No function exists in LendingPool to claim or distribute these accumulated fees.
Borrowers pay interest, and a portion is reserved for protocol fees.
These fees are being held in the contract.
The funds remain locked indefinitely.
The protocol loses revenue as fees cannot be accessed or utilized.
To resolve this issue, the contract should:
Implement a mechanism to transfer the reserved protocol fee to a designated address.
Introduce a function for the protocol administrator to claim accumulated fees.
Modify calculateLiquidityRate to ensure protocol fees are stored properly.
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.