Skip to content

Commit

Permalink
create a separate contract for OSonicOracleRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrowDom committed Jan 16, 2025
1 parent 39475d2 commit 570f5af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions contracts/contracts/oracle/OSonicOracleRouter.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import { OETHFixedOracle } from "./OETHFixedOracle.sol";

// @notice Oracle Router that returns 1e18 for all prices
// used solely for deployment to testnets
contract OSonicOracleRouter is OETHFixedOracle {
constructor(address _auraPriceFeed) OETHFixedOracle(_auraPriceFeed) {}
}
2 changes: 1 addition & 1 deletion contracts/deploy/deployActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ const deployOracles = async () => {
contractName = "OETHOracleRouter";
args = [addresses.zero];
} else if (isSonicOrFork) {
oracleContract = "OETHFixedOracle";
oracleContract = "OSonicOracleRouter";
contractName = "OSonicOracleRouter";
args = [addresses.zero];
}
Expand Down

0 comments on commit 570f5af

Please sign in to comment.