Function withdrawal_step_callback

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

Advance withdrawal by recording collected funds.

§Arguments

  • state - Current state (must be Withdrawing)
  • op_id - Operation ID to verify correlation
  • escrow_address - Address holding escrowed shares
  • amount_collected - Amount collected in this step

§Returns

  • Ok(TransitionResult) with updated Withdrawing state or Payout state