Function withdrawal_collected

Source
pub fn withdrawal_collected(
    state: OpState,
    op_id: u64,
    burn_shares: u128,
) -> TransitionRes
Expand description

Transition from Withdrawing to Payout when enough has been collected.

§Arguments

  • state - Current state (must be Withdrawing)
  • op_id - Operation ID to verify correlation
  • burn_shares - Number of shares to burn on successful payout

§Returns

  • Ok(TransitionResult) with Payout state