-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardize use of pips for tests and make use more logic prices for …
…the assets
- Loading branch information
1 parent
614f694
commit 41e8019
Showing
4 changed files
with
43 additions
and
59 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
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,21 @@ | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
pragma solidity ^0.8.21; | ||
|
||
contract MedianizerMock { | ||
uint256 public price; | ||
mapping (address => uint256) public bud; | ||
|
||
function setPrice(uint256 price_) external { | ||
price = price_; | ||
} | ||
|
||
function kiss(address a) external { | ||
bud[a] = 1; | ||
} | ||
|
||
function read() external view returns (bytes32) { | ||
require(bud[msg.sender] == 1, "MedianizerMock/not-authorized"); | ||
return bytes32(price); | ||
} | ||
} |