Skip to content

Commit

Permalink
fix: Add literal syntax to setEModeCategory
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Dec 10, 2021
1 parent 7baf196 commit 4ab27c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion contracts/protocol/pool/PoolConfigurator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,13 @@ contract PoolConfigurator is VersionedInitializable, IPoolConfigurator {

_pool.configureEModeCategory(
categoryId,
DataTypes.EModeCategory(ltv, liquidationThreshold, liquidationBonus, oracle, label)
DataTypes.EModeCategory({
ltv: ltv,
liquidationThreshold: liquidationThreshold,
liquidationBonus: liquidationBonus,
priceSource: oracle,
label: label
})
);
emit EModeCategoryAdded(categoryId, ltv, liquidationThreshold, liquidationBonus, oracle, label);
}
Expand Down

0 comments on commit 4ab27c3

Please sign in to comment.