def METHOD_NAME(
        self,
        product: 'EvmProduct',
        deposit_events: set[tuple[HistoryEventType, HistoryEventSubType]],
) -> dict[ChecksumEvmAddress, list['EvmEvent']]:
    """
    Query events for protocols that allow deposits. It returns a mapping of the address
    that made the deposit to the event returned by the filter.
    """
    db_filter = EvmEventFilterQuery.make(
        counterparties=[self.counterparty],
        products=[product],
        location=Location.ETHEREUM,
    )
    with self.event_db.db.conn.read_ctx() as cursor:
        events = self.event_db.get_history_events(
            cursor=cursor,
            filter_query=db_filter,
            has_premium=True,
        )
    address_with_deposits = defaultdict(list)
    for event in events:
        if (event.event_type, event.event_subtype) not in deposit_events:
            continue
        if event.location_label is None:
            continue
        address_with_deposits[string_to_evm_address(event.location_label)].append(event)  # noqa: E501
    return address_with_deposits