-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChainlinkOvalImmutable.sol
24 lines (22 loc) · 1.26 KB
/
ChainlinkOvalImmutable.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {ImmutableController} from "oval/src/controllers/ImmutableController.sol";
import {ChainlinkSourceAdapter} from "oval/src/adapters/source-adapters/ChainlinkSourceAdapter.sol";
import {ChainlinkDestinationAdapter} from "oval/src/adapters/destination-adapters/ChainlinkDestinationAdapter.sol";
import {IAggregatorV3Source} from "oval/src/interfaces/chainlink/IAggregatorV3Source.sol";
/**
* @title OvalOracle instance that has input and output adapters of Chainlink and ImmutableController.
*/
contract ChainlinkOvalImmutable is ImmutableController, ChainlinkSourceAdapter, ChainlinkDestinationAdapter {
constructor(
IAggregatorV3Source source, // The input chainlink source
uint8 decimals, // The number of decimals the input should provide.
uint256 lockWindow, // How long the permissioned actor has after each update to run an OEV auction.
uint256 maxTraversal, // The maximum lookback traversal limit when looking for historic data.
address[] memory unlockers // A set of unlockers who can initiate OEV auctions.
)
ChainlinkSourceAdapter(source)
ImmutableController(lockWindow, maxTraversal, unlockers)
ChainlinkDestinationAdapter(decimals)
{}
}