Skip to content

Commit

Permalink
Fix imports in merkle-distributor
Browse files Browse the repository at this point in the history
  • Loading branch information
def-main committed Jun 4, 2021
1 parent 424aefb commit 3fd209c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions contracts/interfaces/IRewardsOracle.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.7.5;

interface IRewardsOracle {

/**
* @notice Returns the oracle value, agreed upon by all oracle signers. If the signers have not
* agreed upon a value, should return zero for all return values.
*
* @return merkleRoot The Merkle root for the next Merkle distributor update.
* @return ipfsCid An IPFS CID pointing to the Merkle tree data.
* @return epoch The epoch number corresponding to the new Merkle root.
*/
function read() external virtual view returns (bytes32 merkleRoot, bytes32 ipfsCid, uint256 epoch);
}
2 changes: 1 addition & 1 deletion contracts/merkle-distributor/v1/impl/MD1Logic.sol
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pragma solidity 0.7.5;
pragma experimental ABIEncoderV2;

import { SafeERC20 } from '../../../dependencies/open-zeppelin/SafeERC20.sol';
import { SafeMath } from '../../../dependencies/open-zeppelin/SafeMath.sol';
import { MerkleProof } from '../../../dependencies/open-zeppelin/MerkleProof.sol';
import { IERC20 } from '../../../interfaces/IERC20.sol';
import { SafeERC20 } from '../../../lib/SafeERC20.sol';
import {MD1Types} from '../lib/MD1Types.sol';
import {MD1Pausable} from './MD1Pausable.sol';

Expand Down
2 changes: 1 addition & 1 deletion contracts/merkle-distributor/v1/impl/MD1Storage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '../../../dependencies/open-zeppelin/AccessControlUpgradeable.sol';
import { IERC20 } from '../../../interfaces/IERC20.sol';
import { IRewardsOracle } from '../../../interfaces/IRewardsOracle.sol';
import {ReentrancyGuard} from '../../../utils/ReentrancyGuard.sol';
import {ReentrancyGuard} from '../../../lib/ReentrancyGuard.sol';
import {VersionedInitializable} from '../../../utils/VersionedInitializable.sol';
import {MD1Types} from '../lib/MD1Types.sol';

Expand Down

0 comments on commit 3fd209c

Please sign in to comment.