Skip to content

Commit

Permalink
Merge pull request #148 from VenusProtocol/fix/VEN-2252
Browse files Browse the repository at this point in the history
[VEN-2252]: Certik audit fix on Binance Oracle
  • Loading branch information
GitGuru7 authored Dec 15, 2023
2 parents f13e3af + 4426cd6 commit 9243025
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions contracts/oracles/BinanceOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ contract BinanceOracle is AccessControlledV8, OracleInterface {
address newfeedRegistryAddress
) external notNullAddress(newfeedRegistryAddress) onlyOwner {
if (sidRegistryAddress != address(0)) revert("sidRegistryAddress must be zero");
address oldFeedRegistry = feedRegistryAddress;
emit FeedRegistryUpdated(feedRegistryAddress, newfeedRegistryAddress);
feedRegistryAddress = newfeedRegistryAddress;
emit FeedRegistryUpdated(oldFeedRegistry, newfeedRegistryAddress);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const config: HardhatUserConfig = {
network: "opbnbmainnet",
chainId: 204,
urls: {
apiURL: `https://open-platform.nodereal.io/${process.env.ETHERSCAN_API_KEY}/op-bnb-testnet/contract/`,
apiURL: `https://open-platform.nodereal.io/${process.env.ETHERSCAN_API_KEY}/op-bnb-mainnet/contract/`,
browserURL: "https://opbnbscan.com/",
},
},
Expand Down

0 comments on commit 9243025

Please sign in to comment.