From 8582cbb5b9816dfb3385425b64ace260ea3e55ab Mon Sep 17 00:00:00 2001 From: Pablo Maldonado Date: Fri, 15 Dec 2023 16:44:24 +0000 Subject: [PATCH] feat: add Signed-off-by: Pablo Maldonado --- src/HoneyPotOval.sol | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/HoneyPotOval.sol diff --git a/src/HoneyPotOval.sol b/src/HoneyPotOval.sol new file mode 100644 index 0000000..81feb16 --- /dev/null +++ b/src/HoneyPotOval.sol @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: AGPL-3.0-only +pragma solidity 0.8.17; + +import {BoundedUnionSourceAdapter} from "oev-contracts/adapters/source-adapters/BoundedUnionSourceAdapter.sol"; +import {BaseController} from "oev-contracts/controllers/BaseController.sol"; +import {ChainlinkDestinationAdapter} from "oev-contracts/adapters/destination-adapters/ChainlinkDestinationAdapter.sol"; +import {IAggregatorV3Source} from "oev-contracts/interfaces/chainlink/IAggregatorV3Source.sol"; +import {IMedian} from "oev-contracts/interfaces/chronicle/IMedian.sol"; +import {IPyth} from "oev-contracts/interfaces/pyth/IPyth.sol"; + +contract HoneyPotOval is BaseController, BoundedUnionSourceAdapter, ChainlinkDestinationAdapter { + constructor( + address chainlinkSource, + address chronicleSource, + address pythSource, + bytes32 pythPriceId, + uint8 decimals + ) + BoundedUnionSourceAdapter( + IAggregatorV3Source(chainlinkSource), + IMedian(chronicleSource), + IPyth(pythSource), + pythPriceId, + 0.1e18 + ) + BaseController() + ChainlinkDestinationAdapter(decimals) + {} +}