-
Notifications
You must be signed in to change notification settings - Fork 19
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
1 parent
31efef7
commit ac3c5dd
Showing
1 changed file
with
18 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
import '../interfaces/IAnkrETHOracle.sol'; | ||
|
||
pragma solidity 0.8.9; | ||
|
||
contract TestAnkrETHOracle is IAnkrETHOracle { | ||
uint256 rate = 1e18; | ||
|
||
function getRatioFor(address addr) external view returns (uint256) { | ||
require(addr == 0xE95A203B1a91a908F9B9CE46459d101078c2c3cb, 'TestAnkrETHOracle: invalid address'); | ||
return rate; | ||
} | ||
|
||
function setRate(uint256 _rate) external { | ||
rate = _rate; | ||
} | ||
} |