Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
removed unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
vminkov committed Mar 8, 2024
1 parent 5c50823 commit 333f67d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 1 addition & 8 deletions contracts/oracles/default/RedstoneAdapterPriceOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,16 @@ import "../BasePriceOracle.sol";
* @author Veliko Minkov <[email protected]> (https://github.com/vminkov)
*/
contract RedstoneAdapterPriceOracle is BasePriceOracle {
/**
* @notice The USD Token of the chain
*/
address public USD_TOKEN;

/**
* @notice The Redstone oracle contract
*/
IRedstoneOracle public REDSTONE_ORACLE;

/**
* @dev Constructor to set admin, wtoken address and native token USD price feed address
* @param _usdToken The Wrapped native asset address
* @param redstoneOracle The Redstone oracle contract address
*/
constructor(address _usdToken, address redstoneOracle) {
USD_TOKEN = _usdToken;
constructor(address redstoneOracle) {
REDSTONE_ORACLE = IRedstoneOracle(redstoneOracle);
}

Expand Down
4 changes: 1 addition & 3 deletions contracts/test/oracles/RedstoneAdapterOracleTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@ import { BaseTest } from "../config/BaseTest.t.sol";
contract RedstoneAdapterOracleTest is BaseTest {
RedstoneAdapterPriceOracle public oracle;
address public redstoneOracleAddress;
address public usdTokenAddress;
address MODE_USDC = 0xd988097fb8612cc24eeC14542bC03424c656005f;
address MODE_EZETH = 0x2416092f143378750bb29b79eD961ab195CcEea5;
address MODE_WBTC = 0xcDd475325D6F564d27247D1DddBb0DAc6fA0a5CF;

function afterForkSetUp() internal override {
if (block.chainid == MODE_MAINNET) {
redstoneOracleAddress = 0x7C1DAAE7BB0688C9bfE3A918A4224041c7177256;
usdTokenAddress = MODE_USDC;
}

oracle = new RedstoneAdapterPriceOracle(usdTokenAddress, redstoneOracleAddress);
oracle = new RedstoneAdapterPriceOracle(redstoneOracleAddress);
}

function testPrintPricesMode() public fork(MODE_MAINNET) {
Expand Down

0 comments on commit 333f67d

Please sign in to comment.