There is no cap to the amount of feeds supported by the engine.
This can cause user deposits to be stuck in the engine.
Deposits do not look at the health factor
However - when a user wants to redeem their collateral the engine checks the health factor and goes over every supported feed to check the usd price.
If s_collateralTokens.length
is large enough, there might not be enough gas in the block gas limit to possibly execute this function since all collateral feeds are checked even if the user does not have any of that collateral
Loss of funds
Set a limit of allowed feeds and only check the feeds if the user has more then zero amount of that collateral
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.