Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit b36aaa2

Browse files
look for uniswap pool only if uniswap factory defined
1 parent eaab561 commit b36aaa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/modules/RiskManager.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ contract RiskManager is IRiskManager, BaseLogic {
5151
p.pricingParameters = uint32(0);
5252

5353
p.config.collateralFactor = underlyingLookup[pTokenLookup[underlying]].collateralFactor;
54-
} else {
54+
} else if (uniswapFactory != address(0)) {
5555
// Uniswap3 TWAP
5656

5757
// The uniswap pool (fee-level) with the highest in-range liquidity is used by default.

0 commit comments

Comments
 (0)