Skip to content

Commit

Permalink
fix: add validation to set interest rates
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Valeri committed Dec 27, 2021
1 parent 1c82032 commit f623d9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/protocol/pool/Pool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ contract Pool is VersionedInitializable, IPool, PoolStorage {
override
onlyPoolConfigurator
{
require(_reserves[asset].id != 0 || _reservesList[0] == asset, Errors.ASSET_NOT_LISTED);
_reserves[asset].interestRateStrategyAddress = rateStrategyAddress;
}

Expand Down

0 comments on commit f623d9a

Please sign in to comment.