// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.9;

import { Auction } from "./Auction.sol";

contract FeeClaimer {

	address public owner;

	constructor() {
		owner = msg.sender;
	}

	modifier onlyOwner() {
		require(msg.sender == owner, "Must be owner of contract to execute");
		_;
	}

	function setOwner(address newOwner) onlyOwner public {
		owner = newOwner;
	}

	function claimFees(address auction, uint256[] calldata auctionIds, address recipient) onlyOwner public {
		for (uint i = 0; i < auctionIds.length; i++) {
			Auction(auction).confirmAuction(auctionIds[ i ], recipient);
		}
	}
}
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"auction","type":"address"},{"internalType":"uint256[]","name":"auctionIds","type":"uint256[]"},{"internalType":"address","name":"recipient","type":"address"}],"name":"claimFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"}]