Function compute_full_withdrawal

Source
pub fn compute_full_withdrawal(
    withdrawal: &PendingWithdrawal,
    available_assets: u128,
) -> Option<WithdrawalResult>
Expand description

Compute the withdrawal result for a fully satisfied withdrawal.

§Arguments

  • withdrawal - The pending withdrawal to process.
  • available_assets - Assets available (must be >= withdrawal.expected_assets).

§Returns

Some(WithdrawalResult) if withdrawal can be satisfied, None otherwise.