generated from PaulRBerg/hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
51 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
pragma solidity 0.8.25; | ||
|
||
import "../../interfaces/ISfrxEthFraxOracle.sol"; | ||
import "@openzeppelin/contracts/access/Ownable.sol"; | ||
|
||
contract MockSfrxEthFraxOracle is ISfrxEthFraxOracle, Ownable { | ||
bool public isBadData; | ||
uint256 public priceLow; | ||
uint256 public priceHigh; | ||
|
||
constructor() Ownable() {} | ||
|
||
function setPrices(bool _isBadData, uint256 _priceLow, uint256 _priceHigh) external onlyOwner { | ||
isBadData = _isBadData; | ||
priceLow = _priceLow; | ||
priceHigh = _priceHigh; | ||
} | ||
|
||
function getPrices() external view override returns (bool, uint256, uint256) { | ||
return (isBadData, priceLow, priceHigh); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters