Closed foodaka closed 2 years ago
The setReserveFactor()
from the PoolConfigurator.sol
is calling ReserveConfiguration::setReserveFactor()
which performs the following check:
require(reserveFactor <= MAX_VALID_RESERVE_FACTOR, Errors.RC_INVALID_RESERVE_FACTOR);
I think it's worth to enforce that reserveFactor <= PercentageMath.PERCENTAGE_FACTOR
. The check inReserveConfiguration
only enforces that the passed value is lower or equal than the maximum that can be stored in the field
Submitted #504 to address this issue
Identified By
Scope
PoolConfigurator.sol
.'247 function setReserveFactor(address asset, uint256 reserveFactor)