The function calculateLiquidityRate
computes the protocolFeeAmount
but does not store or transfer it to an appropriate recipient. This could result in an unintended loss of protocol fees that should be collected.
The protocol is not collecting or distributing the computed protocolFeeAmount
.
This may lead to lost revenue for the protocol or incorrect calculations in downstream functions.
Ensure that the protocolFeeAmount
is properly recorded in the contract’s state.
Transfer the protocolFeeAmount
to the appropriate recipient, such as a protocol treasury or fee collector contract.
Modify the function to return both netLiquidityRate
and protocolFeeAmount
separately so that the fee can be utilized 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.