Skip to content

Commit

Permalink
fix: compile issue for PendleOracle
Browse files Browse the repository at this point in the history
  • Loading branch information
simonzg committed Jul 9, 2024
1 parent 26ddbca commit 59cdbd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/oracles/PendleOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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_));
Expand Down

0 comments on commit 59cdbd7

Please sign in to comment.