-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Rename PoolConfigurator setter events
- Loading branch information
1 parent
0438cc7
commit 53b40ce
Showing
3 changed files
with
72 additions
and
54 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,56 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
// 0x6Df09E975c830ECae5bd4eD9d90f3A95a4f88012 | ||
// AAVE / USD 8 0x547a514d5e3769680Ce22B2361c10Ea13619e8a9 | ||
|
||
interface AggregatorInterface { | ||
function latestAnswer() external view returns (int256); | ||
|
||
function latestTimestamp() external view returns (uint256); | ||
|
||
function latestRound() external view returns (uint256); | ||
|
||
function getAnswer(uint256 roundId) external view returns (int256); | ||
|
||
function getTimestamp(uint256 roundId) external view returns (uint256); | ||
|
||
event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt); | ||
|
||
event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt); | ||
} | ||
|
||
interface AggregatorV3Interface { | ||
function decimals() external view returns (uint8); | ||
|
||
function description() external view returns (string memory); | ||
|
||
function version() external view returns (uint256); | ||
|
||
// getRoundData and latestRoundData should both raise "No data present" | ||
// if they do not have data to report, instead of returning unset values | ||
// which could be misinterpreted as actual reported values. | ||
function getRoundData(uint80 _roundId) | ||
external | ||
view | ||
returns ( | ||
uint80 roundId, | ||
int256 answer, | ||
uint256 startedAt, | ||
uint256 updatedAt, | ||
uint80 answeredInRound | ||
); | ||
|
||
function latestRoundData() | ||
external | ||
view | ||
returns ( | ||
uint80 roundId, | ||
int256 answer, | ||
uint256 startedAt, | ||
uint256 updatedAt, | ||
uint80 answeredInRound | ||
); | ||
} | ||
|
||
interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {} |
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