forked from aave/governance-v2
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ChainLinkPriceOracle tests with smock for mocking contracts
- Loading branch information
1 parent
0bed128
commit 3044c2e
Showing
6 changed files
with
3,939 additions
and
377 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
contracts/mock/priceOracle/chainlink/MockChainLinkAggregatorProxy.sol
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: agpl-3.0 | ||
pragma solidity 0.7.6; | ||
|
||
|
||
contract MockChainLinkAggregatorProxy { | ||
function decimals() external view returns (uint8) {} | ||
|
||
function latestRoundData() | ||
external | ||
view | ||
returns ( | ||
uint80 roundId, | ||
int256 answer, // rate in PRECISION of 10^18 | ||
uint256 startedAt, | ||
uint256 updatedAt, | ||
uint80 answeredInRound | ||
) {} | ||
} |
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
Oops, something went wrong.