def METHOD_NAME(
        self,
        pot: 'AccountingPot',
        event: 'EvmEvent',
        other_events: Iterator['EvmEvent'],
) -> None:
    """
    Process deposits and withdrawals from protocols that allow to deposit multiple assets
    in return for a wrapped token. There are multiple events that we have to consume from
    the iterator.
    The receive wrapped event needs to have in the extra data field a key `deposit_events_num`
    marking the number of events to consume.
    The return wrapped event needs to have the key `withdrawal_events_num` with the number
    of events in the return event.
    """
    method: Literal['acquisition', 'spend']
    if event.event_type == HistoryEventType.RECEIVE:
        # Pool token is received, which means it is a deposit
        events_to_consume = event.extra_data.get('deposit_events_num', None) if event.extra_data is not None else None  # noqa: E501
        method = 'spend'
    else:  # Withdrawal
        events_to_consume = event.extra_data.get('withdrawal_events_num', None) if event.extra_data is not None else None  # noqa: E501
        method = 'acquisition'
    if events_to_consume is None:
        log.debug(
            f'Could not find the number of events to consume for a {event.counterparty} '
            f'deposit/withdrawal transaction {event.tx_hash.hex()}',
        )
        return
    # Consume the events
    for idx in range(events_to_consume):
        next_event = next(other_events, None)
        if next_event is None:
            log.debug(f'Could not consume event nr. {idx} for {event.counterparty} deposit/withdrawal')  # noqa: E501
            return
        if next_event.balance.amount == ZERO:
            continue
        pot.add_asset_change_event(
            method=method,
            event_type=AccountingEventType.TRANSACTION_EVENT,
            notes=next_event.notes if next_event.notes else '',
            location=next_event.location,
            timestamp=next_event.get_timestamp_in_sec(),
            asset=next_event.asset,
            amount=next_event.balance.amount,
            taxable=False,  # Deposits and withdrawals are not taxable
            count_entire_amount_spend=False,
            count_cost_basis_pnl=False,
            extra_data={'tx_hash': next_event.tx_hash.hex()},
        )