Function find_request_status

Source
pub fn find_request_status<'a, I>(
    withdrawals: I,
    owner: &Address,
) -> Option<WithdrawalRequestStatus>
where I: IntoIterator<Item = &'a PendingWithdrawal>,
Expand description

Find a withdrawal request’s status by owner.

§Arguments

  • withdrawals - Iterator over pending withdrawals in queue order.
  • owner - The owner to search for.

§Returns

Some(WithdrawalRequestStatus) if found, None otherwise.