aave / protocol-v2

Aave Protocol V2
https://aave.com
Other
658 stars 744 forks source link

Fix problem not allowing accrual of indexes when RF (Reserve Factor) is configured as 100% #315

Open eboadom opened 1 year ago

eboadom commented 1 year ago

Context

The problem/consequences are explained HERE.

How

Having a 100% RF is a legitimate configuration for a reserve, so the fix should be on the logic not properly handling that case, instead of only adding extra validation to not allow a set of 100%.

To be researched deeper, but highly probable that the change should be done around the condition of ReserveLogic not contemplating the 100% RF scenario.

Other initial aspects to consider: