From c57b5a3b1a6309f3c378bcbe5ea36bbfa375593a Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 26 Nov 2020 21:41:54 +0100 Subject: [PATCH] areClaimedNotes --- contracts/MinerAggregator.sol | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contracts/MinerAggregator.sol b/contracts/MinerAggregator.sol index 62743fe..82b2cc0 100644 --- a/contracts/MinerAggregator.sol +++ b/contracts/MinerAggregator.sol @@ -12,4 +12,11 @@ contract MinerAggregator { _rates[i] = miner.rates(instances[i]); } } + + function areClaimedNotes(Miner miner, bytes32[] calldata _rewardNullifiers) external view returns (bool[] memory result) { + result = new bool[](_rewardNullifiers.length); + for (uint256 i = 0; i < _rewardNullifiers.length; i++) { + result[i] = miner.rewardNullifiers(_rewardNullifiers[i]); + } + } }