Skip to content

Commit

Permalink
fix: aggregator interface (#129)
Browse files Browse the repository at this point in the history
* fix: aggregator interface with soften version

* fix: abi encoder

* fix: AaveV3 import
  • Loading branch information
brotherlymite authored May 19, 2023
1 parent f978994 commit a32a855
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AaveGovernanceV2.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;
pragma abicoder v2;
pragma experimental ABIEncoderV2;

interface IGovernanceStrategy {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/AaveV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity >=0.6.0;
pragma experimental ABIEncoderV2;

import {AggregatorInterface} from 'aave-v3-core/contracts/dependencies/chainlink/AggregatorInterface.sol';
import {AggregatorInterface} from './common/AggregatorInterface.sol';

library DataTypes {
// refer to the whitepaper, section 1.1 basic concepts for a formal description of these properties.
Expand Down
18 changes: 18 additions & 0 deletions src/common/AggregatorInterface.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;

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);
}

0 comments on commit a32a855

Please sign in to comment.