forked from compound-finance/compound-protocol
-
Notifications
You must be signed in to change notification settings - Fork 44
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
3 changed files
with
61 additions
and
5 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,22 @@ | ||
pragma solidity ^0.5.16; | ||
|
||
import "../../contracts/PriceOracle/PriceOracleProxy.sol"; | ||
|
||
contract PriceOracleProxyHarness is PriceOracleProxy { | ||
uint256 public blockTimestamp = 100000; | ||
|
||
constructor( | ||
address admin_, | ||
address v1PriceOracle_, | ||
address cEthAddress_, | ||
address registry_ | ||
) public PriceOracleProxy(admin_, v1PriceOracle_, cEthAddress_, registry_) {} | ||
|
||
function getBlockTimestamp() internal view returns (uint256) { | ||
return blockTimestamp; | ||
} | ||
|
||
function setBlockTimestamp(uint256 newBlockTimestamp) public { | ||
blockTimestamp = newBlockTimestamp; | ||
} | ||
} |
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