Function can_partially_satisfy

Source
pub fn can_partially_satisfy(
    withdrawal: &PendingWithdrawal,
    available_assets: u128,
) -> bool
Expand description

Check if a withdrawal can be partially satisfied.

A partial satisfaction is possible when:

  1. Available assets are non-zero but less than expected.
  2. The available amount meets the minimum withdrawal threshold.

ยงArguments

  • withdrawal - The pending withdrawal request.
  • available_assets - Assets currently available.