The fees in LiquidationPoolManager
can be set arbitrarily high or no fee at all as their exists no restriction in setPoolFeePercentage
.
setPoolFeePercentage
does not have any check to prevent setting zero value or 100% fee for the protocol which can lead to loss for protocol and user in either case.
The owner can set a huge fee for example 100% for liquidity provider so that a user will get nothing in return or set the zero value in which pool get nothing and cause loss to protocol and user in above considered scenario.
Manual review
The recommendation is made to have check in function to prevent setting value to zero as well as have a max fee limit i.e.; 5% when fees are set for pool.
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.