From 59cdbd778057c4164edc1d899613ce81d649fafc Mon Sep 17 00:00:00 2001 From: "Simon.ZG" Date: Mon, 8 Jul 2024 20:56:09 -0700 Subject: [PATCH] fix: compile issue for PendleOracle --- contracts/oracles/PendleOracle.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/oracles/PendleOracle.sol b/contracts/oracles/PendleOracle.sol index d1f505a6..f88aa814 100644 --- a/contracts/oracles/PendleOracle.sol +++ b/contracts/oracles/PendleOracle.sol @@ -103,7 +103,7 @@ contract PendleOracle is AccessControlledV8, OracleInterface { IPendlePtOracle underlyingPtOracle_ ) external notNullAddress(address(underlyingPtOracle_)) { _checkAccessAllowed("setUnderlyingPtOracle(address)"); - require(underlyingPtOracle_ != 0x0000000000000000000000000000000000000000, "invalid address"); + require(address(underlyingPtOracle_) != 0x0000000000000000000000000000000000000000, "invalid address"); IPendlePtOracle oldOracle = underlyingPtOracle; underlyingPtOracle = underlyingPtOracle_; emit PtOracleSet(address(oldOracle), address(underlyingPtOracle)); @@ -120,7 +120,7 @@ contract PendleOracle is AccessControlledV8, OracleInterface { OracleInterface intermediateOracle_ ) external notNullAddress(address(intermediateOracle_)) { _checkAccessAllowed("setIntermediateOracle(address)"); - require(intermediateOracle_ != 0x0000000000000000000000000000000000000000, "invalid address"); + require(address(intermediateOracle_) != 0x0000000000000000000000000000000000000000, "invalid address"); OracleInterface oldOracle = intermediateOracle; intermediateOracle = intermediateOracle_; emit IntermediateOracleSet(address(oldOracle), address(intermediateOracle_));