Skip to content

Commit

Permalink
fix: oxorio #4 - unnecessary casts
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Sep 12, 2024
1 parent 9a72720 commit 477d9ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/contracts/helpers/UiPoolDataProviderV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ contract UiPoolDataProviderV3 is IUiPoolDataProviderV3 {
uint8 eModesFound = 0;
uint8 missCounter = 0;
for (uint8 i = 1; i < 256; i++) {
DataTypes.EModeCategory memory category = pool.getEModeCategoryData(uint8(i));
DataTypes.EModeCategory memory category = pool.getEModeCategoryData(i);
if (category.liquidationThreshold != 0) {
tempCategories[eModesFound] = Emode({eMode: category, id: i});
++eModesFound;
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/protocol/pool/PoolConfigurator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ abstract contract PoolConfigurator is VersionedInitializable, IPoolConfigurator
DataTypes.ReserveDataLegacy memory reserveData = _pool.getReserveData(asset);
categoryData.setCollateral(reserveData.id, allowed);
_pool.configureEModeCategory(categoryId, categoryData);
emit AssetCollateralInEModeChanged(asset, uint8(categoryId), allowed);
emit AssetCollateralInEModeChanged(asset, categoryId, allowed);
}

/// @inheritdoc IPoolConfigurator
Expand Down

0 comments on commit 477d9ed

Please sign in to comment.